Preparation

Things you will need

  • ssh public key
  • configuration backup file
  • gpg key

First, update apt

sudo apt update

If a Virtual machine

  1. make sure you are a member of the vboxusers and vboxsf groups ^[https://www.virtualbox.org/manual/ch03.html#usb-implementation-notes]

    sudo groupadd vboxusers 
    sudo usermod -a -G vboxusers $USER 
    sudo groupadd vboxsf
    sudo usermod -a -G vboxsf $USER 
    
  2. install guest additions

    1. First, run this in the terminal

      sudo apt install -y virtualbox-guest-utils virtualbox-guest-dkms
      
    2. Install the virtualbox guest additions cd from the guest os window and select run when the button pops up.

    3. let it run

    4. eject the cd from the virtualbox host menu

  3. restart to apply group changes

  4. changed to bridged networking

  5. share folder

  6. install ssh

    sudo apt install -y openssh-server
    cat /media/share/id_ed25519.pub >> .ssh/authorized_keys
    sudo ufw allow ssh
    sudo ufw enable 
    

Install Flatpak

# install
sudo apt update
sudo apt install -y flatpak
#if you want to install from software GUI
sudo apt install -y gnome-software-plugin-flatpak
#add the flathub repo
flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo

Install preliminary packages

sudo apt install -y \
nano \
net-tools \
tmux \
zbar-tools \
curl

Important Flatpak packages

flatpak install -y flathub \
org.mozilla.firefox \
com.github.tchx84.Flatseal \
  1. close and reopen terminal
  2. transfer your saved firefox profile after install
  3. customize according to my firefox setup page

Remove Firefox snap

There are just too many bugs and inconsistencies to recommend this at this point. Let’s use flatpak instead.

sudo snap remove firefox

Ubuntu 22.04 quirks

from here:

sudo apt remove brltty -y