There’s couple of ways how to setup auto-login on linux. This one is geeky and not very user-friendly, but might come handy to somebody. This is on Ubuntu Linux 14.04.1/trusty with graphical login/desktop manager (lightdm) disabled.
install mingetty
1 |
$ sudo apt-get install mingetty |
edit /etc/init/tty1.conf
so that it looks like this:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
# tty1 - getty # # This service maintains a getty on tty1 from the point the system is # started until it is shut down again. start on stopped rc RUNLEVEL=[2345] and ( not-container or container CONTAINER=lxc or container CONTAINER=lxc-libvirt) stop on runlevel [!2345] respawn #exec /sbin/getty -8 38400 tty1 exec /sbin/mingetty --autologin <YOUR USERNAME HERE> tty1 |
The most important part are the last three lines. Change username to what you have.
Edit your ~/.profile and add at the bottom:
1 2 3 |
if [ -z "$DISPLAY" ] && [ -n "$XDG_VTNR" ] && [ "$XDG_VTNR" -eq 1 ]; then startx fi |
Reboot and you should end up in your X session.
Sources:
askubuntu.com/quest…unning-upstart
https://wiki.archlinux.org/index.php/Xinit