:::: MENU ::::
Posts tagged with: fedora 16

Install GTimeLog time tracker on Fedora GNU/Linux

GTimeLog is a simple and effective time tracking application for GNU/Linux. It is the preferred tool of top FSFE staff. It is not currently available in official Fedora repositories however, so in order to use it you must manually install it using Python. Fortunately this is simple to do. These instructions were originally written for Fedora 16, but should also work on 17.

Download GTimeLog from the official website:

http://pypi.python.org/pypi/gtimelog#downloads

Extract the downloaded file from the command line:

tar -xzf gtimelog-0.7.1.tar.gz

Enter the newly extracted directory from the command line:

cd gtimelog-0.7.1

Install dependencies from the command line:

sudo yum install python2 pygtk2

Install GTimeLog from the command line:

sudo python setup.py install

GTimeLog should now be installed. You can run it by pressing Alt+F2 and typing gtimelog [enter] in Gnome and KDE.

UPDATE

By default GTimeLog is unable to generate reports of weekly and monthly statistics etc. due to a dependency on the command line mail client Mutt. Mutt isn’t for everybody, and most likely it won’t be installed on your system either. To access generated reports in Gedit text editor, edit the GTimeLog config file using nano:

nano ~/.gtimelog/gtimelogrc

and set “mailer” to Gedit:

mailer = gedit %s

Alternatively you can set the mailer to Kmail, if you’re using Kontact or Kmail, and wish to send your reports as emails (don’t forget to change [email address] and [name] to your own values):

mailer = kmail --subject "Weekly report for [name]" --msg %s [recipient email address]

UPDATE 14.03.13

Version 0.8.1 was released last month. You can upgrade by simply following the original installation instructions again with a fresh copy of 0.8.1. Fedora users who recently upgraded to Fedora 18 from an older version will need to perform this update to use GTimeLog again.



Set up a local web development server on Fedora 16 with Apache

The following procedure allows you to run your own webserver on Fedora 16, so that you can develop web scripts and applications and test them locally without an Internet connection. I assume that you’re using Gnome 3. Run the stated commands in a terminal – accessible via alt+F2, enter: gnome-terminal [press enter]

Login as root:

su

Install the Apache webserver:

yum install httpd

Configure Apache to handle requests to your local website:

nano /etc/httpd/conf/httpd.conf

Navigate to the end of that file using your arrow keys, or the page down button, and add the following text at the bottom. Replace the text in {} with whatever suits your setup

<VirtualHost *:80>
DocumentRoot {PATH TO YOUR WEB FILES (THE SPECIFIED FOLDER MUST EXIST), E.G.: /var/www/mysite}
ServerName {ADDRESS TO ACCESS YOUR WEBSITE IN A BROWSER BY, E.G.: local.mysite}
</VirtualHost>

The actual text that you add might look like this:

<VirtualHost *:80>
DocumentRoot /var/www/mysite
ServerName local.mysite
</VirtualHost>

Save and close the file:

ctrl+x [enter]

y [enter]

Configure your hosts file to route requests for your website to Apache:

nano /etc/hosts

Add to the end of this file the following text:

127.0.0.1   {ADDRESS TO ACCESS YOUR WEBSITE IN A BROWSER BY, E.G.: local.mysite}

The actual text that you add might look like this:

127.0.0.1    local.mysite

Save and close the file:

ctrl+x [enter]

y [enter]

Restart Apache:

service httpd restart

Your website should now be accessible in a website via whatever address you specified above, e.g. local.mysite (note not www.local.mysite).

(Optional) Configure file permissions:

If your website is still not accessible, you may have a file permissions issue. You can temporarily disable selinux to see if that is causing the problem. If that doesn’t help, you can use a permissions debugging tool to find problems with your UNIX file permissions.


Install zip module php-zip on Fedora 16

Due to an issue with the packaging of zip functionality within Fedora’s PHP package, the yum package php-zip, which was available for Fedora 15, is not available in Fedora 16. This is actually a “feature”, not a “bug”, but either way, getting zip support in PHP now takes a few extra steps.

1. Install dependencies as root or using sudo:

yum install pcre-devel gcc zlib zlib-devel

2. Install zip module using PECL (PEAR‘s sister):

pecl install zip

3. Edit the main PHP configuration file to register the new module. Add this text:

extension=zip.so;

a few lines before this:

Module Settings

in /etc/php.ini, as root or using sudo, like this:

nano /etc/php.ini

4. Restart your web server as root or using sudo:

service httpd restart

5. Check that support is enabled using phpinfo(). You should have a section on your phpinfo() page that looks like the image below.

Screenshot of zip support shown on phpinfo() page

Zip support confirmed by phpinfo()

That’s it, good luck 🙂