Monthly Archives: October 2015
Apply user patches in portage ( Gentoo Linux )

In this example we will modify rxvt tabs like this:
rxvt-tab
First, download the patch from here
Then, create directory /etc/portage/patches/x11-terms/rxvt-unicode/ and put patch file there.
Create file /etc/portage/bashrc with code:

Finally emerge rxvt: emerge rxvt-unicode
user-patch

Get CIDR subnet mask from IPv4 address range.

example: $ ./iprange2mask 10.10.0.1 10.10.0.127
25