Tmux - Open Terminal Failed Can't Find Terminfo Database

Apart from being an aparent Linux user, I’m also a fan of FreeBSD. A few years ago I challenged myself to perform all work related tasks on a FreeBSD machine for 6 months. It turned out that FreeBSD’s been working out quite well as a general usage work desktop. Today, I’d like to share a quick solution to a small annoying issue that may or may not affect you when you’re using FreeBSD. Basically, when I ssh from my Linux machine, which uses Alacritty terminal, to the remote FreeBSD machine at work I am not able to resume my tmux session. ...

October 15, 2020 · 2 min · 267 words · kenno

List Open Ports on FreeBSD

On Linux to list running services and open ports, I either use netstat or ss (socket stat?) most recently. Though netstat is available on FreeBSD, the syntax is completely different. Today, I have the need to list the running services with the port display. On FreeBSD, we can do this using sockstat command. root@bsd1:~ # sockstat -4 -l USER COMMAND PID FD PROTO LOCAL ADDRESS FOREIGN ADDRESS minio minio 49274 10 tcp46 *:9000 *:* root sendmail 675 4 tcp4 127.0.0.1:25 *:* root sshd 672 4 tcp4 *:22 *:* ntpd ntpd 616 21 udp4 *:123 *:* ntpd ntpd 616 22 udp4 149.171.180.154:123 *:* ntpd ntpd 616 25 udp4 127.0.0.1:123 *:* root syslogd 523 7 udp4 *:514 *:* Here are some other options which can be passed to the sockstat command: ...

April 8, 2020 · 1 min · 151 words · kenno

Install Ansible on Freebsd

This post briefly explains how to install Ansible on a FreeBSD host. I’m going to install Ansible in a virtual environment using Python 3. (If you still use Python 2, it’s time to start migrating to Python 3 now.) $ sudo pkg install python36 $ mkdir ~/dev/python3-venv $ python3 -m venv ~/dev/python3-venv/ansible Next, activate the Python venv (ansible), and start installing Ansible using pip: $ source ~/dev/python3-venv/ansible $ pip install ansible You may or may not need to update pip module as I did. In my case, Python complains that I have older version of pip. To update pip, just run: ...

February 21, 2019 · 1 min · 138 words · kenno

How to set timezone in FreeBSD 12.0

FreeBSD 12.0 install media :20180208 misses a lot of timezone file. E.g. it doesn’t have /usr/share/zoneinfo/Australia/Sydney. Ensure: zoneinfo package is installed. Then run: And confirm: Fri Feb 16 00:19:48 AEDT 2018

May 28, 2018 · 1 min · 31 words · kenno

Make Github code viewer more pleasant on Firefox on FreeBSD

Ever since I have FreeBSD 12 installed on a spare laptop, I notice that this is the most frequently used portable machine at home. (Of course, I still use my main desktop, which runs Fedoda 27, for everything.) I think one of the main reasons is that I like the experiences when I started using Linux years ago – not everything works out of the box, and sometimes I’m forced to learn and understand better about an issue before it can be fixed. ...

April 22, 2018 · 2 min · 304 words · kenno