hi all, i am relatively new to linux and i have a few basic questions, that i hope someone will be willing to help me with. i am running SuSE 6.2 and KDE 1.1.2. - i have set my system to boot to the command prompt, because i don't want to start KDE when i log on as root. however, when i log on as a user, i would like to start KDE automatically. at first i just put the command 'startx' in ~/.profile. that works, but when i open up a terminal in KDE, it gives an error message saying that the X server is already running. i reckon i can solve this problem by adjusting ~/.profile in such a way that startx is only executed when X isn't already running, but how can i test this? - is it possible to configure the system in such a way that a user can shut the computer down, too, and not just 'root'? it's annoying to have to su to root all the time before shutting down. - i don't really understand the concepts of 'X server', 'window manager' etc. is there any good documentation on this? something that explains the outline of the graphical interface in unix/linux in some detail? any help would be greatly appreciated! joost kremers ______________________________________________ FREE Personalized Email at Mail.com Sign up at http://www.mail.com/?sr=signup -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
On Mon, 8 May 2000, Joost Kremers wrote:
- i have set my system to boot to the command prompt, because i don't want to start KDE when i log on as root. however, when i log on as a user, i would like to start KDE automatically. at first i just put the command 'startx' in ~/.profile. that works, but when i open up a terminal in KDE, it gives an error message saying that the X server is already running. i reckon i can solve this problem by adjusting ~/.profile in such a way that startx is only executed when X isn't already running, but how can i test this?
Probably the best way to achieve what you want is to set your system to boot to X, and then every time you want to log in as root hit CTRL-ALT-F1 to get to a console and log in there.
- is it possible to configure the system in such a way that a user can shut the computer down, too, and not just 'root'? it's annoying to have to su to root all the time before shutting down.
If you set your system to boot to X, there is a variable in the configuration file that allows you to change this. Run YaST and go to System Administration -> Change configuration file, find the variable called KDM_SHUTDOWN and change it to "local" or "all". Another way to accomplish this is to, as root, run YaST and go to System Administration -> Change configuration file, find the variable called CONSOLE_SHUTDOWN and change it to "halt". Then you can switch to a console (using CTRL-ALT-F1 through F6), hit ctrl-alt-del, and the system will shut down. -tara -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
Hi Joost, Joost Kremers wrote:
hi all,
i am relatively new to linux and i have a few basic questions, that i hope someone will be willing to help me with. i am running SuSE 6.2 and KDE 1.1.2.
- i have set my system to boot to the command prompt, because i don't want to start KDE when i log on as root. however, when i log on as a user, i would like to start KDE automatically. at first i just put the command 'startx' in ~/.profile. that works, but when i open up a terminal in KDE, it gives an error message saying that the X server is already running.
Because .profile is read everytime a new shell is started.
i reckon i can solve this problem by adjusting ~/.profile in such a way that startx is only executed when X isn't already running, but how can i test this?
Maybe you can put it in ~/.login instead?
- is it possible to configure the system in such a way that a user can shut the computer down, too, and not just 'root'? it's annoying to have to su to root all the time before shutting down.
Yes, shutdown control can be set in YaST: System Administration / Change Configuration file. In there is a variable that controls who can shut down the machine (root, local users, console, all). I forgot its exact name.
- i don't really understand the concepts of 'X server', 'window manager' etc. is there any good documentation on this? something that explains the outline of the graphical interface in unix/linux in some detail?
Maybe this is what you're looking for: http://www.linuxdoc.org/HOWTO/XWindow-User-HOWTO.html. Haven't read it myself though.
any help would be greatly appreciated!
joost kremers ______________________________________________ FREE Personalized Email at Mail.com Sign up at http://www.mail.com/?sr=signup
--
Bye, Martijn -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
- is it possible to configure the system in such a way that a user can shut the computer down, too, and not just 'root'? it's annoying to have to su to root all the time before shutting down.
Yes, shutdown control can be set in YaST: System Administration / Change Configuration file. In there is a variable that controls who can shut down the machine (root, local users, console, all). I forgot its exact name.
Another way to do this is to use "sudo". It's a package, although I can't remember which series it's in. Anyway, there's a program called "visudo" that will alow you to edit the sudoers list located in /etc. In there put the users you want to allow root access to. As you can see this could cause all sorts of security issues. The syntax goes like: username ALL=(ALL) ALL Or you can specify certain commands people are allowed access to. Optiionally if you don't want to be prompted for a password: username ALL=(ALL) NOPASSWD: ALL To use it just prefix commands with sudo: sudo shutdown -h now Matt -- ------------------------------------------------------------------ The Matt Factor ICQ UID 5060999 Linux User #160471 stick@spinner.org.nz http://www.spinner.org.nz Chaos, panic and disorder - my work here is done. ------------------------------------------------------------------ -- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/Support/Doku/FAQ/
participants (4)
-
Martijn.van.den.Burg@asml.nl
-
stick@spinner.org.nz
-
tla@akamai.com
-
typical@mad.scientist.com