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 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 : 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/ 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
Blog Stats
  • 129,396 hits

Get every new post delivered to your Inbox.

Join 211 other followers