LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Slackware (https://www.linuxquestions.org/questions/slackware-14/)
-   -   Shutting Down from KDE (https://www.linuxquestions.org/questions/slackware-14/shutting-down-from-kde-316987/)

MDBlueIce 04-25-2005 11:46 AM

Shutting Down from KDE
 
Hello, How do you slackware (10.1, in my case) users shut down your system when you are in KDE ? None of the standard shell commands are working for me ( shutdown -h now, halt , and variants on them ) and the KDE menu has no menu item for shutting down. I've read through these forums that using kdm as dsiplay manager will fix the menu item problem. Is this true for slackware. If so, how is this done? Thanks in advance.

mdarby 04-25-2005 01:02 PM

logout, then click on the 'system' icon in KDM to shutdown.

killerbob 04-25-2005 01:08 PM

I just push the power button. In order to force it off, I need to hold the power button for 3 seconds, otherwise the OS handles it as it's been told. Windows hibernates by default, Linux shuts off.

Gotta love ACPI and ATX support. :)

linuxhippy 04-25-2005 01:27 PM

When you right click on the desktop you should have a log out item. If it doesn't shut down all the way and you have to press the power button for 3 seconds, you need to enable power management. I use:

modprobe apm

I compiled apm into my kernel as a module.

cathectic 04-25-2005 01:36 PM

Graphical login:
http://wiki.linuxquestions.org/wiki/...ight_into_X.3F

After you've enabled a graphical login: If you have GDM installed, be aware that Slackware will try to load that first before KDM (unless you comment out the three GDM lines in /etc/rc.d/rc.4)

halt/shutdown, etc are all in /sbin and therefore not in your path. You must call them by prefixing the command with '/sbin/', e.g.
Code:

/sbin/halt
However, you either need to be root to use these, or set up sudo.

dannyl 04-25-2005 06:17 PM

I found this with a search of this forum.


as root:

code:

chmod a+s /sbin/shutdown
chmod a+s /sbin/halt



Now any user can use the reboot and shutdown commands. The command reboot is simply a symbolic link to the halt command, which is why the permissions for halt had to be changed.

I then added a menu item for shutdown in KDE menu. (pick your own icon,) with /sbin/shutdown -h in the command line for the added item.
I also added a reboot option the same way. (not that I often need to reboot with Slack, but just in case.
I don't use graphical login so KDM isn't an otion for me. Linux by default does not allow users the shutdown or halt commands.


All times are GMT -5. The time now is 05:56 PM.