Blog Archives

Change the hostname of a vps

You have to change the hostname in the following files: /etc/hosts /etc/sysconfig/network /proc/sys/kernel/hostname

Posted in linux, Server Setup

Create Bootable USB from Linux

Install Livecd-tools and spin-kickstarts using Yum yum install livecd-tools spin-kickstarts Make the partition bootable /sbin/parted /dev/sdb (parted) toggle N boot (parted) quit Run the command from shell /usr/bin/livecd-iso-to-disk /path/to/live.iso /dev/sdb1

Posted in linux, Server Setup, Technical Tips

Set Timezone on Linux Machine

ln -sf /usr/share/zoneinfo/Asia/Calcutta /etc/localtime Using TZ environment export TZ=Asia/Calcutta date

Posted in Issues, Server Setup

Resize /tmp in cpanel servers

service chkservd stop service httpd stop service mysql stop service postgresql stop lsof | grep /tmp kill the process umount /var/tmp umount /tmp vi /scripts/securetmp replace “256000″ with “512000″ rm -rf /usr/tmpDSK /scripts/securetmp –auto cd /tmp ln -s /var/lib/mysql/mysql.sock service

Posted in Cpanel, Issues, Server Setup

Upgrade Python to 3.1

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

Posted in Issues, linux, Server Setup, Third party softwares

How to Boot second kernel if first fails

Reference :  http://www.linux-noob.com/forums/index.php?/topic/2928-grub-single-boot-and-kernel-panic-reboot/ If for example your grub.conf looks like the one i have below. This boots into the 2.6.20-1.2944 by default. default=0 timeout=5 splashimage=(hd0,0)/grub/splash.xpm.gz hiddenmenu title Fedora Core (2.6.20-1.2944.fc6)         root (hd0,0)        

Posted in Issues, linux, Server Setup

Remote access to mysql database

Step 1 : vi  /etc/my.cnf ——————————————— pid-file        = /var/run/mysqld/mysqld.pid socket          = /var/run/mysqld/mysqld.sock port            = 3306 basedir         = /usr datadir         = /var/lib/mysql tmpdir          = /tmp language        = /usr/share/mysql/English bind-address    = mysql server ip # skip-networking ——————————————— bind-address : IP address to

Posted in Issues, Mysql, Server Setup

Script used to transfer account from cpanel server

#!/bin/bash ls -1 /var/cpanel/users > /root/user_list PORT=”22″ ssh-keygen -t dsa KEY=`cat /root/.ssh/id_dsa.pub` ssh $1 -p$PORT “mkdir -p /root/.ssh;echo ${KEY} >> /root/.ssh/authorized_keys” 2>&1 scp /var/cpanel/packages/* $1:/var/cpanel/packages/ for user in $(cat /root/user_list);do /scripts/pkgacct $user;done scp /home/user_list $1:/home scp /home/cpmove* $1:/home

Posted in Cpanel, Scripts, Server Setup

Red5 installation

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

Posted in General discussions, Scripts, Server Setup, Third party softwares

Recompile Perl in Cpanel servers

To check what is the perl version on your system, use: perl -v This is perl, v5.8.7 built for i686-linux If you need to upgrade your perl installation without breaking your CPanel, please follow this method. wget http://layer1.cpanel.net/perl588installer.tar.gz tar xfz

Posted in Cpanel, General discussions, Issues, Server Setup
Blog Stats
  • 111,512 hits
Follow

Get every new post delivered to your Inbox.

Join 209 other followers