skater coder

angela chng – Ruby on Rails / PHP web developer & skater girl in Singapore

  • blogabout stuff
  • aboutthis website
  • contactdrop a message

These are the posts from November 2008

November 25, 2008
Posted by roadburn

Installing Ruby on Rails on Fedora 9 with Nginx, Thin and Git

Setting up fedora first
rpm –import /etc/pki/rpm-gpg/RPM-GPG-KEY*
sudo yum update
sudo yum install fetchmail wget bzip2 unzip zip nmap openssl lynx fileutils ncftp gcc gcc-c++

Install Ruby
sudo yum install ruby ruby-devel rdoc irb

Install rubygems
Download from http://rubyforge.org/frs/?group_id=126
tar xzvf rubygems*.tgz
cd rubygems*
sudo ruby setup.rb

Install Rails
sudo gem install rails

Install postfix and svn
sudo yum install postfix subversion

Install MySQL
sudo yum install mysql mysql-devel mysql-server
chkconfig –levels 235 mysqld on
sudo /etc/init.d/mysqld start
sudo /sbin/service mysqld start
sudo mysqladmin -u root password ‘new-password’
sudo yum install libmysql-ruby1.8
sudo gem install mysql

Install Nginx
sudo yum install nginx
sudo /etc/init.d/nginx start

Install Thin
sudo gem install eventmachine
sudo gem install thin
sudo thin install
sudo /sbin/chkconfig –level 345 thin on

Install Git
sudo yum install git

No Comments

Posted Under Rails

November 19, 2008
Posted by roadburn

Installing Webmin / Virtualmin on Slicehost Ubuntu 8.04

After trying out various web control panels, I finally settled on webmin.

I was looking for an open source / free web control panel that would allow users easily set up websites via virtual hosts and ftp accounts

Here are the steps to get it up and running quickly. This has to be done on a fresh new slice and not one that is already hosting other websites.

  1. This assumes you have created a Ubuntu 8.04 slice 
  2. Set it up as per instructions here: 
    http://articles.slicehost.com/2008/4/25/ubuntu-hardy-setup-page-1
    http://articles.slicehost.com/2008/4/25/ubuntu-hardy-setup-page-2 
  3. The fastest way to set up Virtualmin using the install script:
    http://www.webmin.com/vinstall.html

    $ wget http://software.virtualmin.com/gpl/scripts/install.sh
    $ chmod +x install.sh
    $ sudo ./install.sh 

    That’s all! You’ll be able to view your site via https://xxx.xxx.xxx.xxx:10000
     

  4. I’ve managed to set it up with rails too following the instructions here:
    http://articles.slicehost.com/2008/5/6/ubuntu-hardy-apache-rails-and-thin

No Comments

Posted Under Rails

November 14, 2008
Posted by roadburn

ISPConfig on Ubuntu on Slicehost

http://ispconfig.com/manual_installation.htm

http://www.howtoforge.com/perfect-server-ubuntu8.04-lts

If you hit some errors, u probably forgot some of this:

http://www.howtoforge.com/forums/showthread.php?t=9582&

rm /bin/sh (or if you want to be safe: mv /bin/sh /bin/sh.dash)
ln -s /bin/bash /bin/sh

aptitude install libmysql++-dev

aptitude install mysql-server mysql-client libmysqlclient15-dev

aptitude install libhtml-parser-perl libdb-file-lock-perl libnet-dns-perl

/etc/ftpd.conf

enable local_umask = 022

To uninstall (if you hit errors and need to reinstall)

rm -rf /root/ispconfig
rm -rf /home/admispconfig

Setting up your domains to point correctly

http://www.howtoforge.com/ispconfig_dns_providerdomain_schlund

use everydns.com if you need to

Proftpd

DefaultRoot ~
IdentLookups off
ServerIdent on “FTP Server ready.”

No Comments

Posted Under Sharepoint

November 6, 2008
Posted by roadburn

Time zone for pre Rails 2.1

http://blog.caboo.se/articles/2007/2/23/adding-timezone-to-your-rails-app

http://weblog.redlinesoftware.com/2007/6/18/rails-timezone-s

For rails 2.1 onwards, just change environment.rb

eg.

config.time_zone = ‘Singapore’

No Comments

Posted Under Sharepoint

November 4, 2008
Posted by roadburn

Install RMagick on Ubuntu Hardy Heron

sudo aptitude install imagemagick

sudo aptitude install libmagick9-dev

sudo gem install rmagick

sudo gem install mini_magick

Install RMagick on OSX

http://benr75.com/articles/2008/03/16/install-rmagick-on-mac-os-x-leopard-from-source

No Comments

Posted Under Sharepoint

  • CATEGORIES
    • Coding Tips
    • Food
    • Portfolio
    • Rails
    • Sharepoint
    • Wordpress

  • TAGS
    activities AD ADAM ajax architecture authentication bluehost books custom application custom form date design disk partition ECTS event id eventid moss forum guid hotfix iis imap keberos list id lists masterpage moss mysite profiles Rails rails 2.0 reporting services ruby Sharepoint sharepoint 2007 site templates site usage sql server 2005 time updates vhd virtual pc visual studio webparts workflow wss

Subscribe via RSS