Apache Configuration Virtual Hosts(sites-available & sites-active):

Security: (SSH Keys):
http://cloudservers.rackspacecloud.com/index.php/BasicCloudServerSecurity
IPTables :
http://cloudservers.rackspacecloud.com/index.php/Sampleiptables_ruleset
APT-GET Repositories : For some reason the ubunto distro 9.04 didn’t have these added to its apt-get sources.list. So I added them.
deb http://us.archive.ubuntu.com/ubuntu/ hardy universe deb-src http://us.archive.ubuntu.com/ubuntu/ hardy universe deb http://us.archive.ubuntu.com/ubuntu/ hardy-updates universe deb-src http://us.archive.ubuntu.com/ubuntu/ hardy-updates universe
Installing Ruby:
sudo apt-get install build-essential libssl-dev libreadline5 libreadline5-dev zlib1g zlib1g-dev mkdir ~/src && cd ~/src wget ftp://ftp.ruby-lang.org/pub/ruby/1.9/ruby-1.9.1-p0.tar.gz tar -xvf ruby-1.9.1-p0.tar.gz cd ruby-1.9.1-p0 ./configure make make test sudo make install
Install Git Install Rails
sudo gem update –system sudo gem install rails
Install Ruby Mysql Modul
sudo gem install mysql

Install Pecl src : http://www.markfosteronline.com/2009/01/04/how-to-install-a-php-pecl-extensionmodule-on-ubuntu/

  • sudo apt-get install php-pear
  • sudo apt-get install php5-dev
  • sudo apt-get install libcurl4-openssl-dev
  • sudo pecl install pecl_http     just hit enter and use defaults

Monitor ETH Port

  • Use tcpdump -i eth0   to watch the ports
Install DTach – which allows you to run a session in a console, then dtach it, then go to another pc/console and attach.
  • apt-get install dtach
  • ex: dtach -A sessionname program arguments
    • press ctrl+\ to detach it from the terminal
    • then (from another computer or terminal) run “dtach -a sessionname”
  • ex:
    • dtach -A MyBashSession bash -l
    • [press ctrl+]
    • dtach -a MyBashSession
MySQL / Socket Not Found
  • sudo /etc/init.d/service mysql start
Install Zip
  • pecal install zip
  • * If it fails because of some error on expected = “” sudo apt-get install libpcre3-dev
Sources: http://rudygems.com/post/99075288/ruby-191-install