Server Fault is a question and answer site for system and network administrators. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I'm running a linux system with Ubuntu Karmic on it, and I use it to run a webcam and a program that continuously outputs on the console.

Is there any way I can force a user to login on VT2, and then switch VTs to VT2, but still have other login consoles running so I can hook a keyboard up to it and CTRL-ALT-F# to get to another terminal?

I have a feeling this needs to go in my rc.local file, but nothing in the login manpage seems to suggest it can do what I want it to do.

If there is no way to login a user on the vt, launching the program directly on a specific VT will work as well, since the user's shell in /etc/passwd is set to the program anyway.

share|improve this question

I found out how to do it with Upstart. I needed to edit /etc/event.d/tty2 to change the exec line to point to getty -n -l my_program 38400 tty2, then I needed to edit rc.local to contain the line chvt 2, and remove GDM from my startup list so the chvt line would work.

share|improve this answer
Nice work; Thanks for sharing. – JeffG Mar 3 '11 at 16:57

Your Answer


By posting your answer, you agree to the privacy policy and terms of service.

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