Skip to content

Instantly share code, notes, and snippets.

@denis
Created June 10, 2009 12:58

Revisions

  1. denis revised this gist Jun 10, 2009. 1 changed file with 1 addition and 0 deletions.
    1 change: 1 addition & 0 deletions ubuntu_8.10_server_setup.markdown
    Original file line number Diff line number Diff line change
    @@ -45,6 +45,7 @@ Add GitHub to RubyGems sources:

    - Where is group `admin`?
    - perl -pi -e 's/PermitRootLogin yes/PermitRootLogin no/' /etc/ssh/sshd_config
    - sudo passenger-install-nginx-module (sudo: passenger-install-nginx-module: command not found)

    ## Links
    - http://github.com/jnstq/rails-nginx-passenger-ubuntu/tree/master
  2. denis revised this gist Jun 10, 2009. 1 changed file with 2 additions and 2 deletions.
    4 changes: 2 additions & 2 deletions ubuntu_8.10_server_setup.markdown
    Original file line number Diff line number Diff line change
    @@ -23,8 +23,8 @@ Install Phusion Passenger gem:

    Install Ruby Enterprise Edition:

    wget -P /tmp http://rubyforge.org/frs/download.php/55512/ruby-enterprise_1.8.6-20090421_amd64.deb
    dpkg -i /tmp/ruby-enterprise_1.8.6-20090421_amd64.deb
    wget -P /tmp http://www.rubyenterpriseedition.com/ruby-enterprise_1.8.6-20090610_amd64.deb
    dpkg -i /tmp/ruby-enterprise_1.8.6-20090610_amd64.deb

    Set Ruby Enterprise Edition as the default Ruby interpreter:

  3. denis created this gist Jun 10, 2009.
    51 changes: 51 additions & 0 deletions ubuntu_8.10_server_setup.markdown
    Original file line number Diff line number Diff line change
    @@ -0,0 +1,51 @@
    Ubuntu 8.10 Server Setup
    ========================

    Update system:

    aptitude update
    aptitude -y safe-upgrade

    aptitude install -y build-essential

    Install Ruby:

    aptitude -y install ruby irb rdoc rubygems ruby-dev libopenssl-ruby

    Update RubyGems:

    gem install rubygems-update
    /var/lib/gems/1.8/bin/update_rubygems

    Install Phusion Passenger gem:

    gem install passenger --no-ri --no-rdoc

    Install Ruby Enterprise Edition:

    wget -P /tmp http://rubyforge.org/frs/download.php/55512/ruby-enterprise_1.8.6-20090421_amd64.deb
    dpkg -i /tmp/ruby-enterprise_1.8.6-20090421_amd64.deb

    Set Ruby Enterprise Edition as the default Ruby interpreter:

    echo 'PATH="/opt/ruby-enterprise/bin:/usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games"' > /etc/environment

    Install Phusion Passenger Nginx module:

    aptitude -y install zlib1g-dev
    passenger-install-nginx-module

    Configure Nginx:
    TODO

    Add GitHub to RubyGems sources:
    gem sources -a http://gems.github.com

    ## TODO

    - Where is group `admin`?
    - perl -pi -e 's/PermitRootLogin yes/PermitRootLogin no/' /etc/ssh/sshd_config

    ## Links
    - http://github.com/jnstq/rails-nginx-passenger-ubuntu/tree/master
    - http://articles.slicehost.com/2009/3/4/ubuntu-intrepid-adding-an-nginx-init-script