Last active
January 16, 2021 12:23
-
-
Save phillip-haydon/fd4a1b968e535e64ffd147d397a29d84 to your computer and use it in GitHub Desktop.
Ubuntu (or derivatives) setup
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
# chmod +x InstallScript.sh | |
# ./InstallScript.sh | |
# sudo nano /etc/default/grub | |
# Clean up any stupid cdrom that gets into the list | |
sudo sed -i '/cdrom/d' /etc/apt/sources.list | |
# Notes | |
# Screen tearing: https://cubethethird.wordpress.com/2016/06/14/eliminate-screen-tearing-with-amd-gpu-on-ubuntu/ | |
# Check boot time: run `systemd-analyze` in terminal. | |
# Set Windows like Alt+Tab window switching | |
gsettings set org.gnome.desktop.wm.keybindings switch-windows "['<Alt>Tab']" | |
gsettings set org.gnome.desktop.wm.keybindings switch-windows-backward "['<Shift><Alt>Tab']" | |
gsettings set org.gnome.desktop.wm.keybindings switch-applications "['<Super>Tab']" | |
gsettings set org.gnome.desktop.wm.keybindings switch-applications-backward "['<Shift><Super>Tab']" | |
# Remove that snap bullshit | |
sudo systemctl stop snapd | |
sudo snap remove snap-store | |
sudo snap remove gtk-common-themes | |
sudo snap remove gnome-3-34-1804 | |
sudo snap remove core18 | |
sudo apt purge snapd | |
rm -vrf ~/snap | |
sudo rm -vrf /snap /var/snap /var/lib/snapd /var/cache/snapd /usr/lib/snapd | |
sudo apt-mark hold snapd | |
# Run all updates now that shitty snap is gone | |
sudo apt update | |
sudo apt upgrade -y | |
# Install shared stuff | |
sudo add-apt-repository multiverse | |
sudo apt install -y apt-transport-https ca-certificates curl gnupg-agent software-properties-common | |
# Repo for Mainline | |
sudo add-apt-repository ppa:cappelikan/ppa | |
sudo apt update | |
sudo apt install -y mainline | |
# Setup downloads folder | |
mkdir -p ~/Downloads | |
cd ~/Downloads | |
# Install latest AMD Drivers for GFX Card | |
wget https://drivers.amd.com/drivers/linux/amdgpu-pro-20.45-1188099-ubuntu-20.04.tar.xz -O ./amd-drivers.tar.xz --referer=https://www.amd.com/en/support/graphics/amd-radeon-5700-series/amd-radeon-rx-5700-series/amd-radeon-rx-5700-xt | |
tar -xf amd-drivers.tar.xz | |
cd amd-drivers | |
sudo ./amdgpu-pro-install -y | |
cd ~/Downloads | |
# Install .NET Core | |
wget https://packages.microsoft.com/config/ubuntu/20.04/packages-microsoft-prod.deb -O packages-microsoft-prod.deb | |
sudo dpkg -i packages-microsoft-prod.deb | |
sudo apt update | |
sudo apt install -y dotnet-sdk-3.1 dotnet-sdk-5.0 | |
# Fucking NODEEE | |
# https://github.com/nodesource/distributions/blob/master/README.md | |
curl -sL https://deb.nodesource.com/setup_14.x | sudo -E bash - | |
sudo apt-get install -y nodejs | |
# Install Software | |
# Yes I know I could chain these together, but seperate line to comment out / read them... | |
sudo apt install -y transmission | |
#sudo apt install -y vlc | |
sudo apt install -y git | |
#sudo apt install -y barrier # synergy fork | |
#sudo apt install -y code | |
#sudo apt install -y virtualbox | |
#sudo apt install -y steam | |
##sudo apt install -y slack | |
sudo apt install -y fonts-cascadia-code | |
sudo apt install -y openvpn | |
#sudo apt install -y cloc # count lines of code | |
sudo apt install -y neofetch # that thing that displays stuff | |
# | |
# | |
# Download Telegram | |
wget -O- https://telegram.org/dl/desktop/linux | sudo tar xJ -C /opt/ | |
sudo ln -s /opt/Telegram/Telegram /usr/local/bin/telegram-desktop | |
# Download Whatsdesk | |
wget https://zerkc.gitlab.io/whatsdesk/whatsdesk_0.3.1_amd64.deb -O ~/Downloads/whatsdesk_0.3.1_amd64.deb | |
cd ~/Downloads | |
sudo apt install -y ./whatsdesk_0.3.1_amd64.deb | |
# Download Beyond Compare | |
#wget https://www.scootersoftware.com/bcompare-4.3.4.24657_amd64.deb -O ~/Downloads/bcompare-4.3.4.24657_amd64.deb | |
#cd ~/Downloads | |
#sudo apt install -y ./bcompare-4.3.4.24657_amd64.deb | |
# Download ULauncher | |
wget https://github.com/Ulauncher/Ulauncher/releases/download/5.8.0/ulauncher_5.8.0_all.deb | |
cd ~/Downloads | |
sudo apt install -y ./ulauncher_5.8.0_all.deb | |
# Docker Install | |
# https://docs.docker.com/engine/install/ubuntu/ | |
#curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add - | |
#sudo apt-key fingerprint 0EBFCD88 | |
#sudo add-apt-repository "deb [arch=amd64] https://download.docker.com/linux/ubuntu $(lsb_release -cs) stable" | |
#sudo apt update | |
#sudo apt install -y docker-ce docker-ce-cli containerd.io | |
# Install Insomnia | |
echo "deb https://dl.bintray.com/getinsomnia/Insomnia /" | sudo tee -a /etc/apt/sources.list.d/insomnia.list | |
wget --quiet -O - https://insomnia.rest/keys/debian-public.key.asc | sudo apt-key add - | |
sudo apt-get update | |
sudo apt-get install -y insomnia | |
# Install Powerline-Go | |
sudo apt install -y golang-go | |
go get -u github.com/justjanne/powerline-go | |
# Append the powerline-go script to the end of the .bashrc file | |
cat <<'EOF' >> ~/.bashrc | |
GOPATH=$HOME/go | |
function _update_ps1() { | |
PS1="$($GOPATH/bin/powerline-go -error $?)" | |
} | |
if [ "$TERM" != "linux" ] && [ -f "$GOPATH/bin/powerline-go" ]; then | |
PROMPT_COMMAND="_update_ps1; $PROMPT_COMMAND" | |
fi | |
EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment