You are not logged in.

#1 2006-09-01 17:04:30

alikas
Member
From: Lithuania, Vilnius
Registered: 2006-05-24
Posts: 319
Website

How tun off computer from IceWM?

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

#2 2006-09-01 17:16:20

Sigi
Member
From: Thurgau, Switzerland
Registered: 2005-09-22
Posts: 1,131

Re: How tun off computer from IceWM?

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. smile

Offline

#3 2006-09-01 17:33:56

alikas
Member
From: Lithuania, Vilnius
Registered: 2006-05-24
Posts: 319
Website

Re: How tun off computer from IceWM?

I do not know.
i run IceWM with '$ startx'.


Goodbye!

Offline

#4 2006-09-01 17:41:48

Gustavo
Member
From: Brazil
Registered: 2006-07-04
Posts: 92

Re: How tun off computer from IceWM?

Offline

#5 2006-09-01 18:19:00

Jacek Poplawski
Member
From: Poland
Registered: 2006-01-10
Posts: 736
Website

Re: How tun off computer from IceWM?

You should vote in my Desktop poll, because IceWM has 0 votes.

Offline

#6 2006-09-02 16:51:53

alikas
Member
From: Lithuania, Vilnius
Registered: 2006-05-24
Posts: 319
Website

Re: How tun off computer from IceWM?

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

#7 2006-09-02 17:55:38

alikas
Member
From: Lithuania, Vilnius
Registered: 2006-05-24
Posts: 319
Website

Re: How tun off computer from IceWM?

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

#8 2006-09-02 18:09:49

alikas
Member
From: Lithuania, Vilnius
Registered: 2006-05-24
Posts: 319
Website

Re: How tun off computer from IceWM?

I want from IceWM menu shutdown computer as normal user.


Goodbye!

Offline

#9 2006-09-02 18:12:25

Lontronics
Member
Registered: 2006-08-28
Posts: 121

Re: How tun off computer from IceWM?

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 wink

Jan

Offline

#10 2006-09-03 09:50:58

alikas
Member
From: Lithuania, Vilnius
Registered: 2006-05-24
Posts: 319
Website

Re: How tun off computer from IceWM?

"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

#11 2006-09-03 09:57:50

Lontronics
Member
Registered: 2006-08-28
Posts: 121

Re: How tun off computer from IceWM?

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 wink

Jan

Offline

#12 2006-09-03 12:04:30

alikas
Member
From: Lithuania, Vilnius
Registered: 2006-05-24
Posts: 319
Website

Re: How tun off computer from IceWM?

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

#13 2006-09-03 16:41:36

Lontronics
Member
Registered: 2006-08-28
Posts: 121

Re: How tun off computer from IceWM?

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

#14 2006-09-04 11:53:07

alikas
Member
From: Lithuania, Vilnius
Registered: 2006-05-24
Posts: 319
Website

Re: How tun off computer from IceWM?

Thanks!


Goodbye!

Offline

Board footer

Powered by FluxBB