I'm new to linux so I have no clue how to do this (couldn't find it on the web). I'm running a LAMP Virtual Machine and when I press ALT-F2, F3 etc.. to use a Virtual Console I get a blank screen (all black to be exact) not a login option, so the question is how can I enable multiple consoles for my system?

The linux I'm running is this LAMP Virtual Appliances, Linux lamp 2.6.24-18-virtual (It says Ubuntu but I don't know the version).

I don't know if this helps but I can connect by SSH from the host computer.

Thank you, Rodrigo.

link|improve this question
feedback

3 Answers

up vote 2 down vote accepted

I am not familiar with that virtual appliance but given the kernel version, it seems like it is based on a 8.04 version of Ubuntu. It is probably using upstart. So you probably need to create files in /etc/event.d for each virtual console you want. You probably already have a file /etc/event.d/tty1 that you could copy to /etc/event.d/tty[2-6]. You'll need tweak the exec line for each file.

Of course you could also simply use GNU Screen and get a similar effect with additional features like being able to disconnect and then reconnect remotely.

link|improve this answer
Thank you, everything was as you said, now works perfectly. – rodrigoq Mar 6 '10 at 4:00
feedback

See man inittab (or /etc/inittab). You want to ensure that getty is installed

apt-get install (util-linux|mingetty|ngetty|rungetty)

and ensure that the /etc/inittab file has them running for your default runlevel. E.g.:

1:2345:respawn:/sbin/getty 38400 tty1
2:23:respawn:/sbin/getty 38400 tty2
3:23:respawn:/sbin/getty 38400 tty3
4:23:respawn:/sbin/getty 38400 tty4
5:23:respawn:/sbin/getty 38400 tty5
6:23:respawn:/sbin/getty 38400 tty6
link|improve this answer
If the system is Ubuntu based as I suspect this does probably does not apply since init is not used. – Zoredache Mar 5 '10 at 23:39
Ah, true. I didn't realize that, thank you. – mctylr Mar 6 '10 at 22:19
feedback

The others have answered how to enable multiple TTYs. Just one more option: you can use screen to have multiple logins and switch between them, even if you have only one tty.

link|improve this answer
feedback

Your Answer

 
or
required, but never shown

Not the answer you're looking for? Browse other questions tagged or ask your own question.