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

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

reply to topic new topic new poll
Topic: No virtual terminals with X< Next Oldest | Next Newest >
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: June 17 2005,16:59 QUOTE

I can't figure out what the problem would be then.  All I can think that might be causing the black screen is if you were in tty3 or tty4 when you went back into runlevel 5, since those terminals don't exist in runlevel 5 by default....but that's just a guess and i haven't tested it.  It seems that Alt+F2 should have taken you back into X.  Another guess is that maybe you had X started in runlevel 2 on a higher terminal than is available in runlevel 5, but again i'm just shooting out theories.  For all i know these things could have no affect at all.

This is something worth playing around with, though...i'll post again if i find anything interesting.


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





Group: Members
Posts: 11
Joined: June 2005
Posted: June 17 2005,18:16 QUOTE

My current experimental setup has 4 virtual terminals in all runlevels to avoid such problems, and I always start X by switching to runlevel 5 and letting the scripts take care of the rest.  Be carefull with multiple virtual terminals in runlevel 5 as startx is called by .bash_profile for user dsl.  If you log out of a virtual terminal, startx will get called again.  I don't know if this will help any, but on all of the physical machines I'm testing on, I get a "Invalid Mode Number Passed" error at boot if I don't use the vga=normal cheat code.  This error does not occur in Virtual PC however, but the virtual terminal behavior is still the same.
Back to top
Profile PM 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: June 17 2005,19:44 QUOTE

That's something that i took care of long ago.  I don't like automatically going into X, so removed startx from .bash_profile.

That said, I found a solution that works for me...don't know if it would work for you.  What I had posted earlier only worked because i switched to runlevel 2 and then back to runlevel 5.  If the edited inittab was part of a backup, it does not automatically work because init has already run long before backups are restored.  So what i did was add "telinit q" to /opt/bootlocal so that /etc/inittab will be re-read after the file is restored from backup.  As long as startx is removed from the picture, the result is four terminals logged in as user dsl.  Manually entering 'startx', as i typically do anyway, gives me an X session plus three extra terminals.
The only difference now between this and the standard setup is that the terminals are already logged in.  I'll have to look into that a bit more to see if there is a way around it in DSL.


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





Group: Members
Posts: 11
Joined: June 2005
Posted: June 17 2005,19:57 QUOTE

Quote (mikshaw @ June 17 2005,15:44)
So what i did was add "telinit q" to /opt/bootlocal so that /etc/inittab will be re-read after the file is restored from backup.


Doesn't work for me.  I guess I'm just going to have to stick with small virtual terminals.

Quote (mikshaw @ June 17 2005,15:44)
The only difference now between this and the standard setup is that the terminals are already logged in.  I'll have to look into that a bit more to see if there is a way around it in DSL.


Go into inittab and replace:
1:12345:respawn:/bin/bash -login >/dev/tty1 2>&1 </dev/tty1

with:
1:12345:respawn:/sbin/getty 38400 tty1
Back to top
Profile PM 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: June 18 2005,03:34 QUOTE

looky there...you come here hoping for an answer and give more help than you get.  The one minor issue with your suggestion is that it requires the 'secure' boot option because the getty requires a password. Apart from that tiny detail...Thank you!  It's exactly what I was hoping for.
Sorry i don't know what else to say....it works here and i don't know why it doesn't work for you =o(


--------------
http://www.tldp.org/LDP/intro-linux/html/index.html
Back to top
Profile PM WEB 
19 replies since June 13 2005,04:27 < Next Oldest | Next Newest >

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

Pages: (4) </ 1 2 [3] 4 >/
reply to topic new topic new poll
Quick Reply: No virtual terminals with X

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