setup a virtual ethernet device on linux

What would you do if you want to add one more IP to your system. Attach one more network device? No! Then what? You would setup a virtual ethernet device. Suppose you have a physical eth device named eth0 as below: eth0 Link encap:Ethernet HWaddr 00:1C:C0:78:31:E0 inet addr: Bcast: Mask: UP BROADCAST RUNNING MULTICAST MTU:1500 Metric:1 ...

May 2nd, 2011 by Akhthar Parvez 

/home/virtfs consuming a lot of space?

/home/virtfs is the directory created by cpanel to provide a restricted data access to jailshell users. When a user is logged in via jailshell, a virtual fileystem is created for the cpanel user by mounting only the selected filesystems under /home/virtfs/ so the user can (only) access the data under these filesystems. Since the data in /home/virtfs/ is pointed to the actual data, system would show...

May 2nd, 2011 by Akhthar Parvez 

mkinitrd failed with error No module dm-mem-cache found for kernel

You might get the following error while running the mkinitrd command to install a new kernel on CentOS 5 (RHEL5) : No module dm-mem-cache found for kernel 2.6.18-92.1.13.el5, aborting. This is because the system tries to include the dm-mem-cache module in the generated initial ramdisk images eventhough your system might not have dmraid. So while creating a initial ramdisk images for kernels that do...

December 25th, 2009 by Akhthar Parvez 

Password-less access for ssh

Do you want to setup password-less access to a remote server? Well, you can get this done quite easily. However, bear in mind that it’s highly insecure setting up password-less authentication, especially for the root user. But sometimes, you would need it. Make sure you’ve security systems in place such as TCP wrappers to make it safe. So here’re the steps to accomplish a password-less...

December 6th, 2009 by Akhthar Parvez 

mounting /proc

You can run the following command to mount /proc on a live system. # mount /proc /proc -t proc
October 10th, 2009 by Akhthar Parvez