Some new and interesting softwares from Portableapps.com:

  1. Keepass Password Safe portable, a nice password manager tool
  2. Task coach portable, a nice task coach tool.
  3. Filezilla portable, a nice ftp client software.

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:

Installing GD

August 14th, 2008 by admin

continuing previous tutorial on how to install MRTG, now you have to install GD. you can download the GD from http://www.boutell.com/gd/

extract the tarball

# tar zxvf gd-2.0.33.tar.gz

change directory name

# mv gd-2.0.33 gd

enter the directory

# cd gd

now configure it out

# ./configure –disable-shared

compile the source

# make

install the binary

# make install

—————–

Now you could install the MRTG which i will write on next tutorial

Tags:

Here’s steps to install Multi Router Traffic Grapher

MRTG is a kind of tool that let you get data from SNMP.

What you have to prepare before installing MRTG:

1. gd …a graphic library

2. libpng …library needed by GD

3. zlib …library to compress data that is needed by libpng

—————————————–

First, we will install zlib, you could get the file from http://www.gzip.org/zlib/

Download the zlib package.

extract the tarball

# tar xzvf zlib-1.2.2.tar.gz

change the directory name

# mv zlib-1.2.4 zlib

Enter to directory that has just created

# cd zlib

# ./configure

compile the source

# make

install the binary

# make install

—————————-

Now, install libpng…http://www.libpng.org

Download the libpng ..

# tar zxvf libpng-1.2.5.tar.gz

Change the directory name

# mv libpng-1.2.5 libpng

Enter to the directory

# cd libpng

Copy the makefile.std script from scripts directory and rename it

# cp scripts/makefile.std makefile

install the binary

# make

#make install

Tags: ,

How to add text csv on Perl

August 14th, 2008 by admin

Here’s steps you can do:
1. First, download Text CSV here

2. Extract the downloaded file
$ tar -xzvf Text-CSV_XS-0.23.tar.gz

3. Enter new directory created
$ cd Text-CSV_XS-0.23

4. Execute Makefile.PL
# perl Makefile.PL

5. Now, make it :
# make

6. Run make test
# make test

7. Run make install
# make install

Just try it, installation is completed.

References :
http://www.advokit.net/node/131
http://search.cpan.org/~jwied/Text-CSV_XS-0.23/CSV_XS.pm

Tags:

Is linux is better than any operating systems? i don’t know. but from http://www.whylinuxisbetter.net, it’s claimed that linux is better since it has many features, eg:

1. Forget about viruses.
2. Is your system unstable?
3. Linux protects your computer.
4. Don’t pay $300 for your operating system.
5. Freedom!
6. When the system has installed, why would you still need to install stuff?
7. Update all your software with a single click.
8. Why copy software illegally if you can get it for free?
9. Need new software? Don’t bother searching the web, Linux gets it for you.
10. Jump into the next generation of desktops.
11. Does your digital life seem fragmented?
12. Choose what your desktop looks like.
13. Why does your Windows get slower day after day?
14. Do something for the environment.
15. Enjoy free and unlimited support.
16. Use MSN, AIM, ICQ, Jabber, with a single program.
17. Too many windows? Use workspaces.
18. Don’t wait years for bugs to be solved, report and track them down.
19. Are you tired of restarting your computer all the time?
20. Let your old computer have a second life.
21. Play hundreds of games for free.
22. Help other countries, and your own.
23. Get a great music player.
24. Keep an eye on the weather.

Tags:

It’s an easy thing, i just want to write it on this blog as a log so that i can remember it if i need it someday.

After writing shell script file, you have to set execute permission for your file as follows:
chmod permission your-script-name

$ chmod +x your-script-name
$ chmod 755 your-script-name

While to execute the file, you have to do:

$ bash your-script-name
$ sh your-script-name
$ ./your-script-name

Tags: ,

As you might already know, dell is now releasing two new laptops that can accomodate Linux and Windows. One is Studio15 and another is XPS1330. The linux used is Ubuntu.

You may find the specifications and it’s price below:

Studio 15 model comparison:

Intel Core2Duo T5750 (2GHz/667MHz FSB/2MB Cache)
4GB DDR2 RAM
15.4” LCD (1280×800)
Intel X3100 Graphics
250GB SATA HDD
8X DVD-RW
6-Cell Battery
Wireless Card, Bluetooth, Webcam

OS: Vista $899
OS: Ubuntu Linux $819

While the second model is:

XPS 1330 model comparison:

Intel Core2Duo T5850 (2.16GHz/667MHz FSB/2MB Cache)
4GB DDR2 RAM
15.4” LCD (1280×800)
128MB Geforce 8400 Graphics
320GB SATA HDD
8X DVD-RW
6-Cell Battery
Wireless Card, Bluetooth, VGA Webcam

OS: Vista $1493
OS: Ubuntu Linux $1343

If i want to buy, then i think i will buy the vista version and install ubuntu as my alternative operating system. Because not all of my softwares can run above Ubuntu.

But i think i will use ubuntu as my primary operating system for internet. Since it’s safer? is it true that Linux is safer? ha ha ….LoL

Tags:,

Download GParted: http://gparted.sourceforge.net/download.php

Defragement Hard disk: http://www.youtube.com/watch?v=0iU0W3F6Ats

Burning an iso: http://www.youtube.com/watch?v=oJI_NPCsfyQ

Booting from a CD: http://www.youtube.com/watch?v=smL4hDBrN2A

Tags: , ,

How to Gz

August 9th, 2008 by admin

To compress a file into a .gz, you could execute

$ gzip filename

While to uncompress a .gz file, use:

gzip -d filename.gz

Tags: ,