Home upgrade from Ubuntu 18.04 LTS [v57a] to Ubuntu 22.04.3 LTS (Jammy Jellyfish) [v66]

Just wanted to share with you how easy it was to upgrade this install of the new OS on machine
that I am running at home for past few years on an old headless Dell OptiPlex 9020M (Micro).

My spec is:
8GB of RAM (2 x 4GB)
SSD 120GB - OS
HDD 500GB - /home

1] Extra bits
I needed to attach a external Monitor and USB keyboard to help with the
install/config of new Ubuntu 22.04.3 LTS (Jammy Jellyfish) and USB stick
as a installation media.

2] BackUp
Since my “/home” partition is on separate drive then the OS, I have made a back up,
just in case, but all is working well after re-installation.

  • On top of MIAB back up, I have also backed-up (history an logs):
    ~/mailinabox/management/backup.py
    ls -ilha /home/user-data/backup/encrypted/
    du -h /home/user-data/backup/encrypted

  • history
    cat ~/.bash_history > bash_history_$(hostname)_$(date +%Y%m%d-%H%M%S).txt

  • LOGs dir on external USB HDD with NTFS file system
    sudo apt -y install ntfs-3g hfsutils hfsprogs exfat-fuse mc
    sudo fdisk -l
    sudo blkid -o list
    sudo mkdir /mnt/ntfs
    sudo mount -t ntfs-3g /dev/sdc1 /mnt/ntfs

3] Clean
This was also a time, to get the Micro PC free of dust etc. (when powered off :wink:

4] BIOS update
I would check if the bios is up to date for my model
https://www.dell.com/support/home/en-uk?app=drivers

sudo dmidecode|grep “Serial Number”

and it’s running lates version:
sudo dmidecode -s bios-version
sudo dmidecode --type bios

5] Get the ISO of Ubuntu 22.04.3 LTS (Jammy Jellyfish)
curl -kLO https://www.releases.ubuntu.com/22.04/ubuntu-22.04.3-live-server-amd64.iso
curl -kLO https://www.releases.ubuntu.com/22.04/SHA256SUMS
curl -kLO https://www.releases.ubuntu.com/22.04/SHA256SUMS.gpg
gpg --list-keys
md5sum --version
sha256sum --version
gpg --keyid-format long --keyserver hkp://keyserver.ubuntu.com --recv-keys 0x46181433FBB75451 0xD94AA3F0EFE21092
gpg --keyid-format long --list-keys --with-fingerprint 0x46181433FBB75451 0xD94AA3F0EFE21092
gpg --keyid-format long --verify SHA256SUMS.gpg SHA256SUMS
sha256sum -c SHA256SUMS 2>&1 | grep ubuntu-22.04.3-live-server-amd64.iso

6] Create Bootable USB stick
https://help.ubuntu.com/community/mkusb

sudo add-apt-repository universe
sudo add-apt-repository ppa:mkusb/ppa
sudo apt update
sudo apt install dus mkusb-nox

sudo mkusb-nox ubuntu-22.04.3-live-server-amd64.iso all
Found ISO file: Y
Install to Name: USB Stick: G
Final Checkpoint: Y

7] Installation
Reboot and select F12 → bootable media = USB Stick

Because I have SSD for OS and HDD for “/home” partition I had to choose
in the menu “Guided storage configuration” → “Custom storage layout”
and this was slightly more complicated then in version 18.04
and I needed to select/config the correct storage devices:

  • a] HDD for “/home”
    Device
    [ TOSHIBA local disk 465.76G ]
    partition 1 existing, already formatted as ext4, not mounted 465.76G → SELECT → Edit

EDIT partition:
Format: [Leave formatted as ext4]
Mount: /home
[Save]

  • b] SSD for “/root” partition = OS
    Device
    [ WDC_WDS local disk 111.11G ]

free space → Add GPT Partition →
Format: [ ext4 ]
Mount: /
[Create]

8] Create user / Domain
“Here the installer crashed” several times, when i typed in the domain as “name.domain”
so I choose user and only “name” without .domain and it worked.

At the end reboot [remove the USB stick] and “viola” all working as it should.

9] Check you IPv4/IPv6
My IPv4 (I have a block of /28) has changed, so had to adjust settings on my router.

and
sudo apt update; sudo apt list --upgradable -a; sudo apt -V upgrade -y; sudo apt full-upgrade

and install extras (as required)
sudo apt install mc lnav iftop mosh

10] Install MIAB
curl -s https://mailinabox.email/setup.sh | sudo -E bash

reboot ant that is it, no need to restore, all working.

11] Remove/Disable “cloud-init” error msg. popping up on log-in screen

touch /etc/cloud/cloud-init.disabled
sudo apt-get purge cloud-init
sudo rm -rf /etc/cloud/; sudo rm -rf /var/lib/cloud/

12] Thank you to
Josh and other contributors to this project.

What is the smallest MIAB installation server that you are using? :wink:
and has space for SSD and HDD or 2 x SSD slots?

2 Likes

This topic was automatically closed 40 days after the last reply. New replies are no longer allowed.