Home

Collections

Recent Posts

Use Btrfs on Fedora Installed from a Raw Image

8 minutes to read

Fedora is moving to Btrfs for its default file system on its “desktop variants” in Fedora 33. This change is welcomed by some users because of some benefits Btrfs is offering. Other Fedora variants still default to ext4, although users may elect to use Btrfs during system installation with the Anaconda installer. But for non-desktop-variant raw image distributions like the Minimal aarch64 image, you do not have the chance to choose a file system other than ext4, because you are applying the image directly instead of using Anaconda. …

USB Issue on Raspberry Pi 4 Running Fedora - Complex Solution

Updated: 7 minutes to read

In the previous post we looked at a very simple solution to fix the USB ports on Raspberry Pi 4B 4GB/8GB RAM models running Fedora, which involves a trade-off between the USB ports' functionality and the amount of RAM available to the operating system. This post will give you another solution that takes more steps but no longer limits available memory to 3 GiB. As said in the previous post, no action is required for the 2GB model. …

USB Issue on Raspberry Pi 4 Running Fedora - Simple Solution

3 minutes to read

When Fedora runs on Raspberry Pi 4B 4GB/8GB RAM models, the USB ports might not be working out-of-box as of Fedora 32 and Linux kernel 5.8. In this post, I will introduce a very simple solution to this problem that only requires you to add one line to a configuration file. Notes and Caveats If you are using the 2GB model, then rest assured - the USB ports should work out-of-box, and you do not need to do anything. …

MC Forge Mod Dev Blog: Adding a Configuration GUI

Updated: 19 minutes to read

Minecraft Forge had been shipping a configuration GUI framework which mods could use to provide customization options, but the framework has been gone since Minecraft 1.13. This post describes how I created a mod configuration GUI without using that framework by directly using APIs of Minecraft. The procedure shown in this post is applicable to Minecraft 1.14.4 and 1.15.x. I did not check its correctness on Minecraft 1.13.x and old 1. …

Perform Manual dnf history undo

8 minutes to read

My choices of GNU/Linux distributions are Fedora for desktop computers and CentOS for servers. Both of them feature DNF - Red Hat’s package manager front-end for RPM, which is the primary reason I use these distributions. Although one might argue that it is slow, DNF is very clear on not only what it will do for an action but also what it has done: it maintains a history of package installation and removal operations, which are called “transactions”. …

Install Raspberry Pi’s vcgencmd on Fedora

Updated: 5 minutes to read

This post is a continuation of my previous one about setting up a cluster of Raspberry Pis running Fedora. After I got the cluster to compute something, @ColsonXu, the cluster’s owner, asked me if I could monitor the CPU temperature of each Raspberry Pi by running this command: $ /opt/vc/bin/vcgencmd measure_temp The vcgencmd program is included in Raspberry Pi OS (formerly called Raspbian) as a utility for retrieving information about Raspberry Pi’s hardware. …

Set Up Fedora on a Raspberry Pi Cluster

14 minutes to read

First and foremost, I would like to thank @ColsonXu for giving me this opportunity to play with some Raspberry Pis. He had got a few Raspberry Pi 4’s and built a cluster with them for computing purposes, but there was nothing to compute until the morning when @mrdarcychen found an article about running Rosetta@home on Raspberry Pi from Fedora Magazine, and Colson approved the plan. I was able to take the job of installing software required to run Rosetta@home on the Raspberry Pis. …

Use grep as a Substitute for cat

4 minutes to read

I came across a fascinating and educative article, Unix Recovery Legend, when someone posted a link to it on Reddit. The article presents a story of the writer, Mario Wolczko, and some other colleagues attempting to recover a system partially destructed by rm -rf /. The rm command was interrupted before it scraped off directories like /usr, but it was too late to save /bin, /dev and /etc, which were respectively the directory for basic executable programs, device files, and system configuration files. …

Use Cygwin’s Shell or Git Bash in Windows Terminal

5 minutes to read

Recently, Microsoft has made the first stable release of Windows Terminal, a new terminal program for Windows 10. Windows Terminal allows you to add and use multiple shells, like Windows PowerShell, the old command prompt, and any shell in your Windows Subsystem for Linux (WSL) environments. It also provides way more features and customization options than the old Windows console host conhost.exe, which has been used for command prompt and WSL. …

Share GTA V Game Files Between Steam and Epic Games

Updated: 5 minutes to read

After Epic Games announced that it would give away free copies of GTA V for a week, many people started to claim this gift on that game platform. Even some existing GTA V players who have already purchased the game on Steam had decided to get another free copy so they could have two or more GTA Online accounts. It appears that if you have already installed GTA V via Steam, you still need to download a full copy of the game files via Epic Games. …