Saturday, December 27, 2008

Happy New Year and Happy Holidays :)

Hey,

After much work and completing my project at the right time, i am finally free to go to my home this weekend. This is a much needed break, that i was looking for, away from this place and away from my office, with my family. The last few months have been the most sadistic period of my life, though i don't have any reason for that. Hopefully, all this will change when i come back from my home.

Since there are only few days left for the new year, i was thinking of having a new year resolution, but nothing fruitful is in my mind as of now. Maybe i will write about this in a different post. I have brought a new winter wear for my little sister, hope she likes it or else i have to hear a lot from her. I still have to buy something for my father. Well i dedicate tomorrow for thinking and executing this plan.

And yes!!, for all you people reading this post, Happy new year and Happy holidays :)
Wish the new year brings all the joys and happiness in your lives and in mine too :)

Saturday, November 29, 2008

How to increase SWAP space in linux

Adding more swap space is very easy in Linux, all you need to have is some free hard disk space. Say for some weird reason you need to increase your swap space by say 500MB, then this is how you can go about adding it.

Firstly, create a file of 500MB using 'dd'
dd if=/dev/zero of=/home/swapfile bs=1k count=500000
then set appropriate permissions for the file
chmod 600 swapfile
make it a swap file
mkswap swapfile
and finally activate it
swapon swapfile
That's it, you have just added 500MB of swap space. You can check the swap size using the 'free' command. In future if you want to remove the swap space, then do the following

turn swap off
swapoff swapfile
delete the file
rm swapfile


That's it.