In the Ubuntu-based systems, from the desktop environment, it is possible to open several tabs from the terminal emulator without making a login every time: the user is already logged in for every tab (usually each tab corresponds to a /dev/pts/x
device).
By pressing Ctrl+Alt+F1 ... F6 it is possible to access a tty
which is a fully-textual and full-screen terminal. But in contrast with the graphic terminal emulator tabs, a new login is required every time and for each new tty
.
Is there a way to avoid this? I would like to be already logged in when I press Ctrl+Alt+F1 ... F6, when I access those text-terminals from the graphic environment (where I logged in!).
See
man screen
, it says, in part:I use it on CTRLAltFn screens all the time
Ubuntu by default uses
agetty
to manange TTYs. The man page for that defines-a, --autologin username
options for logging in a specified username automatically. Thus one can do the following:Open with root permissions
/etc/init/tty1.conf
file in your favorite text editor. I'm doingsudo vim /etc/init/tty1.conf
but you can usepkexec gedit /etc/init/tty1.conf
Alter the default line
exec /sbin/getty -8 38400 tty2
toexec /sbin/getty --autologin myUserName -8 38400 tty2
.Note that for single-user system this is appropriate, but not recommended when you have multiple users ( for obvious privacy reasons )