當 Ubuntu 22.04 LTS 安裝完畢後,登入使用者帳戶。
接著進行以下設定,盡可能省去其他不必要的操作,使系統環境保持乾淨。
檢查系統套件
更新系統套件
清除安裝包
安裝 OpenSSH Server
啟動 OpenSSH Server
解除安裝 Cloud-init
刪除 Cloud-init 殘留檔案
重啟系統
查看當前記憶體資訊
關閉 swap.img
刪除原有的 swap.img
新建一個大小為 32GB 的 swap.img
確認 swap.img
大小
修改 swap.img
權限
設定 swap.img
啟動 swap.img
開機自動啟動 swap.img
重啟系統