ServerForm
Name Research Informatics Linux Server #01
Aliases

Operating System OsLinux? , OsUbuntuLinux? version 8.04 (server)
IP Address(es) 10.1.70.132
Virtualization VMWare
Monitoring status Adequately monitored

Build/Configuration Notebook

Ruby 1.8.6

sudo apt-get install ruby
sudo apt-get install irb
sudo apt-get install rubygems
sudo apt-get install ruby1.8-dev

Ruby on Rails

sudo gem install rails --version 2.1.0
sudo gem install rails --version 2.0.2
sudo gem install rake
sudo apt-get install rake
sudo gem install redcloth

Apache2

sudo apt-get install apache2
sudo apt-get install apache2-prefork-dev

Passenger (Rails autodeployment to Apache2)

sudo apt-get install gcc make libc6-dev g++ automake autoconf
sudo gem install passenger
sudo chmod +x /var/lib/gems/1.8/gems/passenger-2.0.1/bin/passenger-install-apache2-module
sudo /var/lib/gems/1.8/gems/passenger-2.0.1/bin/passenger-install-apache2-module
Placed the following directives in /etc/apache2/conf.d/modrails.conf:
   LoadModule passenger_module /var/lib/gems/1.8/gems/passenger-2.0.2/ext/apache2/mod_passenger.so
   PassengerRoot /var/lib/gems/1.8/gems/passenger-2.0.2
   PassengerRuby /usr/bin/ruby1.8
Placed the following directive in /etc/apache2/sites-available/default after the DocumentRoot directive:
   RailsBaseURI /phastdev

sudo apache2ctl restart

MySQL

sudo apt-get install mysql-server mysql-client
sudo ln -s /var/run/mysqld/mysqld.sock /tmp/mysql.sock
sudo apt-get install libmysqlclient15-dev
sudo gem install mysql

Migrating PhaST (dev) from sandbox to RESC3LINUX01?

Rails Application:
   sudo su -
   scp -r nchricor@nchricore.org:rails/phastdev /rails
   ln -s /rails/phastdev/public/ /var/www/phastdev 

MySQL Database:

   mysqladmin create phastdev
   mysql -u root
      create user phastdev identified by '***';
      grant all on phastdev.* to 'phastdev'@'localhost'; 
   ssh nchricor@nchricore.org mysqldump nchricor_phastdev -p | mysql -u root phastdev

Subversion and Repository

Followed instructions from http://davidwinter.me.uk/articles/2006/02/16/subversion-over-apache-2-on-ubuntu/
   sudo apt-get install subversion 
   sudo apt-get install libapache2-svn
   sudo a2enmod dav_svn
   ...   
   chmod -R g+rws /svn-repos/
   svnadmin create /svn-repos
   svn mkdir file://localhost/svn-repos/projects
   svn mkdir file://localhost/svn-repos/projects/phast-web

SMS Messaging Support

sudo gem install clickatell

Zabbix Monitoring

Followed instructions from http://www.zabbix.com/wiki/doku.php?id=howto:ubuntuinstall

ImageMagick and RMagick

sudo apt-get install imagemagick
sudo gem install rmagick
sudo apt-get install librmagick-ruby1.8
Ooops! See http://blog.inlet-media.de/rmagick-does-not-play-well-on-ubuntu

Miscellaneous

  • sudo apt-get install zip

Enabling Time Synchronization

echo "ntpdate ntp.ubuntu.com" > /etc/cron.daily/ntpdate
chmod 755 /etc/cron.daily/ntpdate
Topic revision: r3 - 25 Sep 2008 - 18:40:57 - EricKramer
 
This site is powered by the TWiki collaboration platformCopyright © by the contributing authors. All material on this collaboration platform is the property of the contributing authors.
Ideas, requests, problems regarding TWiki? Send feedback