Skip to content

Instantly share code, notes, and snippets.

@TerrorSquad
Last active November 25, 2018 17:20
Show Gist options
  • Save TerrorSquad/f1c60aaab0315e083086511b2277cc24 to your computer and use it in GitHub Desktop.
Save TerrorSquad/f1c60aaab0315e083086511b2277cc24 to your computer and use it in GitHub Desktop.
Installation script of software required for software development.
#! /usr/bin/env bash
# This script will install the required software for software development and also software for general use.
if [[ $EUID -ne 0 ]]; then
echo "This script must be run as root!";
exit 1
else
# Install ZSH
sudo apt install -y zsh;
# Set ZSH as default shell;
sudo chsh -s $(which zsh) $(whoami);
# Install oh-my-zsh
sh -c "$(curl -fsSL https://raw.githubusercontent.com/robbyrussell/oh-my-zsh/master/tools/install.sh | sed 's:env zsh -l::g' | sed 's:chsh -s .*$::g')"
# Change default zsh theme
sed -i 's/robbyrussell/ys/g' /home/$(whoami)/.zshrc
# Install docker
sudo curl -fsSL https://get.docker.com -o get-docker.sh;
sudo sh get-docker.sh;
# Add user to docker group and remove script
sudo usermod -aG docker $(whoami);
rm get-docker.sh;
# Install docker-compose
sudo curl -L "https://github.com/docker/compose/releases/download/1.23.1/docker-compose-$(uname -s)-$(uname -m)" -o /usr/local/bin/docker-compose;
sudo chmod +x /usr/local/bin/docker-compose;
# Install git
sudo apt install -y git;
# Install git-flow
sudo apt-get install -y git-flow;
# Install bleachbit
sudo apt install -y bleachbit;
# Install VS Code
sudo snap install vscode --classic;
# Install gitkraken
sudo snap install gitkraken --beta;
# Install slack
sudo snap install slack --classic;
# Install skype
sudo snap install skype --classic;
# Install WPS office
sudo snap install wps-office;
# Install VLC player
sudo snap install vlc;
# Install PostMan
sudo snap install postman;
# Install snap version of Firefox
sudo snap install firefox;
# and remove .deb version
sudo apt remove -y firefox;
# Generate SSH keys
ssh-keygen -t rsa -b 4096
fi
exit 0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment