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
Pages: (3) </ 1 [2] 3 >/

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

reply to topic new topic new poll
Topic: Bypass x start< Next Oldest | Next Newest >
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: June 04 2005,23:15 QUOTE

It IS true, but you are correct as well.
What you're looking at is root's .bash_profile, which in runlevel 5 (the default) switches to user dsl.  This in turn runs /home/dsl/.bash_profile, which starts the x session.  Remove 'startx' from /home/dsl/.bash_profile and you will be left in textmode.  init 2 begins a single-user session as root, which is fine for maintenance but you really should not depend on a root session for day-to-day use.

Honestly I wasn't aware that root had a .bash_profile, since there are no files in /root at startup.


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





Group: Members
Posts: 23
Joined: Dec. 2004
Posted: June 05 2005,13:28 QUOTE

Ow i see :D
than ill use your method :)

Thanks for you replys


--------------
Greets Whachucallme A.k.A Ward
Back to top
Profile PM WEB 
andrewb Offline





Group: Members
Posts: 316
Joined: July 2005
Posted: July 20 2007,05:27 QUOTE

Just to push this topic back up....

edit .bash_profile in the root directory

change line 3:

if [ $RUNLEVEL -eq 5 ]; then

to:

if [ $RUNLEVEL -eq 5 -o 3 ]; then

save .bash_profile & add it to .filetool.lst

Now if you boot with 'dsl 3' you will get 4 consoles logged in as user dsl in text mode.

RobertS: could this be added to DSL - it is only 5 bytes more in the file!
Back to top
Profile PM 
roberts Offline





Group: Members
Posts: 4983
Joined: Oct. 2003
Posted: July 20 2007,07:17 QUOTE

Okey dokey, will do. Sounds good to me. Thanks for sharing.
Back to top
Profile PM WEB 
^thehatsrule^ Offline





Group: Members
Posts: 3275
Joined: July 2006
Posted: July 20 2007,13:49 QUOTE

Quote
if [ $RUNLEVEL -eq 5 -o 3 ]; then
I think that would always evaluate as true... I think you meant something like
Code Sample
if [ $RUNLEVEL -eq 5 -o $RUNLEVEL -eq 3 ]; then
but maybe it's better to use a case statement instead.
Back to top
Profile PM 
10 replies since June 03 2005,18:04 < Next Oldest | Next Newest >

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

Pages: (3) </ 1 [2] 3 >/
reply to topic new topic new poll
Quick Reply: Bypass x start

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