I noticed today that there were a lot of updating that had to be done on my server, and I had totally forgot to fix it so it was left vulnerable.
Now I am wondering, how can I make the server check for updates on certain times everyday, and then update everything by itself, without me having to press "Y" to confirm the updates every time of course. I want it to be totally automatic.
Thanks in advance...
[Question] Debian/Ubuntu Automatic updates?
[Question] Debian/Ubuntu Automatic updates?
"The best place to hide a tree, is in a forest"
- bad_brain
- Site Owner
- Posts: 11636
- Joined: 06 Apr 2005, 16:00
- 19
- Location: In your eye floaters.
- Contact:
you can try cron-apt:
http://www.debian-administration.org/articles/162
but as they write in the article, auto-accepting everything during the upgrade procedure can be dangerous because important config files might be replaced (ok, the old ones are usually saved as .bak , but still).
I recommend: get used to manual updates as first thing when you log in every day.
here's my chain if commands is use every time after logging in:
takes just 1-2 minutes...
http://www.debian-administration.org/articles/162
but as they write in the article, auto-accepting everything during the upgrade procedure can be dangerous because important config files might be replaced (ok, the old ones are usually saved as .bak , but still).
I recommend: get used to manual updates as first thing when you log in every day.
here's my chain if commands is use every time after logging in:
Code: Select all
netstat -tn
top (eventually followed by who)
apt-get update
apt-get upgrade (eventually followed by dist-upgrade)
Yeah well this is my server ^^ I never login on it if nothing out of the ordinary happens. And since I am not targeted by international super hackers, nothing really happens to it, so it can stay un-updated for months ^^
But yeah, I guess you're right =) I'll simply update through ssh once a week or something ^^
But yeah, I guess you're right =) I'll simply update through ssh once a week or something ^^
"The best place to hide a tree, is in a forest"
- bad_brain
- Site Owner
- Posts: 11636
- Joined: 06 Apr 2005, 16:00
- 19
- Location: In your eye floaters.
- Contact:
ok, but I guess you check your email every day, right?
take a look here and sign up at least to the security-list:
https://lists.ubuntu.com/
that way you stay informed on important updates...
take a look here and sign up at least to the security-list:
https://lists.ubuntu.com/
that way you stay informed on important updates...