From 1c5ac00543a7ba02f650e25b8fa4486d5a077cf4 Mon Sep 17 00:00:00 2001 From: Digital Studium Date: Sat, 2 Mar 2024 11:16:38 +0000 Subject: [PATCH] Fix install ubuntu --- install_ubuntu.sh | 19 ++++++++++++++----- 1 file changed, 14 insertions(+), 5 deletions(-) diff --git a/install_ubuntu.sh b/install_ubuntu.sh index b01fa8a..074dbd8 100755 --- a/install_ubuntu.sh +++ b/install_ubuntu.sh @@ -1,3 +1,7 @@ + +# ubuntu hangs if network interface is not optional +sudo sed -i '/dhcp4/a\ optional: yes' /etc/netplan/00-installer-config-wifi.yaml +sudo sed -i '/dhcp4/a\ optional: yes' /etc/netplan/00-installer-config.yaml # Add firefox repo echo "deb [trusted=yes] https://packages.mozilla.org/apt mozilla main" | sudo tee -a /etc/apt/sources.list.d/mozilla.list > /dev/null # By default ubuntu installs firefox from snap, so I want to disable it @@ -29,22 +33,27 @@ firefox # remove snap cause I hate it sudo systemctl disable --now snapd -sudo apt purge snapd +sudo apt purge snapd -y +if [ ! -d ~/gui ] +then + git clone https://git.digitalstudium.com/digitalstudium/ubuntu-gui ~/gui +fi + # compiling dwm if ! command -v dwm &> /dev/null then - cd gui/dwm + cd ~/gui/dwm sudo make install clean cd - - echo dwm > .xinitrc # for starting dwm when startx + echo dwm > ~/.xinitrc # for starting dwm when startx fi # compiling st if ! command -v st &> /dev/null then - cd gui/st + cd ~/gui/st sudo make install clean cd - fi @@ -52,7 +61,7 @@ fi # compiling sent if ! command -v sent &> /dev/null then - cd gui/sent + cd ~/gui/sent sudo make install clean cd - fi