sudo umount -a -t cifs -l
-l
,--lazy
:unmount. Detach the filesystem from the file hierarchy now, and clean up all references to this filesystem as soon as it is not busy anymore.
reference:Force Unmount a CIFS Share in Linux
軟體開發、伺服器和生活瑣事
sudo umount -a -t cifs -l
-l
, --lazy
:unmount. Detach the filesystem from the file hierarchy now, and clean up all references to this filesystem as soon as it is not busy anymore.reference:Force Unmount a CIFS Share in Linux
假設要讓 google-cloud-cli
套件維持在目前的版本、不更新,可以使用 apt-mark
鎖定版本:
apt-mark hold google-cloud-cli
若不再需要鎖定版本,則使用 unhold
解除鎖定:
apt-mark unhold google-cloud-cli
參考 restic 官方文件,先建立 backup repository:
restic -r sftp:backup@host:/storage.server/backup-folder init
restic 會自動記錄檔案內容,在同一個 backup repository 的資料都會做差異性備份,檔案內容沒有更動的話,就不會再複製檔案內容,加快備份速度。
用 restic 備份伺服器的資料:
restic -r sftp:backup@host:/storage.server/backup-folder backup \ /etc /root /home /var/spool/mail/ \ --exclude-caches=true \ --cleanup-cache=true \ --exclude-if-present='.cache'
restic 也可以針對單一檔案做備份。以下是將 mysqldump 的資料直接 pipe 給 restic 做備份:
mysqldump --all-databases | restic -r sftp:backup@host:/storage.server/backup-folder backup --stdin
以下是 Mastdodon v4.0.2 在 Linux 上的安裝步驟。不同版本可能會有一些差異,請自行調整。
若沒有特別需求,Mastodon 也可以透過代理商安裝、運行,不必自行架設伺服器。
我自己是在 Raspberry Pi 4 上測試的,Pi 4 跑得起來只是比較慢了一些,若你的硬體配備比 Pi 4 好的話,其實沒什麼需要擔心的。
不明原因,導致重新開機並登入以後,桌面環境故障,無法開啟、關閉視窗,必須透過 mate-tweak
選擇視窗管理員 (marco
) 才能恢復正常。
在「Marco window manager crashes after reboot」文章中,有提到一個作法,刪除 .local
底下的幾個設定檔:
cd ~/.local/share/applications rm metacity-no-composite.desktop.desktop marco-no-composite.desktop.desktop marco.desktop.desktop
檔案刪除以後重新開機,即可恢復正常。
備註:故障前,我做了一個平常幾乎不會有的動作:修改「主選單」內容。其中剛好有幾個 item 的名稱與 marco
有關,在懷疑即使沒有顯示出來的項目也有被使用到: