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.
I got the GUI login screen with:
id:4:initdefault:
but now when I logout, I'm back to that screen, not the CLI, so how do I shutdown ? It is the same wether I was working as a normal user, or as root.
The PC has an AT PSU at the moment, so shutdown has to be done at the command line.
I have problem with 'shutdown -h now' from the command line, but getting there was the problem.
Where I went into KDE from the command line, with 'startx', on logout, I was returned to the command line. However, When I set things to boot straight to KDE,
( /etc/initab -> id:4:initdefault, it boots to a groovey flowery login screen, & sure enough you login to KDE or gnome. However, when you logon out, it returns you to the login screen ! Maybe I've missed something, but I couldn't find any powerdown option in KDE - I didn't think it would as the PC's PSU is an AT one, without APM.
Hey alloydog, as webtoe asked earlier, what login manager are you using? gdm? kdm? xdm?
If you use gdm, you need to edit gdm.conf and in that file set system_menu_disabled=0 (it is set to 1 by default). This will give you a reboot/shutdown menu option from the screen where you log in.
Maybe someone else can tell you what you need to do if you're using kdm or xdm.
Slackware defaults to gdm...if you want to change to kdm, which by default gives you the shutdown/reboot options, you'll need to edit /etc/rc.d/rc.4. You'll see the entires as:
# Tell the viewers what's going to happen...
echo "Starting up X11 session manager..."
# Try to use GNOME's gdm session manager:
if [ -x /usr/bin/gdm ]; then
exec /usr/bin/gdm -nodaemon
fi
# Not there? OK, try to use KDE's kdm session manager:
if [ -x /opt/kde/bin/kdm ]; then
exec /opt/kde/bin/kdm -nodaemon
fi
Just switch these around and you'll use kdm instead of gdm.
You could also continue to use GDM, and solve this problem by running gdmconfig as root once you're logged onto a session. There you will find many configuration options for GDM, including a setting for the ability to shut down from the login screen.
Hmmm, I think somethings trying to drive me nuts...
The other night, when I had the shutdown prolem (i.e. couldn't), I committed the evil of all evils & just hit the power switch !
The next time I turned the PC on, the file system was bu**ered & it wouldn't boot.
Anyway, I was planning a re-install, because I wanted to re-partition the HDD, & see is ext3 was worth using (maybe in case of dirty power-downs ?)
So, for this installation, I also created a partion for /home, used ext3, & for the SW selection, I missed out much of the developer stuff (It'll never be used on this box) & Gnome.
After the first boot, I edited /etc/initab as normal & rebooted...
The GUI login screen was different this time (last time, it defualted to Gnome), it looked more KDE-ish, and had option buttons. There, clear as day was the option to shutdown. Also, after the session, on logout, the logout screen was different (had a 'cute' little dragon), and again the was the option to log in, reboot, or shutdown.
So, I guess the original screen (Gnome) was less obvious with the options, but the enforce re-install & new set-up precluded any further investigation.
However, every little detail has been scribbled in me notebook, so is ready for the next time...
DaOne - Thanks for the details, as you can see, I didn't go that route, as after screwing things up good & proper, I didn't re-install Gnome the next time, so it defaulted to the kdm anyway.
cpv204 - I wasn't aware what gdm or kdm was at the time !
Live & learn :-D
I can see many more installations to come, & each piece of info I get, get's saved. Which reminds me, my missuss is getting cheesed of with the computer desk dissappearing under a few tons of notes - She wonders what happened to my 'paperless office'...
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.