This repository was archived by the owner on Dec 12, 2021. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 174
Server Setup
ryanb edited this page Dec 7, 2010
·
14 revisions
These are the steps I took to set up the Railscasts site on a Linode with Ubuntu 10.04 LTS installed.
passwd aptitude update locale-gen en_US.UTF-8 /usr/sbin/update-locale LANG=en_US.UTF-8 aptitude safe-upgrade aptitude full-upgrade
aptitude install build-essential bison openssl libreadline6 libreadline6-dev curl git-core zlib1g zlib1g-dev libssl-dev libyaml-dev libsqlite3-0 libsqlite3-dev sqlite3 libxml2-dev libxslt-dev autoconf bash < <( curl -L http://bit.ly/rvm-install-system-wide )
adduser rbates usermod -aG rvm rbates visudo # rbates ALL=(ALL) ALL mkdir /home/rbates/.ssh chown -R rbates:rbates /home/rbates/.ssh chmod 700 /home/rbates/.ssh exit
scp ~/.ssh/id_rsa.pub railscasts.com:~/.ssh/authorized_keys ssh railscasts.com
echo [[ -s "/usr/local/lib/rvm" ]] && source "/usr/local/lib/rvm"' >> ~/.bashrc rvm install 1.9.2 rvm use 1.9.2 --default
git clone git://github.com/ryanb/dotfiles ~/.dotfiles cd ~/.dotfiles rake install echo [[ -s "/usr/local/lib/rvm" ]] && source "/usr/local/lib/rvm"' >> ~/.localrc sudo aptitude install zsh chsh -s /bin/zsh
aptitude install apache2 apache2.2-common apache2-mpm-prefork apache2-utils libexpat1 ssl-cert libcurl4-openssl-dev apache2-prefork-dev libapr1-dev libaprutil1-dev apache2ctl graceful gem install passenger passenger-install-apache2-module
sudo passenger-install-apache2-module sudo vim /etc/apache2/apache2.conf # copy as instructed by installer sudo /etc/init.d/apache2 restart