chvt magic

| No TrackBacks
Arch Linux logo

Arch Linux logo (Photo credit: Wikipedia)

Found out about a nice new command - chvt. I am using Synergy these days instead of my KVM (something that will be the subject of another, much longer post), which doesn't send Ctrl-Alt-Fn to the client machines. Which normally isn't a problem, because it only works if you are running X, so it wouldn't work anyway from a virtual terminal.

But in this case, it is a virtual machine running Arch Linux (the Synergy client machine is running Windows 7), so changing virtual terminals would be fine. So I needed to find a way to change virtual terminals besides using the Ctrl-Alt-Fn keystrokes.

Enter the 'chvt' command. It needs to be run as the superuser, so issuing this command swaps the virtual terminal to terminal 2:

$ sudo chvt 2

So now I can swap virtual terminals in virtual machines even if I can't get the fancy keystrokes to go through to them.

chvt(1): change foreground virtual terminal - Linux man page

Enhanced by Zemanta

No TrackBacks

TrackBack URL:

About this Entry

This page contains a single entry by Jonathan published on October 18, 2012 9:35 AM.

Shuffling Wallpaper was the previous entry in this blog.

7 Ways To More Info is the next entry in this blog.

Find recent content on the main index or look in the archives to find all content.