Fix install ubuntu

This commit is contained in:
Digital Studium 2024-03-02 11:16:38 +00:00
parent 7697e31788
commit 1c5ac00543
1 changed files with 14 additions and 5 deletions

View File

@ -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 # 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 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 # By default ubuntu installs firefox from snap, so I want to disable it
@ -29,22 +33,27 @@ firefox
# remove snap cause I hate it # remove snap cause I hate it
sudo systemctl disable --now snapd 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 # compiling dwm
if ! command -v dwm &> /dev/null if ! command -v dwm &> /dev/null
then then
cd gui/dwm cd ~/gui/dwm
sudo make install clean sudo make install clean
cd - cd -
echo dwm > .xinitrc # for starting dwm when startx echo dwm > ~/.xinitrc # for starting dwm when startx
fi fi
# compiling st # compiling st
if ! command -v st &> /dev/null if ! command -v st &> /dev/null
then then
cd gui/st cd ~/gui/st
sudo make install clean sudo make install clean
cd - cd -
fi fi
@ -52,7 +61,7 @@ fi
# compiling sent # compiling sent
if ! command -v sent &> /dev/null if ! command -v sent &> /dev/null
then then
cd gui/sent cd ~/gui/sent
sudo make install clean sudo make install clean
cd - cd -
fi fi