Ubuntu: Release Change

If you use Ubuntu on your Systems, you perhaps read last weeks about a new Release Version.

I am often asked, must i upgrade now?

My answere at first is not really, cause the new Versions are not cleaned up by all bugs and the User or Admin must recheck against the new advantages of the new Releases for production usage. I prefer to wait 3 Month after a Release by Ubuntu is published. But if you setup a very new Hardware your are often forced to take the LAST Release Version, cause it supports newest Hardware Chips by the latest Kernel (for example Laptop mixed Chips Wifi/Bluetooth/USB3.0).

Remark: You should read the „release notes“ of the Versions, cause this can prevent you from running into trouble or „black screens“.  DONT forget to Backup the old OS if you try to start the Upgrade. Fresh Setup’s are often smaller and more free of Bugs as „upgraded Systems“! Cause sometimes the old Configs are not all updated or replaced! (User-Homes). New Releases can allocate MORE Disk Space and offer new Call Home Sniffing Tools, RECHECK open Ports, running Processes and Privacy Settings!

On Companies you must always setup a „Lab PC“ for Testing the new Releases before rolling out the OS.

Print this Release Timeline out to be updated daily..

ubuntu releases timeline
ubuntu releases timeline

Debian: Update SSD Firmware without CDROM

If you want to update the SSD Firmware of a device you should know some things:

  • Do you REALLY need the update? Bugs? If NOT exit here!
  • Firmwareupdates can destroy DATA on Drives!
  • Data cant be restored if the Controller fails after Update
  • Downgrade a Firmware to older is most IMPOSSIBLE!!

.. now you need a USB Stick 4GB and the ISO File of the Firmware Disk of the Manufacter then open the Gnome Terminal or Console and:

$sudo su - #become root
$apt-get update && apt-get install unetbootin gparted # install the tools
$dd if=/dev/null of=/dev/sdc bs=10240 count=1 # delete usbstick unmounted with zeros (factory reset)
$gparted /dev/sdc #create new Primary Partition with FAT32, set "managed flags" to "boot lba", now exit gparted
$mount /dev/sdc1 /mnt #mount usbstick to /mnt 
$unetbootin #select FreeDOS at Menu, and select /dev/sdc1 and create the FreeDOS Stick, then exit unetbootin WITHOUT reboot!
$mkdir /iso && mount -o loop /home/yourusername/firmware-cd.iso /iso # mount the CDImage to /iso readonly
$cd /iso && cp firmware.img /mnt/firmware.img # copy firmware-data to usbstick

  • NOW, reboot and unplug other HDDs of the PC, ONLY the SSD must be insert!
  • Boot the PC on the usbstick, on the unetbootin Menu PRESS „Tab“ to get the „Unetbootin-Console“!
  • Here change the value of „initrd=/ubinit“ to „initrd=firmware.img“ and PRESS ENTER
  • Follow now the Firmware Update Dialog and Reboot with disconnected usbstick and replugged Drives…

Debian: Auto Update System Daily without special Tools

If you want to have a full automatic Update on your System then open a Gnome Terminal / Linux Console run (# Comments):

  • $sudo nano /root/update.sh
  • enter:

#/!bin/bash
apt-get update #pull updates
apt-get dist-upgrade -y  # install updates
apt-get clean #clean update database for next pull to have clean source urls
exit 0

  • save with CTRL+X # save+Exit
  • $sudo chmod 755 /root/update.sh # make able to run
  • Setup Timeplan:
  • $sudo su –  # change to root users console with environment
  • $crontab -e  # open root timer
  • enter:

@daily sh /root/update.sh > /dev/null 2>&1

save with CTRL+X and be happy the System pulls daily on midnight if online..

Debian Ubuntu Update Script with Switch OFF after update

Problem:
I f you work on you PC daily Patches must be checked and installed.
At Debian / Ubuntu the Gnome-Update-Manager does this. But there is
NO Shutdown possible after update.

Solution:
– create Script #sudo nano /root/upgrade-off.sh
add inside:

apt-get update           //for update Patches Database PC
apt-get dist-upgrade -y         //install Patches automatic
apt-get clean      //cleanup PC
/sbin/init 0      //shutdown PC automatic or reboot Server = init 6
exit

You can now after work set it to crontab or start manual by #sudo sh /root/upgrade-off.sh

On Servers name it upgrade-reboot.sh and set root cron to run the job @hourly/@daily