Tag Archives: linux

GoDaddy NameServer not registered

Recently, I moved over to a new host with a dedicated box and I had to setup the nameservers for my domain kpsolution.com. In Godaddy’s domain manager, I tried to change the nameservers to my domain like ns1.xxxx.com and ns2.xxxx.com, … Continue reading

Posted in linux | Tagged , , , | Leave a comment

Use RSYNC to backup data on a second hard disk

On a production server, if you have two hard disk and do not want to spend extra $50 each month, then you could use rsync to backup the data from your main disk to the second disk. It’s very easy … Continue reading

Posted in linux | Tagged , , | Leave a comment

Enable dark background in Eclipse

I was looking around to find a good source which would allow me to control the background of the eclipse. I like black background with white text as foreground. Doing so in eclipse is not straightforward. My System setup is: … Continue reading

Posted in linux | Tagged , | Leave a comment

How to generate a patch?

To generate a patch for your modified code. All you have to do is generate a diff between original and modified source files using the following command and save the output to the patch file. diff -rup /home/ketan/unmodified_source.c /home/ketan/modified_source.c > … Continue reading

Posted in linux | Tagged , , | Leave a comment

Readelf – Very useful Command

Till now I have been using ‘ldd’ for checking out the dependencies for a linux executable. But recently I discovered, ‘readelf’. It is really amazing utility and comes in very handy when you are analyzing a utility intended for a … Continue reading

Posted in linux | Tagged , | Leave a comment

How to add a user to a group?

I keep on forgetting this command, so I put it here to remember it forever. To add a user ‘ketan’ to the group ‘admin’, do the following gpasswd -a ketanĀ  admin Such a simple and each to use command!!!

Posted in linux | Tagged , , | Leave a comment

How to create SVN repository?

This post will help you create a new SVN repository and it assumes you have the SVN installed & configured on your computer/server. To create the repository for first time, issue the following command svnadmin create –fs-type fsfs /var/www/subversion/kpsolution Then … Continue reading

Posted in linux | Tagged , , , | Leave a comment

mysqld.log grows too big in size

Recently on one of our new servers, we had an issue where the mysql daemon had halted on bus error. We couldn’t stop the mysql daemon using /etc/init.d/mysqld stop Then I looked at the error-log file for mysql in /var/log/mysql-error.log … Continue reading

Posted in linux | Tagged , , , | Leave a comment