Change the hostname of a vps

6 07 2011

You have to change the hostname in the following files:

/etc/hosts
/etc/sysconfig/network
/proc/sys/kernel/hostname





Create Bootable USB from Linux

17 05 2011

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





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





Bootable USB Drive in MAC

3 04 2011

1. Insert your flash drive
2. Open Terminal and run :
diskutil list
3. Note the device node assigned to your flash media
(e.g. /dev/disk1s1)
4. Run :
diskutil unmountDisk /dev/disk1s1
5. Then execute :
sudo dd if=/path/to/downloaded.img of=/dev/disk1s1 bs=1m
6. Finally Run :
diskutil eject /dev/disk1s1
7. Remove your flash drive





Plesk SPAM-Bounce Mails

17 11 2010

http://savingneo.com/viewtopic.php?f=3&t=2





Timezone Setup – NTP

24 08 2010

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 -pn

For correct synchronization, the delay and offset values should be non-zero and the jitter value should be under 100.





Munin Installation

20 07 2010

cd /usr/local/src

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 munin

yum install munin-node

vi /etc/munin/munin.conf

htmldir /var/www/html/munin

mkdir /var/www/html/munin

cp -rp /etc/munin/html/* to /var/www/html/munin

chown -R munin.munin /var/www/html/munin

allow port 4949 in firewall

restart httpd, crond, munin-node





Whitelist domains in exim

13 07 2010

Login to the server SSH as root. Make a sender whitelist file.

touch /etc/exim_whitelist_senders

Take a backup of the exim conf and open it.

cp -p /etc/exim.conf /etc/exim.conf.BKP
vi /etc/exim.conf

Add the line on top of the file

addresslist whitelist_senders = wildlsearch;/etc/exim_whitelist_senders

Now search for the line
require verify = sender/callout

Comment that line and add the following below that.

!verify = sender/callout=30s,defer_ok,maxwait=60s
!senders = +whitelist_senders

Save conf file.

Add email address to the /etc/exim_whitelist_senders file one by one. Wildcard is also acceptable here, Eg: *@domain.com

Restart exim





Hotmail Support

8 07 2010

https://support.msn.com/eform.aspx?productKey=edfsmsbl&ct=eformts&st=1&wfxredirect=1








Follow

Get every new post delivered to your Inbox.