Wiki Forum Sign up! Explore Home

Not signed in (Sign In)

LiveSearch

Welcome, Guest

Want to take part in these discussions? Sign in if you have an account, or apply for one below

Vanilla 1.1.2 is a product of Lussumo. More Information: Documentation, Community Support.

  1.  permalink
    Here is a VM I put together running ClockingIT on Ubuntu Server 8.04 with Apache2. Hope it saves some time for someone out there.

    link here

    Slow server, someone may want to mirror it.

    Here are my notes for creating this VM in case someone wants to make their own:


    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!
    • CommentAuthordarkpollo
    • CommentTimeJul 14th 2008
     permalink
    Sorry, what is a VM?
    An auto CD that install server, CIT, and everything at once?
    :)
    Thanks
  2.  permalink
    VM (Virtual Machine) is a software application that allows you to run multiple guest Operating Systems on top of one host Operating System.

    You can download VMWare Server for free here:

    http://www.vmware.com/
    • CommentAuthoradmin
    • CommentTimeJul 14th 2008
     permalink
    I've got quite a bit of bandwidth, so if you want I'll host it for you.

    -- Erlend
    • CommentAuthorsubu
    • CommentTimeJul 23rd 2008
     permalink
    and how about root password? :)
    • CommentAuthoradmin
    • CommentTimeJul 23rd 2008
     permalink
    It's ubuntu, doesn't have a root password unless you set it yourself...
    sudo passwd root

    -- Erlend
    • CommentAuthorzorgan
    • CommentTimeJul 25th 2008
     permalink
    sorry but i've just Dl your vm and boot it in vmware server and:

    cit login: ?????
    password:?????

    root with nothing don't work

    THx
    • CommentAuthorzorgan
    • CommentTimeJul 25th 2008
     permalink
    OK i reboot in rescue mode then choose root mode
    then passwd and it work fine

    after that i have a problem with network card

    "SIOCSIFADDR: No such device
    eth0: ERROR while getting interface flags: No such device
    eth0: ERROR while getting interface flags: No such device
    Bind socket to interface: No such device
    Failed to bring up eth0"

    solve by rename file
    /etc/udev/rules.d/XX-persistent-net.rules
    and reboot

    after you can configure your bridge with static ip address
    and in your windows hosts file add:

    XXX.XXX.XXX.XXX projects.mycompany.com

    and login with:
    http://projects.mycompany.com
    admin
    cit123
    You could also go to http://XXX.XXX.XXX.XXX:10000 to go to webmin

    by ;)
    Thx for this Great VM
    • CommentAuthoradmin
    • CommentTimeJul 25th 2008 edited
     permalink
    According to the readme, the login information is

    user: cit
    password: cit123


    -- Erlend