Google Repo for Linux

5 05 2011

Add following to /etc/yum.repos.d/google.repo file:
32-bit

[google]
name=Google – i386
baseurl=http://dl.google.com/linux/rpm/stable/i386
enabled=1
gpgcheck=1
gpgkey=https://dl-ssl.google.com/linux/linux_signing_key.pub





Install VNC and Fluxbox

5 04 2011

Reference : http://wiki.centos.org/HowTos/VNC-Server

Install VNC
—————
wget http://packages.sw.be/rpmforge-release/rpmforge-release-0.3.6-1.el5.rf.i386.rpm
rpm -ivh rpmforge-release-0.3.6-1.el5.rf.i386.rpm
yum install vnc-server.i386

Create your VNC users.
useradd test
passwd test

Set User’s VNC password
Run vncpasswd

Edit Server Configuration
VNCSERVERS=”2:test”
VNCSERVERARGS[2]=”-geometry 800×600″

Restart VNC Server
/etc/init.d/vncserver stop
/etc/init.d/vncserver start

Create xstartup scripts
Login user “test” and edit xstartup script.
vi .vnc/xstartup

xsetroot -solid grey
vncconfig -iconic &
xterm -geometry 80×24+10+10 -ls -title “$VNCDESKTOP Desktop” -e ./menu &
amule &
fluxbox &

Install Fluxbox
————–
yum install fluxbox.i386
yum install xorg-x11-xinit.i386





Upgrade phpmyadmin

31 03 2010

Go to http://www.phpmyadmin.net/home_page/ and download the latest stable version.
Backup the config.inc.php file currently on the server.
Use the configuration values from your old config.inc.php file to correctly configure the new config.inc.php
Re-name your existing “PhpMyAdmin” directory something like “PhpMyAdmin.old”
Create a new “PhpMyAdmin” directory.
Upload the new files into the new “PhpMyAdmin” directory
Copy the .htaccess file from the old directory and use it for the new directory
Log into your new phpMyAdmin.





Upgrade Python to 3.1

18 11 2009

cd /usr/local/src

wget http://www.python.org/ftp/python/3.1.1/Python-3.1.1.tar.bz2

tar -jxvf Python-3.1.1.tar.bz2

cd Python-3.1.1

./configure

make

make install

Now move /usr/bin/python /usr/bin/python.bk

then create symlink :

ln -s /usr/local/bin/python3 /usr/bin/python

check python -V





Stats not working in Plesk

28 06 2009

Create the following cron:

————————————————————————————————

9,24,39,54  * * * * /usr/local/psa/admin/sbin/backupmng >/dev/null 2>&1
10 1 * * * /usr/local/psa/admin/sbin/statistics >/dev/null 2>&1
10 1 * * * /usr/local/psa/admin/sbin/statistics –calculate-one –domain-name=xxx.com

————————————————————————————————

and run the script for checking :

/usr/local/psa/admin/sbin/statistics –calculate-one –domain-name=xxx.com

where xxx.com is your domainname.com





Red5 installation

26 06 2009

cd /root

vi red5install

copy paste the below script

echo " "
echo "Hello ,Please choose  the RED5 version : (1,2,3 or 4)"
echo " "
echo "1.  RED5 0.7.0"
echo "2.  RED5 0.6.3"
echo "3.  RED5 0.5  "
echo "                     Press Any other key to install 1. RED5 0.7.0"
read ver
cd /usr/src
echo ""
echo ""
echo "Downloading and installing   jpackage utils rpm......."
echo ""
echo ""
wget -c --tries=inf http://mirrors.dotsrc.org/jpackage/1.7/generic/free/RPMS/jpackage-utils-1.7.5-1jpp.noarch.rpm
rpm -Uvh jpackage-utils-1.7.5-1jpp.noarch.rpm
echo ""
echo ""
echo "Downloading and installing   JDK 1.6 update 5 ..........."
echo ""
echo ""
wget -c --tries=inf http://69.72.132.53/jdk-6u5-linux-i586.rpm
rpm -Uvh jdk-6u5-linux-i586.rpm
echo ""
echo ""
echo "Downloading and installing   Apache Ant 1.7  ..........."
echo ""
echo ""
wget -c --tries=inf http://archive.apache.org/dist/ant/binaries/apache-ant-1.7.0-bin.tar.gz
tar -xzvf apache-ant-1.7.0-bin.tar.gz
mv apache-ant-1.7.0 /usr/local/ant
echo ""
echo ""
echo "Exporting Paths and Variables for Ant  ..........."
echo ""
echo ""
echo 'export PATH=$PATH:/usr/local/ant/bin'>>/etc/profile
echo 'export ANT_HOME=/usr/local/ant'>>/etc/profile
export PATH=$PATH:/usr/local/ant/bin
export ANT_HOME=/usr/local/ant
echo ""
echo ""
echo "Downloading and installing   RED 5  ..........."
echo ""
echo ""
case $ver in
2)
wget -c --tries=inf http://dl.fancycode.com/red5/0.6.3/src/red5-0.6.3.tar.gz
tar -xzvf red5-0.6.3.tar.gz
mv red5-0.6.3 /usr/local/red;;
3)
wget -c --tries=inf http://dl.fancycode.com/red5/red5-0.5.tar.gz
tar -xzvf red5-0.5.tar.gz
mv red5-0.5 /usr/local/red;;
1|*)
wget -c --tries=inf http://red5.nl/installer/red5-0.7.0.tar.gz
mkdir red5
mv red5-0.7.0.tar.gz red5/
cd red5
tar -xzvf red5-0.7.0.tar.gz
rm -rf red5-0.7.0.tar.gz
cd ..
mv red5 /usr/local/red;;
esac
wget -c --tries=inf http://linuxstuffs.net/red5
mv red5 /etc/init.d/
chmod 755 /etc/init.d/red5
cd /usr/local/red
chmod 755 red5.sh
ant -v
./red5.sh

