:: Re: [DNG] tool to check for updates…
Inizio della pagina
Delete this message
Reply to this message
Autore: Paweł Cholewiński
Data:  
To: dng
Oggetto: Re: [DNG] tool to check for updates without root??
W dniu 22.06.2016 o 08:20, KatolaZ pisze:
> The easiest way is to have a cron script that runs once a day, with
> root provileges, and calls "apt-get update". Then, your notifier could
> be as simple as:
>
> apt-get -s upgrade | grep "^[0-9]* upgr" | cut -d " " -f 1
>
> which will give the number of packages that would be upgraded,


and redirect it to /etc/issue.net:

apt-get -s upgrade | grep "^[0-9]* upgr" | cut -d " " -f 1 > /etc/issue.net

Set Banner in /etc/ssh/sshd_config file:

Banner /etc/issue.net

then You don't need to log in to system via ssh to check if there are
updates - information will appear when you type:

ssh -p <port> <user>@<server>;


Regards
Paweł