Category Archives: UNIX

Ubuntu/Fedora PXE Boot

Before setting up Ubuntu/Fedora PXE boot, it needs to prepare several items on your PXE server:

  • * The Ubuntu/Fedora rootfs on tftp/nfs server:
    It can refer to the my article MIPS/ARM64 Debian/Ubuntu debootstrap for building the Ubuntu rootfs.
    If want to build the Fedora rootfs, it can install a new system on qemu and copy it from the qcow2 image.
  • NFS Server:
    Assume the rootfs for Ubuntu is on /nfs/ubuntu2204 and Fedora 36 is on /nfs/fedora36.
Read more »

Unable to complete install: internal error: cannot load AppArmor profile libvirt

ARM64 系統 + Ubuntu 20.04 裝 virt-manager 碰到一些問題,第一關是碰到 libvirtd 被 mask 掉了,這個簡單

Read more »

Stable Diffusion webui CPU only on ARM64 Platform

Stable Diffusion webui is a web service based on Gradio library for Stable Diffusion. The installation process can automatically set up the environment and install Stable Diffusion, which can save a lot of time. However, it requires an NVIDIA or AMD GPU to install it. If you want to install Stable Diffusion WebUI without a GPU, some modifications are necessary.

Using a CPU to run Stable Diffusion can be painful, so this article is just for fun.

Platform is Ampere Altra Mt. Collins system with 2 Ampere Altra CPU, total 160 cores.
OS: ubuntu 22.04.02 LTS
Seems Stable Diffustion webui needs python 3.10, so, ubuntu 22.04 is good choice.

Read more »

Build CentOS 8 Kernel from Source on ARM64 Platform

Due to CentOS website document cannot provide a simple instruction to build CentOS 8 stream with some easy steps. So, I make a note to record these procedures about how to build it.

Detail description and instruction, please refer to CentOS document, but if you have read the document and still don’t know how to do that, it can follow my instruction to build the kernel from CentOS 8 kernel source.

Read more »

Kubuntu Left Mouse Button Suddenly Stopped Working

It’s a strange problem, after login kubuntu/ubuntu system, after a while, the mouse click won’t work anymore suddenly. but it still can move. original post is for ubuntu 18.04, but it’s also work on my ubuntu 22.04

How to solve it temporary ? reload the psmouse driver

sudo modprobe -r psmouse

Suppose the ACPI driver or UEFI cause this issue, but not easy to find it out.

ref.
[SOLUTION] Left mouse button suddenly stopped working on Ubuntu 18.04

FF14 中華電信 LAG 問題

看到有人說改 MTU 可以解決 FF14 FFXIV 的延遲問題,【心得】中華電信FF14晚間卡頓解決方式
這個之前有看到過,但是忘了下去試

猜測原理應該藉由中華電信內部設定會讓小封包先通行的設定,達到穩定 ping 值的目地

Read more »

multichase on Centos 8 Compile Issue

muttichase is a google open source tool which can run latency, bandwidth and loader-latency tool,
it can support both x86 and ARM64 platforms.
but it will have compile error on CentOS 8

root cause is this package needs static lib support, but regular CentOS doesn’t have it.

# make                                                                             cc -g -O3 -static -pthread  multichase.o permutation.o arena.o util.o  -lrt -lm -o multichase
/usr/bin/ld: cannot find -lrt                                                                                 /usr/bin/ld: cannot find -lm                                                                                  /usr/bin/ld: cannot find -lpthread
/usr/bin/ld: cannot find -lc                                                                                  collect2: error: ld returned 1 exit status                                                                    make: *** [<builtin>: multichase] Error 1
Read more »

BMC Watchdog

這個時間有點久了,我也忘了很多細節,畢竟用到的次數太少,不過就將記得的寫一篇,以後可以自己回來查資料
如果是有 BMC 的機器,BMC 內部有一個 watchdog 可以監視 host 系統運行的狀況,這個拿來放在遠端重啟 host 非常好用

Read more »

Linux Kernel Install Fail Because Broadcom NetXtreme 100G DKMS Driver Build Failed.

Environment is CentOS 8, broadcom 100G NetXtreme-E series driver .
Host : Ampere Altra Platform

if rebuild the CentOS kernel and there was previous Broadcom nic driver alredy installed, it will trigger dkms to rebuild the driver on current kernel.

make install error as following

Read more »

CentOS 其他

筆記集中文

Read more »