Last active
May 30, 2023 11:20
-
-
Save cpuuntery/d198595b3640da871c5b015e848a4a48 to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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