專家們,我正在使用 ubuntu 18.04 LTS 無頭伺服器。透過 ssh 登入後,我收到以下訊息:
> Authenticating with public key "rsa-key-blablabla"
> Last login: Wed Aug 12 10:16:01 2020 from xx.xx.xx.xxx
有landscape-sysinfo
失蹤的人,我現在不知道為什麼。使用命令landscape-sysinfo
系統顯示訊息,但我想要登入後的信息。該軟體包landscape-common
已包含在 Ubuntu 18.04 中。我不知道問題出在哪裡/etc/update-motd.d
?希望有人能幫助我。
親切的問候黑鬍子
答案1
您有 root 存取權 (sudo) 嗎?你可以安裝嗎?
sudo apt install landscape-common
編輯:我可能已經理解你的問題了?您想在每次登入時執行此命令嗎?
如果是這樣,只需編輯您的 .bashrc
nano ~/.bashrc
#add line to bottom of .bashrc
landscape-sysinfo