Last active
January 11, 2020 22:57
-
-
Save Keoven/4434598 to your computer and use it in GitHub Desktop.
My setup script to use when setting up a new ubuntu install be it a VM or a fresh install on a computer.
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
# Ubuntu 18.10 | |
# | |
# VM Setup: | |
# 1 Cores & 2 GB RAM | |
# | |
# Requirements: | |
# - $ sudo apt-get install curl -y | |
# - Your SSH keys are already setup since these includes cloning repositories from github. | |
# | |
# Post install if you hadn't done so: | |
# 1. Install Chromium / Google Chrome | |
# | |
# Run this script by doing the command below: | |
# | |
# > curl https://gist.githubusercontent.com/Keoven/4434598/raw/886e8c15e94688ccda9fb0fd6940709f0358c708/ubuntu_setup.sh | sh | |
# | |
# Troubleshooting: | |
# 1. Encountering redirect loops? | |
# Try changing your repository source such as the Main server or JAIST in Japan. | |
# | |
# 2. VM stuck at a low resolution on restart? | |
# ~$ sudo vi /lib/systemd/system/open-vm-tools.service | |
# Add under [Unit] the following line: | |
# After=display-manager.service | |
# Add all third party repositories | |
sudo add-apt-repository ppa:git-core/ppa -y | |
sudo apt-get update -y | |
# Setup Environment | |
sudo apt-get install open-vm-tools open-vm-tools-desktop -y | |
sudo apt-get install git -y | |
sudo apt-get install curl -y | |
sudo apt-get install build-essential checkinstall -y | |
sudo apt-get install zsh -y | |
sudo apt-get install vim-gtk ack ctags -y | |
sudo apt-get install python-pip python-tk python-dev -y | |
sudo apt-get install tmux -y | |
sudo apt-get install autossh -y | |
sudo apt-get install silversearcher-ag -y | |
# Install Node.js and NPM | |
curl https://raw.github.com/creationix/nvm/master/install.sh | sh | |
\curl -L https://npmjs.org/install.sh | bash -s stable | |
# Install PostgreSQL Dependency | |
sudo apt-get install postgresql libpq-dev -y | |
sudo -u postgres createuser --superuser $USER | |
## REMINDER -- You need to set password by doing: | |
# 1. `> sudo -u postgres psql postgres` | |
# 2. `# \password` | |
# 3. `\q` | |
# Install Redis | |
sudo apt-get install redis-server -y | |
# Setup dot files | |
cd ~ | |
git clone --no-checkout git://github.com/Keoven/dotfiles.git dotfiles.tmp | |
mv dotfiles.tmp/.git . | |
git reset --hard HEAD | |
rm -rf dotfiles.tmp/ | |
# Install Oh-My-ZSh | |
cd ~ | |
rm -rf .oh-my-zsh | |
git clone git://github.com/robbyrussell/oh-my-zsh.git ~/.oh-my-zsh | |
git checkout . | |
# Setup Python Development | |
cd ~ | |
rm -rf .virtualenvs | |
curl -sL https://raw.githubusercontent.com/brainsik/virtualenv-burrito/master/virtualenv-burrito.sh | $SHELL | |
git checkout . | |
# Install Janus | |
sudo apt-get install rake -y | |
curl -Lo- https://bit.ly/janus-bootstrap | bash | |
rm -rf .vim.old | |
# Janus Plugins | |
mkdir .janus | |
cd .janus | |
git clone [email protected]:editorconfig/editorconfig-vim.git | |
git clone [email protected]:wavded/vim-stylus.git | |
# Powerline for Vim Ubuntu | |
git clone https://github.com/pdf/ubuntu-mono-powerline-ttf.git ~/.fonts/ubuntu-mono-powerline-ttf | |
fc-cache -vf | |
git clone git://github.com/Lokaltog/vim-powerline.git | |
cd ~ | |
git clone git://github.com/erikw/tmux-powerline.git | |
mv tmux-powerline .tmux-powerline | |
cd ~ | |
chsh -s $(which zsh) | |
chsh -s $(which zsh) $USER | |
echo; echo Please reboot the computer... | |
sudo reboot |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment