Take the 2-minute tour ×
Server Fault is a question and answer site for professional system and network administrators. It's 100% free, no registration required.

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
add comment

1 Answer 1

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
add comment

Your Answer

 
discard

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.