Routinely Install Latest Raspbian Versions?

I'm currently using Raspbian Stretch with no problems, but recently noticed there is a new version of Raspbian available. Every month I use apt-get update/apt-get dist-upgrade, so I'm getting kernel changes to the installed Raspbian that way. The Pi's only use at the moment is to run a BOINC project headlessly. Are there any reasons why I should routinely install the latest Raspbian operating systems as they are released?

--
Ray
Reply to
RRansil
Loading thread data ...

there are 2 schools of though on this one

1st - if it aint broke dont fix it, afterall if the project is working perfectly why risk something breaking

2nd upgrading the operating system keeps you up to date with security fixes reducing the chances of something(or someone) untoward happening.

I tend to option 1 unless the item his accessible via external connections (such as but not limited to the internet). even being behind a firewall is no guarantee, what happens if someone on the inside of the network becomes infected?

--
You mean now I can SHOOT YOU in the back and further BLUR th' 
distinction between FANTASY and REALITY?
Reply to
Alister

'Stretch' is the latest raspbian and debian release. The most recent changes to the raspian images that I recall simply added a new wizard to make initial setup easier, an 'app chooser' and, I think, some improvements to bluetooth support. It is possible to add those features to your existing copy if it's important to you.

I do the 'sudo apt-get update' and 'sudo apt-get upgrade' cycle fairly often as that is how security updates, bug fixes etc. are promulgated. As I understand the next new version of debian (codename 'buster') will likely be released in 2019 - the corresponding raspbian version will come along after that.

Short answer - 'no'.

Reply to
ray carter

Good summary, though I'd tighten it up a little as:

1)if its working well and HAS NO ETHERNET OR WIFI CONNECTIONS then leave it alone

2)2nd in all other cases, keep Raspbian up to date with versions and patches

Extension to (2): if it exchanges data with any other system that can transfer software, e.g. by exchanging SD cards, then keep it fully patched.

In addition, and I think this applies to both cases 1 and 2; if you upgrade or replace the application/script/whatever that you've installed to make it to do whatever it does, then its a good idea to bring Raspbian fully up to date as part of that process.

--
Martin    | martin at 
Gregorie  | gregorie dot org
Reply to
Martin Gregorie

Option 1 is my preference too, but the Pi has internet connections, so I'll be doing the OS upgrade. Thanks for your reply.

--
Ray
Reply to
RRansil

Thank you for the helpful information. I'll be updating the OS. I was hoping to avoid that due to the fact that it's running headless, although I may try to use VNC Connect to do the configurations.

--
Ray
Reply to
RRansil

Thank you for your reply. I was hoping that the update/upgrade cycle would provide sufficient security without having to install the latest iteration of the OS.

--
Ray
Reply to
RRansil

Stretch, which you said you have, *is* the latest iteration of the OS, which he said.

Reply to
A. Dumas

I probably didn't use the right terminology. The version of Stretch that I have currently installed is from a download dated 2018-06-27. A newer version, dated 2018-10-09, is now available. Not knowing what these different downloads are called officially, I just used "iteration." Maybe these are considered "point" releases (like in Mint 18.2, 18.3, for example)?

--
Ray
Reply to
RRansil

If you have an SSH connection to your RPi you can do anything you want with it even if it is headless.

Using SSH to talk to an RPi from a Linux system is a no-brainer: it should 'just work' if you know its IP because starting sshd, the SSH server, is now the standard configuration and, provided you've enabled X11 forwarding, you can even run graphical packages on the RPi with it using your desktop, keyboard and mouse.

Its almost as easy from Windows - just install the PuTTY package on the Windows box. PuTTY provides a console window to login from and also offers scp file transfers, but doesn't support X11 forwarding (or didn't last time I used it - a long time ago as I haven't used Windows since about 2004.

Its also worth knowing that many FTP clients now support SSH file transfers. gftp, the graphical Linux FTP client for many distros is an excellent way of bashing files back and forth.

--
Martin    | martin at 
Gregorie  | gregorie dot org
Reply to
Martin Gregorie

Moving from Mint 17 to Mint 18 (Or Fedora 27 to Fedora 28 in my case) is the Debian/Raspbian equivalent of moving from Jessie to Stretch. Your point versions don't seem to have an equivalent.

--
Martin    | martin at 
Gregorie  | gregorie dot org
Reply to
Martin Gregorie

No, we got it. Like he said, as long as you use (dist-) upgrade, you're up to date. (Until they release a completely new version which will no longer be named Stretch.)

Reply to
A. Dumas

