Sunday, July 19, 2009

"Firefox already running" error

Do you get this error when there is no process called firefox?
I mean

# ps -aux | grep firefox
#


Then do this

cd ~/.mozilla/firefox/[profile_name]
rm lock .parentlock

Wednesday, July 15, 2009

Network tweaks

Many times client computer doesn't get IP address even if its protocol is DHCP. If we manually give IP address to it, everything works perfectly fine. Thus the command to give manual IP is as follow


ifconfig eth0 'new_ip' netmask 255.255.255.0 up


Do not forget to fill in the IP adress you want.

Also if the default routes are screwed up, fix it like this

cat >> /etc/sysconfig/network << END
GATEWAY='Gateway_IP'
END

Friday, July 10, 2009

Setting up NIS server

These are the scripts which I have tried and tested in order to set NIS service over the network.

On server side :

yum -y install ypserv
domainname SCRC
cat >> /etc/yp.conf << END
ypserver 127.0.0.1
END
cat >> /etc/sysconfig/network << END
NISDOMAIN=SCRC
END
service ypserv start
chkconfig ypserv on
/usr/lib/yp/ypinit -m
service ypbind start
chkconfig ypbind on
service ypxfrd start
chkconfig ypxfrd on
cd /var/yp
make



On client side :

yum -y install ypbind
domainname SCRC
cat >> /etc/yp.conf << END
ypserver pioneer
END
cat >> /etc/sysconfig/network << END
NISDOMAIN=SCRC
END
service ypbind start
chkconfig ypbind on


Do not forget to change /etc/nsswitch.conf