首頁 繪圖設計 工作閒聊 比賽活動 美術討論 標籤 圖片
How to disable Ubuntu 16/18 MOTD "N packages can be updated"
How to disable Ubuntu 16/18 MOTD "N packages can be updated"




Type(Type) 2017/10/7 14:59

How to disable Ubuntu 16/18 MOTD "XX packages can be updated"



Just go to "/etc/update-motd.d/ and disable whatever you like to hide.

e.g. Comment all line with "#", or add an "exit 0"
to disable Update notify

代碼:

$ cd /etc/update-motd.d

$ ls -al
total 36
drwxr-xr-x  2 root root 4096 Oct  7 14:46 .
drwxr-xr-x 99 root root 4096 Oct  7 14:45 ..
-rwxr-xr-x  1 root root 1220 Oct 23  2015 00-header
-rwxr-xr-x  1 root root 1157 Jun 14  2016 10-help-text
-rwxr-xr-x  1 root root   97 May 25  2016 90-updates-available
-rwxr-xr-x  1 root root  299 Jul 22  2016 91-release-upgrade
-rwxr-xr-x  1 root root  111 Nov 30  2016 97-overlayroot
-rwxr-xr-x  1 root root  142 May 25  2016 98-fsck-at-reboot
-rwxr-xr-x  1 root root  144 May 25  2016 98-reboot-required


$ vim 90-updates-available
(comment all line with #, or add an "exit 0" to disable Update notify)

$ vim 91-release-upgrade
(comment all line with #, or add an exit 0  to disable Ubuntu 14.XX -> 16.XX -> Ubuntu 18.XX big release upgrade)

$ vim 10-help-text
(comment all line with #, or add an exit 0 to disable URL @ motd link to Ubuntu document)

$ exit

Re-login


(663 views)
[更多討論] 討論區 Windows, Linux, Perl, PHP, C/C++, Driver, Web 理論、應用、硬體、軟體




"How to disable Ubuntu 16/18 MOTD "N packages can be updated"" 傳統頁面(電腦版)

首頁 繪圖設計 工作閒聊 比賽活動 美術討論 標籤 圖片
傳統桌面版 [ 登入/註冊 ]
© Vovo2000.com Mobile Version 小哈手機版 2018