Last active
August 16, 2018 09:16
-
-
Save Halleck45/a8e3e52e8a9736dd308bf4fce60ebdf7 to your computer and use it in GitHub Desktop.
install-ubuntu.sh
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 | |
function pause(){ | |
read -p "$*" | |
} | |
# Common packages | |
sudo apt-get install -y vim wget git nodejs npm curl php terminator | |
# IDE | |
wget https://download.jetbrains.com/webide/PhpStorm-2017.3.2.tar.gz -O phpstorm.tar.gz | |
sudo tar xfz phpstorm.tar.gz -C /opt | |
sudo mv /opt/PhpStorm* /opt/phpstorm | |
/opt/phpstorm/bin/phpstorm.sh & | |
# Chrome | |
sudo bash -c "echo 'deb http://dl.google.com/linux/chrome/deb/ stable main' > /etc/apt/sources.list.d/chrome.list" | |
wget -q -O - https://dl-ssl.google.com/linux/linux_signing_key.pub | sudo apt-key add - | |
sudo apt-get update | |
sudo apt-get install -y google-chrome-stable | |
# Docker | |
echo "deb https://apt.dockerproject.org/repo ubuntu-xenial main" | sudo tee /etc/apt/sources.list.d/docker.list | |
sudo apt-key adv \ | |
--keyserver hkp://ha.pool.sks-keyservers.net:80 \ | |
--recv-keys 58118E89F3A912897C070ADBF76221572C52609D | |
sudo apt-get update | |
sudo apt-get install -y docker-engine | |
sudo groupadd docker | |
sudo usermod -aG docker $USER | |
sudo sed -i 's%^dns=%# dns=%' /etc/NetworkManager/NetworkManager.conf && service NetworkManager restart | |
echo "please enter your SSO credentials" | |
docker login registry.dnm.radiofrance.fr | |
# Docker compose | |
sudo curl -L https://github.com/docker/compose/releases/download/1.18.0/docker-compose-`uname -s`-`uname -m` -o /usr/local/bin/docker-compose | |
sudo chmod +x /usr/local/bin/docker-compose | |
# Themes | |
sudo apt-get install -y gnome-shell | |
# SSH | |
if [ ! -f ~/.ssh/id_rsa ]; then | |
ssh-keygen -f ~/.ssh/id_rsa | |
fi | |
echo | |
cat ~/.ssh/id_rsa.pub | |
# Git | |
git config --global user.email "[email protected]" | |
git config --global user.name "Jean-François Lépine" | |
# Working folders | |
sudo chown -R `whoami` /var/www | |
# Prompt | |
(cd /tmp && git clone --depth 1 --config core.autocrlf=false https://github.com/twolfson/sexy-bash-prompt && cd sexy-bash-prompt && make install) && source ~/.bashrc | |
# Misc | |
sudo apt-get install -y shutter | |
# Aliases | |
cat << 'EOF' > ~/.bash_aliases | |
alias d="docker" | |
alias dc="docker-compose" | |
function lsf () { | |
watch "ls -lrt $@ | tail -10" | |
} | |
EOF | |
cat << 'EOF' >> ~/.bashrc | |
if [ -f ~/.bash_aliases ]; then | |
. ~/.bash_aliases | |
fi | |
EOF |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment