Check disk usage on root (/) partition excluding other partitions

While checking the root partition on my desktop today, I noticed that its usage is at 89% with just 6GiB free. For this reason, I wanted to find out what’s consuming most spaces and whether I can clean it up a bit. # df -h / Filesystem Size Used Avail Use% Mounted on /dev/mapper/fedora_watamem-root 56G 47G 6.3G 89% / The first two commands that come to my mind are du and ncdu. In this post, I’ll use ncdu to investigate the disk usages on the ‘/’ partitions. ...

September 22, 2022 · 3 min · 544 words · kenno

How to add additional remote git repository

Though it’s not very common in my daily work, I occasionally need to add additional remote Git repositories mainly for pushing. In fact, I did this about 4 to 5 times already, and thought that it’d be the last time. Today, I need do this again, and I forgot! Currently, I have the following remote repository set for ‘origin’: ❯ git remote -v origin git@git.homeserver.local:kenno/ansible.git (fetch) origin git@git.homeserver.local:kenno/ansible.git (push) I wanted to add https://kenno@gitea.homeserver.local/kenno/ansible.git as the additional repo for pushing. ...

September 3, 2022 · 1 min · 193 words · kenno

How to reset Rhythmbox library

Rhythmbox stores its music database as an XML file located in ~/.local/share/rhythmbox/rhythmdb.xml. The easiest way to reset this database is to close the Rhythmbox program, and completely remove the rhythmdb.xml file. ➜ pkill rhythmbox ➜ rm ~/.local/share/rhythmbox/rhythmdb.xml ➜ rhythmbox & Reference: How does one clear the Rhythmbox music library database?

September 2, 2022 · 1 min · 50 words · kenno

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.0°C (high = +105.0°C, crit = +105.0°C) Core 3: +37.0°C (high = +105.0°C, crit = +105.0°C) acpitz-acpi-0 Adapter: ACPI interface temp1: +27.8°C (crit = +119.0°C) Reference: ...

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