Many projects enable additional diagnostics by using the -Wall and -Wextra command-line options. Some projects even turn them into errors via -Werror as their first line of defense. Read more 07 Nov 2021 - 1 minute read
紀錄一下如何在 Linux 上架 RAID-1. Read more 03 Nov 2021 - 2 minute read
Print multiple lines to file from bash. cat << EOF >> file.txt line 1 line 2 EOF Read more 25 Oct 2021 - less than 1 minute read
在 Ubuntu 20.04 的 docker image 上裝 v4.4.140 kernel header 時, 遇到 package dependency 問題. dpkg: dependency problems prevent configuration of linux-headers-4.4.140-0404140-generic: linux-headers-4.4.140... Read more 19 Oct 2021 - less than 1 minute read
在編譯 libs/apps 的時候, 有時候需要 include kernel header. 但 container 和 host 共用 kernel, 沒有固定的 kernel 版本. 之前就遇過只要 host kernel 一更新, container 就找不到 kernel header 的問題, 後來要在 container 中做一個假的 uname binary 騙過 confi... Read more 05 Oct 2021 - less than 1 minute read