LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian
User Name
Password
Debian This forum is for the discussion of Debian Linux.

Notices


Reply
  Search this Thread
Old 07-25-2014, 10:15 PM   #1
maples
Member
 
Registered: Oct 2013
Location: IN, USA
Distribution: Arch, Debian Jessie
Posts: 814

Rep: Reputation: 265Reputation: 265Reputation: 265
Should I automatically update my server?


Hi!
I recently installed Debian on my home server. I was wondering if I should set up something (probably cron) to automatically update it? It's just for my personal use, so if a service goes down for a minute or two I don't really care.

Is this something that I should implement, or am I an idiot and need to shut up?

Thanks!
 
Old 07-25-2014, 10:27 PM   #2
descendant_command
Senior Member
 
Registered: Mar 2012
Posts: 1,876

Rep: Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643Reputation: 643
Apticron is probably what you want.

By default it just emails you when there are available updates.
 
Old 07-26-2014, 09:33 AM   #3
jdkaye
LQ Guru
 
Registered: Dec 2008
Location: Westgate-on-Sea, Kent, UK
Distribution: Debian Testing Amd64
Posts: 5,465

Rep: Reputation: Disabled
As you're using Debian Wheezy (stable) you're not going to get that many updates whatever you do. Since it only takes 4 words (2 commands, 2 words each) typed on a terminal, I wonder if it's worth the effort. I use Jessie (testing) and update my desktop every day. Jessie has plenty of updates and updating it typically takes about 2-3 minutes.
jdk
 
Old 07-26-2014, 01:57 PM   #4
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
I agree with jdkaye that the updates are few enough not to bother. I run Sid day-to-day on my desktop and netbook and there are updates every day. However, I run wheezy on my Pi and updates are few and far between so I just SSH in now and again and run an update.
 
Old 07-26-2014, 02:19 PM   #5
Firerat
Senior Member
 
Registered: Oct 2008
Distribution: Debian sid
Posts: 2,683

Rep: Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783Reputation: 783
personally I update manually, however. I do use cron-apt, which basically runs apt-get update, and downloads required packages ready for the install.


The introduction
http://www.debian-administration.org/articles/162
 
Old 07-26-2014, 03:42 PM   #6
frieza
Senior Member
 
Registered: Feb 2002
Location: harvard, il
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233

Rep: Reputation: 406Reputation: 406Reputation: 406Reputation: 406Reputation: 406
i would have to concur that automatic updates are probably not necessary, and in some cases can be a bad Idea, although system breaking bugs in updates are usually pretty well vetted from the updates before they go live, but some do, so it would be best to at least search for any bug reports on the updates before applying them, though for a home server this might be overkill, either way running updates manually gives you an opertunity to create a backup before installing the updates.
 
Old 07-26-2014, 05:21 PM   #7
maples
Member
 
Registered: Oct 2013
Location: IN, USA
Distribution: Arch, Debian Jessie
Posts: 814

Original Poster
Rep: Reputation: 265Reputation: 265Reputation: 265
Thanks for the replies!

From what it sounds, it doesn't look like I will do it. Many have mentioned that there aren't that many updates anyway, and it wouldn't be worth the potential problems.

Thanks anyway!

(PS- it's 6 words, plus my (fairly long) password. The server is 99.999% headless (I use SSH, except when I screw it up ) and I don't allow root login. But I get your point.)

Last edited by maples; 07-26-2014 at 05:22 PM.
 
Old 07-26-2014, 05:27 PM   #8
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
You could always allow apt-get with sudo and no password? I know people have reasons for not using sudo, and there are risks with no password but if you're OK with it then it could be a good fit for this task.
 
1 members found this post helpful.
Old 07-26-2014, 05:43 PM   #9
maples
Member
 
Registered: Oct 2013
Location: IN, USA
Distribution: Arch, Debian Jessie
Posts: 814

