Sunday, August 17, 2008

How to install Webalizer with Lighttpd

Sometimes you want to know who you are website visitors or where are they coming from. So, for this purpose you need to install web satististics into your web server. There are some good web statistics like Awstats, Webalizer, etc, but i choose Webalizer. From their site, Webalizer is a fast, free web server log file analysis program. It produces highly detailed, easily configurable usage reports in HTML format, for viewing with a standard web browser. Webalizer can run in any web server like Apache or Lighttpd. So, lets start, like usual, i'm using Lenny and Lighttpd for this purpose:

Start installation
online:~# apt-get install webalizer
Reading package lists... Done
Building dependency tree
Reading state information... Done
The following extra packages will be installed:
libdb4.5 libgeoip1
Suggested packages:
geoip-bin
The following NEW packages will be installed:
libdb4.5 libgeoip1 webalizer
0 upgraded, 3 newly installed, 0 to remove and 107 not upgraded.
Need to get 1519kB of archives.
After this operation, 4059kB of additional disk space will be used.
Do you want to continue [Y/n]? y
Get:1 http://ftp.debian.org lenny/main libdb4.5 4.5.20-12 [525kB]
Get:2 http://ftp.debian.org lenny/main libgeoip1 1.4.4.dfsg-1 [651kB]
Get:3 http://ftp.debian.org lenny/main webalizer 2.01.10-32.2 [343kB]
Fetched 1519kB in 2min8s (11.8kB/s)
Preconfiguring packages ...
Selecting previously deselected package libdb4.5.
(Reading database ... 57886 files and directories currently installed.)
Unpacking libdb4.5 (from .../libdb4.5_4.5.20-12_i386.deb) ...
Selecting previously deselected package libgeoip1.
Unpacking libgeoip1 (from .../libgeoip1_1.4.4.dfsg-1_i386.deb) ...
Selecting previously deselected package webalizer.
Unpacking webalizer (from .../webalizer_2.01.10-32.2_i386.deb) ...
Processing triggers for man-db ...
Setting up libdb4.5 (4.5.20-12) ...
Setting up libgeoip1 (1.4.4.dfsg-1) ...
Setting up webalizer (2.01.10-32.2) ...
/var/www/webalizer created

Edit anything do you want in their config file
online:~# vi /etc/webalizer/webalizer.conf

Start you web server
online:~# /etc/init.d/lighttpd restart
Stopping web server: lighttpd.
Starting web server: lighttpd.

Lastly, point your browser at http://yourdomain.com/webalizer/



Wednesday, August 13, 2008

Seminar "Build the Right Network" oleh Extreme Networks


CIAST dengan kerjasama pihak penyedia perkakasan rangkaian, Extreme Networks telah mengadakan satu seminar 6 Ogos 2008. Kebetulan CIAST sememangnya menggunakan peralatan daripada Extreme Networks, jadi aku rasa tidak keberatan untuk menerima pelawaan dari En Shafel selaku Product Manager untuk Extreme Networks Malaysia. CIAST telah menjemput kesemua pengajar/pegawai IT dari pusat latihan kemahiran awam seperti ILJTM, IKBN, IKM, Kolej Komuniti, Piliteknik, etc untuk menyertai seminar ini. Berikut adalah nota-nota daripada seminar tersebut. Slide seminar

Thursday, June 19, 2008

How to install HP LaserJet on Debian Lenny

If you have HP printer, you are lucky because most of HP printer can run on Linux. Thanks to HP Linux Imaging and Printing (HPLIP) project for supporting the linux community. HPLIP is an HP developed solution for printing, scanning, and faxing with HP inkjet and laser based printers in Linux. This time I will show how to configure/install HP LaserJet P2015 on Debian Lenny aka testing.

Install cupsys and its dependencies using the following command.
dyna:/# apt-get install cupsys

Then install the Foomatics and install their related package with their dependencies
dyna:/# apt-get install foomatic-db foomatic-filters-ppds foomatic-filters foomatic-db-hpijs hplip hpoj

install hpoj if you using OfficeJet printer

Then using your browser, http://localhost:631 and you can configure your printer from here :)

Tuesday, June 3, 2008

Installing Lighttpd with MySQL plus PHP5 in Debian Lenny


Today i'm completely finish setting up one server with Debian aka Lenny with Lighttpd, MySQL and PHP5 support. This server mainly use for 'online' application like form application, intake application and other small application developed by our college etc. Why Lenny? I'm using Lenny because the Lenny tree seem like to be freeze right now before Debian 5.0 will be coming out soon on August 2008. From security wise, i'm always monitor my box and Lenny security mailing list and always update the server. Here the complete howto http://www.howtoforge.com/lighttpd_mysql_php_debian_etch

Friday, May 30, 2008

Check Squid log file in FreeBSD

I'm not famaliar enough with FreeBSD, but in my office we have one proxy server running on FreeBSD. How to check Squid log file on taht, then i guess like what i doing in my linux box :

root@isa# tail -f /usr/local/squid/logs/access.log
1214215723.611 3756 10.20.14.5 TCP_MISS/200 39035 GET http://www.dirtbikemagazine.com/Media/News/40046_KX250W9F_D5.jpg - DIRECT/209.196.51.188 image/jpeg
1214215724.057 5 10.20.16.175 TCP_IMS_HIT/304 263 GET http://www.fotosearch.com/comp/SUE/SUE116/paper-clip-thumbtack_~SLBW0188.jpg - NONE/- image/jpeg
1214215724.613 619 10.20.1.8 TCP_MISS/200 3135 GET http://sb.google.com/safebrowsing/update? - DIRECT/209.85.171.91 text/html
1214215725.687 1981 10.20.30.254 TCP_MISS/200 5400 GET http://sb.google.com/safebrowsing/update? - DIRECT/209.85.171.91 text/html
1214215726.360 10100 10.20.14.5 TCP_MISS/200 53145 GET http://www.dirtbikemagazine.com/Media/News/40048_KX250W9F_D1.jpg - DIRECT/209.196.51.188 image/jpeg
:
:

Fuhhh, almost same like linux.

Wednesday, May 14, 2008

E-Maj Ubuntu for Malaysian first edition


From Mypapit posting in his blog, i'm immediately jump into this site, melayubuntu.blogspot.com, wow! they're brilliant, the best part about this blog is all of them written in malay. Besides they also release online zine called E-maj Ubuntu for Malaysian. You can read and download this ezine from here. For the 1st issue, they are talking about the introduction of linux/ubuntu, command line interface, GIMP tutorial, differential of Ubuntu and Windows Vista, etc.

Saturday, May 10, 2008

Ordering OpenSolaris 2008.05 (Indiana) CD


I just check penguin99 mailing and saw this posting. I don't have much experience with Solaris/OpenSolaris before and only once installed in my testing desktop, but then i remove them. Since Debian's Ian Murdock take responsibility for OpenSolaris's Indiana project, it got a lot of attention from open source advocates to test them. Here our chances to test this so called linux version of Solaris project. So, here the link, it's free like Ubuntu. Be patience, from their site note : Please note that requests can take longer to deliver, depending on the country of shipping. Approximate shipping times for different parts of the world are as follows - Asia/Africa - 4 weeks.