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

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

reply to topic new topic new poll
Topic: Start only console on ttys other than 1, now it starts x on all ttys< Next Oldest | Next Newest >
curaga Offline





Group: Members
Posts: 2163
Joined: Feb. 2007
Posted: Feb. 28 2007,17:53 QUOTE

Well, it isn't needed to start x on other ttys, since that's what the workspaces are for. It will only hog resources to have many instances of x running..

It can be done, Knoppix 5 does it, X is on tty5 and ttys 2-4 are console (1 is for messages). I don't know how it's done, so don't ask me, but I think it's somewhere in inittab...


--------------
There's no such thing as life. Those mean little jocks invented it ;)
-
Windows is not a virus. A virus does something!
Back to top
Profile PM 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Feb. 28 2007,18:54 QUOTE

There are a couple of ways to do it in DSL. One way is to set up multiple virtual terminals with a login prompt:
http://damnsmalllinux.org/cgi-bin....;t=7936

Another way is to simply boot into runlevel 2. The drawback of this is that the four available virtual terminals are already logged in as root, so you should su to dsl to do regular non-administrative work (including starting X).


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





Group: Members
Posts: 2163
Joined: Feb. 2007
Posted: Mar. 01 2007,16:38 QUOTE

I have a hd-install, with multiuser, so there is a login prompt on 4 ttys (3 on mine), but after logging in in any tty, it starts x (yes, in runlevel 5) and that's the default behavior I'd like changed

--------------
There's no such thing as life. Those mean little jocks invented it ;)
-
Windows is not a virus. A virus does something!
Back to top
Profile PM 
mikshaw Offline





Group: Members
Posts: 4856
Joined: July 2004
Posted: Mar. 01 2007,20:15 QUOTE

ok...that's an easy one.  Just remove "startx" from /home/dsl/.bash_profile

Or if you still want to have it automatically start x in tty1, you could change it to something like this:
[ `tty` == /dev/tty1 ] && startx


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





Group: Members
Posts: 2163
Joined: Feb. 2007
Posted: Mar. 02 2007,13:11 QUOTE

that worked great. I think adding that line to dsl would improve dsl :;):

Oh, and remember to change /root/.bash_profile
startx line too to that, wouldn't want logging as root in ttys 2 and 3 to start X..


--------------
There's no such thing as life. Those mean little jocks invented it ;)
-
Windows is not a virus. A virus does something!
Back to top
Profile PM 
7 replies since Feb. 28 2007,17:53 < Next Oldest | Next Newest >

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

Pages: (2) </ [1] 2 >/
reply to topic new topic new poll
Quick Reply: Start only console on ttys other than 1

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