Last active
May 31, 2021 14:15
-
-
Save partoftheworlD/a9747541b26e3e21827c122964551c57 to your computer and use it in GitHub Desktop.
This file contains 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
#!/bin/bash | |
# USAGE: ./install_ubuntu_mini.sh $(which agetty) $USER | |
sudo apt install xinit rxvt-unicode snapd xfce4 network-manager xrandr -y | |
sudo systemctl start NetworkManager.service | |
sudo systemctl enable NetworkManager.service | |
sudo snap install midori | |
echo '[Service]' | sudo tee -a /etc/systemd/system/getty@tty1.service.d/override.conf | |
echo 'ExecStart=' | sudo tee -a /etc/systemd/system/getty@tty1.service.d/override.conf | |
echo "ExecStart=-$1 --autologin $2 --noclear %I $TERM" | sudo tee -a /etc/systemd/system/getty@tty1.service.d/override.conf | |
sudo systemctl enable getty@tty1 | |
echo '[ $(tty) = /dev/tty1 ] && exec startx' >> ~/.bash_profile |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment