Skip to content

Instantly share code, notes, and snippets.

@ivan-loh
Last active October 29, 2015 11:43
Show Gist options
  • Select an option

  • Save ivan-loh/2b06bebf94d76b19f9a8 to your computer and use it in GitHub Desktop.

Select an option

Save ivan-loh/2b06bebf94d76b19f9a8 to your computer and use it in GitHub Desktop.
compute server initialization
#!/bin/bash
sudo apt-get install -y curl python-software-properties python g++ make
# Add Required repository
sudo add-apt-repository -y ppa:keithw/mosh
sudo add-apt-repository -y ppa:chris-lea/zeromq
sudo add-apt-repository -y ppa:chris-lea/redis-server
sudo add-apt-repository -y ppa:webupd8team/java
curl -sL https://deb.nodesource.com/setup_4.x | sudo -E bash -
sudo apt-get update -y
sudo apt-get upgrade -y
sudo echo oracle-java8-installer shared/accepted-oracle-license-v1-1 select true | sudo /usr/bin/debconf-set-selections
sudo apt-get install -y htop gcc build-essential nodejs redis-server libzmq3-dev mosh oracle-java8-installer maven
sudo npm install -g pm2 servers
sudo chown -R `whoami` ~/.npm
# gitignore_global
wget https://gist.githubusercontent.com/octocat/9257657/raw/c91b435be351fcdff00f6f97f20824d0286b99ef/.gitignore
mv .gitignore ~/.gitignore_global
git config --global core.excludesfile ~/.gitignore_global
# screen
wget https://raw.githubusercontent.com/ivan-loh/dotfiles/master/.screenrc ~/.screenrc
sudo dpkg-reconfigure tzdata
ssh-keygen
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment