Source: Is it better to use UUID or PARTUUID to automount HDD with fstab?
Continue reading »4 月 102024
3 月 262024
Source: Linux 如何用舊的 eth0 網路介面名稱,不要 eno0, enp0s1
若要用 eth0 ,編輯 /etc/default/grub ,GRUB_CMDLINE_LINUX 這行改成:
GRUB_CMDLINE_LINUX="net.ifnames=0 biosdevname=0"
Continue reading » 3 月 212024
Source: Debian 12 / Ubuntu 22.04 使用源安装 LAMP 教程
本文將介紹使用官方來源和第三方來源在Debian 12 和Ubuntu 22.04 安裝最新版Apache 2 + PHP + MySQL 的教學課程,並且可以自行選擇PHP 版本。
Continue reading »3 月 212024
Source: Debian 12 編譯打包 PHP 7.4
Debian 12 已經移除 PHP 7.4 套件,只留 PHP 8.2 套件。 不幸的是,有些 PHP 程式還沒有升級到 PHP 8.2。 為了這些舊程式,我編譯打包了 php7.4-compat 套件。
Continue reading »3 月 202024
2 月 232024
1 月 262024
1 月 162024
Source: How to find the physical volume(s) that hold a logical volume in LVM
- pvdisplay -m
- lvdisplay -am
- lvs -o +devices
- lvs --segments -o +devices
- lsblk
1 月 162024
Source: inotify-tools 監控檔案變動、觸發處理動作
inotify(代表 inode notify)是一個 Linux 核心子系統,負責監看檔案系統並將任何檔案變動通知應用程式,可用於自動更新目錄顯示、重新載入設定檔、記錄檔、備份檔案或上傳檔案。
Continue reading »1 月 162024
Source: Linux 使用 rsync 進行增量備份、建立檔案快照教學與範例
資料的備份方式可分為完全備份(full backup)、差異備份(differential backup)與增量備份(incremental backup),各種備份方式各有優缺點,其差別可以參考維基百科與 YouTube 的影片。
Continue reading »