Skip to content

Instantly share code, notes, and snippets.

@leesmith
Created May 16, 2012 00:27

Revisions

  1. leesmith revised this gist Nov 3, 2012. 1 changed file with 61 additions and 36 deletions.
    97 changes: 61 additions & 36 deletions setup.md
    Original file line number Diff line number Diff line change
    @@ -2,95 +2,120 @@

    ### System update

    # change mirror to ubuntu.osuosl.org first
    sudo apt-get update
    ```bash
    # change mirror to ubuntu.osuosl.org first
    sudo apt-get update
    ```

    ### Install common libraries

    sudo apt-get install build-essential libreadline-dev libssl-dev zlib1g-dev libxml2-dev libxslt-dev
    ```bash
    sudo apt-get install build-essential libreadline-dev libssl-dev zlib1g-dev libxml2-dev libxslt-dev
    ```

    ### Install all the things

    sudo apt-get install vim git-core gitg tmux
    ```bash
    sudo apt-get install vim git-core gitg tmux
    ```

    ### Generate SSH keys

    ssh-keygen -t rsa -C "[email protected]"
    ```bash
    ssh-keygen -t rsa -C "[email protected]"
    ```

    ### Add public key to github then test it out with this

    ssh -T [email protected]
    ```bash
    ssh -T [email protected]
    ```

    ### Set global git identity

    git config --global user.name "John Doe"
    git config --global user.email [email protected]
    ```bash
    git config --global user.name "John Doe"
    git config --global user.email [email protected]
    ```

    ### Set default text editor for git

    git config --global core.editor vim
    ```bash
    git config --global core.editor vim
    ```

    ### Set git status colors

    git config --global color.ui true
    git config --global color.status.changed yellow
    git config --global color.status.added green
    git config --global color.status.untracked red
    ```bash
    git config --global color.ui true
    git config --global color.status.changed yellow
    git config --global color.status.added green
    git config --global color.status.untracked red
    ```

    ### Verify git settings

    git config --list
    ```bash
    git config --list
    ```

    ### Install rbenv

    git clone git://github.com/sstephenson/rbenv.git ~/.rbenv
    echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
    echo 'eval "$(rbenv init -)"' >> ~/.bashrc
    exec $SHELL
    ```bash
    git clone git://github.com/sstephenson/rbenv.git ~/.rbenv
    echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
    echo 'eval "$(rbenv init -)"' >> ~/.bashrc
    exec $SHELL
    ```

    ### Install ruby-build

    mkdir ~/.rbenv/plugins
    git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
    exec $SHELL
    ```bash
    mkdir ~/.rbenv/plugins
    git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
    exec $SHELL
    ```

    ### Install some rubies

    rbenv install 1.9.2-p320
    rbenv install 1.9.3-p194
    rbenv rehash
    ```bash
    rbenv install 1.9.2-p320
    rbenv install 1.9.3-p194
    rbenv rehash
    ```

    ### Set a global ruby

    rbenv global 1.9.2-p320
    ```bash
    rbenv global 1.9.3-p194
    ```

    ### Turn off rdoc generation when installing/updating gems

    echo "install: --no-ri --no-rdoc" >> ~/.gemrc
    echo "update: --no-ri --no-rdoc" >> ~/.gemrc
    ```bash
    echo "install: --no-ri --no-rdoc" >> ~/.gemrc
    echo "update: --no-ri --no-rdoc" >> ~/.gemrc
    ```

    ### Install javascript runtime for rails projects

    sudo apt-get install nodejs

    ### Set global bundler gem install path

    # from within a project with a Gemfile
    bundle config path .bundle/gems
    ```bash
    sudo apt-get install nodejs
    ```

    ### Databases and libraries
    * Postgres
    ```shell
    ```bash
    sudo apt-get install postgresql libpq-dev
    sudo -u postgres createuser --superuser `logname`
    ```

    * MySQL
    ```shell
    ```bash
    sudo apt-get install mysql-server mysql-client libmysqlclient-dev
    ```

    * Sqlite3
    ```shell
    ```bash
    sudo apt-get install sqlite3 libsqlite3-dev
    ```
  2. leesmith revised this gist Sep 8, 2012. 1 changed file with 1 addition and 3 deletions.
    4 changes: 1 addition & 3 deletions setup.md
    Original file line number Diff line number Diff line change
    @@ -32,9 +32,7 @@

    ### Set git status colors

    git config --global color.diff auto
    git config --global color.status auto
    git config --global color.branch auto
    git config --global color.ui true
    git config --global color.status.changed yellow
    git config --global color.status.added green
    git config --global color.status.untracked red
  3. leesmith revised this gist Jun 21, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion setup.md
    Original file line number Diff line number Diff line change
    @@ -78,7 +78,7 @@
    ### Set global bundler gem install path

    # from within a project with a Gemfile
    bundle config path vendor/bundle
    bundle config path .bundle/gems

    ### Databases and libraries
    * Postgres
  4. leesmith revised this gist May 22, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion setup.md
    Original file line number Diff line number Diff line change
    @@ -75,7 +75,7 @@

    sudo apt-get install nodejs

    ### Set global bundler gem install path after
    ### Set global bundler gem install path

    # from within a project with a Gemfile
    bundle config path vendor/bundle
  5. leesmith revised this gist May 22, 2012. 1 changed file with 2 additions and 1 deletion.
    3 changes: 2 additions & 1 deletion setup.md
    Original file line number Diff line number Diff line change
    @@ -75,8 +75,9 @@

    sudo apt-get install nodejs

    ### Set global bundler gem install path after checking out a project with a Gemfile
    ### Set global bundler gem install path after

    # from within a project with a Gemfile
    bundle config path vendor/bundle

    ### Databases and libraries
  6. leesmith revised this gist May 21, 2012. 1 changed file with 0 additions and 6 deletions.
    6 changes: 0 additions & 6 deletions setup.md
    Original file line number Diff line number Diff line change
    @@ -66,12 +66,6 @@

    rbenv global 1.9.2-p320

    ### Install rbenv-bundler

    git clone git://github.com/carsomyr/rbenv-bundler.git ~/.rbenv/plugins/bundler
    gem install bundler
    rbenv rehash

    ### Turn off rdoc generation when installing/updating gems

    echo "install: --no-ri --no-rdoc" >> ~/.gemrc
  7. leesmith revised this gist May 18, 2012. 1 changed file with 6 additions and 6 deletions.
    12 changes: 6 additions & 6 deletions setup.md
    Original file line number Diff line number Diff line change
    @@ -56,12 +56,6 @@
    git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
    exec $SHELL

    ### Install rbenv-bundler

    git clone git://github.com/carsomyr/rbenv-bundler.git ~/.rbenv/plugins/bundler
    gem install bundler
    rbenv rehash

    ### Install some rubies

    rbenv install 1.9.2-p320
    @@ -72,6 +66,12 @@

    rbenv global 1.9.2-p320

    ### Install rbenv-bundler

    git clone git://github.com/carsomyr/rbenv-bundler.git ~/.rbenv/plugins/bundler
    gem install bundler
    rbenv rehash

    ### Turn off rdoc generation when installing/updating gems

    echo "install: --no-ri --no-rdoc" >> ~/.gemrc
  8. leesmith revised this gist May 18, 2012. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions setup.md
    Original file line number Diff line number Diff line change
    @@ -46,8 +46,8 @@
    ### Install rbenv

    git clone git://github.com/sstephenson/rbenv.git ~/.rbenv
    echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.profile
    echo 'eval "$(rbenv init -)"' >> ~/.profile
    echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.bashrc
    echo 'eval "$(rbenv init -)"' >> ~/.bashrc
    exec $SHELL

    ### Install ruby-build
  9. leesmith revised this gist May 18, 2012. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions setup.md
    Original file line number Diff line number Diff line change
    @@ -2,6 +2,7 @@

    ### System update

    # change mirror to ubuntu.osuosl.org first
    sudo apt-get update

    ### Install common libraries
  10. leesmith revised this gist May 18, 2012. 1 changed file with 0 additions and 2 deletions.
    2 changes: 0 additions & 2 deletions setup.md
    Original file line number Diff line number Diff line change
    @@ -88,8 +88,6 @@
    * Postgres
    ```shell
    sudo apt-get install postgresql libpq-dev

    # create a role for yourself
    sudo -u postgres createuser --superuser `logname`
    ```

  11. leesmith revised this gist May 18, 2012. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions setup.md
    Original file line number Diff line number Diff line change
    @@ -88,6 +88,8 @@
    * Postgres
    ```shell
    sudo apt-get install postgresql libpq-dev

    # create a role for yourself
    sudo -u postgres createuser --superuser `logname`
    ```

  12. leesmith revised this gist May 18, 2012. 1 changed file with 1 addition and 1 deletion.
    2 changes: 1 addition & 1 deletion setup.md
    Original file line number Diff line number Diff line change
    @@ -88,7 +88,7 @@
    * Postgres
    ```shell
    sudo apt-get install postgresql libpq-dev
    sudo -u postgres createuser --superuser yourusername -w
    sudo -u postgres createuser --superuser `logname`
    ```

    * MySQL
  13. leesmith revised this gist May 18, 2012. 1 changed file with 15 additions and 12 deletions.
    27 changes: 15 additions & 12 deletions setup.md
    Original file line number Diff line number Diff line change
    @@ -85,15 +85,18 @@
    bundle config path vendor/bundle

    ### Databases and libraries
    * Postgres

    sudo apt-get install postgresql libpq-dev
    sudo -u postgres createuser --superuser yourusername -w

    * MySQL

    sudo apt-get install mysql-server mysql-client libmysqlclient-dev

    * Sqlite3

    sudo apt-get install sqlite3 libsqlite3-dev
    * Postgres
    ```shell
    sudo apt-get install postgresql libpq-dev
    sudo -u postgres createuser --superuser yourusername -w
    ```

    * MySQL
    ```shell
    sudo apt-get install mysql-server mysql-client libmysqlclient-dev
    ```

    * Sqlite3
    ```shell
    sudo apt-get install sqlite3 libsqlite3-dev
    ```
  14. leesmith revised this gist May 18, 2012. 1 changed file with 3 additions and 3 deletions.
    6 changes: 3 additions & 3 deletions setup.md
    Original file line number Diff line number Diff line change
    @@ -85,15 +85,15 @@
    bundle config path vendor/bundle

    ### Databases and libraries
    * Postgres
    * Postgres

    sudo apt-get install postgresql libpq-dev
    sudo -u postgres createuser --superuser yourusername -w

    * MySQL
    * MySQL

    sudo apt-get install mysql-server mysql-client libmysqlclient-dev

    * Sqlite3
    * Sqlite3

    sudo apt-get install sqlite3 libsqlite3-dev
  15. leesmith revised this gist May 18, 2012. 2 changed files with 99 additions and 78 deletions.
    99 changes: 99 additions & 0 deletions setup.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,99 @@
    # Ruby on Rails development setup on Ubuntu 12.04

    ### System update

    sudo apt-get update

    ### Install common libraries

    sudo apt-get install build-essential libreadline-dev libssl-dev zlib1g-dev libxml2-dev libxslt-dev

    ### Install all the things

    sudo apt-get install vim git-core gitg tmux

    ### Generate SSH keys

    ssh-keygen -t rsa -C "[email protected]"

    ### Add public key to github then test it out with this

    ssh -T [email protected]

    ### Set global git identity

    git config --global user.name "John Doe"
    git config --global user.email [email protected]

    ### Set default text editor for git

    git config --global core.editor vim

    ### Set git status colors

    git config --global color.diff auto
    git config --global color.status auto
    git config --global color.branch auto
    git config --global color.status.changed yellow
    git config --global color.status.added green
    git config --global color.status.untracked red

    ### Verify git settings

    git config --list

    ### Install rbenv

    git clone git://github.com/sstephenson/rbenv.git ~/.rbenv
    echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.profile
    echo 'eval "$(rbenv init -)"' >> ~/.profile
    exec $SHELL

    ### Install ruby-build

    mkdir ~/.rbenv/plugins
    git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
    exec $SHELL

    ### Install rbenv-bundler

    git clone git://github.com/carsomyr/rbenv-bundler.git ~/.rbenv/plugins/bundler
    gem install bundler
    rbenv rehash

    ### Install some rubies

    rbenv install 1.9.2-p320
    rbenv install 1.9.3-p194
    rbenv rehash

    ### Set a global ruby

    rbenv global 1.9.2-p320

    ### Turn off rdoc generation when installing/updating gems

    echo "install: --no-ri --no-rdoc" >> ~/.gemrc
    echo "update: --no-ri --no-rdoc" >> ~/.gemrc

    ### Install javascript runtime for rails projects

    sudo apt-get install nodejs

    ### Set global bundler gem install path after checking out a project with a Gemfile

    bundle config path vendor/bundle

    ### Databases and libraries
    * Postgres

    sudo apt-get install postgresql libpq-dev
    sudo -u postgres createuser --superuser yourusername -w

    * MySQL

    sudo apt-get install mysql-server mysql-client libmysqlclient-dev

    * Sqlite3

    sudo apt-get install sqlite3 libsqlite3-dev
    78 changes: 0 additions & 78 deletions setup.txt
    Original file line number Diff line number Diff line change
    @@ -1,78 +0,0 @@
    # system update
    sudo apt-get update

    # install vim
    sudo apt-get install vim

    # Generate SSH keys
    ssh-keygen -t rsa -C "[email protected]"

    # add key to github then test it out
    ssh -T [email protected]

    # install git and gitg
    sudo apt-get install git-core gitg

    # set global git identity
    git config --global user.name "John Doe"
    git config --global user.email [email protected]

    # set default text editor for git
    git config --global core.editor vim

    # set git status colors
    git config --global color.diff auto
    git config --global color.status auto
    git config --global color.branch auto
    git config --global color.status.changed yellow
    git config --global color.status.added green
    git config --global color.status.untracked red

    # verify git settings
    git config --list

    # install common libraries
    sudo apt-get install build-essential libreadline-dev libssl-dev zlib1g-dev libxml2-dev libxslt-dev

    # install rbenv
    git clone git://github.com/sstephenson/rbenv.git ~/.rbenv
    echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.profile
    echo 'eval "$(rbenv init -)"' >> ~/.profile
    exec $SHELL

    # install ruby-build
    mkdir ~/.rbenv/plugins
    git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
    exec $SHELL

    # install rbenv-bundler
    git clone git://github.com/carsomyr/rbenv-bundler.git ~/.rbenv/plugins/bundler
    gem install bundler
    rbenv rehash

    # install some rubies
    rbenv install 1.9.2-p320
    rbenv install 1.9.3-p194
    rbenv rehash

    # set a global ruby
    rbenv global 1.9.2-p320

    # Turn off rdoc generation when installing/updating gems
    echo "install: --no-ri --no-rdoc" >> ~/.gemrc
    echo "update: --no-ri --no-rdoc" >> ~/.gemrc

    # install javascript runtime
    sudo apt-get install nodejs

    # set global bundler config after checking out a project with a Gemfile
    bundle config path vendor/bundle


    # databases
    sudo apt-get install postgresql libpq-dev
    sudo -u postgres createuser --superuser lsmith -w

    sudo apt-get install mysql-server mysql-client libmysqlclient-dev

    sudo apt-get install sqlite3 libsqlite3-dev
  16. leesmith revised this gist May 17, 2012. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions setup.txt
    Original file line number Diff line number Diff line change
    @@ -38,10 +38,12 @@ sudo apt-get install build-essential libreadline-dev libssl-dev zlib1g-dev libxm
    git clone git://github.com/sstephenson/rbenv.git ~/.rbenv
    echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.profile
    echo 'eval "$(rbenv init -)"' >> ~/.profile
    exec $SHELL

    # install ruby-build
    mkdir ~/.rbenv/plugins
    git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build
    exec $SHELL

    # install rbenv-bundler
    git clone git://github.com/carsomyr/rbenv-bundler.git ~/.rbenv/plugins/bundler
  17. leesmith revised this gist May 17, 2012. 1 changed file with 8 additions and 9 deletions.
    17 changes: 8 additions & 9 deletions setup.txt
    Original file line number Diff line number Diff line change
    @@ -31,6 +31,9 @@ git config --global color.status.untracked red
    # verify git settings
    git config --list

    # install common libraries
    sudo apt-get install build-essential libreadline-dev libssl-dev zlib1g-dev libxml2-dev libxslt-dev

    # install rbenv
    git clone git://github.com/sstephenson/rbenv.git ~/.rbenv
    echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.profile
    @@ -40,8 +43,10 @@ echo 'eval "$(rbenv init -)"' >> ~/.profile
    mkdir ~/.rbenv/plugins
    git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build

    # install compiler and common libraries
    sudo apt-get install build-essential libreadline-dev libssl-dev zlib1g-dev libxml2-dev libxslt-dev
    # install rbenv-bundler
    git clone git://github.com/carsomyr/rbenv-bundler.git ~/.rbenv/plugins/bundler
    gem install bundler
    rbenv rehash

    # install some rubies
    rbenv install 1.9.2-p320
    @@ -55,17 +60,11 @@ rbenv global 1.9.2-p320
    echo "install: --no-ri --no-rdoc" >> ~/.gemrc
    echo "update: --no-ri --no-rdoc" >> ~/.gemrc

    # install rbenv-bundler
    git clone git://github.com/carsomyr/rbenv-bundler.git ~/.rbenv/plugins/bundler
    gem install bundler
    rbenv rehash

    # install javascript runtime
    sudo apt-get install nodejs

    # set global bundler config
    # set global bundler config after checking out a project with a Gemfile
    bundle config path vendor/bundle
    bundle config disable_shared_gems


    # databases
  18. leesmith created this gist May 16, 2012.
    77 changes: 77 additions & 0 deletions setup.txt
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,77 @@
    # system update
    sudo apt-get update

    # install vim
    sudo apt-get install vim

    # Generate SSH keys
    ssh-keygen -t rsa -C "[email protected]"

    # add key to github then test it out
    ssh -T [email protected]

    # install git and gitg
    sudo apt-get install git-core gitg

    # set global git identity
    git config --global user.name "John Doe"
    git config --global user.email [email protected]

    # set default text editor for git
    git config --global core.editor vim

    # set git status colors
    git config --global color.diff auto
    git config --global color.status auto
    git config --global color.branch auto
    git config --global color.status.changed yellow
    git config --global color.status.added green
    git config --global color.status.untracked red

    # verify git settings
    git config --list

    # install rbenv
    git clone git://github.com/sstephenson/rbenv.git ~/.rbenv
    echo 'export PATH="$HOME/.rbenv/bin:$PATH"' >> ~/.profile
    echo 'eval "$(rbenv init -)"' >> ~/.profile

    # install ruby-build
    mkdir ~/.rbenv/plugins
    git clone git://github.com/sstephenson/ruby-build.git ~/.rbenv/plugins/ruby-build

    # install compiler and common libraries
    sudo apt-get install build-essential libreadline-dev libssl-dev zlib1g-dev libxml2-dev libxslt-dev

    # install some rubies
    rbenv install 1.9.2-p320
    rbenv install 1.9.3-p194
    rbenv rehash

    # set a global ruby
    rbenv global 1.9.2-p320

    # Turn off rdoc generation when installing/updating gems
    echo "install: --no-ri --no-rdoc" >> ~/.gemrc
    echo "update: --no-ri --no-rdoc" >> ~/.gemrc

    # install rbenv-bundler
    git clone git://github.com/carsomyr/rbenv-bundler.git ~/.rbenv/plugins/bundler
    gem install bundler
    rbenv rehash

    # install javascript runtime
    sudo apt-get install nodejs

    # set global bundler config
    bundle config path vendor/bundle
    bundle config disable_shared_gems


    # databases
    sudo apt-get install postgresql libpq-dev
    sudo -u postgres createuser --superuser lsmith -w

    sudo apt-get install mysql-server mysql-client libmysqlclient-dev

    sudo apt-get install sqlite3 libsqlite3-dev