How to check cpu temp on Debian and Ubuntu

This is just a quick note for me to display CPU temperature on one of my fanless device which runs Debian. Install the required package lm-sensors Run the sensors command. Here is a sample output: root@pve:~# sensors coretemp-isa-0000 Adapter: ISA adapter Package id 0: +45.0°C (high = +105.0°C, crit = +105.0°C) Core 0: +37.0°C (high = +105.0°C, crit = +105.0°C) Core 1: +37.0°C (high = +105.0°C, crit = +105.0°C) Core 2: +37....

August 29, 2022 · 1 min · 105 words · kenno

How to upgrade FreeBSD from 13.0 to 13.1

I feel upgrading FreeBSD from 13.0 to 13.1 is so minor that it might not worth a blog post. The thing is, I just did this upgrade on one of my 2 nas servers a month ago, and now I forgot how to do this already. This post should be short, and I will include the reference(s) at the end if you’d like to learn more about this update process....

July 19, 2022 · 2 min · 307 words · kenno

How to Deploy Xen Orchestra Appliance on XCP-ng

This is a quick note on how I got the Xen Orchestra Appliance (XOA) on a new XCP-ng server. I know there are many guides out there, and in fact this is not my original content, but I want to capture what I did to get it working. Here are the steps I performed on my server in order to install XOA: [14:16 xcpng ~]# bash -c "$(curl -sS http://xoa.io/deploy)" Welcome to the XOA auto-deploy script!...

July 10, 2022 · 1 min · 211 words · kenno

Restoring Postgresql DB backup with different owner role

Like the title says, when restoring a Postgresql database onto a different server which happens to have a dfferent role owner, extra care is needed, otherwise similar error message below will come up: pg_restore: from TOC entry 217; 1259 17163 TABLE users_collections webdev1 pg_restore: error: could not execute query: ERROR: role "webdev1" does not exist Command was: ALTER TABLE public.users_collections OWNER TO webdev1; pg_restore: from TOC entry 218; 1259 17168 TABLE users_organizations webdev1 pg_restore: error: could not execute query: ERROR: role "webdev1" does not exist Command was: ALTER TABLE public....

July 3, 2022 · 1 min · 213 words · kenno

Mounting NFS share with Systemd Automount

On my main workstation running Fedora 36, I use both autofs and Systemd automount to mount NFS on demand. Gradually, I’m leaning toward just to use Systemd automount. Here is just a brain dump with an example of mounting an NFS share with Systemd autmount. Though, I had done this before, I found this blog post, available at [1], provides details on how to do this. Assumption The NFS server and share: banan....

June 13, 2022 · 2 min · 359 words · kenno

How to Enable Proxmox Guest Agent

I recently had a need to run Proxmox Virtual Environment (7.2-4) at home for a project. So far everything seemed to be straight forward, partially thanks to KVM technology used in Promox. However, I also learned a few things along the way too. The first thing that I had look up on the Internet to get it working is to activate (Promox) qemu-guest-agent. If you’re reading this, it’s likely you didn’t get it working on first trial either....

June 12, 2022 · 1 min · 184 words · kenno

Start and Stop Network Service on FreeBSD

A quick note for me to remind myself how to stop/start network service on FreeBSD (13.0). To stop or start, run one of the following commands: # service netif stop # service netif start To restart, just replace stop or start with restart: # service netif restart I also just found out that the above commands will nto restarting the routing service, as they only stop/start/restart network. To restart the routing service on FreeBSD, run:...

June 5, 2022 · 1 min · 108 words · kenno

How to delete disk partitions on Windows using PowerShell

Today I just added an old SSD to a Windows machine to use it as a back up drive. With old disks, usually they come with existing data, and I wanted to get rid of it. The problem is I couldn’t figure out how to do this using the Disk Management, the native GUI application used to manage disks. The problem could be simple to Windows users. Basically, when I right-clicked on the 2 partitions (450 MB and 100 MB) on Disk 0, there is no option to remove them....

May 15, 2022 · 3 min · 618 words · kenno

Turn on bluetooth on login screen in Tumbleweed

After taking a very long break (over a decade) from running openSUSE on my person machine, I finally got Tumbleweed installed on a spare Intel NUC machine. If you’re one of my blog readers, expect to see more contents about SUSE/openSUSE later. Today, I’m going to share how I fix the issue with bluetooth keyboard/mouse not connected to this NUC at the login screen. I can’t remember I needed to do that my main machine running Fedora, but oh well, the fix is simple enough (if you know now)....

April 10, 2022 · 2 min · 230 words · kenno

How to Create Exfat Filesystem on Usb

I have a UBS drive formatted as fat32 because I need to share it with Linux and macOS. When I want to copy a Linux ISO file which is larger than 4GiB, this was not possible due to the limitation of fat32 filesystem. A solution is to format that USB drive with exfat filesystem. I will do this on a Fedora 35 machine, but the process should be familiar for other Linux distros too....

March 31, 2022 · 2 min · 245 words · kenno