msgbartop
Useful MOSS 2007 and Ruby and Rails stuff
msgbarbottom

25 Nov 08 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

19 Nov 08 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

Tags: ,

14 Nov 08 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.”

06 Nov 08 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’

04 Nov 08 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

Tags:

This blog is multi language by p.osting.it's Babel