Computer Science

Monday, July 21, 2008

Kumpulan koleksi software portable

Kumpulan koleksi software portable : Corel Draw 11, Office 2003, Office 2007, Adobe Photoshop 7, AutoCad 2008, Visual Basic 6.0, Macromedia Dreamweaver CS3, ACDSee9, Macromedia Dreamweaver 8, Corel Draw X4, Macromedia Freehand, Adobe Illustrator, Messenger, Transtool, dll.
Kunjungi disini -->
Read More......

Thursday, July 17, 2008

Install Cacti For Redhat, Centos, Rhel

1.Make Direktori & Download these file
Run these commands as root
mkdir /cacti-install
cd /cacti-install
wget http://apache.mirrors.versehost.com/httpd/httpd-2.0.52.tar.gz
wget http://us4.php.net/get/php-4.3.8.tar.gz/from/this/mirror
wget http://dev.mysql.com/get/Downloads/MySQL-4.0/mysql-
4.0.21.tar.gz/from/http://www.signal42.com/mirrors/mysql/

wget http://people.ee.ethz.ch/~oetiker/webtools/rrdtool/pub/rrdtool-1.0.49.tar.gz
wget http://unc.dl.sourceforge.net/sourceforge/net-snmp/net-snmp-5.1.2.tar.gz
wget http://www.cacti.net/downloads/cacti-0.8.6b.tar.gz

2.Install MySQL
Run these commands as root
cd /cacti-install
tar -zxvf mysql*
cd mysql*
./configure --prefix=/usr/local/mysql
make
make install
groupadd mysql
useradd -g mysql mysql
scripts/mysql_install_db
chown -R root /usr/local/mysql
chown -R mysql /usr/local/mysql/var
chgrp -R mysql /usr/local/mysql
rm -f /etc/my.cnf
cp support-files/my-medium.cnf /etc/my.cnf
echo /usr/local/mysql/lib/mysql >> /etc/ld.so.conf
echo /usr/local/lib >> /etc/ld.so.conf
ldconfig –v
cp support-files/mysql.server /etc/init.d/mysql
/usr/local/mysql/bin/mysqld_safe --user=mysql &
Echo
cd /etc/rc3.d/
ln -s ../init.d/mysql S85mysql
ln -s ../init.d/mysql K85mysql
cd /etc/rc5.d/
ln -s ../init.d/mysql S85mysql
ln -s ../init.d/mysql K85mysql
cd /etc/init.d/
chmod 755 mysql

3.Install Apache
Run these commands as root
cd /cacti-install
tar -zxvf httpd*
cd httpd*
./configure --prefix=/www –enable-so
make
make install
cd /www/bin
cp apachectl /etc/init.d/httpd
cd /etc/rc3.d/
ln -s ../init.d/httpd S85httpd
ln -s ../init.d/httpd K85httpd
cd /etc/rc5.d/
ln -s ../init.d/httpd S85httpd
ln -s ../init.d/httpd K85httpd
/www/bin/apachectl start

4.Install PHP
Run these commands as root
cd /cacti-install
tar -zxvf php*
cd php*
./configure --prefix=/www/php --with-apxs2=/www/bin/apxs --with-config-filepath=/
www/php --enable-sockets --with-mysql=/usr/local/mysql --with-zlibdir=/
usr/include –with-gd
make
make install
cp php.ini-dist /www/php/php.ini
cp /www/conf/httpd.conf /www/conf/httpd.conf.backup
echo ####################### >> /www/conf/httpd.conf
echo # Added via Lee Carter's Script >> /www/conf/httpd.conf
echo ####################### >> /www/conf/httpd.conf
echo AddType application/x-tar .tgz >> /www/conf/httpd.conf
echo AddType application/x-httpd-php .php >> /www/conf/httpd.conf
echo AddType image/x-icon .ico >> /www/conf/httpd.conf
echo DirectoryIndex index.php index.html index.html.var >> /www/conf/httpd.conf
service httpd stop
service httpd start

5.Configure MySql
Run these commands as root
cd /cacti-install
group-add cacti
useradd -g cacti cactiuser
/usr/local/mysql/bin/mysql
mysql> set password for root@localhost=password('rootpw');
mysql> create database cactidb;
mysql> grant all on cactidb.* to root;
mysql> grant all on cactidb.* to root@localhost;
mysql> grant all on cactidb.* to cactiuser;
mysql> grant all on cactidb.* to cactiuser@localhost;
mysql> set password for cactiuser@localhost=password('cactipw');
mysql> exit

6. Install RRDTOOL
Run these commands as root
cd /cacti-install
tar -zxvf rrdtool*
cd rrdtool*
./configure --prefix=/usr/local/rrdtool
make
make install

7.Install NET-SNMP
Run these commands as root
cd /cacti-install
tar -zxvf net-snmp*
cd net-snmp*
./configure
make
make install

8.Install Cacti
Run these commands as root
cd /cacti-install
cp cacti* /www/htdocs/
cd /www/htdocs/
tar -zxvf cacti*
mv cacti-0.8.6b cacti/
cd /cacti
mysql --user=root --password=rootpw cactidb < database_defaut =" “cactidb”;" database_hostname =" “localhost”;" database_username =" “cactiuser”;" database_password =" “cactipw”;"> /dev/null 2>&1

NOTE*** DO NOT RUN THE ABOVE COMMAND. LET THE CRONTAB FILE RUN IT.
If you run the above command as root there will be several files created under ...../rra and ..../log that will
now be owned by the user ROOT and your graphs will NOT populate correctly. So the moral is... JUST
TYPE IN WHAT YOU SEE ABOVE AND SAVE THE FILES. DONT RUN THEM.

Add these script to /etc/snmp/snmp.conf

#define RO community
rocommunity public

#First, map the community name "public" into a "security name"

# sec.name source community
com2sec notConfigUser default public

####
#second. map the security name into a group name:

# groupName securitymodel securityName
group notConfigGroup v1 notConfigUser
group notConfigGroup v2c notConfigUser

####
#Third, create a view for us to let the group have rights to:
# name incl/excl subtree mask(optional)
view systemview included system
access notConfigGroup "" any noauth exact systemview none none

Finalize Setup
You are now ready to finalize the setup process for cacti.
To do this you will need to point your browser to
the IP address of the cacti system like so:
http://localhost/cacti
or
http://remoteIP/cacti
1. Click Next
2. Default (New Install) -> Click Next
3. Two errors locating php and rrdtool to Fix them replace what they have with:
RRDTOOL = /usr/local/rrdtool/bin/rrdtool
PHP = /www/php/bin/php
4. Click Finish
5. Login admin/admin
6. Change Password for user admin
7. Click Save
That's it! Your done. Congratulations on your new install. You can now start playing with the cacti utility
it's self. I highly recommend going to the message boards to find add-ons and helpful hints when trying to
do any advanced things in cacti. This is a highly versatile utility and is really only limited to your
imagination.
Read More......
.: Portable Bisnis :.