how to configure, how to install. Linux, riyesh, apache, mysql, php, replication, apc, vpn, mem cache. fax, hylafax, DNS, network, linuxbuddies.com - For linux documentations.
Ad Ad Ad Ad

Starting X11 VNC in Linux

 
Create vnc passwd
x11vnc -storepasswd
Use authentication while connecting
x11vnc -rfbauth ~/.vnc/passwd
Keep the VNC Session after each login and logout
x11vnc -forever
Don’t use shm of X if you have problems in display
x11vnc -noshm
So the final command is
x11vnc -noshm -forever -rfbauth ~/.vnc/passwd
Finished

RPM Creation

Add user for easy administration
 
 useradd rpmbuild
 switch to user rpmbuild
su – rpmbuild 
 create directories for rpmbuild
mkdir ~/rpm ~/rpm/BUILD ~/rpm/RPMS ~/rpm/RPMS/i386 ~/rpm/RPMS/x86_64 ~/rpm/RPMS/i686 ~/rpm/RPMS/noarch ~/rpm/SOURCES ~/rpm/SPECS ~/rpm/SRPMS ~/rpm/tmp
   exit
 
Then you need to create a file ~/.rpmmacros with at least the following lines (otherwise the rpmbuild command will check /usr/src/redhat/ directory)
 
vi …

Grant privileges to Local & Remote MySQL Users

 
Login to mysql shell and key in :

For Local users
 
mysql> grant all on database.* to username@’localhost’ identified by ’password’;
mysql> flush privileges;
 
Verify the connection by executing the command from bash prompt: 
 
mysql -u username -p databasename
 
For remote users :
 
mysql> grant all on database.* to username@’%’ identified by ’password’;
mysql> flush privileges;
 
Verify the connection …

Cacti Installation

 Cacti uses RRDTool to generate graphs for network statistics like bandwidthd. 
 
Requirements:

Mysql
Php
Rrdtool
net-snmp
net-snmp-devel.i386
net-snmp-libs.i386
net-snmp-perl.i386
net-snmp-utils.i386
php-snmp
Apache with PHP Support
 
MySQL configuration for cacti:
 
mysql -u root -p
mysql> create database cacti;
mysql> grant all on cacti.* to cactiuser@’localhost’ identified by ‘cactipassword’;
mysql> flush privileges;
 
RRDTool Installation
 
Requirements:

tcl
tcl-devel
 
[root]# cd /usr/local/src/
[root]# wget http://oss.oetiker.ch/rrdtool/pub/rrdtool.tar.gz
[root]# tar -zxf rrdtool.tar.gz
[root]# cd rrdtool*
[root]# ./configure
[root]# make
[root]# make install
[root]# make site-perl-install
 
   …

 Page 5 of 5 « 1  2  3  4  5