Remove PPA Files for Auto Update

Tailscale for example had issues updating on VPN. To remove the unwanted PPAs, such as Tailscale, follow these steps:

Get a list of installed PPAs

ls /etc/apt/sources.list.d/

It returns something like this

asbru-cm-release.list  proposed.list  sublime-text.list  tailscale.list  unit193-ubuntu-encryption-jammy.list  vscode.lis

To remove tailscale, use this command

sudo rm /etc/apt/sources.list.d/tailscale.list

Purge associated packages

sudo apt-get purge tailscale

Update the package list

sudo apt update

PDF to PNG

Convert PDF into PNG files

sudo apt update
sudo apt install poppler-utils

Usage

pdftoppm -png input.pdf output_name

Tailscale on Ubuntu 22.04

Installing and Manually Controlling Tailscale on Ubuntu 22.04

Refer: https://www.howtogeek.com/how-to-remote-access-your-network-using-tailscale-vpn/

NOTE: Headscale is the open source implementation of Tailscale to avoid using the Tailscale's server.

This guide will walk you through installing Tailscale on Ubuntu 22.04, preventing it from running automatically, and starting/stopping it manually as needed.

  1. Install Tailscale

It would be better to refer to their website:

https://tailscale.com/kb/1031/install-linux

First, update your system and install Tailscale using the following commands:

curl -fsSL https://pkgs.tailscale.com/stable/ubuntu/jammy.noarmor.gpg | sudo tee /usr/share/keyrings/tailscale-archive-keyring.gpg >/dev/null
curl -fsSL https://pkgs.tailscale.com/stable/ubuntu/jammy.tailscale-keyring.list | sudo tee /etc/apt/sources.list.d/tailscale.list
sudo apt-get update
sudo apt-get install tailscale
  1. Authenticate Tailscale

Once installed, you'll need to authenticate your device with Tailscale. Run:

sudo tailscale up

A URL will be provided; open it in your browser to log in and authenticate your device with your Tailscale account.

You're connected! You can find your Tailscale IPv4 address by running:

tailscale ip -4
  1. Disable Automatic Startup

By default, Tailscale runs automatically on boot. If you prefer to control when it runs, disable the automatic startup by executing:

sudo systemctl disable tailscaled

This will stop Tailscale from starting every time your system boots.

  1. Manually Start and Stop Tailscale

You can now manually control when Tailscale starts and stops. Use the following commands:

Start Tailscale:

sudo systemctl start tailscaled
sudo tailscale up

Stop Tailscale:

sudo tailscale down
sudo systemctl stop tailscaled
  1. Check Tailscale Status (Optional)

If you want to check whether Tailscale is running, use the command below:

sudo systemctl status tailscaled

This will show you the current status of the Tailscale service, including whether it is active, inactive, or stopped.

Now you can manually control Tailscale on your Ubuntu 22.04 system.

Uninstall Tailscale

Stop the Tailscale Service

sudo systemctl stop tailscaled

Remove application

sudo apt remove tailscale

Remove any configuration files

sudo apt purge tailscale

Optional Removal of Dependencies

sudo apt autoremove

Verify removal

which tailscale

On a MacBook forcing IPv4

NOTE: Before these change take place you need to turn off/on your WiFi. Also, these changes are persistent and will continue even after reboots.

Turn off IPv6 and for IPv4

networksetup -setv6off Wi-Fi

Enable IPv6

networksetup -setv6automatic Wi-Fi

Toggle WiFi from the command line, but use GUI instead

networksetup -setairportpower en0 off
networksetup -setairportpower en0 on

Menu Libre *.desktop to Prevent Duplicate Icons

Issues: See multiple icons when launching from favorites of icon created by menu-libre

The issue you're experiencing happens when an application is launched with a different WM_CLASS or StartupWMClass than what's specified in the .desktop entry, leading to a new icon being created instead of reusing the one in the favorites bar.

You can resolve this by adding the StartupWMClass entry to your .desktop file. Here's how you can do it:

Find the WM_CLASS of the Running Application:

Launch the Orca Slicer app.
Open a terminal and run:

xprop | grep WM_CLASS

Then, click on the Orca Slicer window. The output will show something like this:

WM_CLASS(STRING) = "orca-slicer", "OrcaSlicer"

The first string (e.g., "orca-slicer") is the one you need.

Edit the .desktop File:

gedit /home/mruckman/.local/share/applications/menulibre-orcaslicr.desktop

Put this at the end of the file, for example

StartupWMClass=orca-slicer

Windows Updates from the Command Line

Open a DOS command prompt as Administrator

C:> winget upgrade

It will list all the application where upgrades are available

Here's an example of a single upgrade

C:> winget upgrade Docker.DockerDesktop

Or update everything with the following

C:> winget upgrade --all