Category Archives: Unix

[Unix] Add swap

To add this extra space to your instance you type:

sudo /bin/dd if=/dev/zero of=/var/swap.1 bs=1M count=1024
sudo /sbin/mkswap /var/swap.1
sudo /sbin/swapon /var/swap.1

To enable it by default after reboot, add this line to /etc/fstab:

/var/swap.1 swap swap defaults 0 0
Source: Stackoverflow

Coding on remote server/cluster with Eclipse

You need sometimes to execute your scripts on a remote server or cluster because of its computational performance. And you ought to test or modify your codes before or after an execution. Eclipse is one of the must-have IDEs for you.


  • friendly GUI support,
  • multiple languages compiler plugins
  • cross-platform IDE
  • portable (on-the-fly running without root access for installation)
  • open source