Skip to content

Instantly share code, notes, and snippets.

@micalm
Last active May 2, 2018 06:45
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save micalm/a098b379f62a4c05fcdad50facd1cdc1 to your computer and use it in GitHub Desktop.
Save micalm/a098b379f62a4c05fcdad50facd1cdc1 to your computer and use it in GitHub Desktop.
Ubuntu 18.04 Setup Script
#!/usr/bin/env bash
# Prepare
sudo apt update
sudo apt upgrade
# Install basics
sudo apt install curl git vim zsh tmux wget htop
# Install and configure oh-my-zsh
sh -c "$(curl -fsSL https://raw.github.com/robbyrussell/oh-my-zsh/master/tools/install.sh)"
sed -i.bak s/robbyrussell/agnoster/g .zshrc
# Install powerline fonts for oh-my-zsh
git clone https://github.com/powerline/fonts.git
cd fonts
./install.sh
cd ..
rm -rf fonts
# Install and set up developer tools
sudo apt install php php7.2-mbstring php7.2-soap php7.2-xml php7.2-intl php7.2-pgsql php7.2-mysql
curl -o- https://raw.githubusercontent.com/creationix/nvm/v0.33.11/install.sh | bash
nvm install node && nvm use node
# Composer
php -r "copy('https://getcomposer.org/installer', 'composer-setup.php');"
php -r "if (hash_file('SHA384', 'composer-setup.php') === '544e09ee996cdf60ece3804abc52599c22b1f40f4323403c44d44fdfdd586475ca9813a858088ffbc1f233e9b180f061') { echo 'Installer verified'; } else { echo 'Installer corrupt'; unlink('composer-setup.php'); } echo PHP_EOL;"
php composer-setup.php
php -r "unlink('composer-setup.php');"
sudo mv composer.phar /usr/local/bin/composer
mkdir ~/Dev
echo 'Done.'
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment