You are not logged in.

#1 2007-12-03 21:50:51

mumpf
Member
From: Switzerland
Registered: 2006-09-05
Posts: 95

Icewm shutdown and logout does not work

I can't shutdown my Arch in icewm. I have triedh different settings of preferences and sudoers, but I still can't shut-down the system nor logout.
What is wrong with my settings?




.icewm/preferences

#  Command to shutdown the system
#ShutdownCommand="sudo halt"
ShutdownCommand="killall -QUIT icewm | sudo /sbin/shutdown -h now"

#  Command to reboot the system
#RebootCommand="sudo reboot"
RebootCommand="killall -QUIT icewm | sudo /sbin/shutdown -r now"

sudoers

username ALL=(root) NOPASSWD: /usr/lib/xfce4/xfsm-shutdown-helper
username ALL=(root) NOPASSWD: /sbin/exit, /sbin/reboot, /sbin/halt

According to http://bbs.archlinux.org/viewtopic.php?id=24694 I have set sudoers to :


%users  ALL = NOPASSWD: /sbin/shutdown -h now
%users  ALL = NOPASSWD: /sbin/shutdown -r now
%users  ALL = NOPASSWD: /sbin/reboot

Still no success.

Offline

#2 2007-12-04 00:58:04

chilebiker
Member
From: Zurich, Switzerland
Registered: 2006-07-18
Posts: 161

Re: Icewm shutdown and logout does not work

I did the following:

a) chmod +s /sbin/halt
b) create the file /home/user_name_goes_here/.icewm/shutdown
  #!/bin/bash
  halt
c) chmod +x /home/user_name_goes_here/.icewm/shutdown

edit: PS: es grüessli in d'schwiiz us chile smile

Last edited by chilebiker (2007-12-04 01:00:24)


Don't panic!

Offline

#3 2007-12-04 17:01:26

mumpf
Member
From: Switzerland
Registered: 2006-09-05
Posts: 95

Re: Icewm shutdown and logout does not work

Hi chilebiker

Merci vüimal!

chmod +s /sbin/halt (without b) and c) did the trick, probably to my .icewm/preferences and my sudoers

chmod +s /sbin/reboot reboots my system now (with the icewm/system/reboot button.

Which command do you use in order to logout? /sbin/killall5 works, but it simply kills all init 5 processes and goes back to init 5.

Offline

#4 2007-12-04 23:47:30

chilebiker
Member
From: Zurich, Switzerland
Registered: 2006-07-18
Posts: 161

Re: Icewm shutdown and logout does not work

I use my old laptop as public information and internet station (kiosk-mode). When logging out from the IceWM menu it shuts down and switches off the laptop. That's all I need and the above trick just does that.


Don't panic!

Offline

#5 2007-12-06 16:17:24

limpio
Member
Registered: 2005-12-31
Posts: 52

Re: Icewm shutdown and logout does not work

I did this:
I added this to my .icewm/preferences:

ShutdownCommand="sudo halt"
RebootCommand="sudo reboot"

In /etc/sudoers, i uncommented this line:
%wheel   ALL=(ALL) NOPASSWD: SETENV: ALL

You have to add yourself to the group 'wheel' after the installation.

And then when i want to get out, i press the 'windows key" + space bar which gives me a Run box on the task bar and type sudo halt, sudo reboot, or if i want to launch an app as user or root (with sudo).

Offline

#6 2009-02-04 17:38:13

DFooz
Member
Registered: 2009-02-03
Posts: 2

Re: Icewm shutdown and logout does not work

Soul Singin', thanks

Offline

Board footer

Powered by FluxBB