Search Members Help

» Welcome Guest
[ Log In :: Register ]

Mini-ITX Boards Sale, Fanless BareBones Mini-ITX, Bootable 1G DSL USBs, 533MHz Fanless PC <-- SALE $200 each!
Get The Official Damn Small Linux Book. DSL Market , Great VPS hosting provided by Tektonic
 

[ Track this topic :: Email this topic :: Print this topic ]

reply to topic new topic new poll
Topic: Boot as 'root' instead of 'dsl'< Next Oldest | Next Newest >
Gregus Offline





Group: Members
Posts: 10
Joined: Nov. 2004
Posted: Jan. 18 2005,14:32 QUOTE

I am using a remastered version of the LiveCD running on a CompactFlash drive setup as a HD.  I need the system to boot and login as root (instead of dsl) before running X - how can I do this?

Greg
Back to top
Profile PM 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Jan. 18 2005,18:55 QUOTE

use the boot option 'dsl 2'

--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
henk1955 Offline





Group: Members
Posts: 249
Joined: June 2004
Posted: Jan. 18 2005,20:19 QUOTE

this is the "mainloop" of dsl
/.bash_profile
Code Sample
#!/bin/bash
RUNLEVEL=`runlevel|cut -f2 -d' '`
if [ $RUNLEVEL -eq 5 ]
then
  export HOME=/home/dsl
  cd $HOME
  while [ 1 ]; do
     su - dsl
  done
fi

this is /home/dsl/.bash_profile
Code Sample
#!/bin/bash
export IRCNICK=DSL
SSH=`env | grep SSH_CONNECTION`
if [ -z "$SSH" ]; then startx; fi


i think if you change: su - dsl
to: startx
you run X as root user


--------------
You have a Q or just want to chat?
Come to #damnsmalllinux on irc.freenode.net!
Open 24/7

dell latitude c640 p4@1.6Ghz 256Mb DSL0.9.1-remaster
asus p4p800-vm p4@2.8Ghz HT / celeron@2.4Ghz 512Mb DSL0.9.1-remaster (alsadebs.dsl)
ABit BE6 celeron@466 256Mb DSL0.9.1-remaster (xawtv)
Back to top
Profile PM WEB MSN 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Jan. 18 2005,23:00 QUOTE

hey....that's some good info.  Thanks!

--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
Gregus Offline





Group: Members
Posts: 10
Joined: Nov. 2004
Posted: Jan. 19 2005,22:15 QUOTE

Thanks again henk1955.. changed su - dsl to startx and it does just what I wanted..  perfect :)

Greg
Back to top
Profile PM 
4 replies since Jan. 18 2005,14:32 < Next Oldest | Next Newest >

[ Track this topic :: Email this topic :: Print this topic ]

 
reply to topic new topic new poll
Quick Reply: Boot as 'root' instead of 'dsl'

Do you wish to enable your signature for this post?
Do you wish to enable emoticons for this post?
Track this topic
View All Emoticons
View iB Code