Linux - General This Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place. |
Notices |
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
Are you new to LinuxQuestions.org? Visit the following links:
Site Howto |
Site FAQ |
Sitemap |
Register Now
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
|
|
|
11-28-2001, 09:55 PM
|
#1
|
Member
Registered: Jun 2001
Location: 28N,82W
Distribution: XP,Ubuntu 9
Posts: 473
Rep:
|
How to add Shutdown and Restart to the menu in KDE?
Everytime I have to shutdown or restart (from KDE), I first need to log off, and then use the login to either shutdown or restart.
How to add Shutdown and Restart options to the KDE menu?
|
|
|
11-29-2001, 01:00 AM
|
#2
|
Member
Registered: Nov 2001
Location: Seattle, WA, USA
Distribution: RedHat Linux 7.2
Posts: 84
Rep:
|
Well one way is to open the run dialog (normally Alt-F2) and type 'halt' or 'reboot'.
|
|
|
11-29-2001, 02:04 AM
|
#3
|
Member
Registered: Jun 2001
Location: 28N,82W
Distribution: XP,Ubuntu 9
Posts: 473
Original Poster
Rep:
|
One disadvantage with the currentl KDE menu is that you first need to log off. That causes the X server to restart (I guess).
GNOME has both reboot and a halt options, though.
|
|
|
11-29-2001, 02:46 AM
|
#4
|
Member
Registered: Jun 2001
Location: Fairfax, California
Distribution: RH 9.0, RH 7.3, Mandrake 8.0
Posts: 986
Rep:
|
Quote:
Originally posted by concoran
...That causes the X server to restart (I guess).
|
Perhaps if you are set up to boot directly into the GUI (runlevel 5); otherwise, KDE's logout just drops you to shell. You're right though- I would think there should be a way to specify halt or restart from within KDE, but I haven't been able to find it...
Anyone?
|
|
|
11-29-2001, 02:54 AM
|
#5
|
Member
Registered: Jun 2001
Location: 28N,82W
Distribution: XP,Ubuntu 9
Posts: 473
Original Poster
Rep:
|
DMR: default runlevel in SuSE is 3. It doesn't like 5 it seems. Once when I changed that to 5, SuSe refused to boot.
|
|
|
11-29-2001, 03:51 AM
|
#6
|
LQ Newbie
Registered: Nov 2001
Location: India
Distribution: Redhat, Mandrake
Posts: 12
Rep:
|
try this out - it may not work, but then i don't use the gui much...
can't one create a shortcut / add an item (actually a command) onto the start menu? then when it prompts for the command to execute, type in "halt" or "reboot", as might be the case..
|
|
|
11-29-2001, 03:52 AM
|
#7
|
LQ Newbie
Registered: Nov 2001
Location: India
Distribution: Redhat, Mandrake
Posts: 12
Rep:
|
try this out - it may not work, but then i don't use the gui much...
can't one create a shortcut / add an item (actually a command) onto the start menu?( there's a wizard to do that, if i remember correctly) in place of the command to execute, type in "halt" or "reboot", as might be the case..
|
|
|
11-29-2001, 09:30 PM
|
#8
|
Member
Registered: Jun 2001
Location: Fairfax, California
Distribution: RH 9.0, RH 7.3, Mandrake 8.0
Posts: 986
Rep:
|
Quote:
Originally posted by concoran
DMR: default runlevel in SuSE is 3. It doesn't like 5 it seems. Once when I changed that to 5, SuSe refused to boot.
|
Oh, right- SuSE differs from the Redhat-based distros. In SuSE, I think runlevel 3 boots directly into X and runlevel 2 should be the shell. Runlevel 5 isn't implemented in SuSE; no wonder your system didn't like it- sorry about that.
|
|
|
11-29-2001, 09:48 PM
|
#9
|
Member
Registered: Jun 2001
Location: Fairfax, California
Distribution: RH 9.0, RH 7.3, Mandrake 8.0
Posts: 986
Rep:
|
Quote:
Originally posted by oneuponzero
try this out - it may not work, but then i don't use the gui much...
can't one create a shortcut / add an item (actually a command) onto the start menu? then when it prompts for the command to execute, type in "halt" or "reboot", as might be the case..
|
That's a possibility, although I haven't tried it yet. One problem I can see is that the halt command can only be run as root (unless you change permissions). Since safe practise is not to log on as root unless absolutely necessary, and changing perms on the halt command could invite trouble, the approach wouldn't work for normal user accounts.
|
|
|
11-30-2001, 01:44 AM
|
#10
|
LQ Newbie
Registered: Nov 2001
Location: India
Distribution: Redhat, Mandrake
Posts: 12
Rep:
|
Quote:
Originally posted by DMR
That's a possibility, although I haven't tried it yet. One problem I can see is that the halt command can only be run as root (unless you change permissions). Since safe practise is not to log on as root unless absolutely necessary, and changing perms on the halt command could invite trouble, the approach wouldn't work for normal user accounts.
|
the halt command doesn't require root authority(at least on the RH/Mandrake systems i've worked on), although it's a call to the /sbin/init command. In ordinary remote-login environments, halt is commonly used to shut down the client machines, not the server, so i don't think halt/reboot requires one to be root.
|
|
|
11-30-2001, 03:27 AM
|
#11
|
Member
Registered: Jun 2001
Location: Fairfax, California
Distribution: RH 9.0, RH 7.3, Mandrake 8.0
Posts: 986
Rep:
|
Quote:
Originally posted by oneuponzero
the halt command doesn't require root authority(at least on the RH/Mandrake systems i've worked on), although it's a call to the /sbin/init command. In ordinary remote-login environments, halt is commonly used to shut down the client machines, not the server, so i don't think halt/reboot requires one to be root.
|
Om my Mandrake 8 box, halt and shutdown do require that you be root to execute them (as a local user, not remote), although the weird thing is that I don't remember that being an issue with my Redhat 6.2 install. Unfortunately, I wiped Redhat during my last Hardware-Go-Round, so I can't check it out.
|
|
|
11-30-2001, 04:33 AM
|
#12
|
Member
Registered: Jun 2001
Location: 28N,82W
Distribution: XP,Ubuntu 9
Posts: 473
Original Poster
Rep:
|
Thanks for your efforts and replies, DMR and oneuponzero..
KDE could have added that option by default. I am surprised it isn't there.
Presently in KDE, any normal user has to press the mouse 6 times
in order to shutdown/restart.
In any Linux distro, any user can shutdown the machine (unlike in Unix). So, why not just place a button somewhere at the bottom panel which when pressed, shuts down the machine without hassles?
Last edited by concoran; 11-30-2001 at 12:01 PM.
|
|
|
11-30-2001, 11:55 AM
|
#13
|
LQ Newbie
Registered: Nov 2001
Location: India
Distribution: Redhat, Mandrake
Posts: 12
Rep:
|
got it working!
well, i did get the halt thingie to work!! - on mandrake 8.1, i tried the following..
1. started the menu editor, menudrake, or something like that - right-click on the KDE button and select 'configure'.
2. select add, then type "/usr/bin/halt" or "/usr/bin/reboot" in the 'run command' box.
3. select an icon ( there are a LOT to choose from) for the button, and then click 'save'.
You're done!
(BTW, the fact that these executables lie in/usr/bin, as opposed to /sbin or /usr/sbin, do show that they are user-executable.)
well, all's well that ends well!
|
|
|
11-30-2001, 12:13 PM
|
#14
|
Member
Registered: Aug 2001
Posts: 73
Rep:
|
I don't know if your using it but if you can get a hold of KDE 2.2.1 or there abouts it has those options in the Gui when you select logout from any users Gui. Logout, Reboot, Halt. To date I have not had any problems with it.
|
|
|
12-01-2001, 10:53 PM
|
#15
|
Member
Registered: Jul 2001
Location: Oakland, CA
Distribution: Mageia 5 x86_64
Posts: 187
Rep:
|
I made two icons:
Right-click the desktop, create new link to application, name HALT!, execute halt -n for shutdown; name REBOOT!, execute shutdown -r now for reboot; choose appropriate names, icons. Quick and easy.
|
|
|
All times are GMT -5. The time now is 12:50 PM.
|
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.
|
Latest Threads
LQ News
|
|