SlackwareThis Forum is for the discussion of Slackware Linux.
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.
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.
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.
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.
Distribution: Xubuntu, Mythbuntu, Lubuntu, Picuntu, Mint 18.1, Debian Jessie
Posts: 1,207
Rep:
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:
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.
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.