none
Install and use clocking it RRS feed

  • Question

  • Hello,

    I need a clockingit for company. I've not eperience about this. If anyboby has a experience about this program, please write....How install program on resver 2003 and Linux and how use this program on local net.

    Monday, May 10, 2010 8:21 AM

Answers

  • Now follow this to a tee and it will work....

    is ferret server started? In my install ferret doesn't start up automatically, so i need to start up by /etc/init.d/cit start (here, the content).

    #!/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/cit2
    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/cit2
    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


    you must point to your own dir path, mine is /home/cit/cit2 as you can see on the script.

    _____________________________________________________________________________________________________________________________

    Here is the code at the bottom of the setup.rb provided in your github source

    puts "Running any pending migrations..."
    system("rake db:migrate RAILS_ENV=production")
    puts "Done"

    puts
    puts "All done!"
    puts "---------"

    puts
    puts "Please start the required services by entering the following in a console:"
    puts " nohup ./script/push_server &"
    puts "Make sure passenger and apache httpd are properly set up and a virtual host defined."
    puts
    puts "Access your installation from http://#{subdomain}.#{domain}:3000"

    _________________________________________________________________________________________________________________________________

     installation using ari-clockingit-40536d3 and followed the instructions in http://github.com/ari/clockingit


    I got the following transcript for step 4:

    Please start the required services by entering the following in a console:
    nohup ./script/push_server &
    Make sure passenger and apache httpd are properly set up and a virtual host defined.



     push_server script mentioned above missing? it will be you're database. Another easy thing is to take an old PC and install a backup server on it. Does not matter what it is just put the new FOG Backup server on it and it will help out alot if failure happens.

    __________________________________________________________________________________________________________________________________

     

    Now just make sure to go to the http://github.com/ari/clockingit to get the full install like I have above. These will help you out on an issue you have and JUST MAKE SURE TO BACK UP AND BEFORE YOU BEGIN TO PERFORM AN INSTALL OR REINSTALL MAKE A NEW DATABASE IT WILL GO TO THE 3000 PORT UNBLOCK IT!

     

    Guru C0der

     

    • Proposed as answer by Guru C0der Tuesday, May 11, 2010 6:56 AM
    • Marked as answer by Kevin Remde Sunday, May 23, 2010 1:08 PM
    Tuesday, May 11, 2010 6:55 AM

All replies

  • Now follow this to a tee and it will work....

    is ferret server started? In my install ferret doesn't start up automatically, so i need to start up by /etc/init.d/cit start (here, the content).

    #!/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/cit2
    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/cit2
    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


    you must point to your own dir path, mine is /home/cit/cit2 as you can see on the script.

    _____________________________________________________________________________________________________________________________

    Here is the code at the bottom of the setup.rb provided in your github source

    puts "Running any pending migrations..."
    system("rake db:migrate RAILS_ENV=production")
    puts "Done"

    puts
    puts "All done!"
    puts "---------"

    puts
    puts "Please start the required services by entering the following in a console:"
    puts " nohup ./script/push_server &"
    puts "Make sure passenger and apache httpd are properly set up and a virtual host defined."
    puts
    puts "Access your installation from http://#{subdomain}.#{domain}:3000"

    _________________________________________________________________________________________________________________________________

     installation using ari-clockingit-40536d3 and followed the instructions in http://github.com/ari/clockingit


    I got the following transcript for step 4:

    Please start the required services by entering the following in a console:
    nohup ./script/push_server &
    Make sure passenger and apache httpd are properly set up and a virtual host defined.



     push_server script mentioned above missing? it will be you're database. Another easy thing is to take an old PC and install a backup server on it. Does not matter what it is just put the new FOG Backup server on it and it will help out alot if failure happens.

    __________________________________________________________________________________________________________________________________

     

    Now just make sure to go to the http://github.com/ari/clockingit to get the full install like I have above. These will help you out on an issue you have and JUST MAKE SURE TO BACK UP AND BEFORE YOU BEGIN TO PERFORM AN INSTALL OR REINSTALL MAKE A NEW DATABASE IT WILL GO TO THE 3000 PORT UNBLOCK IT!

     

    Guru C0der

     

    • Proposed as answer by Guru C0der Tuesday, May 11, 2010 6:56 AM
    • Marked as answer by Kevin Remde Sunday, May 23, 2010 1:08 PM
    Tuesday, May 11, 2010 6:55 AM
  • Hi, sorry for be late.

    I've got a question. Can I install clockingit on windows (XP, server)?    does it works on this OS?

    Monday, July 19, 2010 9:23 PM
  • You can install it on ubuntu server

    I install it on ubuntu 8.04  succeed,but it dosen't on other linux server

    You can reference the steps as below

    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!

    Wednesday, June 6, 2012 10:28 AM