How do I disable the "Would you like to set up Livepatch now" message at login?
Solution 1:
This message is part of the MOTD (Message of the Day), which is fully editable. There are two steps you'll need to follow:
- Edit the
motd-news
file:
Disable the dynamic MOTD news service by changing asudo vi /etc/default/motd-news
1
to a0
:
Save the file and exit.ENABLED=0
- Edit the
80-livepatch
file:
Tell it to exit by adding command on a new row immediately aftersudo vi /etc/update-motd.d/80-livepatch
#!/bin/sh
:
Save the file and exit.exit 0
- Enjoy a shorter MOTD when SSHing into the machine(s)