Skip to content

Instantly share code, notes, and snippets.

@techapj
Forked from olistik/gist:2627011
Created October 21, 2013 18:12
Show Gist options
  • Select an option

  • Save techapj/7088358 to your computer and use it in GitHub Desktop.

Select an option

Save techapj/7088358 to your computer and use it in GitHub Desktop.

Revisions

  1. @olistik olistik revised this gist Oct 20, 2013. 1 changed file with 6 additions and 6 deletions.
    12 changes: 6 additions & 6 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -35,7 +35,7 @@ echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bashrc
    exec $SHELL
    ```

    ### latest ruby (1.9.3-p194)
    ### latest ruby (2.0.0-p247)

    * Install the pre-requisites:
    ```shell
    @@ -44,8 +44,8 @@ sudo apt-get install zlib1g-dev build-essential libssl-dev libreadline-dev

    * Install the interpreter:
    ```shell
    rbenv install 1.9.3-p194
    rbenv global 1.9.3-p194
    rbenv install 2.0.0-p247
    rbenv global 2.0.0-p247
    ruby -v
    ```

    @@ -56,8 +56,8 @@ ruby -v
    sudo apt-get install build-essential openssl libreadline6 libreadline6-dev git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion pkg-config
    curl -L https://get.rvm.io | bash -s stable
    exec $SHELL
    rvm install 2.0.0
    rvm use 2.0.0 --default
    rvm install ruby
    rvm use ruby --default
    ruby -v
    ```

    @@ -66,7 +66,7 @@ ruby -v
    echo "gem: --no-ri --no-rdoc" > ~/.gemrc
    ```

    * Install the latest rails (3.2.12):
    * Install the latest rails (4.0.0):
    ```shell
    gem i bundler rails
    ```
  2. Maurizio De Magnis revised this gist Mar 9, 2013. 1 changed file with 3 additions and 2 deletions.
    5 changes: 3 additions & 2 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -56,7 +56,8 @@ ruby -v
    sudo apt-get install build-essential openssl libreadline6 libreadline6-dev git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion pkg-config
    curl -L https://get.rvm.io | bash -s stable
    exec $SHELL
    rvm install 1.9.3 --default
    rvm install 2.0.0
    rvm use 2.0.0 --default
    ruby -v
    ```

    @@ -65,7 +66,7 @@ ruby -v
    echo "gem: --no-ri --no-rdoc" > ~/.gemrc
    ```

    * Install the latest rails (3.2.3):
    * Install the latest rails (3.2.12):
    ```shell
    gem i bundler rails
    ```
  3. Maurizio De Magnis revised this gist Mar 9, 2013. 1 changed file with 6 additions and 6 deletions.
    12 changes: 6 additions & 6 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -1,4 +1,4 @@
    # Ubuntu 12.10 setup (rbenv/rvm, janus, postgres)
    # Ubuntu 12.10 setup ([rbenv](https://github.com/sstephenson/rbenv)/[RVM](https://github.com/wayneeseguin/rvm), [Janus](https://github.com/carlhuda/janus), [PostgreSQL](http://www.postgresql.org/))

    ## Basic pre-requisites

    @@ -13,9 +13,9 @@ sudo apt-get install xclip
    echo "alias clipboard='xclip -sel clip'" >> ~/.bashrc
    ```

    You can use rbenv OR rvm, they're mutually exclusive. Feel free to choose the one that fits your needs.
    You can use [rbenv](https://github.com/sstephenson/rbenv) OR [RVM](https://github.com/wayneeseguin/rvm), they're mutually exclusive. Feel free to choose the one that fits your needs.

    ## rbenv
    ## [rbenv](https://github.com/sstephenson/rbenv)

    ```shell
    cd
    @@ -49,7 +49,7 @@ rbenv global 1.9.3-p194
    ruby -v
    ```

    ## RVM
    ## [RVM](https://github.com/wayneeseguin/rvm)

    * install the pre-requisites:
    ```shell
    @@ -70,7 +70,7 @@ echo "gem: --no-ri --no-rdoc" > ~/.gemrc
    gem i bundler rails
    ```

    ## janus (vim)
    ## [Janus](https://github.com/carlhuda/janus) (vim)

    ```shell
    sudo apt-get install curl
    @@ -108,7 +108,7 @@ ssh -T [email protected]
    * curb: libcurl4-gnutls-dev
    * rmagick: graphicsmagick-libmagick-dev-compat libmagickwand-dev

    ## Postgres setup
    ## [PostgreSQL](http://www.postgresql.org/) setup

    ```shell
    sudo -u postgres createuser olistik
  4. Maurizio De Magnis revised this gist Mar 9, 2013. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -4,7 +4,7 @@

    * Some utilities:
    ```shell
    sudo apt-get install vim tmux git
    sudo apt-get install vim tmux git curl
    ```

    * Copy/paste from the command line:
    @@ -53,7 +53,7 @@ ruby -v

    * install the pre-requisites:
    ```shell
    sudo apt-get install build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion pkg-config
    sudo apt-get install build-essential openssl libreadline6 libreadline6-dev git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion pkg-config
    curl -L https://get.rvm.io | bash -s stable
    exec $SHELL
    rvm install 1.9.3 --default
  5. Maurizio De Magnis revised this gist Jan 25, 2013. 1 changed file with 5 additions and 4 deletions.
    9 changes: 5 additions & 4 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -111,11 +111,12 @@ ssh -T [email protected]
    ## Postgres setup

    ```shell
    sudo -u postgres createuser --superuser olistik
    sudo -u postgres psql postgres
    sudo -u postgres createuser olistik
    sudo -u postgres psql
    postgres=# \password olistik

    createdb application_development
    postgres=# create database myapp_development;
    CREATE DATABASE
    postgres=# grant all privileges on database myapp_development to olistik;
    ```

    ```shell
  6. Maurizio De Magnis revised this gist Jan 22, 2013. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -1,3 +1,5 @@
    # Ubuntu 12.10 setup (rbenv/rvm, janus, postgres)

    ## Basic pre-requisites

    * Some utilities:
  7. Maurizio De Magnis revised this gist Jan 22, 2013. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -104,6 +104,7 @@ ssh -T [email protected]
    * sqlite3: sqlite3 libsqlite3-dev
    * capybara-webkit: libqt4-dev g++
    * curb: libcurl4-gnutls-dev
    * rmagick: graphicsmagick-libmagick-dev-compat libmagickwand-dev

    ## Postgres setup

  8. Maurizio De Magnis revised this gist Dec 7, 2012. 1 changed file with 2 additions and 0 deletions.
    2 changes: 2 additions & 0 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -11,6 +11,8 @@ sudo apt-get install xclip
    echo "alias clipboard='xclip -sel clip'" >> ~/.bashrc
    ```

    You can use rbenv OR rvm, they're mutually exclusive. Feel free to choose the one that fits your needs.

    ## rbenv

    ```shell
  9. Maurizio De Magnis revised this gist Oct 10, 2012. 1 changed file with 1 addition and 3 deletions.
    4 changes: 1 addition & 3 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -51,10 +51,8 @@ ruby -v
    ```shell
    sudo apt-get install build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion pkg-config
    curl -L https://get.rvm.io | bash -s stable
    echo '[[ -s "/home/olistik/.rvm/scripts/rvm" ]] && source "/home/olistik/.rvm/scripts/rvm"' >> ~/.bashrc
    exec $SHELL
    rvm pkg install readline
    rvm install 1.9.3 --with-readline-dir=$rvm_path/usr
    rvm install 1.9.3 --default
    ruby -v
    ```

  10. Maurizio De Magnis revised this gist Oct 6, 2012. 1 changed file with 15 additions and 2 deletions.
    17 changes: 15 additions & 2 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -21,7 +21,7 @@ echo 'eval "$(rbenv init -)"' >> ~/.bashrc
    exec $SHELL
    ```

    ## ruby-build
    ### ruby-build

    ```shell
    mkdir -p ~/.rbenv/plugins
    @@ -31,7 +31,7 @@ echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bashrc
    exec $SHELL
    ```

    ## latest ruby (1.9.3-p194)
    ### latest ruby (1.9.3-p194)

    * Install the pre-requisites:
    ```shell
    @@ -45,6 +45,19 @@ rbenv global 1.9.3-p194
    ruby -v
    ```

    ## RVM

    * install the pre-requisites:
    ```shell
    sudo apt-get install build-essential openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf libc6-dev ncurses-dev automake libtool bison subversion pkg-config
    curl -L https://get.rvm.io | bash -s stable
    echo '[[ -s "/home/olistik/.rvm/scripts/rvm" ]] && source "/home/olistik/.rvm/scripts/rvm"' >> ~/.bashrc
    exec $SHELL
    rvm pkg install readline
    rvm install 1.9.3 --with-readline-dir=$rvm_path/usr
    ruby -v
    ```

    * Don't require rdoc and ri when installing gems:
    ```shell
    echo "gem: --no-ri --no-rdoc" > ~/.gemrc
  11. Maurizio De Magnis revised this gist Sep 26, 2012. 1 changed file with 4 additions and 1 deletion.
    5 changes: 4 additions & 1 deletion gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -62,9 +62,10 @@ sudo apt-get install curl
    curl -Lo- http://bit.ly/janus-bootstrap | bash
    ```

    ## Github configuration
    ## Git/Github configuration

    ```shell
    git config --global color.ui true
    git config --global user.name "Maurizio De Magnis"
    git config --global user.email "[email protected]"
    ssh-keygen -t rsa -C "[email protected]"
    @@ -88,6 +89,8 @@ ssh -T [email protected]
    * rails related: nodejs
    * mysql: mysql-server mysql-client libmysqlclient-dev
    * sqlite3: sqlite3 libsqlite3-dev
    * capybara-webkit: libqt4-dev g++
    * curb: libcurl4-gnutls-dev

    ## Postgres setup

  12. Maurizio De Magnis revised this gist May 7, 2012. 1 changed file with 46 additions and 9 deletions.
    55 changes: 46 additions & 9 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -1,57 +1,87 @@
    sudo apt-get install
    vim
    tmux
    git
    ## Basic pre-requisites

    * Some utilities:
    ```shell
    sudo apt-get install vim tmux git
    ```

    * Copy/paste from the command line:
    ```shell
    sudo apt-get install xclip
    echo "alias clipboard='xclip -sel clip'" >> ~/.bashrc
    ```

    ## rbenv

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

    ## ruby-build

    ```shell
    mkdir -p ~/.rbenv/plugins
    cd ~/.rbenv/plugins
    git clone git://github.com/sstephenson/ruby-build.git
    echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bashrc
    exec $SHELL
    ```

    ## latest ruby (1.9.3-p194)

    * Install the pre-requisites:
    ```shell
    sudo apt-get install zlib1g-dev build-essential libssl-dev libreadline-dev
    ```

    * Install the interpreter:
    ```shell
    rbenv install 1.9.3-p194
    rbenv global 1.9.3-p194
    ruby -v
    ```

    * Don't require rdoc and ri when installing gems:
    ```shell
    echo "gem: --no-ri --no-rdoc" > ~/.gemrc
    ```

    * Install the latest rails (3.2.3):
    ```shell
    gem i bundler rails
    ```

    ## janus (vim)

    ```shell
    sudo apt-get install curl
    curl -Lo- http://bit.ly/janus-bootstrap | bash
    ```

    ## Github configuration

    ```shell
    git config --global user.name "Maurizio De Magnis"
    git config --global user.email "[email protected]"
    ssh-keygen -t rsa -C "[email protected]"
    ```

    sudo apt-get install xclip
    echo "alias clipboard='xclip -sel clip'" >> ~/.bashrc

    ```shell
    cat ~/.ssh/id_rsa.pub | clipboard
    ```

    ### add it to your [GitHub ssh account page](https://github.com/settings/ssh)
    * Add it to your [GitHub ssh account page](https://github.com/settings/ssh)

    * Test if it works:
    ```shell
    ssh -T [email protected]
    ```

    ## system dependencies for peculiar gems
    ## System dependencies for peculiar gems

    * nokogiri: libxml2-dev libxslt1-dev
    * pg: postgresql libpq-dev
    @@ -61,19 +91,26 @@ ssh -T [email protected]

    ## Postgres setup

    ```shell
    sudo -u postgres createuser --superuser olistik
    sudo -u postgres psql postgres
    postgres=# \password olistik

    createdb application_development
    ```

    ```shell
    bundle exec rails dbconsole
    # pass
    ```

    ## Shared folder setup (virtualbox)

    ```shell
    cd
    pwd # /home/olistik
    mkdir projects
    id # uid=1000,gid=1000,...
    sudo echo "projects /home/olistik/projects vboxsf uid=1000,gid=1000,rw 0 0" >> /etc/fstab
    sudo mount projects
    ```
  13. Maurizio De Magnis created this gist May 7, 2012.
    79 changes: 79 additions & 0 deletions gistfile1.md
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,79 @@
    sudo apt-get install
    vim
    tmux
    git

    ## rbenv

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

    ## ruby-build

    mkdir -p ~/.rbenv/plugins
    cd ~/.rbenv/plugins
    git clone git://github.com/sstephenson/ruby-build.git
    echo 'export PATH="$HOME/.rbenv/plugins/ruby-build/bin:$PATH"' >> ~/.bashrc
    exec $SHELL

    ## latest ruby (1.9.3-p194)

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

    rbenv install 1.9.3-p194
    rbenv global 1.9.3-p194
    ruby -v

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

    gem i bundler rails

    ## janus (vim)

    sudo apt-get install curl
    curl -Lo- http://bit.ly/janus-bootstrap | bash

    ## Github configuration

    git config --global user.name "Maurizio De Magnis"
    git config --global user.email "[email protected]"
    ssh-keygen -t rsa -C "[email protected]"

    sudo apt-get install xclip
    echo "alias clipboard='xclip -sel clip'" >> ~/.bashrc

    cat ~/.ssh/id_rsa.pub | clipboard

    ### add it to your [GitHub ssh account page](https://github.com/settings/ssh)

    ssh -T [email protected]

    ## system dependencies for peculiar gems

    * nokogiri: libxml2-dev libxslt1-dev
    * pg: postgresql libpq-dev
    * rails related: nodejs
    * mysql: mysql-server mysql-client libmysqlclient-dev
    * sqlite3: sqlite3 libsqlite3-dev

    ## Postgres setup

    sudo -u postgres createuser --superuser olistik
    sudo -u postgres psql postgres
    postgres=# \password olistik

    createdb application_development

    bundle exec rails dbconsole
    # pass

    ## Shared folder setup (virtualbox)
    cd
    pwd # /home/olistik
    mkdir projects
    id # uid=1000,gid=1000,...
    sudo echo "projects /home/olistik/projects vboxsf uid=1000,gid=1000,rw 0 0" >> /etc/fstab
    sudo mount projects