Hi all,
I now have a working version of fedora-motd[1] for use in Fedor Cloud images.
You can give it a run as follows:
Setup ===== git clone https://github.com/rtnpro/fedora-motd.git cd fedora-motd sudo python setup.py install sudo echo "session include motdgen" >> /etc/pam.d/sshd sudo motdgen-cache-dnfupdateinfo
Usage ===== SSH login to the machine you setup fedora-motd on, and you should see something like:
Last login: Thu Feb 4 22:39:21 2016 from 127.0.0.1 22:39:58 up 17 days, 13:52, 6 users, load average: 0.88, 0.68, 0.46 Updates Information Summary: available 34 Security notice(s) 66 Bugfix notice(s) 26 Enhancement notice(s)
1 other notice(s)
Let me know what you think. I wish I could get rid of the step to modify /etc/pam.d/sshd, but I could not find any workaround. If the above looks good, I will make an RPM package for it and put up for review.
[1]: https://github.com/rtnpro/fedora-motd
Thanks, rtnpro
Hi,
On Thu, Feb 4, 2016 at 10:48 PM, Ratnadeep Debnath rtnpro@gmail.com wrote:
Hi all,
I now have a working version of fedora-motd[1] for use in Fedor Cloud images.
You can give it a run as follows:
wget https://kojipkgs.fedoraproject.org//work/tasks/6582/12916582/fedora-motd-0.1... sudo dnf install ./fedora-motd-0.1-1.fc23.noarch.rpm
sudo echo "session include motdgen" >> /etc/pam.d/sshd sudo motdgen-cache-dnfupdateinfo
Usage
SSH login to the machine you setup fedora-motd on, and you should see
something like:
Last login: Thu Feb 4 22:39:21 2016 from 127.0.0.1 22:39:58 up 17 days, 13:52, 6 users, load average: 0.88, 0.68, 0.46 Updates Information Summary: available 34 Security notice(s) 66 Bugfix notice(s) 26 Enhancement notice(s)
1 other notice(s)
Thanks, rtnpro