|
||||||||||
|
|
||||||||||
NavigationMy posts on Twitter
|
Changing virtual terminalsChanging virtual terminals is already a fairly easy combination of keypresses in a standard Linux installation. If are you are in X, you would use Ctrl+Alt plus the function key of the terminal number to change to. Switching back is easy, just select Ctl+Alt+F7. Outside of X it's one less keypress - Alt+F2. +-------------------------------------------------------------------------+ | Code Listing 1: | | Changing terminals with chvt | +-------------------------------------------------------------------------+ | | |# chvt 1 | | | +-------------------------------------------------------------------------+
If you are in X, you can only execute the command as root, otherwise it will not work. It will work as any user outside of X, though. If you're interested in a workaround, you can use +-------------------------------------------------------------------------+ | Code Listing 2: | | Adding sudo access to chvt | +-------------------------------------------------------------------------+ | | |$ echo "%users $HOSTNAME=/usr/bin/chvt" >> /etc/sudoers | | | +-------------------------------------------------------------------------+ Warning: Be sure you know what you are doing when modifying sudo permissions, since you are giving root access to run certain commands. |
|
||||||||
| © Copyleft 2005-2011 - Lode Vanstechelman - Login | ||||||||||