Author Archives: richliu - Page 2

Ubuntu Change Default Mac Address

Ubuntu used netplan as new network manager, but it’s different with previous version.

First create a new file /etc/systemd/network/10-override-mac.link

[Match]
MacAddress=52:54:00:12:34:56

[Link]
MACAddress=52:54:00:12:34:58

52:54:00:12:34:56 is old mac, and 52:54:00:12:34:58 is new mac .

Second, modify /etc/netplan/01-netcfg.yaml, create match: and macaddress field , example

network:
version: 2
ethernets:
eth0:
dhcp4: true
match:
macaddress: ’52:54:00:12:34:58′
set-name: eth0

ref.

Netplan not spoofing MAC as expected

Gentoo ARM64 Docker Image

There is a long time no article about gentoo on my blog.

Today, I have a whim to do a gentoo ARM64 docker image, so, we have this article.

Please understand that ARM64 Gentoo is experimental, and might be different after a while.

Read more »

QEMU Run x86_64 on ARM64 Server command

This is a work note for run x86_64 on ARM64 server .
Because they are different archeticture, so, run x86_64 on ARM server would be very slow.

and some functions might be different when run on different platform

Read more »

Kdump in ubuntu 18.04 ARM64


kdump is very good tool to debug complex system like cloud data center, it can easy to save kernel status when crash.
Running kdump in ARM64 just like running in x86, but I met a strange problem on ARM64 platform.

The kernel version is HWE kernel, current version is 4.18.0-25, mihbt be encounter those problems

Read more »

ARM64 Kdump cannot allocate crashkernel

In ARM64 server and installed memory around 128G, ubuntu default /etc/default/grub.d/kdump-tools.cfg default configuration might cause kdump allocate memory failed. error message as below

[ 0.000000] cannot allocate crashkernel (size:0x80000000)
[ 0.000000] Kernel command line: BOOT_IMAGE=/boot/vmlinuz-4.18.0-25-generic root=UUID=ee8be10d-d649-425d-a807-640751836186 ro console=tty0 crashkernel=2G-4G:320M,4G-32G:512M,32G-64G:1024M,64G-128G:2048M,128G-:4096M

Read more »

PIME 大易三碼

對一個大易用戶來說,好的輸入法不好找。
Windows 7 時是 Yahoo 輸入法最好用,但是 Yahoo 輸入法已經停止開發,Windows 10 上比較好一點的輸入法只有 PIME

前一陣子回答了一個 PIME 的問題 大易3碼表缺字 #520

Read more »

Kubuntu執行GTK 程式的怪問題+gcin改dayi三碼表

這個故事有點長,先講結論好了, hime 似乎會影響某些 GTK 程式運作

Read more »

107年以核養綠公投

這篇拖太久了,寫在最前面, TL;DR

這篇是寫給十年後的我看的,之前在找公投相關的資料時,想到當年我有發過公投票,有時會去看那篇回味一下,看看自己以前分析的文章還頗有趣,過一陣子看法都會因為時空環境而改變,而這次會寫文章的主要原因是因為個人高度關注及投注力氣的以核養綠最後成案,想寫下一些自已對以核養綠公投的看法。再花一些篇幅寫十三,十四,十五案的問題和其他看法。

Read more »

Los Angeles二日遊 (Day2-2)

從旅館離開之後,下一個目的地是比佛利山莊

其實應該叫比佛利山,只是台灣都習慣叫比佛利山莊
我去的時候是約略快到中午時間,附近找一找可能還有車位

這次運氣不錯前人還約留了快一個小時給我,我就不必付錢啦(雖然也還沒有用過路邊停車付費)

Read more »

PyCharm 內執行 QT Designer 和 ui 轉 py

看了幾篇文章都有些疏漏,並沒有辦法真正的做到直接在程式內直接呼叫 External tool 做到這兩件事

都會有一些錯誤訊息

Read more »