2024-03-02 11:16:38 +00:00
|
|
|
|
|
|
|
# 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
|
2024-03-02 10:14:43 +00:00
|
|
|
# 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
|
|
|
|
echo '
|
|
|
|
Package: *
|
|
|
|
Pin: origin packages.mozilla.org
|
|
|
|
Pin-Priority: 1000
|
|
|
|
' | sudo tee /etc/apt/preferences.d/mozilla
|
|
|
|
# install packages I need
|
|
|
|
sudo apt update
|
|
|
|
sudo apt install -y nala
|
|
|
|
sudo nala install -y \
|
|
|
|
xorg `# for graphics` \
|
|
|
|
make `# for compiling gui` \
|
|
|
|
gcc `# for compiling gui` \
|
|
|
|
libx11-dev `# for compiling dwm` \
|
|
|
|
libxft-dev `# for compiling dwm` \
|
|
|
|
libxinerama-dev `# for compiling dwm` \
|
|
|
|
libharfbuzz-dev `# for compiling st` \
|
|
|
|
suckless-tools `# for dmenu` \
|
|
|
|
ncdu `# for disk usage analysys` \
|
|
|
|
telegram-desktop \
|
|
|
|
slack \
|
|
|
|
xfe `# classic file manager` \
|
|
|
|
surf `# suckless browser` \
|
|
|
|
firefox
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
# remove snap cause I hate it
|
|
|
|
sudo systemctl disable --now snapd
|
2024-03-02 11:16:38 +00:00
|
|
|
sudo apt purge snapd -y
|
|
|
|
|
2024-03-02 10:14:43 +00:00
|
|
|
|
2024-03-02 11:16:38 +00:00
|
|
|
if [ ! -d ~/gui ]
|
|
|
|
then
|
|
|
|
git clone https://git.digitalstudium.com/digitalstudium/ubuntu-gui ~/gui
|
|
|
|
fi
|
2024-03-02 10:14:43 +00:00
|
|
|
|
|
|
|
# compiling dwm
|
|
|
|
if ! command -v dwm &> /dev/null
|
|
|
|
then
|
2024-03-02 11:16:38 +00:00
|
|
|
cd ~/gui/dwm
|
2024-03-02 10:14:43 +00:00
|
|
|
sudo make install clean
|
|
|
|
cd -
|
2024-03-02 11:16:38 +00:00
|
|
|
echo dwm > ~/.xinitrc # for starting dwm when startx
|
2024-03-02 10:14:43 +00:00
|
|
|
fi
|
|
|
|
|
|
|
|
# compiling st
|
|
|
|
if ! command -v st &> /dev/null
|
|
|
|
then
|
2024-03-02 11:16:38 +00:00
|
|
|
cd ~/gui/st
|
2024-03-02 10:14:43 +00:00
|
|
|
sudo make install clean
|
|
|
|
cd -
|
|
|
|
fi
|
|
|
|
|
|
|
|
# compiling sent
|
|
|
|
if ! command -v sent &> /dev/null
|
|
|
|
then
|
2024-03-02 11:16:38 +00:00
|
|
|
cd ~/gui/sent
|
2024-03-02 10:14:43 +00:00
|
|
|
sudo make install clean
|
|
|
|
cd -
|
|
|
|
fi
|