Coal does not use a login manager, instead booting to a login prompt and requiring the user to log in, and then enter "startx" to get into LXDE. I like this functionality, because I often want to do something in the console before starting X. It is, however, easy to modify Coal to automatically log your user in and/or startx automatically at login. If you enable both features, Coal will boot directly into X.
1. Autologin
Because Coal uses systemd, the old "inittab edit" autologin method does not work. Instead, you must create the directory "/etc/systemd/system/
[email protected]" and place a file in this directory. The following steps assume you are running as root.
Place the following code in autologin.conf
Code: Select all
[Service]
ExecStart=
ExecStart=-/sbin/agetty --autologin <username> --noclear %I 38400 linux
Replace <username> with your user name. Save the file. At reboot, your user should now be logged in automatically on tty1.
2. StartX at login
To do this, simply add the following code to the end of your ~/.bashrc file (if you are using zsh, modify ~/.zshrc).
Code: Select all
[[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && exec startx
You can add only this feature if you do not want your user to be logged in automatically (you do not have to enable step 1). You can also still switch to another tty and log in normally (without starting X) if necessary, even after enabling automatic startx on tty1.