DebianThis forum is for the discussion of Debian Linux.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
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?
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
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Rep:
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.
Distribution: Ubuntu 11.4,DD-WRT micro plus ssh,lfs-6.6,Fedora 15,Fedora 16
Posts: 3,233
Rep:
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.
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.)
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Rep:
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.
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!
Distribution: Debian Sid AMD64, Raspbian Wheezy, various VMs
Posts: 7,680
Rep:
Quote:
Originally Posted by maples
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?
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...
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.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.