Bypass x startForum: X and Fluxbox Topic: Bypass x start started by: Whachucallme Posted by Whachucallme on June 03 2005,18:04
Hi, it's me again (the linux noobie)Now i am looking for a way to disable the ms windows like desktop you get when you are running DLS hd installed for the first time (X-'something') i have been browsing these forums for a few houres now and i found so many files i could edit i dont know wich i should edit :s If someone could just tell me wich file and wich line of that file i need to remove to just keep this in text mode :s or can i leave all files intact and run in dsl 2 or something like on the livedisk? Greets Whachucallme aka Ward Posted by Pickletech on June 03 2005,18:20
in the /etc/inttab file change the line that says id:5:initdefault to id:3:initdefault
Posted by Whachucallme on June 03 2005,18:38
Thank you very much for your fast reply (k)
Posted by mikshaw on June 04 2005,03:10
actually that might not do it. In DSL init5 (the default) takes you into text mode. However, there is a "startx" command in .bash_profile that starts up the graphical interface automatically when you log in. So removing this command from .bash_profile will do what you want.
Posted by Whachucallme on June 04 2005,19:41
Euhm thats not true :s (in DSL 1.1) i am looking at .bash_profile now and i dont see a startx command I see a RUNLEVEL=, an if, a then, a cd, an export, a while, a do, a su - dsl, a done and a fi but no startx command Posted by mikshaw on June 04 2005,23:15
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. Posted by Whachucallme on June 05 2005,13:28
Ow i see than ill use your method Thanks for you replys Posted by andrewb on July 20 2007,05:27
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! Posted by roberts on July 20 2007,07:17
Okey dokey, will do. Sounds good to me. Thanks for sharing.
Posted by ^thehatsrule^ on July 20 2007,13:49
Posted by mikshaw on July 20 2007,14:56
|