diff --git a/install_ubuntu.sh b/install_ubuntu.sh index 6c77380..2550839 100755 --- a/install_ubuntu.sh +++ b/install_ubuntu.sh @@ -6,7 +6,7 @@ then sudo sed -i '/dhcp4/a\ optional: yes' /etc/netplan/00-installer-config.yaml fi # 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 +sudo bash -c 'echo "deb [trusted=yes] https://packages.mozilla.org/apt mozilla main" > /etc/apt/sources.list.d/mozilla.list' # By default ubuntu installs firefox from snap, so I want to disable it echo ' Package: * @@ -30,22 +30,29 @@ brightnessctl `# for keyboard backlight` \ xcompmgr `# for st opacity` \ xwallpaper `# for background` \ ubuntu-wallpapers-jammy `# backgrounds` \ +pulseaudio `# for sound` \ +alsa-base `# for sound` \ xfe `# classic file manager` \ surf `# suckless lightweight browser` \ -micro `# lightweight editor` \ +micro `# console editor` \ +neovim `# console editor` \ psmisc `# pstree etc.` \ slack \ firefox \ -python3 +python3 \ +python3-venv # install telegram -if [ ! -f telegram.tar.xz ] -then - curl -L https://telegram.org/dl/desktop/linux -o telegram.tar.xz -fi -tar -xf telegram.tar.xz -rm -f telegram.tar.xz -sudo mv Telegram /opt/ +if [ ! -d /opt/Telegram ] +then + if [ ! -f telegram.tar.xz ] + then + curl -L https://telegram.org/dl/desktop/linux -o telegram.tar.xz + fi + tar -xf telegram.tar.xz + rm -f telegram.tar.xz + sudo mv Telegram /opt/ +fi # remove snap cause I hate it sudo systemctl disable --now snapd