Vanilla 1.1.2 is a product of Lussumo. More Information: Documentation, Community Support.
Install Ubuntu Server 8.04
Host Name: cit
User Name: cit
Default options for everything else
Install Needed Ubuntu Packages
sudo aptitude update
sudo aptitude full-upgrade
sudo aptitude install openssh-server openssl apache2 apache2-threaded-dev mysql-server libmysqlclient15-dev imagemagick libmagick9-dev ruby-full rubygems rails build-essential linux-headers-$(uname -r) git-core subversion
Install VMWare Tools (If you are using a VM)
Click install VM Tools from VM menu
cd ~/
sudo mount /dev/cdrom /media/cdrom
sudo cp /media/cdrom/VMwareTools*.tar.gz ~/
tar xvf VMwareTools*.tar.gz
cd ~/vmware-tools-distrib
sudo ./vmware-install.pl
During vmware-install.pl, choose the default answers to everything (just hit the <enter> key).
Install Needed Ruby Gems (make sure to install the ruby version of each gem and latest version)
sudo gem update
sudo gem install fastercsv mongrel gchartrb tzinfo test-spec eventmachine icalendar ferret json rmagick ZenTest mysql -r
sudo /var/lib/gems/1.8/bin/passenger-install-apache2-module
Create MySql Datbase
echo "CREATE DATABASE cit DEFAULT CHARACTER SET utf8 COLLATE utf8_general_ci; GRANT ALL ON cit.* TO 'cit'@'localhost' IDENTIFIED BY 'cit'; FLUSH PRIVILEGES;" | mysql -u root -p
Install ClockingIT
cd /home/cit
git clone git://repo.clockingit.com/cit
Setup Clocking IT
cd /home/cit/cit
ruby setup.rb
default options for eveything except make sure to load the DB schema when asked
Configuring Mail Support (settings depend on your network setup)
sudo dpkg-reconfigure exim4-config
Start ClockingIT with Mongrel (Skip this if you want to use Apache)
cd /home/cit/cit
./script/ferret_server -e production start
nohup ./script/push_server &
./script/server production
Install mod_rails for Apache2
sudo gem install passenger
sudo /var/lib/gems/1.8/bin/passenger-install-apache2-module
nano touch /etc/apache2/mods-available/passenger.load
LoadModule passenger_module /var/lib/gems/1.8/gems/passenger-2.0.1/ext/apache2/mod_passenger.so
PassengerRoot /var/lib/gems/1.8/gems/passenger-2.0.1
PassengerRuby /usr/bin/ruby1.8
^O to save ^X to quit nano
Install Webmin
perl libnet-ssleay-perl openssl libauthen-pam-perl libpam-runtime libio-pty-perl libmd5-perl
cd /home/cit
wget http://prdownloads.sourceforge.net/webadmin/webmin_1.420_all.deb
sudo dpkg -i webmin_1.420_all.deb
rm webmin*.deb
Configuring Apache2 for ClockingIT using Webmin
Login to Webmin (https://projects.mycompany.com:10000)
Under Servers -> Apache Webserver -> Global Configuration -> Configure Apacahe Modules
check passenger and rewrite
click Enable Selected Modules
Under Servers -> Apache Webserver -> Create virtual host
set Document Root to /home/cit/cit/public
set Server Name to projects.mycompany.com
click Create Now
Under Servers -> Apache Webserver -> Virtual Server - projects.mycompany.com -> Edit Directives
add following line under ServerName
RailsBaseURI /rails
click Save
Stop and Start Apache Server
Configure Ferret Server, Push Server, and Mail Sender to Start Automatically
sudo nano /etc/init.d/cit
#!/bin/bash
### BEGIN INIT INFO
# Provides: ClockingIT
# Required-Start: $network
# Required-Stop: $network
# Default-Start: 2 3 5
# Description: ClockingIT
### END INIT INFO
# Define LSB log_* functions.
# Depend on lsb-base (>= 3.0-6) to ensure that this file is present.
. /lib/lsb/init-functions
case "$1" in
'start')
log_daemon_msg "Starting ClockingIT Services"
cd /home/cit/cit
set RAILS_ENV=production
FERRET_USE_LOCAL_INDEX=1 script/ferret_server start -e production
nohup script/push_server &
nohup ruby lib/daemons/mail_sender.rb &
log_end_msg 0
;;
'stop')
log_daemon_msg "Stopping ClockingIT Services"
cd /home/cit/cit
FERRET_USE_LOCAL_INDEX=1 script/ferret_server stop -e production
killall ruby
log_end_msg 0
;;
*)
echo "Usage: $0 { start | stop }"
;;
esac
exit 0
^O to save ^X to quit nano
sudo chmod +x /etc/init.d/cit
sudo update-rc.d -f cit stop 10 0 1 6 . start 90 2 3 4 5 .
You're done!
sudo passwd root
user: cit
password: cit123
1 to 9 of 9