Skip to content

Instantly share code, notes, and snippets.

@Morabaraba
Created January 9, 2017 20:52
Show Gist options
  • Save Morabaraba/1982e560c53bdb67adc78a307ac8af15 to your computer and use it in GitHub Desktop.
Save Morabaraba/1982e560c53bdb67adc78a307ac8af15 to your computer and use it in GitHub Desktop.
How to install ClockingIT on Ubuntu 10.04

Sourced from: https://github.com/ari/jobsworth/wiki/How-to-install-ClockingIT-Ari-version-on-Ubuntu-10.04

Hoping help anyone who has problem in installing of clockingit.

  1. Install Ubuntu desktop v10.04.

  2. Get update database of Ubuntu.

sudo apt-get update

  1. Upgrade your Ubuntu S.O.

sudo apt-get upgrade

  1. Get mysql, ruby, rubygems libraries. Someone says ruby v1.9 is much faster than v1.8. I try to install v1.9 before, but the system reports is missing files.

sudo aptitude install apache2 mysql-client mysql-server imagemagick libmagick9-dev ruby-full rubygems git-core libmysqlclient16-dev build-essential rails libmysql-ruby1.8

  1. Use gem to install rails v2.3.8.

sudo gem install rails -v=2.3.8

  1. Install mysql2.

sudo gem install mysql2

  1. Install erubis.

sudo gem install erubis

  1. Create user in mysql. I use the user name: cit.

echo “CREATE USER ’cit’@’localhost’ IDENTIFIED BY ‘cit’;” | mysql -u root -p mysql

  1. Create database in mysql. I use the database name: cit.

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

  1. Choose the installation directory for clockingit. I use folder: /opt

cd /opt

  1. Get the source of clockingit.

git clone git://github.com/ari/clockingit.git

  1. Modify the environment.rb file line 70 under /opt/clockingit/config folder. I don’t know is it correct or not. If you don’t modify it, it will cause error "undefined method `>’ for :version:Symbol.

sudo nano /opt/clockingit/config/environment.rb

from: config.gem ‘fastercsv’, :version > ‘1.5.0’ to: config.gem ‘fastercsv’, :version => ‘1.5.0’

  1. Run ruby setup.rb and enter all necessary information.

cd /opt/clockingit ruby setup.rb

  1. You will get errors and need to install of missing gems.

sudo rake gems:install

  1. Re-run ruby setup.rb. Please accept to load the DB schema when asked.

ruby setup.rb

  1. Once you see tables created in mysql database, you are almost successful. Otherwise, please check if something goes wrong.

  2. Install passenger.

gem install passenger

  1. Install related libraries for passenger apache2 module.

apt-get install apache2-prefork-dev libapr1-dev libaprutil1-dev

  1. Run passenger-install-apache2-module.

sudo /var/lib/gems/1.8/bin/passenger-install-apache2-module

  1. Create mod file for passenger and paste the following content. Modify the path and version number if you are not same with me.

sudo nano /etc/apache2/mods-available/passenger.load

LoadModule passenger_module /var/lib/gems/1.8/gems/passenger-2.2.15/ext/apache2/mod_passenger.so PassengerRoot /var/lib/gems/1.8/gems/passenger-2.2.15 PassengerRuby /usr/bin/ruby1.8

  1. Create site file for apache and paste the following content. Modify the server name and folder pathif you are not same with me.

sudo nano /etc/apache2/sites-available/clockingit

ServerName projects.example.com DocumentRoot /opt/clockingit/public

AllowOverride all Options -MultiViews

  1. Enable mod file.

cd /etc/apache2/mods-enabled/ sudo ln -s ../mods-available/passenger.load passenger.load

  1. Enable site file and disable default apache site file.

sudo a2ensite clockingit sudo a2dissite default

  1. Reload and restart apache.

sudo /etc/init.d/apache2 reload sudo /etc/init.d/apache2 restart

  1. Change the permission of clockingit folder.

  2. Check the clockingit web at:

http://127.0.0.1/

PS: Thank you the guides from aaronperkins and ludolphn, as they help me a lot.

http://forum.clockingit.com/discussion/383/vm-clockingit-on-ubuntu-server-804/ http://forum.clockingit.com/discussion/755/installing-ari-branch-on-ubuntu-910/

With this version of the post, you can install clockingit on alot of VMs. how mine! you can run the clockingit on the Virtualbox with ubuntu easy..

dont forget of the implements sendmail or you will get error on create new tasks.. erro like connection refused. have two corrections for this error. Implement the sendmail or uncheck the options in the preferences of clockingIt

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment