Nala throws Repo Warning

The following type of error gets thrown when updating Ubuntu

Failed to fetch http://ubuntu.byteiran.com/ubuntu/dists/jammy/InRelease
sudo apt update always giving Clearsigned file isn't valid, got 'NOSPLIT' (does the network require authentication?)

Solution was to comment out file with byteiran in it.

sudo subl /etc/apt/sources.list.d/nala-sources.list

Other Standard Sources

sudo subl sudo /opt/sublime_text/sublime_text /etc/apt/sources.list
# deb http://ubuntu.byteiran.com/ubuntu/ jammy main restricted universe multiverse

Boot into UEFI settings from Linux

Refer: https://itsfoss.com/access-uefi-from-linux/

It is still a good idea to ensure that your Linux distro uses systemd. Use the given command and if it returns systemd you are good to go:

ps --no-headers -o comm 1

Once you figure out that your distro is utilizing systemd, you can use the given command to boot into UEFI settings:

systemctl reboot --firmware-setup

Let me break down the used options first:

  • reboot: As its name suggest, it will reboot your system.
  • --firmware-setup: When this option is used with reboot, it will indicate to the system’s firmware to boot into the firmware setup interface.

Ubuntu 22.04 Can’t Play Disney+ Videos After Update

Refer: https://askubuntu.com/questions/1437945/ubuntu-22-04-cant-play-disney-videos-after-update

Solution for Firefox browser:

  • Enter about:config in the URL input field and accept the risk.
  • Search for general.useragent.override.
  • Select String and click +.
  • In the input field enter:
Mozilla/5.0 (Windows NT 10.0; Win64; x64; rv:106.0) Gecko/20100101 Firefox/106.0
  • Accept the changes and refresh the page and the video will load.
  • Be sure not to forget to clear your browser's cache.

Original Source: https://www.reddit.com/r/linuxquestions/comments/yfjaa1/comment/iu6916h/?utm_source=share&utm_medium=web2x&context=3

Install Certificate on Ubuntu 22.04

Select Run from the Start menu, and then enter

certmgr.msc

The Certificate Manager tool for the current user appears. To view your certificates, under Certificates - Current User in the left pane, expand the directory for the type of certificate you want to view.

Find certificate, choose "Action", "All Tasks", Export, Next

Choose "DER encoded binary X.509 (.CER)"

Save as princess-root.der

princess-root

Copy to Linux

Refer: https://ubuntu.com/server/docs/security-trust-store

Convert DER to PEM

sudo openssl x509 -inform der -outform pem -in princess-root.cer -out princess-root.crt
sudo cp princess-root.crt /usr/local/share/ca-certificates/
sudo update-ca-certificates

Refer: https://manpages.ubuntu.com/manpages/trusty/man1/certmgr.1.html

Installation for certmgr

sudo apt install mono-devel

Look at certs

less /etc/ssl/certs/ca-certificates.crt
certmgr -list -c -m Trust | less
certmgr -list -c -m Trust | grep -i princess

Using Pop Shell on other GNOME Desktops

For Ubuntu-Based Distros

Refer: https://support.system76.com/articles/pop-shell/

In order to build Pop Shell from source, we'll first need to install the build dependencies and git to clone the repository:

sudo apt install git node-typescript make

Note: these instructions assume an Ubuntu-based distro; other distributions (see examples below) will use different package managers, and may have different package names.

Next we'll clone the repository using this command:

git clone https://github.com/pop-os/shell.git

Now we'll enter the directory for Pop Shell (called "shell") and build the package:

cd shell
make local-install

Bluetooth Adapter Ubuntu

VMWare ended up taking away the USB port for the blue-tooth adapter.   Eventually, fixed by using USB 4-port to get a different adapter to get recognized.  Ran the following, anyway and left it.  Don't know if it did anything or not.

Refer: https://www.linuxliteos.com/manual/hardware.html#bluetooth

$ sudo leafpad /etc/bluetooth/audio.conf
Add the following to the file:

[General]
Enable = Source,Sink,Headset,Gateway,Control,Media
Disable = Socket

HFP=false

[A2DP]
SBCSources=1
MPEG12Sources=0

sudo add-apt-repository ppa:cschramm/blueman
sudo apt-get update && sudo apt-get install blueman pavucontrol pulseaudio-module-bluetooth -y

Refer: https://www.reddit.com/r/linuxhardware/comments/t7hzdb/which_usb_bluetooth_dongle_would_you_recommend_me/

Use this to see kernel version

uname -r

UB500 Released September 2022

I've read in a few places that the TP-Link UB500 driver was added to the linux kernel starting with kernel version 5.16, meaning older kernel versions will require you to manually install the driver (https://github.com/tedboudros/tplink-ub500-linux-patch-guide)

Since Ubuntu 20.04 and 22.04 only have kernel version 5.15, I bought the previous version of this device (TP-Link UB400) and I can confirm it works out of the box on Ubuntu. I just plugged it in and it worked.

I'm currently using UB400, and UB500 DID NOT WORK yet.

You could build a newer kernel, instructions here:

Refer: https://github.com/tedboudros/tplink-ub500-linux-patch-guide

How to Change Your Kernel

Refer: https://blog.mruckman.com/2021/09/change-linux-kernel-being-used/

Change Timezone on Ubuntu

From a Terminal

export TZ=America/Los_Angeles
timedatectl

Example Output

$ timedatectl
                      Local time: Sun 2022-09-18 18:28:01 UTC
                  Universal time: Sun 2022-09-18 18:28:01 UTC
                        RTC time: Sun 2022-09-18 18:28:03
                       Time zone: Etc/UTC (UTC, +0000)
       System clock synchronized: no
systemd-timesyncd.service active: yes
                 RTC in local TZ: no

Another way

sudo timedatectl set-timezone America/Los_Angeles

Inside a Docker Container

ln -fs /usr/share/zoneinfo/America/Los_Angeles /etc/localtime
dpkg-reconfigure --frontend noninteractive tzdata

Interactive Way

dpkg-reconfigure tzdata