Wednesday, September 12, 2012

How to setup dialup settign for Sri Lanka



Run --> pppconfig as sudu user
Select --> create new connection
Leave the default name "provider"
Select "User Dynamic DNS"
Select "PAP"
Enter the login mane as --> user@pre.sltnet
Replace the password --> passwd
Select the speed as --> 115200 (default)
Select "Tone" dialing
Enter the phone number --> dailupnumber
Select the the modem device as /dev/ttyACM0
Finish the config wizard and exit

To forcefully place the dial-up enter below command in the console --> pon  (to switch off  the dial-up use poff)

Tuesday, January 31, 2012

install and configure Webalizer


To install Webalizer open up a terminal and enter the following commands:
$ sudo aptitude update 
$ sudo aptitude install webalizer

Webalizer didn't work right away, so I found a fix for it.

Edit webalizer.conf with your favorite editor:
$ vi /etc/webalizer/webalizer.conf
Find the following:
LogFile /var/log/apache/access.log.1
I'm using apache2 so replace the line with:
LogFile /var/log/apache2/access.log
Save and exit.

To run webalizer, enter this command:
sudo webalizer
and then go to http://localhost/webalizer/


Run webalizer as a cronjob. This has to be run as root: Edit the root cronjobs by running the command:

$sudo crontab -e and add the line:

0 * * * * weblize