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

Google Repo for Linux

Add following to /etc/yum.repos.d/google.repo file: 32-bit [google] name=Google – i386 baseurl= enabled=1 gpgcheck=1 gpgkey=

Posted in linux, Technical Tips, Third party softwares

Install VNC and Fluxbox

Reference : Install VNC ————— wget 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

Posted in General discussions, linux, Technical Tips, Third party softwares

Timezone Setup – NTP

Create a symlink to file localtime: # ln -sf /usr/share/zoneinfo/EST /etc/localtime #date [bash]# chkconfig –level 2345 ntpd on [bash]# /etc/init.d/ntpd restart [bash]# chkconfig –list ntpd To see if the service started successfully, you should check the system log file. [bash]# grep ntpd /var/log/messages [bash]# ntpq

Posted in Issues, linux

FreeBSD Hardware Info

Hardware type/platform, processor architecture uname -mrs —————————————————————– RAM Information cd /usr/ports/sysutils/freecolor make install clean To see memory details, enter: #freecolor -t -m -o OR # fetch # mv /usr/local/bin/free # chmod +x /usr/local/bin/free Enter the command # free

Posted in FreeBSD, linux

CIDR Values

CLASS A – /8 – /9 – /10 – /11 – /12 – /13 – /14 – /15 CLASS B – /16 – /17 – /18 – /19

Posted in Issues, linux

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

Drop Sync/DDOS Attack

1. Find.. to which IP address in the server is targeted by the ddos attack netstat -plan  | grep  :80 | awk ‘{print $4}’ | cut -d: -f1 |sort |uniq -c 2. Find… from which IPs, the attack is coming

Posted in Issues, linux, Scripts, Server Security

Script for replacing a string in multiple files

for y in `ls | grep .html`; do sed “s/abc/xyz/g” $y > temp; mv -f temp $y; done

Posted in Issues, linux, Scripts
Blog Stats
  • 111,891 hits

Get every new post delivered to your Inbox.

Join 209 other followers