You are not logged in.
I added to Icewm menu many shudowns metods, but all not work:
prog "Halt" app halt -p
prog halt halt killall icewm-session halt
prog Shutdown shitdown shutdown
prog "shutdown -h now" app" shutdown -h now"
prog poweroff poweroff poweroff
prog "telinit 0" telinit telinit 0
prog "shutdown -hP now" shutdown shutdown -hP now
Goodbye!
Offline
Are you sure that your useraccount has got the permission to power off the system?
Haven't been here in a while. Still rocking Arch.
Offline
I do not know.
i run IceWM with '$ startx'.
Goodbye!
Offline
Offline
You should vote in my Desktop poll, because IceWM has 0 votes.
Offline
My '/etc/sudoers' loks that:
# sudoers file.
#
# This file MUST be edited with the 'visudo' command as root.
#
# See the sudoers man page for the details on how to write a sudoers file.
#
# Host alias specification
# User alias specification
# Cmnd alias specification
# Defaults specification
# Runas alias specification
# User privilege specification
root ALL=(ALL) ALL
# Uncomment to allow people in group wheel to run all commands
# %wheel ALL=(ALL) ALL
# Same thing without a password
# %wheel ALL=(ALL) NOPASSWD: ALL
[
# Samples
# %users ALL=/sbin/mount /cdrom,/sbin/umount /cdrom
# %users localhost=/sbin/shutdown -h now
al myhost = NOPASSWD: /sbin/shutdown -h now
al myhost = NOPASSWD: /sbin/reboot
But I can not turn off computer from IceWM menu.
Goodbye!
Offline
Thanks,
But, yuo not show me WIKI, but answer to question, if can. In WIKI nothing writen about IceWM.
There my inittab:
#
# /etc/inittab
#
# Runlevels:
# 0 Halt
# 1(S) Single-user
# 2 Not used
# 3 Multi-user
# 4 Not used
# 5 X11
# 6 Reboot
id:5:initdefault:
#id:3:initdefault:
rc::sysinit:/etc/rc.sysinit
rs:S1:wait:/etc/rc.single
rm:2345:wait:/etc/rc.multi
rh:06:wait:/etc/rc.shutdown
su:S:wait:/sbin/sulogin -p
c1:2345:respawn:/sbin/agetty 38400 vc/1 linux
c2:2345:respawn:/sbin/agetty 38400 vc/2 linux
c3:2345:respawn:/sbin/agetty 38400 vc/3 linux
c4:2345:respawn:/sbin/agetty 38400 vc/4 linux
c5:2345:respawn:/sbin/agetty 38400 vc/5 linux
c6:2345:respawn:/sbin/agetty 38400 vc/6 linux
ca::ctrlaltdel:/sbin/shutdown -t3 -r now
#x:5:once:/bin/su al -l -c "/bin/bash --login -c startx >/dev/null 2>/dev/null"
x:5:respawn:/opt/kde/bin/kdm -nodaemon
# End of file
Goodbye!
Offline
I want from IceWM menu shutdown computer as normal user.
Goodbye!
Offline
I have used icewm but switched to blackbox.
May be the computer is the problem, because it is not recent enough to turn off with the installed tools.
But, in my sudoers I have:
%users ALL = NOPASSWD: /sbin/shutdown -h now
%users ALL = NOPASSWD: /sbin/shutdown -r now
%users ALL = NOPASSWD: /sbin/reboot
When opening a terminal and type shutdown -h now, the computer should shutdown.
When that is working, you know it has something to do with icewm, otherwise sudo or your hardware.
About icewm, I had in my ~/.icewm/preferences:
### Command to shutdown the system
ShutdownCommand="sudo /sbin/shutdown -h now"
### Command to reboot the system
RebootCommand="sudo /sbin/shutdown -r now"
Which worked without any problems
Jan
Offline
"sudo /sbin/shutdown -h now" work.
But why need that be in 'icewm/preferences' this lines?:
### Command to shutdown the system
ShutdownCommand="sudo /sbin/shutdown -h now"
### Command to reboot the system
RebootCommand="sudo /sbin/shutdown -r now"
Thanks!
And how yuo start IceWM or Fluxbox?
Goodbye!
Offline
I am just using one windowmanager, which is added to my /etc/X11/xinit/xinitrc.
The loginmanager is the standard from X (blue screen, great X on the left of name/ password).
You need to add the lines to icewm/preferences, because they are empty there, going out from defaults I think.
Search for ShutdownCommand in the preferences file and you will find those empty lines
Jan
Offline
Thanks,
But I think, that comand 'sudo /sbin/shudown -h now' working, from IceWM menu, and without this lines:
### Command to shutdown the system
ShutdownCommand="sudo /sbin/shutdown -h now"
### Command to reboot the system
RebootCommand="sudo /sbin/shutdown -r now"
I usink KDE login manager. But how make, that IceWM automaticly login then start computer, without any managers, that be faster?
Goodbye!
Offline
I am talking now about the Zenwalk system;
Runlevel 4 is graphical login, so in /etc/inittab I have:
id:4:initdefault
The script rc.4, which is called at runlevel 4 is looking for the X11 session manager. I am using XDM, the Xorg default, because I have nothing else installed.
When logging in, Xorg is looking at /etc/X11/xinit/xinitrc where I have added the lines I mentioned a few posts back.
I do not know if this is helping you, but that's the way it is working for me.
Jan.
Offline
Thanks!
Goodbye!
Offline