Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
#!/bin/bash
# Author : Joost
#
# From Software center:
# VLC
# VS code
# virtual box
# shutter
# install unity tweak tool
# If default terminal gives start error: https://askubuntu.com/questions/608330/problem-with-gnome-terminal-on-gnome-3-12-2
sudo apt update
sudo apt install wget unzip curl xclip
# Enable TRIM for SSD
# If you have an SSD, I'd suggest enabling the fstrim.timer service for TRIM:
# sudo systemctl enable fstrim.timer
# sudo systemctl start fstrim.timer
sudo apt install htop
# Repositories
# Ensure apt is set up to work with https sources
sudo apt-get install apt-transport-https
# Installing build essentials
sudo apt install build-essential libssl-dev -y
# Keychain to manage SSH keys
sudo apt install keychain # also add correct script to bashrc (included in dotfiles)
# SSH server, only install if you want to enable SSH access
sudo apt install openssh-server -y
sudo ufw allow 22
sudo systemctl enable ssh
sudo systemctl start ssh
# Wireguard VPN
sudo apt install wireguard-dkms wireguard-tools
sudo touch /etc/wireguard/.reload-module-on-update
# sudo snap install wireguard-ammp # I need to test this
sudo apt install glusterfs-client -y
# Browsers
sudo apt install google-chrome-stable -y
# sudo apt install google-chrome-unstable
# Nodejs and NVM
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.34.0/install.sh | bash
source ~/.profile
nvm install node
nvm use node
nvm install stable
nvm alias default stable
node -v
npm -v
# Git - a version control system
sudo apt install git -y
# Gulp - an automated task runner
# npm install -g gulp-cli
# Emacs, Vim
sudo apt install emacs -y
sudo apt install vim -y
sudo apt install tmux -y
# Typora markdown editor
sudo apt-get install typora -y
# Python - Some random useful stuff
#sudo apt install python-software-properties
# sudo apt install -y software-properties-common
# sudo apt install -y python
# sudo apt install -y python-dev
# sudo apt install -y python-pip
# sudo apt-get install libkrb5-dev
# Gimp Image Editor
sudo apt install gimp gimp-data gimp-plugin-registry gimp-data-extras
# Archive Extractors
sudo apt install -y unrar p7zip-full p7zip-rar
# Go
sudo snap install go --classic
# Erlang - Actor Concurrency Model based Programming Language
sudo apt install -y erlang
# Calibre - Ebook reader and converter
sudo -v && wget -nv -O- https://raw.githubusercontent.com/kovidgoyal/calibre/master/setup/linux-installer.py | sudo python -c "import sys; main=lambda:sys.stderr.write('Download failed\n'); exec(sys.stdin.read()); main()"
# Zsh
# sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
# SNAP & Flatpak support (main downside vs apt repo is bigger install size. First boot is slow, repeated boot not)
sudo apt install -y snapd
sudo apt install -y flatpak
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
sudo snap install snap-store
# Remmina Remote Desktop client Use SNAP because pubkey is not setup properly for that so it will give errors on apt update
# sudo snap install remmina --edge
# API clients
# sudo apt-get install insomnia # REST & GraphQL > GraphiQL is better
# snap install postman # REST
# VS Code
sudo snap install code --classic # official microsoft snap
# sudo apt-get install -y code # or code-insiders
# flatpak install flathub com.visualstudio.code
# Sublime Text
sudo snap install sublime-text --classic
# Jetbrains IDE's
# sudo snap install goland --classic
sudo snap install webstorm --classic
# Kubectl
sudo snap install kubectl --classic
# Kompare (Diffing tool)
sudo snap install kompare --candidate
# Postman
sudo snap install postman
# GitKraken
sudo snap install gitkraken # official
# Terraform
sudo snap install terraform
# Google Cloud SDK (private Docker does not work with Snap or deb)
sudo snap install google-cloud-sdk --classic
# sudo apt install google-cloud-sdk
# Hugo
snap install hugo --channel=extended
# Signal
sudo snap install signal-desktop
# sudo apt install -y signal-desktop
# Spotify, only using snap if it is an official one (vscode is not official for example)
# sudo snap install spotify >> Facebook login does not work
sudo apt-get install -y spotify-client
# Steam
sudo apt install -y steam-installer
# Calibre - Ebook reader and converter
sudo -v && wget -nv -O- https://download.calibre-ebook.com/linux-installer.sh | sudo sh /dev/stdin
# Fonts (need to accept EULA license, needs some work / script stops here)
# Install manually when needed.
# sudo apt-get install ttf-mscorefonts-installer -y
# sudo apt-get install cabextract -y
# mkdir ~/.fonts
# wget -qO- http://plasmasturm.org/code/vistafonts-installer/vistafonts-installer | bash
# Docker
curl -fsSL get.docker.com -o get-docker.sh
sh get-docker.sh
# Docker-compose
sudo pip install docker-compose
# Install repositories (DO NOT run twice!)
wget -O - https://gist.githubusercontent.com/Joostvanderlaan/3b9bcce48032cc866e69fc6e42af1c41/raw/z-ubuntu-repositories.sh | bash
# Install script (run twice if fails)
wget -O - https://gist.githubusercontent.com/Joostvanderlaan/3b9bcce48032cc866e69fc6e42af1c41/raw/ubuntu-developer-install.sh | bash
sudo apt update
# Repositories
# Ensure apt is set up to work with https sources
sudo apt-get install apt-transport-https
sudo apt-get install \
apt-transport-https \
ca-certificates \
curl \
software-properties-common \
wget \
unzip \
git
# Wireguard
sudo add-apt-repository ppa:wireguard/wireguard -y # Ubuntu, Debian is different
# VS code
# curl https://packages.microsoft.com/keys/microsoft.asc | gpg --dearmor > microsoft.gpg
# sudo install -o root -g root -m 644 microsoft.gpg /etc/apt/trusted.gpg.d/
# sudo sh -c 'echo "deb [arch=amd64] https://packages.microsoft.com/repos/vscode stable main" > /etc/apt/sources.list.d/vscode.list'
# Spotify
# 1. Add the Spotify repository signing keys to be able to verify downloaded packages
curl -sS https://download.spotify.com/debian/pubkey.gpg | sudo apt-key add -
# 2. Add the Spotify repository
echo "deb http://repository.spotify.com stable non-free" | sudo tee /etc/apt/sources.list.d/spotify.list
# Signal
#curl -s https://updates.signal.org/desktop/apt/keys.asc | sudo apt-key add -
#echo "deb [arch=amd64] https://updates.signal.org/desktop/apt xenial main" | sudo tee -a /etc/apt/sources.list.d/signal-xenial.list
# Sublime text
# wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -
# echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list
# Google linux repo keys
# wget -q -O - https://dl.google.com/linux/linux_signing_key.pub | sudo apt-key add -
# Google cloud SDK
# export CLOUD_SDK_REPO="cloud-sdk-$(lsb_release -c -s)"
# echo "deb http://packages.cloud.google.com/apt $CLOUD_SDK_REPO main" | sudo tee -a /etc/apt/sources.list.d/google-cloud-sdk.list
# curl https://packages.cloud.google.com/apt/doc/apt-key.gpg | sudo apt-key add -
# Chrome repo
echo 'deb [arch=amd64] http://dl.google.com/linux/chrome/deb/ stable main' | sudo tee /etc/apt/sources.list.d/google-chrome.list
# Docker
curl -fsSL https://download.docker.com/linux/ubuntu/gpg | sudo apt-key add -
sudo add-apt-repository \
"deb [arch=amd64] https://download.docker.com/linux/ubuntu \
$(lsb_release -cs) \
stable"
# Typora
wget -qO - https://typora.io/linux/public-key.asc | sudo apt-key add -
sudo add-apt-repository 'deb https://typora.io/linux ./'
# Sublime text (default git editor)
# wget -qO - https://download.sublimetext.com/sublimehq-pub.gpg | sudo apt-key add -
# echo "deb https://download.sublimetext.com/ apt/stable/" | sudo tee /etc/apt/sources.list.d/sublime-text.list
# Insomnia
# Add to sources
# echo "deb https://dl.bintray.com/getinsomnia/Insomnia /" \
# | sudo tee -a /etc/apt/sources.list.d/insomnia.list
# Add public key used to verify code signature
# wget --quiet -O - https://insomnia.rest/keys/debian-public.key.asc \
# | sudo apt-key add -
sudo apt update
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment