To add a new message to your motd without borking everything else, simply add a new file (or script) to /etc/update-motd.d/.For example, my directory looks like this -rwxr-xr-x 1 root root 220 Mar 27 30-banner -rwxr-xr-x 1 root root 140 Dec 17 2011 40-figlet -rwxr-xr-x 1 root root 134 Mar 27 70-available-updates -rwxr-xr-x 1 root root 2103 Mar 27 75-system-update As you can see, I've added a 40-figlet script that will generate a l337 message that will appear right under the banner.
Done Building dependency tree Reading state information...The issue is that during the execution of the MOTD, the priviledges haven't dropped to the user account yet, so all scripts are ran as root.I managed to find a solution that works on Debian machines. Any ideas why either nothing was updated, or why the count of 3 (from apt-get) is different than 42? (Other details: This is the server edition, no GUI; I haven't touched the apt configuration files; when I installed the software, I declined to allow automatic updates) @Chopper3: Though is true that this answer is really closed to the one spotted as duplicate, I cannot see how the OP may know that the command aptitude is related to this question.Aptitude is not installed by default in latest ubuntu servers so the answer should focused in how to solve it using apt-get not aptitude (which is the tool proposed in the other post and have to be installed previously in order to solve this issue) lists.ubuntu.com/archives/maverick-changes/2010-June/…Here's a link to the wiki page on how to use Anim MOTD (in case you want it) https://bitbucket.org/Lite20/animmotd/wiki/How to set up and use Anim MOTD Donate You can help me make more awesome stuff and release them free by donating https:// There are no known bugs at the moment but as soon as you find them, please report them.
cmd=_s-xclick&hosted_button_id=M9PQMZ6CRS8Z6 While you're at it, why not donate to Spigot? You can PM me, or even better, post the bug on the repository bug tracker!
Don't forget that /etc/motd is actually a symlink to /var/lib/update-motd/motd Stay tuned for my new book: Yeah, I've tried this several times now and haven't had any luck.
I've tried symlinking a banner file to /etc/update-motd.d/30-banner and it didn't work.
Done $ sudo apt-get upgrade Reading package lists...
Done The following packages have been kept back: linux-generic-pae linux-headers-generic-pae linux-image-generic-pae 0 upgraded, 0 newly installed, 0 to remove and 3 not upgraded.
Built off code by bigteddy98, this is also open source but is designed to be for anyone who has a server, not just developers.