Upgrade Ubuntu Server over ssh

I run an Ubunutu server and initially I found it tedious to have to do upgrades by going to the server and manually running the upgrade. I did not want to get too fancy with this process as it was not worth the time. I just log in and set it then come back later and ensure thing are going smoothly and answer any questions that may come up.

I was thinking about doing this via ssh but there is always the possibility that your connection may drop and you can potentially break your server, Ubuntu actually puts up a warning for you in this regard.

Continue running under SSH?

This session appears to be running under ssh. It is not recommended
to perform a upgrade over ssh currently because in case of failure it
is harder to recover.

If you continue, an additional ssh daemon will be started at port
'1022'.
Do you want to continue?

Continue [yN]

What I did was use a screen session should things disconnect me from my session so that the process can remain running and I can reconnect once I am able to. I have not had an issue as yet (knocks on wood) but you just never know and I prefer to be safe than sorry.

Install screen

sudo apt update && sudo apt install screen

Start a session and accept the license as prompted

screen

If you need to reconnect just run the following command

screen -r

If you have more than one session running find the one you want by running the following command

screen -ls

To connect to one of your running sessions run the following command where 17448 is the screen session id

screen -r 17448

Ensure Update Manager is installed

sudo apt install update-manager-core

Ensure your upgrade config is set to the tree you want to be on

/etc/update-manager/release-upgrades

From that file, as you can see, I use lts only:

# Default behavior for the release upgrader.

[DEFAULT]
# Default prompting behavior, valid options:
#
#  never  - Never check for a new release.
#  normal - Check to see if a new release is available.  If more than one new
#           release is found, the release upgrader will attempt to upgrade to
#           the release that immediately succeeds the currently-running
#           release.
#  lts    - Check to see if a new LTS release is available.  The upgrader
#           will attempt to upgrade to the first LTS release available after
#           the currently-running one.  Note that this option should not be
#           used if the currently-running release is not itself an LTS
#           release, since in that case the upgrader won't be able to
#           determine if a newer release is available.
Prompt=lts

Run a base upgrade

sudo do-release-upgrade

Run a full Upgrade

sudo do-release-upgrade -d

Follow the instructions that appear on screen. You will be asked about keeping files or installing the new version, that will be up to you as only you know your server and what you’ve changed.

Warning : Pay close attention as upgrading a file that has config settings that let your sever do the work you built it for may be overwritten.

Did it work?

Ensure that the upgrade works and that you are on the most recent release as per your upgrader settings.

Run the lsb command:

The lsb_release command provides certain LSB (Linux Standard Base) and distribution-specific information.

lsb_release -a

Here are all the options you can use:

-v, --version
              Show the version of the LSB against which your current installation is compliant.  The version is expressed as a colon separated list of LSB module descriptions.

       -i, --id
              Display the distributor's ID.

       -d, --description
              Display a description of the currently installed distribution.

       -r, --release
              Display the release number of the currently installed distribution.

       -c, --codename
              Display the code name of the currently installed distribution.

       -a, --all
              Display all of the above information.

       -s, --short
              Use the short output format for any information displayed.  This format omits the leading header(s).

       -h, --help
              Show summary of options.

You should see something like this:

Distributor ID: Ubuntu
Description:    Ubuntu 18.04 LTS
Release:        18.04
Codename:       bionic

The Description line would show the sub version number if there are security releases done after the initial release. In those cases you should see something like this which I got from my server prior to the upgrade:

Description:    Ubuntu 16.04.4 LTS

There you go. Did I forget something or do you have something to add to make this article better, leave a comment below.

Advertisements

100 Percent Disk Usage – Windows 10

In this article we’ll be talking about some things that cause 100 Percent Disk Usage and how to fix them

Windows Search

Windows Search is the back-end system that allows you to find your files faster on your Computer. It works by constantly indexing every single file on your computer.

  • Open a Command Prompt as Administrator
  • Enter the following
