Change the urxvt font size on the fly

urxvt or unicode-rxvt is a terminal simulator like Gnome-terminal or Konsole. Recently I’m trying to switch to use i3 (i3-gaps), a tiling windows manager, and urxvt is good compliment to i3. Unlike Gnome-terminal or Konsole, the font name and size for urxvt are configured in ~/.Xresources. To make change to font size, for example, I’d edit ~/.Xresources, reload it with xrdb ~/.Xresources, and finally close and re-open urxvt itself. Though there is no built-in function to allow changing font size on the fly, urxvt allows us to do this via extensions. ...

December 24, 2017 · 2 min · 294 words · kenno

ZFS on Linux is now available for Fedora 27

My main machine at home has been upgraded from Fedora 26 to 27 since the day the 27 was released. Everything has been working great, except the ZFS file system. I’m a ZFS-believer and I store my important files on ZFS-based storage. For a while there was no repository for Fedora 27 provided by zfsonlinux, until 6 days ago. I have been using packages provided for Fedora 26 as work around solution. If you’ve been using the ZFS packages for Fedora 26, you can upgrade to the ones for Fedora 27 now. ...

December 19, 2017 · 1 min · 104 words · kenno

How to remove a copr repository in Fedora

This is just a quick note to remind myself how to remove a Copr repository. What’s a Copr? “Copr (Cool Other Package Repo) is a Fedora project to help make building and managing third party package repositories easy.” – https://fedoraproject.org/wiki/Category:Copr. Why do I want to remove it? One of the Copr repo I added a while back seemed to be no longer working, so I wanted to remove it. # dnf update --refresh Failed to synchronize cache for repo 'tcg-themes', disabling. Last metadata expiration check: 0:00:00 ago on Fri 08 Dec 2017 11:12:45 AM AEDT. Dependencies resolved. Nothing to do. Complete! To list all repos on Fedora (27): ...

December 11, 2017 · 1 min · 207 words · kenno

How to unban IP from PF firewall

This post is probably more relevant to my use case of PF firewall running on FreeBSD 11.1, and I need to remind myself how to unblock an IP from the block list. Here’s a snippet of what’s in /etc/pf.conf: table persist # Don't send rejections. Just drop. set block-policy drop # Exempt the loopback interface to prevent services utilizing the # local loop from being blocked accidentally. set skip on lo0 # all incoming traffic on external interface is normalized and fragmented # packets are reassembled. scrub in on $ext_if all fragment reassemble # set a default deny policy. block in log all # This is a desktop so be permissive in allowing outgoing connections. pass out quick modulate state # Enable antispoofing on the external interface antispoof for $ext_if inet #antispoof for $ext_if inet6 # block packets that fail a reverse path check. we look up the routing # table, check to make sure that the outbound is the same as the source # it came in on. if not, it is probably source address spoofed. block in from urpf-failed to any # drop broadcast requests quietly. block in quick on $ext_if from any to 255.255.255.255 block in log quick on $ext_if inet from to any In the pf.conf, the blocked IP table is called sshguard. To list all the blocked IPs, run: ...

November 17, 2017 · 2 min · 269 words · kenno

Set the HostName and Computer Name via command line on OS X

Work recently acquired a few MacBook laptops to be used and shared by staff. Though the computing staff is not expected to have immense knowledge about OS X, when things break down we are the first point of contact. The last time I used a Mac machine extensively was around 2007. Then I switched to Debian and could never look back. Anyway, there must be lot of new things and I’ll try document or post snippets here as I learn new things. ...

November 17, 2017 · 1 min · 114 words · kenno