ssh and apt-get should do routine upgrades on a headless.

IME when doing serious version upgrades is usually safer to back up, wipe, reinstall new OS, spend a few days patching round all the new bugs that systemd has introduced, then when it's actually almost stable, reload your private apps and data back on...

--
"When a true genius appears in the world, you may know him by this sign,  
that the dunces are all in confederacy against him." 

Jonathan Swift.
Reply to
The Natural Philosopher

IOW if the system really matters then build a clone on the new version and test it thoroughly rather than upgrading.

--
Steve O'Hara-Smith                          |   Directable Mirror Arrays 
C:\>WIN                                     | A better way to focus the sun 
The computer obeys and wins.                |    licences available see 
You lose and Bill collects.                 |    http://www.sohara.org/
Reply to
Ahem A Rivet's Shot

putty does support X forwarding provided you have an X server running on the windows box, I use Xming but i believe there are other options

--
You need to upgrade your VESA local bus to a MasterCard local bus.
Reply to
Alister

You just have to use "testing " (or "stable") in the apt sources instead of the codename ("Strecth").

formatting link

Bye Jack

Reply to
jack4747

Here's the script I run to do my routine upgrades:

========================= rpi_update ============================= #!/bin/bash if [ "$1" == '-?' ] then echo "Syntax: rpi_update" echo "Function: Runs apt_get functions" echo " update,upgrade,dist-upgrade,autoremove,autoclean" echo " in that order." echo "Options: none" exit 1 fi

apt-get update if [ $? -ne 0 ] then echo "apt-get update failed: rpi_update abandoned" exit 1 fi

apt-get upgrade if [ $? -ne 0 ] then echo "apt-get upgrade failed: rpi_update abandoned" exit 1 fi

apt-get dist-upgrade if [ $? -ne 0 ] then echo "apt-get dist-upgrade failed: rpi_update abandoned" exit 1 fi

apt-get autoremove if [ $? -ne 0 ] then echo "apt-get autoremove failed: rpi_update abandoned" exit 1 fi

apt-get autoclean if [ $? -ne 0 ] then echo "apt-get clean failed: rpi_update abandoned" exit 1 fi

========================= rpi_update =============================

I did the wheezy-> jessie in-situ upgrade by by following these steps:

1) Modify the file /etc/apt/sources.list. Change "wheezy" to "jessie" in the first line, so it reads "deb
formatting link
jessie main contrib non-free rpi" - one line! 2) Modify the file /etc/apt/sources.list.d/raspi.list. Change "wheezy" to "jessie" in the first line and add " ui" to the end of that line, so it reads "deb
formatting link
jessie main ui" 3) Create the directory /home/pi/.config/autostart by typing "mkdir /home/pi/.config/autostart" in a terminal. (Note the . in front of config.) 4) Type "sudo apt-get update" in a terminal to update the apt index files. 5) Type "sudo apt-get dist-upgrade" to start the upgrade process. This will take a couple of hours. Whenever prompted to update a file during this process, choose the Y option to accept the new file; if you don't want to be bothered with these prompts, then call apt-get with the -y option - "sudo apt-get -y dist-upgrade". and the jessie -> stretch in-situ upgrade by the same method except that I omitted step 3 because that had been done already and the directories were still there.

My only deviation was that, since I don't do any work under the 'pi' user because there are advantages to using the same home directory on all your Linux systems (I have four including the RPi), I repeated it in my usual login and ran the version upgrade from there. Both upgrades were problem-free.

You can also set the version name to 'stable', which will make the switch from stretch to its successor automatic, but by doing that you lose control of exactly when that rather long process will take place. Whether that's a reasonable trade-off for not having to manually manage the change-over is something only you can decide.

--
Martin    | martin at 
Gregorie  | gregorie dot org
Reply to
Martin Gregorie

Indeed, 'point release' is probably appropriate. Just FYI, you can find out your version number with 'cat /etc/*version'. On my PI, the file is /etc/Debian_version and shows '9.4'. On my desktop, it is /etc/debian_version and shows '9.5'. As previously noted, the raspbian updates trail the debian ones by a bit.

Reply to
ray carter

Interesting: on my Pi, it's /etc/debian_version, with a small d.

Reply to
NY

Mine, too. Maybe a typo from Ray. Find the name of the Debian version in /etc/apt/sources.list or this should work if you haven't edited that file:

head -n1 /etc/apt/sources.list | cut -d' ' -f3

Reply to
A. Dumas

ElectronDepot website is not affiliated with any of the manufacturers or service providers discussed here. All logos and trade names are the property of their respective owners.