Original Poster
Rep: Reputation: 265Reputation: 265Reputation: 265
Quote:
Originally Posted by 273 View Post
You could always allow apt-get with sudo and no password? I know people have reasons for not using sudo, and there are risks with no password but if you're OK with it then it could be a good fit for this task.
True...I might look into that. Thanks for the idea!
 
Old 07-26-2014, 05:50 PM   #10
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Quote:
Originally Posted by maples View Post
True...I might look into that. Thanks for the idea!
You're welcome -- I'm thinking of doing it myself on my Pi. The initial configuration actually allows for passwordless sudo for everything so it was one of the first things I corrected but I may allow apt-get passwordless as it would be more convenient when using my phone to update it. I take it you're using keys for SSH and not passwords to save time and make things more secure also?
 
Old 07-26-2014, 11:35 PM   #11
maples
Member
 
Registered: Oct 2013
Location: IN, USA
Distribution: Arch, Debian Jessie
Posts: 814

Original Poster
Rep: Reputation: 265Reputation: 265Reputation: 265
Quote:
Originally Posted by 273 View Post
You're welcome -- I'm thinking of doing it myself on my Pi. The initial configuration actually allows for passwordless sudo for everything so it was one of the first things I corrected but I may allow apt-get passwordless as it would be more convenient when using my phone to update it. I take it you're using keys for SSH and not passwords to save time and make things more secure also?
Really? Raspian defaults to passwordless sudo? That seems a bit...insecure. But, on the other hand, I think the Pi is attracting many non-Linux users (at least, from the YT videos I've seen), and they're trying to make things less confusing.

Yes, I'm using SSH keys...I've been using them ever since I heard of them. It saves time, but it can be a pain if you realize that you need to SSH into the server on another computer...but I have one on my flash drive, and I usually have it with me. Of course, the one time that I will need it will be the one time I forget the flash drive at home...
 
Old 07-26-2014, 11:43 PM   #12
maples
Member
 
Registered: Oct 2013
Location: IN, USA
Distribution: Arch, Debian Jessie
Posts: 814

Original Poster
Rep: Reputation: 265Reputation: 265Reputation: 265
OK, I've added this line to my sudoers file, so I can run apt-get without the password. I think I'll just stick with this for a while, and see how it works for me.

Code:
anthony ALL=(ALL) NOPASSWD:/usr/bin/apt-get
Thanks for all the help!
 
Old 07-27-2014, 08:34 AM   #13
273
LQ Addict
 
Registered: Dec 2011
Location: UK
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680

Rep: Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373Reputation: 2373
Glad to help. Yes, the setup on the Pi seems a weird idea to me.
 
Old 07-27-2014, 08:50 AM   #14
jamison20000e
Senior Member
 
Registered: Nov 2005
Location: ...uncanny valley... infinity\1975; (randomly born:) Milwaukee, WI, US( + travel,) Earth&Mars (I wish,) END BORDER$!◣◢┌∩┐ Fe26-E,e...
Distribution: any GPL that work on freest-HW; has been KDE, CLI, Novena-SBC but open.. http://goo.gl/NqgqJx &c ;-)
Posts: 4,888
Blog Entries: 2

Rep: Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567Reputation: 1567
I would think automatic updates should require automatic checks, more so on the sid side?
 
  


Reply



Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Can't automatically update Firefox (OpenSUSE 11.0) nocluebutItry Linux - Newbie 4 07-01-2009 09:01 AM
How To Make update2date Automatically Update JustinK101 Linux - Software 2 03-09-2007 06:29 PM
Changing file attributes automatically on update to a server madtinkerer Programming 3 11-16-2006 06:13 PM
K-menu does not automatically update? patman362 Ubuntu 2 07-24-2006 09:08 PM
How to update Solaris automatically ? juanb Solaris / OpenSolaris 1 08-21-2004 12:44 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Debian

All times are GMT -5. The time now is 07:04 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration