Installing MRTG

August 14th, 2008 by admin

Download the MRTG from http://people.ee.ethz.ch/~oetiker/webtools/mrtg/

extract the tarball

# tar zxvf mrtg-2.10.13.tar.gz

Enter to the directory

# cd mrtg-2.10.13

cofnigure it

# ./configure –prefix=/usr/local/mrtg –with-gd-lib=/usr/local/lib –with-gd-inc=/usr/local/include –with-png-lib=/usr/local/lib –with-png-inc=/usr/local/include

//*

** Ooops, one of many bad things happened:

a) You don’t have the GD library installed.

Get it from http://www.boutell.com, compile it and

use either –with-gd-lib=DIR and –with-gd-inc=DIR to specify

its location. You might also have to use –with-z-inc,

–with-z-lib and –with-png-inc, –with-png-lib for gd

versions 1.6 and higher. Check config.log for more

information on the problem.

b) You have the GD library installed, but not the gd.h

header file. Download the source (see above) and use

–with-gd-inc=DIR to specify where the file can be found.

c) You have the library and the header file installed, but

you also have a shared GD library in the same directory.

Remove the shared library files and/or links (e.g.

libgd.so.2.0.0, libgd.so and libgd.so.2). This is especially

likely if you’re using a recent (post 1.8.4) version of GD

and didn’t configure it with –disable-shared.

Consider following the instructions in doc/mrtg-unix-guide.txt

If you find above error, dont panci, enter /usr/local/lib and delete libgd.so,libgd.so.2.

*//

compile the source

# make

Install MRTG binary

# make install

enter /etc

# cd /etc
#mkdir mrtg

#cd /usr/local/apache/htdocs

# mkdir mrtg

run cfmaker to configure mrtg

#/usr/local/mrtg/bin/cfgmaker –global ‘WorkDir:/usr/local/apache/htdocs/mrtg’ –global ‘Options[_]: bits,growright’ –output /etc/mrtg/mrtg.cfg public@202.152.28.1 selanjutnya buat index nya dengan indexmaker

#/usr/local/mrtg/bin/indexmaker –output /usr/local/apache/htdocs/mrtg/index.html /etc/mrtg/mrtg.cfg

//*

Run MRTG

MRTG can be executed as a daemon or with crontab.

For the first option, set “RunAsDaemon= YES”.

for the second option, you could add this line on crontab (for example 5 minutes):

*//

#crontab -e

*/5 * * * * /usr/local/mrtg/bin/mrtg /etc/mrtg/mrtg.cfg

Now, execute mrtg.

#/usr/local/mrtg/bin/mrtg /etc/mrtg/mrtg.cfg

Open your browser and go to http://server_name/mrtg/

Tags:

Another PHP tutorials

August 8th, 2008 by admin

To escape php from html, a PHP code block starts with “<?php” and ends with “?>”. A PHP code block can be placed anywhere in the HTML document. You may also use <? ?> but it’s not available on every servers.

To separate instructions, each instruction must end with a semicolon. The PHP closing tag also implies the end of the instruction.

This is an example on how to write PHP between html tags:

<html>

<head>

<title>PHP is fun</title>

</head>

<body>

<?php echo “This text is generated using PHP”; ?>

</body>

</html>

Tags: ,

Using the best browser on earth, Firefox. You can get additional information about any documents opened by Firefox.

Just click Tools-> Page Info. A window will emerge, and you’ll see many infos.

You see all about Metas used, type, Cache source, render Mode. You may also find Encoding, Size, Referring URL, Modified and Expire.

If your web page contain form or links, you can also see form, links, media and security informations.

Tags: ,

Another alternative for QEMU , check it out here.

There is a new security improvement on Internet Explorer 8. It was built above the base of fishingovogo filter that was used in the IE 7.

This will makes IE 8 can do threats screening tighter and can detect malicious sites more thoroughfully by using it’s new filter method, the SmartScreen.

Tags: , , ,

Just like what many people already know, newspaper industry is on it’s worst condition today. Due to the advanced of internet, people is choosing a cheaper and yet more available source of news, that is website news and blogs.

If you want to illustrate this condition. it is like a parody of Dickens, Today is the best of times and the worst of times for newspapers industries.

The worst indications times:

Many layoffs (incl downsizing at some of the country’s biggest papers). For example Los Angeles Times confirmed that it was cutting 250 jobs, amongst them is 150 in the newsroom, this layoffs makes their current editorial staffs to be 700, down from 1,200 in 2001 (imagine it! almost half of it).

The layoffs also taken by the Tampa (Fla.) Tribune, the Baltimore Sun, the Hartford Courant, the Milwaukee Journal Sentinel and many others.

But newspaper today is on it’s peak performance, you may notice many newspaper company becoming a multimedia company. They provide and produce informations from many sources, eg: print, online, on air and mobile devices.

So is the glass half empty and getting emptier each day, as some news industry prognosticators believe? Or is it half full, and poised to eventually fill up again, some optimists believe?

How do newspaper company should behave on this time of tribulation? Many analysts think that they should behave just like a newbie netpreneur do. They have to perform business process reengineering, downsizing, changing direction, etc.

They have to be leaner and be innovative. Faster, smarter, and smaller. Just like what seth godin said, Small is the new big. They also have to combine more jobs, eg merging some departments into one departmen.

Tags: , , , , ,

I have installing it perfectly and everything is just works…But suddenly when i see my WiFi, it’s not working….. After some browsing, i found out that HP Pressario C767 is using Antheros just like Acer 4520. So i have to use ndiswrapper to diswrap the antheros driver for windows so the wifi will be recognized in Ubuntu.

To download the Antheros driver for Linux, click the download section from here. After you have downloaded it, extract to a place on your hard disk. Then use ndisgtk:

Click System > administration > windows wireless driver, browse for the .inf driver for atheros

After that, you may configure the Wifi by clicking system > administration > network settings.

Tags : , , , , , , ,

open suse 11 download logoYes, it’s finally released. For you linux geeks and newbie users. Opensuse 11 is finally released. Download it from open suse’s download section. You may also find the boxed version from novell’s website. Meanwhile the Portableapps.com also releases 3 great softwares today: Lbreakout, Clamwin and Portable Firefox 3.

Well, it’s the free and open source era right now….

Tags ,

firefox logo, firefox 3 logoThe Firefox 3 is released. Download it here. Or you may use some mirrors, eg: softpedia, or spreadfirefox. Learn more about firefox.

The portable version is also already released, check it out here. YOu may read the details of this portable version here.

Tags: ,

I was just browsing using keyword “Rapidshare donwnload hack” and suddenly going to raymond’s blog. Read it, i think the information is worthy enough if you want to know how to download files from rapidshare without having been annoyed with the cats captcha..