Take the 2-minute tour ×
Super User is a question and answer site for computer enthusiasts and power users. It's 100% free, no registration required.

I'm currently logged in (locally) to a machine and was running in a TTY session without having started an X server. I accidentally hit Ctrl-Alt-F7 bringing me to where the graphical shell would be if it was running. The trouble is, I can't get back. I assume going to another TTY is forbidden using the standard Ctrl-Alt-F to protect students who have logged in to KDE or whatever, locked the screen, but don't realize that anyone could come along and Ctrl-Alt-F1 into their TTY session. The trouble is that there is no X server running, and so I can't exit from it, and am stuck in the Ctrl-Alt-F7 TTY which just has a cursor blinking at the top left of the screen.

Is there another way to switch currently-viewed TTY? How can I get out of this?

Things that do not work:

  • Ctrl-Alt-Backspace
  • Alt-Shift-Sysrq-REISUB
share|improve this question
add comment

2 Answers

If the machine is remotely accessible (via ssh or otherwise), run chvt 1 as root.

Still, you can't switch to a VT that hasn't been allocated, so perhaps X was running and got wedged? It might not be possible to escape from that.

share|improve this answer
    
X was not running, the VT I'm trying to switch to has indeed been allocated. I should add that I do not have root. This is a lab machine at my university –  Mala Dec 3 '10 at 18:27
    
@Mala: Then something (if not X) is running on that VT, because you can definitely switch out of allocated-but-unused VTs easily. If you don't have root and Alt-SysRq nor the normal VT switch shortcuts don't work I think it's hopeless. –  ephemient Dec 3 '10 at 18:45
add comment

What about Alt+Left and Alt+Right?

share|improve this answer
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.