You are not logged in.

#1 2007-01-14 10:28:48

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

/etc/rc.local not start icewm at bootup

My /etc/rc.local content is:
#!/bin/bash
#
# /etc/rc.local: Local multi-user startup script.
#
icewm

My inittab is:
#
# /etc/inittab
#

#  Runlevels:
#    0    Halt
#    1(S)    Single-user
#    2    Not used
#    3    Multi-user
#    4    Not used
#    5    X11
#    6    Reboot

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:respawn:/usr/X11R6/bin/xdm -nodaemon

# End of file
And not start icewm, then I turn on computer like say in http://wiki.archlinux.org/index.php/Start_X_at_boot:
Putting startxfce4 in /etc/rc.local is also an option, but note that both X and xfce (or the WM/DE of your choice) will start as super-user, which is generally not recommended.


Goodbye!

Offline

#2 2007-01-14 11:29:13

tomk
Forum Fellow
From: Ireland
Registered: 2004-07-21
Posts: 9,839

Re: /etc/rc.local not start icewm at bootup

Starting any WM/DE (not just xfce4) from rc.local is a bad idea - as the wiki says, they will run as root, which you do not want to do.

Forget about rc.local, and use either of the other two methods described on that page.

Offline

#3 2007-01-14 11:33:30

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

Re: /etc/rc.local not start icewm at bootup

Why not good idea?


Goodbye!

Offline

#4 2007-01-14 13:50:29

yankees26
Member
From: Connecticut, USA
Registered: 2006-09-29
Posts: 190

Re: /etc/rc.local not start icewm at bootup

tomk wrote:

Starting any WM/DE (not just xfce4) from rc.local is a bad idea - as the wiki says, they will run as root, which you do not want to do.

He says why it is a bad idea right there.

Offline

#5 2007-01-14 17:44:15

appolito
Member
From: Kutna Hora, Czech Republic
Registered: 2005-08-17
Posts: 30

Re: /etc/rc.local not start icewm at bootup

Running WM/DE as root is really bad idea. But you can use sudo(8) to run icewm under different user account.

Offline

#6 2007-01-15 12:33:15

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

Re: /etc/rc.local not start icewm at bootup

Thanks!
Goodlock!


Goodbye!

Offline

Board footer

Powered by FluxBB