net.exe stop “Windows search”

Click Enter
To turn it off permanently:

Press Windows key + R and type

services.msc
  • Click OK
  • Scroll down the list of services and double-click Windows Search
  • Click the General tab
  • Set the Startup type to Disabled
  • Click OK

SuperFetch

SuperFetch is a feature that helps decrease boot time by making apps load more efficiently. However, it can cause usage problems with your drive.

  • In Command Prompt, type
net.exe stop superfetch
  • Click Enter

To disable it permanently

In services.msc, disable Windows SuperFetch

Skype

  • Go to C:\Program Files (x86)\Skype\Phone and right-click on Skype.exe
  • Select Properties
  • Click the Security tab
  • Click the Edit button
  • Make sure All Application Packages is highlighted
  • Check Allow for Write Permissions
  • Click OK

Check in on your pets with Skype when you’re away

We keep hearing about the many things you can do with an older computer, here is a cool fun project that your pets will love.

Have you ever been away from home and wanted to check in with your pets to see what they were doing or be able to give them some attention without having to come home?
Continue reading Check in on your pets with Skype when you’re away

Google Voice and Pixel2 XL

I’ve been using Google Voice for a while now and recently upgraded to the Pixel2 XL on Verizon … No, I won’t do a coverage as there are many out there that are pretty awesome; I will say tho that the issues people are talking about have not plagued my phone at all.

Back to the post, after the switch from my Note5, my Google Voice stopped working with inbound calls and I could not for the life in me figure this out. I was just about to give up when I came across a solution that was way easier than I expected and thought I’d share it here should someone else need it.

Once I had Google Voice setup and connected to my phone (several times 🙂 ), all I had to do was dial *71[Google Voice number] from my phone. example: *710123456789

Some other things you can do :

  • To Activate Busy Transfer, dial *90[Your Google Voice number]
  • To Activate No Answer Transfer, dial *92[Your Google Voice number]
  • To Deactivate the Call Forwarding, dial *73 [Send]
  • To Deactivate the Busy Transfer, dial *900 [Send]
  • To Deactivate the No Answer Transfer, dial *902 [Send]

Deleting an EFI System Partition on Windows

The EFI system partition (ESP) is a partition on a data storage device (usually a hard disk drive or solid-state drive) that is used by computers adhering to the Unified Extensible Firmware Interface (UEFI).

An ESP contains the boot loaders or kernel images for all installed operating systems (which are contained in other partitions), device driver files for hardware devices present in a computer and used by the firmware at boot time, system utility programs that are intended to be run before an operating system is booted, and data files such as error logs ref. An EFI system partition is usually protected and locked by the Windows operating systems to prevent and avoid accidental deletion of these partitions. That’s why you can’t delete EFI partition using Disk Management tool.
Continue reading Deleting an EFI System Partition on Windows

I got a new Mac, now what?

So you just got a new Mac computer, what are the first things you should do after unboxing and relishing in that new computer smell? Here are some of the basics you should do before you even connect to your social life …
Continue reading I got a new Mac, now what?

AT&T Wants White Box Routers with an Open Operating System

AT&T says it’s not enough to deploy white box hardware and to orchestrate its networks with the Open Network Automation Platform (ONAP) software. “Each individual machine also needs its own operating system,” writes Chris Rice, senior vice president of AT&T Labs, Domain 2.0 Architecture, in a blog post. To that end, AT&T announced its newest effort — the Open Architecture for a Disaggregated Network Operating System (dNOS).

“If we want to take full advantage of the benefits of white box routers and other hardware, we need an equally open and flexible operating system for those machines,” writes Rice.

DNOS appears to be in the visionary phase. “Our goal is to start an industry discussion on technical feasibility … and determine suitable vehicles (standards bodies, open source efforts, consortia, etc.) for common specification and architectural realization,” according to an AT&T white paper, introducing dNOS.

Read more at SDxCentral