Running ASReml on Linux
To run ASReml on a Linux system can be very tricky. This software has built its reputation. It then don’t care very much about its custormers. The following valid instructions were after many combination tests. Had you any other alternatives, I would not recommend ASReml, especially on Linux, where most serious computations are carried on nowadays.
The following instructions are to run a cloud instance of AlmaLinux9 one a AlmaLinux 10 system.
Resize root partition on an AlmaLinux OS
Resizing Root Partition on AlmaLinux 10 (LVM + XFS)
Since XFS filesystems cannot be shrunk, increasing the root partition requires backing up the /home partition, deleting it, expanding /root, and then recreating /home.
Prerequisites
- A backup location with enough space (e.g.,
/mnt/w). - Root or sudo access.
Step 1: Backup Home Data
Backup all data from /home to a temporary location.
sudo mkdir -p /mnt/w/home_backup
sudo rsync -aHAX --progress /home/ /mnt/w/home_backup/
Step 2: Unmount and Remove the Home Volume
Ensure no processes are using /home, then unmount it and remove the Logical Volume (LV).
Local AI tools
I am not an expert about nodejs. But gemini and copilot cli are written in nodejs. One annoying issue before is that they have to be installed globally which require root privileges. This post shows the step to install them locally.
mkdir -p ~/Music/ai-tools
npm init -y
npm install @google/gemini-cli @github/copilot
cd ~/.local/bin
ln -s ~/Music/ai-tools/node_modules/.bin/gemini .
ln -s ~/Music/ai-tools/node_modules/.bin/copilot .
In the same directory, create a file called update-cli-tools.sh.
PDF to MarkDown
We may have some old documents that are only on paper. The following procedure is to convert them into MarkDown format. The latter can be easily converted to easy to handle PDF files. If you have some graphic card like mine, which is GeForce RTX 3060 Ti, with 12GiB VRAM, or better, you can follow the steps below.
The first step is to scan the papers into a PDF file. Then
Setting up Hugo
Setting up Hugo
Hugo generate static web files. This is how this blog was compiled. Hugo can be installed locally. The generated contents are synchronized to some remote servers.
Setting up the remote
A dedicated folder on my home server was setup to host the compiled hugo files. The details are not shown here.
Setting up the local
sudo dnf install hugo
# in the path where you want to save the blogs
hugo new site blog
cd blog
git init
git add hugo.toml
hugo new content content/posts/hugo.md # this post
touch deploy.sh
git add deploy.sh
- deploy.sh
#!/usr/bin/env bash
hugo && rsync -avz --delete public/ remote:/var/www/blog/
- to deploy
./deploy.sh
$e^{i\pi}+1=0$