sudo groupadd npm
sudo usermod -a -G npm,staff $USER
sudo apt-get update
sudo apt-get upgrade
sudo apt-get dist-upgrade
(this one is optional)sudo apt-get -y install curl postgresql libpq-dev default-jre build-essential phantomjs nodejs
sudo apt-get -y install ack-grep vim libgnome2-bin
(these are optional)curl -sL https://deb.nodesource.com/setup_5.x | sudo -E bash -
sudo apt-get install nodejs
sudo chown root:staff /usr/bin
sudo chmod 0775 /usr/bin
sudo chown -R root:npm /usr/lib/node_modules
sudo chmod 0755 /usr/lib/node_modules
touch ~/.netrc && chmod 0600 ~/.netrc
gpg --keyserver hkp://keys.gnupg.net --recv-keys 409B6B1796C275462A1703113804BB82D39DC0E3
\curl -sSL https://get.rvm.io | bash
rvm install 2.3.0
rvm use 2.3.0 --default
echo "gem: --no-ri --no-rdoc" > $HOME/.gemrc
gem update --system 2.4.8
gem install learn-co
gem install phantomjs
gem install pg
gem install sqlite3
gem install bundler
gem install rails
npm install -g protractor
ssh-keygen
(ONLY DO THIS IF YOU DON'T ALREADY HAVE A GENERATED SSH KEY: just press return for everything, and don't enter a passphrase)cat ~/.ssh/id_rsa.pub
, copy output, and add as ssh key on githublearn whoami
and enter oauth token when asked (from https://learn.co/<github_username>)- Install Chrome
curl "https://raw.githubusercontent.com/flatiron-school/dotfiles/master/irbrc" -o "$HOME/.irbrc"
curl "https://raw.githubusercontent.com/flatiron-school/dotfiles/master/ubuntu-gitignore" -o "$HOME/.gitignore"
curl "https://raw.githubusercontent.com/flatiron-school/dotfiles/master/linux_bash_profile" -o "$HOME/.bash_profile"
(this will overwrite existing bash profile, so back up if you want to)curl "https://raw.githubusercontent.com/flatiron-school/dotfiles/master/linux_gitconfig" -o "$HOME/.gitconfig"
thennano $HOME/.gitconfig
and edit what needs to be edited (github username and github email in a few places)
To date everyone I have seen who has had an issue with setting up Learn on Ubuntu has been stuck with
/netrc
make sure the file exists and has appropriate permissions. There have been a few people who have deleted it and had it be recreated in a working format.Hope that helps!