keep ubuntu updated office pc
Since desktop user have no sudo, update via GUI won't work as normal.
What we can do is, set a cronjob for user "root", that will run "apt-get update && apt-get upgrade"
First become user root
Now you are user root, verify with "whoami" or "id" commands.
Create a folder
Now create file
Add following content
#!/bin/bash /usr/bin/apt-get update && /usr/bin/apt-get -y upgrade
Make it executable
chmod 755 /usr/hostonnet/update.sh
Set cronjob, lets run it everyday at 1 PM (lunch break ?)
00 13 * * * /usr/hostonnet/update.sh >/dev/null 2>&1
Now everyday at 13:00 hours, PC will update itself. Make sure you are setting cron a user "root".