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....

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....

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

How to change FreeBSD Firefox user agent

This laptop runs FreeBSD 12.0 current. The version of the installed Firefox is 59, which is pretty new isn’t it? Well, that’s not new or good enough to browse outlook.office365.com email. What happened is that, the Outlook web based email would just automatically switch to class Outlook web access. This problem is not unique to Outlook email, even some work related websites refuse to load correctly on Firefox running FreeBSD....

March 13, 2018 · 1 min · 188 words · kenno