Tag Archive for Linux

Quickly convert gzip to bzip2

Ever wanted to convert from one compression scheme to another? The long way to do it is to uncompress the original file and delete it, compress the files to the second compression scheme and then delete the intermediate files. This is very time and space inefficient.

The solution

To quickly convert a gzip file to bzip2, use the following command:

You can also use this solution for other types of compression, such as zip. Hope you find this trick useful!

Setting up SSH without a password

I recently had to set up SSH without a password on Linux. After several attempts, I followed the following steps, and all worked out well in the end.
Some important considerations are the permissions to the .ssh folder. For reference, here are the settings on my installation.
Hope that you’ll find this information useful!

Installing GIT in Linux

If you are using RHEL, Fedora, CentOS or similar Linux OS, use

to intall GIT. Remember to su as root to gain install permissions.


Type Y to continue

To install GIT in Debian, Ubuntu, Mint or similar OS, use

To verify, run the following command in the Terminal:

Logs flooded with IGMP and UFW

Lately I was having a problem with Ubuntu’s firewall having loads of messages such as:

Nov 15 00:13:37 machine kernel: [96488.961785] [UFW BLOCK] IN=eth2 OUT= MAC=01:00:de:00:ad:00:be:00:ef:03:13:37:0h:a1 SRC= DST= LEN=28 TOS=0x00 PREC=0x00 TTL=1 ID=30636 PROTO=2

Found the solution on Frank Geerlings blog:

sudo ufw deny from to

The command instructs the ubuntu firewall to deny the multicast. Simple, sweet and working 🙂

(Note: examples reproduced from Frank’s website!)