Yesterday I decided to do a minimal installation on a 128 mb RAM, 7-year-old PC. By now I got everything working (thank you, google!), except for that I can't shutdown the PC from within iceWM.
Basically all I need is shutdown to work for non-root users (with minimal security loss)
Scheduled Maintenance: We are aware of an issue with Google, AOL, and Yahoo services as email providers which are blocking new registrations. We are trying to fix the issue and we have several internal and external support tickets in process to resolve the issue. Please see: viewtopic.php?t=158230
(IceWM) shutdown
If you do not use any login manager, i think you can't shutdown without tweaking a bit.
In your /etc/inittab there is a way to shutdown your computer without being root. The passage about "# What to do when CTRL-ALT-DEL is pressed.
cactrlaltdel:/sbin/shutdown -t1 -a -r now"
You just have to change the -r flag by -h, so your computer halt instead of rebooting. AFAIK, you need to be in console mode in order for the ctrl-alt-del command to work, so you'll need to kill your X server before... That's not the best way i guess, but that's still not bad.
A "good" way to do it would be to halt using your terminal, but if i understand you right, you want to halt using the GUI way. Then i guess than you have to create your own script, either by putting a sudo halt in it, or by killing X and then make it reboot using the /etc/inittab options.
[EDIT]: i also found that by googling around. Not sure what's it's worth, but it should work: http://ubuntuforums.org/showthread.php?t=134968
In your /etc/inittab there is a way to shutdown your computer without being root. The passage about "# What to do when CTRL-ALT-DEL is pressed.
cactrlaltdel:/sbin/shutdown -t1 -a -r now"
You just have to change the -r flag by -h, so your computer halt instead of rebooting. AFAIK, you need to be in console mode in order for the ctrl-alt-del command to work, so you'll need to kill your X server before... That's not the best way i guess, but that's still not bad.
A "good" way to do it would be to halt using your terminal, but if i understand you right, you want to halt using the GUI way. Then i guess than you have to create your own script, either by putting a sudo halt in it, or by killing X and then make it reboot using the /etc/inittab options.
[EDIT]: i also found that by googling around. Not sure what's it's worth, but it should work: http://ubuntuforums.org/showthread.php?t=134968
I rather not use sudo, as that would require using the root password.Silenus wrote:Icewm should have a shutdown script in the menu, if not create one that uses sudo.
sudo shutdown -h now
Omit the h option if you don't want it to halt, but I am sure you know that.
I use Lenny, Quingy looks nice - although I still prefer not using any log in manager at all (as autologin works already)llivv wrote: if you installed lenny you could take a look at qingy
I just checked and it's not in etch Crying or Very sad
Well, that isn't really an option as I won't be using the PC myself, my dad will.Azriel wrote: In your /etc/inittab there is a way to shutdown your computer without being root. The passage about "# What to do when CTRL-ALT-DEL is pressed.
cactrlaltdel:/sbin/shutdown -t1 -a -r now"
You just have to change the -r flag by -h, so your computer halt instead of rebooting. AFAIK, you need to be in console mode in order for the ctrl-alt-del command to work, so you'll need to kill your X server before... That's not the best way i guess, but that's still not bad.
I'll try that in a bit, I'll let you know if it worked - thanks everyone![EDIT]: i also found that by googling around. Not sure what's it's worth, but it should work: http://ubuntuforums.org/showthread.php?t=134968
Cult of the sitting penguin!
Sometimes computers will just shut down when you press the power button. Or if you go to a terminal and press CTRL+ALT+DEL it will reboot.
Desktop - 3.2GHz core2 quad
Laptop - 2.4GHz core2 duo ancient macbook
Bring back the penguin!! http://tinyurl.com/d57jwv
Laptop - 2.4GHz core2 duo ancient macbook
Bring back the penguin!! http://tinyurl.com/d57jwv
If you check the HOWTO: IceWM Basic Configuration on this site, in the Documentation section of howtos, tips and tricks:
http://forums.debian.net/viewtopic.php?t=5450
there is no need to go to ubuntu forums
http://forums.debian.net/viewtopic.php?t=5450
there is no need to go to ubuntu forums
Devuan Jessie - IceWM - vimperator - no DM
KISS - Keep It Simple, Stupid
KISS - Keep It Simple, Stupid
Re: (IceWM) shutdown
Go to /etc/sudoers and add this line using the name for the user you want to be able to shutdown or reboot.isilia wrote:
Basically, all I need is shutdown to work for non-root users (with minimal security loss)
username ALL = NOPASSWD: /sbin/halt, /sbin/reboot
Add these lines to your .icewm/preferences:
ShutdownCommand="sudo halt"
RebootCommand="sudo reboot"
save/exit/
restart (ctrl+alt+delete+r)
From now on the 'user' presses the Windows key + spacebar to make the taskbar a Run box, and types:
sudo halt or
sudo reboot
Note: if the user does not have a Windows key, ctrl+alt will do.
voilà!
Devuan Jessie - IceWM - vimperator - no DM
KISS - Keep It Simple, Stupid
KISS - Keep It Simple, Stupid