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: Setting Up Runtimes, File to modify< Next Oldest | Next Newest >
jumbobrian Offline





Group: Members
Posts: 6
Joined: Jan. 2004
Posted: Jan. 11 2004,10:17 QUOTE

I'm editing DSL to include a gameserver, but i want to know how to set up more shells with CTRL + ALT + F2, F3, or F4, like in the original Knoppix.

I've searched Google, and it seems to be leading me to /etc/inttab .  I've compared the files from both DSL and Knoppix, and they appear to be the same.

If you want details on what exactly I am doing, you can see the info page at http://www.jumbobrian.com/csds .

Thanks in advance.

I mean Runlevels, not Runtimes, sorry.  I can't fix the title...
Back to top
Profile PM 
peter Offline





Group: Members
Posts: 21
Joined: Jan. 2004
Posted: Jan. 11 2004,14:37 QUOTE

From your description it sounds more like "virtual terminals",  a.k.a. tty  - which I believe comes from the original terminals being TeleTypes......

For what it's worth, my /etc/inittab entries for the 6 tty (hard drive install of Knoppix) are pasted below:

1:12345:respawn:/sbin/getty 38400 tty1
2:2345:respawn:/sbin/getty 38400 tty2
3:2345:respawn:/sbin/getty 38400 tty3
4:2345:respawn:/sbin/getty 38400 tty4
5:2345:respawn:/sbin/getty 38400 tty5
6:2345:respawn:/sbin/getty 38400 tty6

If you do a:

cat /etc/inittab

you should see what you've got and be able to add from there.

Hope I haven't misunderstood what you wanted....  run levels are a different thing entirely.
Back to top
Profile PM 
jumbobrian Offline





Group: Members
Posts: 6
Joined: Jan. 2004
Posted: Jan. 11 2004,20:26 QUOTE

Yes, virtual terminals are what I want.  I didn't know what to call them, so I looked in the file and thought they were "runlevels."

For DSL, the part of the file you mentioned has:

Quote

# 4 virtual consoles with immortal shells
1:12345:respawn:/bin/bash -login >/dev/tty1 2>&1 </dev/tty1
2:234:respawn:/bin/bash -login >/dev/tty2 2>&1 </dev/tty2
3:234:respawn:/bin/bash -login >/dev/tty3 2>&1 </dev/tty3
4:234:respawn:/bin/bash -login >/dev/tty4 2>&1 </dev/tty4


But DSL has no virtual consoles.  CTRL + ALT + F1 is the boot and shutdown shell, and CTRL + ALT + F2 has started xwindows.

Maybe I need to edit another file?
Back to top
Profile PM 
peter Offline





Group: Members
Posts: 21
Joined: Jan. 2004
Posted: Jan. 12 2004,23:47 QUOTE

I would suggest you  uncomment the lines you have and try a copy-paste of those in my post above. If that doesn't work you haven't lost anything and you can change back..... at worst you can rescue things by booting the DSL disk and re-editing the file from that. Doubt that that would be necessary. I can't see what could really go wrong...
Hmm.  All care taken but no responsibility...

I'm no expert, but the entries look like they would disable your tty settings. Maybe someone with more knowledge than mine could confirm or deny... ???
Back to top
Profile PM 
nosebleed Offline





Group: Members
Posts: 7
Joined: Jan. 2004
Posted: Jan. 20 2004,02:13 QUOTE

The virtual terminals are there alright, the problem is x is scripted to run by default with all user logins.  I just tried this and it worked.  Comment out the startx line in a users .bash_profile file in their home directory.  Then hit ctrl+alt+F1, F2, F3 etc, and log in as that user, voila!  You have a virtual terminal.
Back to top
Profile PM 
6 replies since Jan. 11 2004,10:17 < 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: Setting Up Runtimes

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