chmod 755 red5install

./red5install

Its done !!!

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

if  http://linuxstuffs.net/red5 doesn’t work, please use the following method.

cd /etc/init.d/
touch red5
chmod 755 red5
vi red5

----------------------------------------------------------

RED5_DIR=/opt/red5
test -x $RED5_DIR/red5.sh || exit 5

case "$1" in
    start)
        echo -n "Starting Red5 Service"
        echo -n " "
        cd $RED5_DIR
        su -s /bin/bash -c "$RED5_DIR/red5.sh &" red5
        sleep 2
        ;;
    stop)
        echo -n "Shutting down red5"
        echo -n " "
        su -s /bin/bash -c "killall -q -u red5 java" red5
        sleep 2
        ;;
    restart)
        $0 stop
        $0 start
        ;;
esac
----------------------------------------------------------

Then you can simply start, stop, and restart red5 from that script by typing:

/etc/init.d/red5 start

/etc/init.d/red5 stop
/etc/init.d/red5 restart




Installation of Java + Apache Ant

8 05 2009

cd /opt

mkdir java

cd java

wget http://javadl.sun.com/webapps/download/AutoDL?BundleId=29210

or

wget http://javadl.sun.com/webapps/download/AutoDL?BundleId=29214

mv jre-6u13* jre-6u13-linux-i586.bin

chmod 755 jre-6u13-linux-i586.bin

./jre-6u13-linux-i586.bin

/opt/java/jre1.6.0_13/bin/java -version

Installing Ant:

cd /opt

wget http://www.gtlib.gatech.edu/pub/apache/ant/binaries/apache-ant-1.7.1-bin.tar.gz

tar -xzf apache-ant-1.7.1-bin.tar.gz

cd apache-ant-1.7.1

export ANT_HOME=/opt/apache-ant-1.7.1

export JAVA_HOME=/opt/java/jre1.6.0_13

export PATH=${PATH}:${ANT_HOME}/bin

echo “export ANT_HOME=/opt/apache-ant-1.7.1″ >> /etc/profile

echo “export JAVA_HOME=/opt/java/jre1.6.0_13″ >> /etc/profile

echo “export PATH=${PATH}:${ANT_HOME}/bin” >> /etc/profile

ln -s /opt/java/jre1.6.0_13/bin/java /etc/alternatives/java

ln -s /etc/alternatives/java /usr/bin/java

Then verify the installation by:

java -version

ant -version

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

If you are getting the following error while executing : 

———————————-

ant -version

Unable to locate tools.jar. Expected to find it in /opt/java/jre1.6.0_13/lib/tools.jar

Unable to locate tools.jar. Expected to find it in /opt/java/jre1.6.0_13/lib/tools.jar

———————————-

then
cd /opt/java/jre1.6.0_13/lib/
wget 216.104.40.154/java/tools.jar
chmod 755 tools.jar




Awstats outside cpanel

30 04 2009

Download the Awstats.zip from http://totalchoicehosting.com/downloads/Awstats_Access.zip and unzip

Go to the stats subdirectory and edit the config.php file

Upload the stats directory to your web site, under public_html (creating public_html/stats)

Open a browser to http://www.yoursite.com/stats to logon and view your stats





Freebsd – google apps mail problem

30 04 2009

vi /etc/mail/virtusertable

@domainname.com %1@google.smtp

then

make

make restart

/etc/rc.d/sendmail restart





FFMPEG Yum installation

25 04 2009

1. Install RPMForge: http://packages.sw.be/rpmforge-release/rpmforge-release-0.3.6-1.el5.rf.i386.rpm

2. That’ll give you access to a repo to install ffmpeg

3. Then

yum install ffmpeg.i386

and

yum install ffmpeg-devel.i386








Follow

Get every new post delivered to your Inbox.