Skip to content

Instantly share code, notes, and snippets.

@cpuuntery
Last active May 30, 2023 11:20
Show Gist options
  • Save cpuuntery/d198595b3640da871c5b015e848a4a48 to your computer and use it in GitHub Desktop.
Save cpuuntery/d198595b3640da871c5b015e848a4a48 to your computer and use it in GitHub Desktop.
sudo apt install xserver-xorg-core xinit icewm
sudo mkdir -pv /etc/systemd/system/[email protected]/
sudo nano /etc/systemd/system/[email protected]/autologin.conf
#edit the autologin.conf as follows
[Service]
ExecStart=
ExecStart=-/sbin/agetty --autologin username --noclear %I 38400 linux
### the username part is importtant. you must Change "username" with your username
sudo systemctl enable [email protected]
nano ~/.bash_profile
# edit the .bash_profile as follows
[[ -z $DISPLAY && $XDG_VTNR -eq 1 ]] && exec startx
Along the way of reducing Ubuntu size. I broke the display output.
the only way to get display output is to use vnc
sudo apt install tightvncserver tigervnc-standalone-server icewm
vncpasswd
vncserver -localhost no
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment