Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with
or
.
Download ZIP
Browse files

Install script

  • Loading branch information...
commit 293cea50ff75983c7e7aa02995b7d8b6d79e1d85 1 parent 7ccbc0a
@aq authored
Showing with 52 additions and 3 deletions.
  1. +52 −3 install
View
55 install
@@ -1,3 +1,52 @@
-git config --global core.excludesfile ~/.gitignore
- git config --global user.name "Your Name"
- git config --global user.email you@example.com
+#!/usr/bin/env bash
+
+echo "Checking for SSH key, generating one if it doesn't exist ..."
+ [[ -f ~/.ssh/id_rsa.pub ]] || ssh-keygen -t rsa
+
+echo "Copying public key to clipboard. Paste it into your Github account ..."
+ [[ -f ~/.ssh/id_rsa.pub ]] && cat ~/.ssh/id_rsa.pub
+ chromium-browser open https://github.com/account/ssh &
+
+echo "Installing RVM (Ruby Version Manager) ..."
+ curl -s https://rvm.beginrescueend.com/install/rvm -o rvm-installer ; chmod +x rvm-installer ; ./rvm-installer --version latest
+ echo "
+# RVM
+[[ -s '/home/`whoami`/.rvm/scripts/rvm' ]] && source '/home/`whoami`/.rvm/scripts/rvm'" >> ~/.zshrc
+ source ~/.zshrc
+
+echo "Installing Ruby 1.9.2 stable and making it the default Ruby ..."
+ rvm install 1.9.2
+ rvm use 1.9.2 --default
+
+echo "Installing the Rails gems (last and 2.3.14)..."
+ gem install rails --no-rdoc --no-ri
+ gem install rails -v=2.3.14 --no-rdoc --no-ri
+
+echo "Setting up vim config (using git-submodules)..."
+
+echo "Setting up dotfiles..."
+ ln -s ~/dotfiles/bashrc ~/.bashrc
+ ln -s ~/dotfiles/rvmrc ~/.rvmrc
+ ln -s ~/dotfiles/vimrc ~/.vimrc
+ ln -s ~/dotfiles/gvimrc ~/.gvimrc
+ ln -s ~/dotfiles/gemrc ~/.gemrc
+ ln -s ~/dotfiles/gitignore ~/.gitignore
+ git config --global core.excludesfile ~/.gitignore
+
+echo "Update the system"
+ sudo apt-get update
+ sudo apt-get install aptitude
+ sudo aptitude update
+ sudo aptitude upgrade -y
+
+echo "Install software..."
+ sudo aptitude install keepassx ack shotwell chromium-browser thunderbird skype gimp vim-gnome gitg
+
+echo "Updating ACPI..."
+ mv /etc/default/grub /etc/default/grub.bkp
+ sudo sed s/GRUB_CMDLINE_LINUX=\"\"/GRUB_CMDLINE_LINUX=\"quiet splash acpi_osi=Linux\"/ /etc/default/grub -i.bkp
+ sudo update-grub2
+
+echo "Dont forget to do that:"
+ echo "git config --global user.name 'my name'"
+ echo "git config --global user.email email@email.com"
Please sign in to comment.
Something went wrong with that request. Please try again.