Archive for the 'Linux' Category

09
Jun
09

Install and Configure SARG for Dansguardian on CentOS

i’ve tested and it works…you shoul try it, link from here
Install and Configure SARG for Dansguardian on CentOS

Install and Configure SARG to report against Dansguardian log files on CentOS

Go back to the main project page

By this point, you should already have DansGuardian and Squid cache installed, configured, and tested. If not, please visit the Open Source Web Content Filtering Project page to finish that part of the setup.

There is other settings I’m looking into with regards to DansGuardian. This is just a rough way to get SARG up and reporting.

Install Apache

* yum install httpd – install Apache if not already installed

Add ports to firewall

* You may need to add a firewall rule to allow port 80
* vi /etc/sysconfig/iptables – add the following lines, if they don’t already exist
* -A RH-Firewall-1-INPUT -m state –state NEW -m tcp -p tcp –dport 80 -j ACCEPT

Install SARG

* cd /usr/src – optional, this is just where I like to keep the source archives
* wget http://dag.wieers.com/rpm/packages/sarg/sarg-2.2.1-1.el4.rf.i386.rpm – download the SARG rpm to your /usr/src folder
* yum install gd gd-devel
* rpm -i /usr/src/sarg-2.2.1-1.el4.rf.i386.rpm – install SARG using the Red Hat Package manager
* vi /etc/httpd/conf.d/sarg.conf

* add an additional Allow from line for each computer you want to be able to see the reports, or comment out the Deny from all, and Allow from lines to give access to all.

Configure DansGuardian and SARG to work with each other

* vi /etc/dansguardian/dansguardian.conf

* change the setting logfileformat to equal 3 – sets DansGuardian to log in squid log file format
* :wq – save the changes to the file and quit

* vi /etc/sarg/sarg.conf

* change the setting access_log to point to your dansguardian logs. Under default settings, it should be /var/log/dansguardian/access.log
* change any other settings you want to change
* :wq – save the changes to the file and quit

* Check the sarg scripts in the cron folders. You will need to make some changes to point to the DansGuardian log files

* vi /etc/cron.daily/sarg – really no changes here
* vi /etc/cron.weekly/sarg – change the log file paths to the path of your DansGuardian log files
* vi /etc/cron.monthly/sarg – change the log file paths to the path of your DansGuardian log files

* /usr/bin/sarg – run sarg to create a ONE-SHOT report

Start Apache

* /etc/init.d/httpd start – Start Apache

Test Configuration

* browse to your DansGuardian machine using your favorite internet browser. You will have to add /sarg to the end of the url. (ex. http://192.168.0.1/sarg Check to make sure the ONE-SHOT report was generated.

* wait for the cron jobs to run and generate the rest of the reports

Done

22
Aug
08

Cara melihat versi linux

Sebenarnya pertanyaan simple, bagaimana cara melihat distro dan versi linux yang digunakan,
hmmm…gw aja sempet bingung, ga tau apa lupa ya :D.

Begini caranya :

kalo elo tau pake debian, tinggal lo ketik cat /etc/deb…lo tekan tab aja, kemudian akan banyak pilihan, trus pilih debian_version

dns:~# cat /etc/deb…klik tab
debconf.conf debian_version default/ deluser.conf
dns:~# cat /etc/debian_version
4.0

ketauan deh, pc yang lo gunakan menggunakan distro debian versi 4.0 ;)

21
Aug
08

Setting proxy di Linux

Karena koneksi internet di kantor membutuhkan proxy, ya jelas…buat download paket atau update-nya harus disesuaikan…yang jadi masalah, setting proxy di folder /etc/apt tidak ada.
Untuk menyelesaikan masalah ini, ada beberapa hal yang harus kita lakukan :

1. copy file “/usr/share/doc/apt/examples/apt.conf” ke folder “/etc/apt/”

command-nya :

cp /usr/share/doc/apt/examples/apt.conf /etc/apt/apt.conf

2. Rubah isi file /etc/apt/apt.conf menjadi sbb:

#########################################################

// $Id: apt.conf,v 1.43 1999/12/06 02:19:38 jgg Exp $
/* This file is a sample configuration file with a few harmless sample
options.
*/

APT
{
// Options for apt-get
Get
{
Download-Only “false”;
};

};

// Options for the downloading routines
Acquire
{
Retries “0″;
http::Proxy “http://put your proxy name or ip here:port”;;
};

// Things that effect the APT dselect method
DSelect
{
Clean “auto”; // always|auto|prompt|never
};

DPkg
{
// Probably don’t want to use force-downgrade..
Options {“–force-overwrite”;}
}

#######################################################

setelah itu, semua program yang membutuhkan proxy untuk koneksi internet-nya bisa digunakan.

CMIIW




 

November 2009
M T W T F S S
« Oct    
 1
2345678
9101112131415
16171819202122
23242526272829
30  

Quote

"I am a traveler seeking the truth, a human searching for the meaning of humanity and a citizen seeking dignity, freedom, stability and welfare under the shade of Islam. I am a free man who is aware of the purpose of his existence and who proclaims: “Truly, my prayer and my sacrifice, my living and my dying are all for Allah, the Lord of the worlds; no partner has He. This, am I commanded and I am of those who submit to His Will.” This is who I am. Who are you?" (Hassan al-Banna)

Online

tracker

Your IP Address

Kalender Hijriyah

Blog Stats

  • 20,463 hits

Qur’an Flash

Powered by