Skip to content

Instantly share code, notes, and snippets.

@treeder
Last active September 30, 2015 05:38
Show Gist options
  • Star 2 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save treeder/1731414 to your computer and use it in GitHub Desktop.
Save treeder/1731414 to your computer and use it in GitHub Desktop.
My new linux build script
# First run: sudo apt-get install git
# Then clone this gist.
# Then run build.sh
# basics
sudo apt-get install g++ libcurl3-dev curl build-essential libxml2-dev libxslt-dev git mercurial bzr mongodb-clients
# python-software-propertie​s, seems to already be there or something?
# Go - https://wiki.ubuntu.com/Go
mkdir $HOME/go
sudo add-apt-repository ppa:gophers/go
sudo apt-get update
sudo apt-get install golang-stable
touch $HOME/.bashrc
# sed won't insert into an empty file...
# sed -i '1iexport GOPATH=$HOME/go' $HOME/.bashrc
echo "export GOPATH=$HOME/go" >> $HOME/.bashrc
read -p "What is your full name for git? " git_name
read -p "What is your email for git? " git_email
git config --global user.name $git_name
git config --global user.email $git_email
# .netrc file for github, Go tool uses this
# Could try to change to: https://coderwall.com/p/jtujgw , but json parsing might be hard part
read -p "What is your github username? " github_username
read -p "What is your github password? " github_password
echo "machine github.com login $github_username password $github_password" > $HOME/.netrc
# Ruby
sudo apt-get -yf install ruby1.9.1-full
sudo REALLY_GEM_UPDATE_SYSTEM=true gem update --system
sudo gem install rake bundler
# Java
sudo apt-get install openjdk-7-jdk
# Mint requires you to remove the following
sudo apt-get remove openjdk-6-jre
sudo apt-get remove openjdk-6-jre-lib
# Flash (optional) - in Canonical Partners repo which should be enabled by default
# sudo apt-get install flashplugin-installer
# Create ssh key for github
# ssh-keygen -t rsa -C "your_email@youremail.com"
# cat it and it to Account Settings on github.
sudo apt-get -yf autoremove
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment