Last active
December 17, 2015 18:09
-
-
Save benmccormick/5650732 to your computer and use it in GitHub Desktop.
A quick script to get tim setup on mint
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 | |
# This is a script to set up a Linux Mint environment for Tim's development this summer. It is by no means complete, but is just meant to get started with some of the basics for java development and the courage project. | |
#set your username here | |
USER=ben | |
#update available packages | |
apt-get update | |
#installing postgres | |
apt-get -y install postgresql | |
apt-get -y install pgadmin3 | |
#install git | |
apt-get -y install git | |
#install node and npm | |
sudo apt-get -y install python-software-properties python g++ make | |
sudo add-apt-repository -y ppa:chris-lea/node.js | |
sudo apt-get -y update | |
sudo apt-get -y install nodejs | |
apt-get -y install npm | |
#install zsh | |
apt-get -y install zsh | |
# get java jdk | |
# we're going to use the "open" java implementation instead of oracle's version | |
apt-get -y install openjdk-7-jdk | |
#install eclipse | |
apt-get -y install eclipse | |
#set zsh as your default shell | |
chsh -s /bin/zsh $USER | |
# create and go to your projects directory | |
# You'll want to put your eclipse workspace in this projects folder eventually too | |
cd /usr/src/ | |
mkdir projects | |
cd projects | |
# Install the courage Project (readonly for now, you'll have to fix that once you create a github account) | |
git clone git://github.com/ben336/Courage.git | |
cd Courage | |
#Create The project database | |
sudo -u postgres psql -c "create user courage with password 'courage';" | |
sudo -u postgres psql -c "alter user courage with superuser;" | |
sudo -u postgres createdb -O courage Courage | |
sudo -u postgres psql -d Courage -f db/schema.sql | |
#install all the dependencies | |
npm install -g grunt-cli | |
npm install -g jasmine-node | |
npm install | |
# Generate the docs and run tests just to see if things are working | |
grunt docs | |
grunt test | |
chown -r $USER /usr/src/projects |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
helpful, thanks.