LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - General (https://www.linuxquestions.org/questions/linux-general-1/)
-   -   More Linux questions (https://www.linuxquestions.org/questions/linux-general-1/more-linux-questions-320044/)

Aphex_Twin2 05-04-2005 09:38 AM

More Linux questions
 
I have Slackware Linux installed, only I have a few questions:

What is the command to shut down the system (from text mode)?

How do I load KDE or GNOME or another desktop environment from text mode (commands, permissions necessary, ...)?

How do I make it so the system will boot automatically into KDE or GNOME?

Can I make an interface that would allow the user to chose a desktop environment at startup? I'm thinking at something like a default setting and a few seconds to make a change (something similar to a boot loader).

Where is the LILO configuration file and how do I change the boot labels?

How do I make the text mode use frame buffering (increased resolution, more rows and collumns)?

Can I playback mp3s or mpeg clips from text mode? What do I use for that?

Are there programs that use only the X Window System, without the desktop environment?

How do I use the Internet from text mode (browsing, e-mail, chat), if I can do that, and how do I set it up (assigning IP adresses, subnet mask et al...).

Is Linux compatible with the Microsoft network protocols? Will Linux machines show up when a Windows system queries the "My Network Places" or "Network neighbourhoor"? What is the Linux variant for "Network Neighbourhood"?

Can complex Windows programs (like games) be run from Linux? I'm thinking of my old Starcraft and Age of Empires or perhaps something like Counter-Strike...

Point me towards a couple of good Linux peer-to-peer utilities (like DC++ or E-mule).



Please be as explicit as possible because I'm still learning the ropes and pulleys of this creature :)

oneandoneis2 05-04-2005 10:24 AM

What is the command to shut down the system (from text mode)?

- "halt"

How do I load KDE or GNOME or another desktop environment from text mode (commands, permissions necessary, ...)?

- "startx" after modifying .xinitrc appropriately

How do I make it so the system will boot automatically into KDE or GNOME?

- Look up "runlevels"

Can I make an interface that would allow the user to chose a desktop environment at startup? I'm thinking at something like a default setting and a few seconds to make a change (something similar to a boot loader).

- Yes, with GDM or KDM. The default XDM doesn't allow this.

Where is the LILO configuration file and how do I change the boot labels?

- /etc/lilo.conf - edit this file, then re-run lilo to install the changes

How do I make the text mode use frame buffering (increased resolution, more rows and collumns)?

- enable support for it in the kernel, and tell your bootloader to use it. I use Grub, so can't remember the lilo command - "vga=791" or some such

Can I playback mp3s or mpeg clips from text mode? What do I use for that?

- yes, with 123mpg or mpg123 or other apps.

Are there programs that use only the X Window System, without the desktop environment?

- What do you mean? Very few applications need a particular desktop environment to work

How do I use the Internet from text mode (browsing, e-mail, chat), if I can do that, and how do I set it up (assigning IP adresses, subnet mask et al...).

- "links" for a text-only web browser, "pine" or "elm" are widely-used email clients. Chat is more tricky. . .

Is Linux compatible with the Microsoft network protocols? Will Linux machines show up when a Windows system queries the "My Network Places" or "Network neighbourhoor"? What is the Linux variant for "Network Neighbourhood"?

- You need Samba for this

Can complex Windows programs (like games) be run from Linux? I'm thinking of my old Starcraft and Age of Empires or perhaps something like Counter-Strike...

- Often, if you install Wine and have some patience :)

Point me towards a couple of good Linux peer-to-peer utilities (like DC++ or E-mule).

- Bittorrent

Padma 05-04-2005 10:28 AM

Hi Aphex_Twin. As you know, I'm not a "slacker", but Linux is Linux, and I can help with some of these. :)

Shut down: "shutdown now" from the command line should work for you. Do a "man shutdown" for all the possible options.

<stuff here that I know can be done, but I don't have the commands off the top of my head>

Choosing desktop environment: WHen installing KDE/Gnome, make sure you also install the login managers (kdm/gdm). The graphical login manager should give you the option to choose what DE/WM you run.

LILO: /etc/lilo.conf. Edit this file to change your LILO. Run "lilo -v" as root to install your changes.

<more stuff here that I know can be done, but I don't have the commands off the top of my head>

Internet from text mode: try the command "lynx http://www.linuxquestions.org"

<more stuff here that I know can be done, but I don't have the commands off the top of my head>

Games: *some* Windows games are available as native Linux ports. Others can be run using "wine", or "Cedega". Check up in the Linux-Software/Games forum for a lot of info.

Aphex_Twin2 05-04-2005 10:30 AM

Quote:

Originally posted by oneandoneis2
- "startx" after modifying .xinitrc appropriately
What is .xinitrc?

oneandoneis2 05-04-2005 10:37 AM

.xinitrc = A file in your home directory. You won't see it unless you specifically look for hidden files - that's what the period at the front does.

"ls -a" will show hidden files from the command line, or edit the settings of your GUI file manager to see them

Aphex_Twin2 05-04-2005 10:39 AM

I was interested in how I could set up the desktop environment from text mode. My Linux currently boots into what I understand is "runlevel 3". What configuration files will I have to modify to assign something like KDE to "runlevel 5" and to boot into that if possible.

And please explain what kind of changes will I have to make to .xinitrc

XavierP 05-04-2005 11:07 AM

Re: More Linux questions
 
Quote:

Originally posted by Aphex_Twin2
I have Slackware Linux installed, only I have a few questions:

What is the command to shut down the system (from text mode)?

Use halt or shutdown -h now - you may need to do this as root

Quote:

How do I load KDE or GNOME or another desktop environment from text mode (commands, permissions necessary, ...)?
Use the command xwmconfig and select which environment you want to boot to. Please note that this is a per user thing - if you do it as root only root gets the particular desktop, if done as the user, the user gets the desktop. And then run startx

Quote:

How do I make it so the system will boot automatically into KDE or GNOME?
As root, open the file /etc/inittab and change the first line. You will see the number 3, change it to a 5

Quote:

Can I make an interface that would allow the user to chose a desktop environment at startup? I'm thinking at something like a default setting and a few seconds to make a change (something similar to a boot loader).
Desktop Environments depend on having your distro and X started. Having changed /etc/inittab, you will then boot into a graphical login screen. There is an option there for whoever is trying to log in to change the Environment.

Quote:

Where is the LILO configuration file and how do I change the boot labels?
/etc/lilo.conf, use a text editor (nano, pico, vi, emacs, kwrite, etc etc) as root and change them. Then, still as root, run /sbin/lilo

Quote:

How do I make the text mode use frame buffering (increased resolution, more rows and collumns)?
My number is 788. Try a few and see what happens.

Quote:

Can I playback mp3s or mpeg clips from text mode? What do I use for that?
As mentioned, mpg123 and 123mpg. MPlayer also has a command line only version.

Quote:

Are there programs that use only the X Window System, without the desktop environment?
Anything with a gui. Like Firefox, Thunderbird, Kwrite. Maybe if you tell us the type of program we can narrow it down.

Quote:

How do I use the Internet from text mode (browsing, e-mail, chat), if I can do that, and how do I set it up (assigning IP adresses, subnet mask et al...).
Links, Lynks, W3M are 3 text mode browsers. Pine is a text only email system. Chat programs..... http://linuxreviews.org/software/irc/index.html.en#toc5 will be of help

Quote:

Is Linux compatible with the Microsoft network protocols? Will Linux machines show up when a Windows system queries the "My Network Places" or "Network neighbourhoor"? What is the Linux variant for "Network Neighbourhood"?
As mentioned Samba is what you need

Quote:

Can complex Windows programs (like games) be run from Linux? I'm thinking of my old Starcraft and Age of Empires or perhaps something like Counter-Strike...
You need Wine or Cedega are what you will need.

Quote:

Point me towards a couple of good Linux peer-to-peer utilities (like DC++ or E-mule).
BitTorrent and clients, aMule are 2 of the more popular. Also Limewire.

Can I suggest you either read the Slackware Book on the Slackware website, or get yourself a good basic Linux book from a bookstore or library - these are extremely basic questions that could have been answered with a quick Google, a search or by reading a book.

Komakino 05-04-2005 12:32 PM

Quote:

Originally posted by Aphex_Twin2
I was interested in how I could set up the desktop environment from text mode. My Linux currently boots into what I understand is "runlevel 3". What configuration files will I have to modify to assign something like KDE to "runlevel 5" and to boot into that if possible.

And please explain what kind of changes will I have to make to .xinitrc

Actually on slack it's runlevel 4. Runlevel 4 loads gdm (gnome display manager) on startup and allows you to choose what window manager to use. If KDE is installed on your system then that will be under the 'session' menu.

To change permenantly to runlevel 4, edit the file /etc/inittab and change the initdefault number from 2 to 4.

Aphex_Twin2 05-05-2005 10:12 AM

Quote:

Originally posted by Komakino
Actually on slack it's runlevel 4. Runlevel 4 loads gdm (gnome display manager) on startup and allows you to choose what window manager to use. If KDE is installed on your system then that will be under the 'session' menu.

To change permenantly to runlevel 4, edit the file /etc/inittab and change the initdefault number from 2 to 4.

Actually I did and it loads an unconfigured GNOME, not an interface choser, neither the default option (KDE).
But I can access KDE from runlevel 3. The kdm command loads an interface choser but some of the choices (more obscure desktop environments) crash the system.

I have a few additional questions:

How do I "kill" the desktop environment and/or X (to get back control if they crash)?

How can I make it so the system will be able to share the sound output among processes? I cannot seem to be able to use two media players at the same time. At times there is another process that has gained access to the sound (I have no idea how) and XMMS simply refuses to play.

A quirk I encountered is that XMMS will only play if I in advance start Kmix (from KDE).

How do I set XMMS as the default audio player for X?

How would I set mplayer as the default video player?

How do I gain root privileges if I am loaded into a desktop environment as a user?

How do I maintain the desktop icon pictures (the pictures, not the icons) if I switch desktop environments? For instance, if I created an icon in KDE with Tux the penguin as the picture, how do I get Tux from GNOME (Do I have to set it up manually?)

And a few general issues:
In MS-DOS Batch you could use the ren command the following way: "ren *.abc *.xyz", changing the extension of the ".abc" files into ".xyz". How do I do that with Linux bash (mv *.abc *.xyz does not work)?

What is the name of the Linux command interpreter and where does it reside?

When I type "\" the system prompts me with a ">" character. What does the "\" do?

Does the system load up a bash script on start-up? If so, what is it called and where is it located?

Where do I find a relatively comprehensive and quick-to-learn bash tutorial?



As I'm getting round the Linux system I'm starting to realize it's not the lack of features that plague it, rather the overwhelming abundance of them. Too many things to chose from... But I'm developing a fondness for KDevelop :)

Aphex_Twin2 05-05-2005 10:28 AM

And what do I use for the following purposes (from KDE):
- CD burning
- creating iso images
- ripping audio CDs


Is KDevelop exclusively for writing free software, or is there room for commercial apps too (legally, that is, and what are the limitations, if any).

XavierP 05-05-2005 11:02 AM

Aphex_Twin2 - I think you would be better served by looking up your local LUG and attending a few sessions. You are asking a huge number of unrelated questions and they could all be answered by searching LQ, searching via Google and reading some books and the Man pages. As it goes, if you are asking this many questions then you really need to do some research.

oneandoneis2 05-05-2005 11:06 AM

How do I "kill" the desktop environment and/or X (to get back control if they crash)?

- Ctrl-Alt-F1 takes you to a terminal

How can I make it so the system will be able to share the sound output among processes? I cannot seem to be able to use two media players at the same time. At times there is another process that has gained access to the sound (I have no idea how) and XMMS simply refuses to play.

- configure alsa to share, and tell all aps to use alsa

How do I set XMMS as the default audio player for X?

- You don't, that's a KDE setting

How do I gain root privileges if I am loaded into a desktop environment as a user?

- Open a terminal and type "su -"

How do I maintain the desktop icon pictures (the pictures, not the icons) if I switch desktop environments? For instance, if I created an icon in KDE with Tux the penguin as the picture, how do I get Tux from GNOME (Do I have to set it up manually?)

- You have to do it manually

Does the system load up a bash script on start-up? If so, what is it called and where is it located?

.bashrc and .bash_profile (and possibly .login, I forget)

Where do I find a relatively comprehensive and quick-to-learn bash tutorial?

- Google

And what do I use for the following purposes (from KDE):
- CD burning
- creating iso images
- ripping audio CDs

- Grip and Cdrecord

Aphex_Twin2 05-05-2005 11:16 AM

Quote:

Originally posted by oneandoneis2
- Ctrl-Alt-F1 takes you to a terminal
I want to terminate the X and KDE sessions and possibly start new ones. The Ctrl-Alt-Fs merely sweep the problem under a rug.

Quote:

How do I set XMMS as the default audio player for X?

- You don't, that's a KDE setting
Do you know how to make it default for KDE?

Quote:

How do I gain root privileges if I am loaded into a desktop environment as a user?

- Open a terminal and type "su -"
I want to for instance use XMMS to modify an mp3 file from the windows partition (that is read only for users). su only gives me that power from the terminal, not the KDE in general.

oneandoneis2 05-05-2005 11:29 AM

I want to terminate the X and KDE sessions and possibly start new ones. The Ctrl-Alt-Fs merely sweep the problem under a rug.

- Yes, but from the terminal you change to runlevel 3, thus killing X and any processes it's running

Do you know how to make it default for KDE?

- No, don't use it. Far too bloated.

I want to for instance use XMMS to modify an mp3 file

- XMMS isn't an editor. But you can run KDE apps from the terminal as root

Aphex_Twin2 05-05-2005 11:38 AM

Quote:

Originally posted by oneandoneis2
- Yes, but from the terminal you change to runlevel 3, thus killing X and any processes it's running


What is the command? I've been using runlevels through the /etc/bintab
Do you know how to make it default for KDE?

Quote:

- XMMS isn't an editor. But you can run KDE apps from the terminal as root
I use it to change file specifications (artist, title, etc...)


All times are GMT -5. The time now is 10:11 PM.