I am using an Odroid C2 Board and I would like to boot to the command line and then automatically login.
I have used the following script to disable
the GUI and boot to command line:
#!/bin/bash
# Call with either enable or disable as first parameter
if [[ "$1" == 'enable' || "$1" == 'disable' ]]; then
sudo systemctl set-default multi-user.target --force
sudo systemctl $1 lightdm.service --force
sudo systemctl $1 graphical.target --force
sudo systemctl $1 plymouth.service --force
else
echo Call with either "enable" or "disable" as first parameter.
fi
However, I cannot enable the GUI now it is disabled.
To auto-login I added an argument in /etc/init/tty1.conf
, which was --autologin odroid
but that didn’t work.
I’d be really grateful for any suggestions.