Category Archives: UNIX

Ubuntu 22.04 + Chrome Remote Desktop Use Current Session

Chrome Remote Desktop 在 Ubuntu (其他 Linux 應該也是), 預設是開新的 Session ,但是這並不符合我們的使用習慣

1. 先下載這個 use_existing_session.patch patch file ,先上好 patch

2. 執行完之後

執行以下命令並重新啟動 chrome remote desktop service

echo "0" > ~/.config/chrome-remote-desktop/Xsession
systemctl restart chrome-remote-desktop@"your_user".service

目前在 Dell Notebook + Ubuntu 22.04 沒有問題,雙螢幕也可以支援

Kubuntu NetworkManager No Available Network

When using Ubuntu ARM64 server to install the server version before installing Kubuntu, the NetworkManager doesn’t work and shows no available networks. Regardless of your attempts to restart NetworkManager or change Netplan configurations, none of them seem to work.

The reason for this issue is that the ‘renderer: NetworkManager’ line is missing from the network YAML configuration file. To resolve this problem, you should edit your YAML file and add the following line.

renderer: NetworkManager 

to /etc/netplan/00-installer-config.yaml (my example), then restart network manager will fix it.


ARM64 cannot output Linux kernel message to VGA

If you tried every way on output to Linux kernel, but nothing work. Probably that’s because SPCR(Serial Port Console Redirection Table), and this option default is enable.

Just disable it in your BIOS and add “console=tty0” to /etc/default/grub, then update grub.cfg. it will work.

In AMI BIOS, it should be in the Advanced->Serial Port Console Redirection->Console Redirection

Set it to [Disabled]

[RFC PATCH v2 0/3] Prefer working VT console over SPCR and device-tree chosen stdout-path

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.

[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 »