LAMP How To – Open Source At Work

Only Passion Matters

Entries for August, 2009

mounting file systems and autofs tips and samples

mounting nfs via fstab

server:/usr/local/pub /pub nfs rsize=8192,wsize=8192,timeo=14,intr

Can check the nfs sharing status by using “showmount -e server”
for nfs in autofs,
to mount the directory /hostdir on /misc/mountpoint on your machine, add the following line to auto.master:

/misc /etc/auto.misc –timeout 60

then in auto.misc

mountpoint -rw,soft,intr,rsize=8192,wsize=8192 nfshost.com:/hostdir
service [...]

Download rpm package using yum

first of all, need to install a yum plugin
yum install yum-downloadonly
After that, to just download a yum package, say mysql
yum reinstall mysql –downloadonly –downloaddir=/opt

listing files in yum packages

need the repoquery command.
yum install yum-utils
then
repoquery –list package-name

vmware server 2.0 quick installation

It is possible to run machines in vmware instead of xen. Vmware comes in handy when you have an old kernel that doesn’t support para-virtualisation.
vmware server is now web-based starting from ver 2.0. vmware is one of the pioneers when comes to virtualisation. It is meant to be as stable as a rock. I use [...]

Linux command line tip and tricks

There are some useful shortcuts in the the command line that can make life abit easier.

ctrl+k = delete everything from this char onwards.
ctrl+u = delete everything before this char.
ctrl + a = move cursor to the first char
ctrl + e = move cursor to end of char
ctrl + rightarrow = move one word after this [...]