Created
January 21, 2019 09:00
-
-
Save nanoninja/0429ea2540f0062659d29c6d3d5a1d26 to your computer and use it in GitHub Desktop.
ubuntu1804
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
#!/bin/bash | |
USERNAME=$USER | |
#----------------- | |
# Remove packages | |
#----------------- | |
sudo apt purge --assume-yes aisleriot \ | |
gnome-sudoku \ | |
ace-of-penguins \ | |
gnomine \ | |
gbrainy | |
#--------------- | |
# Update system | |
#--------------- | |
sudo apt update \ | |
&& sudo apt upgrade --assume-yes \ | |
&& sudo apt dist-upgrade \ | |
&& sudo apt autoremove --purge \ | |
&& sudo apt clean | |
#------------------------- | |
# Install native packages | |
#------------------------- | |
sudo apt install --assume-yes \ | |
vim \ | |
git \ | |
apt-transport-https \ | |
ca-certificates \ | |
curl \ | |
gnupg2 \ | |
software-properties-common \ | |
build-essential \ | |
screen \ | |
chromium-browser \ | |
terminator \ | |
ssh \ | |
vlc \ | |
gimp \ | |
nginx-full \ | |
php7.2-fpm \ | |
php7.2-dev \ | |
php7.2-cli \ | |
php-pear \ | |
php7.2-json \ | |
php7.2-ldap \ | |
php7.2-gd \ | |
php7.2-xml \ | |
php7.2-mbstring \ | |
php7.2-mysql \ | |
php7.2-pgsql | |
#-------------------- | |
# Install PHP Xdebug | |
#-------------------- | |
sudo pecl install xdebug | |
#---------------- | |
# Install bash | |
#---------------- | |
echo "alias upos=\"sudo apt update && sudo apt upgrade && sudo apt dist-upgrade && sudo apt autoremove --purge && sudo apt clean\"" > /home/$USERNAME/.bash_aliases | |
source $HOME/.bashrc | |
#------------------- | |
# Install from snap | |
#------------------- | |
sudo snap install --classic vscode | |
sudo snap install --classic atom | |
sudo snap install --classic phpstorm | |
#---------------- | |
# Install Docker | |
#---------------- | |
sudo 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" | |
sudo apt update && sudo apt install --assume-yes docker-ce && sudo usermod -aG docker $USERNAME | |
docker pull mysql | |
docker pull mongo | |
#-------------- | |
# Install Rust | |
#-------------- | |
curl https://sh.rustup.rs -sSf | sh | |
#---------------- | |
# Install Golang | |
#---------------- | |
curl -O -J -L https://dl.google.com/go/go1.11.4.linux-amd64.tar.gz |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment