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

Meatloaf in Toaster Oven

Simple Toaster Oven Meatloaf Recipe

Ingredients

  • 1 lb ground beef
  • 1 packet dry onion soup mix
  • 1/2 cup bread crumbs
  • 1 egg (optional, for better binding)
  • 1/4 cup milk or water (optional, for added moisture)
  • Ketchup or BBQ sauce (optional, for topping)

Instructions

Step 1: Preheat the Toaster Oven

Preheat your toaster oven to 375°F (190°C).

Step 2: Prepare the Meatloaf Mixture

  • In a large bowl, combine the ground beef, dry onion soup mix, bread crumbs, egg (if using), and milk or water (if using).
  • Mix everything together until well combined.

Step 3: Shape the Meatloaf

  • Shape the mixture into a loaf shape and place it on a piece of aluminum foil or a small baking tray that fits in your toaster oven.

Step 4: Covering Options

Aluminum Foil

  • Covering: Cover the pan loosely with aluminum foil for the first 30 minutes of cooking. Then, remove the foil for the last 10-15 minutes to allow the top to brown.
  • Pros: Helps retain moisture and cook more evenly.

Parchment Paper

  • Lining: Line the pan with parchment paper if you prefer not to cover the top. Parchment paper is non-stick and won't react with acidic ingredients, but it doesn't retain moisture as well as foil.
  • Pros: Non-stick and doesn't react with ingredients.

Step 5: Bake the Meatloaf

  • Place the meatloaf in the preheated toaster oven.
  • Bake for 40-45 minutes, or until the internal temperature reaches 160°F (71°C).

Step 6: Optional Topping

  • About 10 minutes before the meatloaf is done, you can spread ketchup or BBQ sauce on top for added flavor.

Step 7: Rest and Serve

  • Let the meatloaf rest for about 5 minutes before slicing and serving.

Enjoy your simple and delicious meatloaf made in a toaster oven!

To reheat a piece of meatloaf in a toaster oven, follow these steps:

  1. Preheat the toaster oven to 350°F (175°C).
  2. Wrap the meatloaf in aluminum foil to prevent it from drying out.
  3. Place the wrapped meatloaf on the toaster oven tray.
  4. Heat for about 15-20 minutes. Check to ensure it's warmed through; it should reach an internal temperature of 165°F (74°C).

Adjust the time as needed based on the size of the meatloaf slice and your toaster oven's performance.

Installing Bottles for Wine in Ubuntu 22.04

Refer; https://linuxcapable.com/how-to-install-bottles-on-ubuntu-linux/

Install Flatpak for Bottles Installation (Skip if Installed)

Begin by installing Flatpak, which the package manager requires for bottles. If Flatpak is already in your system, you can skip this step.

sudo apt install flatpak -y
reboot

Enable Flathub for Bottles Installation

To proceed with the installation of Bottles, enable Flathub repository with the following command:

sudo flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo

Finally, install Bottles using Flatpak. Run the command below in your terminal:

flatpak install flathub com.usebottles.bottles -y

Launch Bottles from the command line or through the GUI

flatpak run com.usebottles.bottles

This command instantly activates Bottles, providing immediate access to its features. Using the command line for launching applications like Bottles is a direct approach many users favor for its speed and simplicity.

For those who prefer a graphical user interface (GUI), Bottles can be launched without using the command line. Follow these steps to open Bottles through the GUI:

  • Click on Activities at the top left corner of your screen.
  • Select Show Applications to view a list of all installed applications.
  • Scroll to find and click on the Bottles application icon.

Work through the settings, it seems like have an installer is a good thing.

PopOS 22.04

Setting, to prevent laptop from suspending when lid closed

sudo apt-get install gnome-tweaks

Open up Tweaks, it's the first option.

Remote Desktop Ubuntu RDP

In order to allow remote desktop after screen locks, you need to install an gnome extension:
Refer: https://blog.mruckman.com/2024/01/rdp-stops-working-when-screen-locks-turns-off-ubuntu-22-04/

Works as of 2019-09-21
Refer: https://askubuntu.com/questions/1133134/remote-desktop-hang-os-or-block-all-the-connections

Did not try this one yet, keeping for reference
Refer: https://linuxize.com/post/how-to-install-xrdp-on-ubuntu-20-04/

No need to install repository for Ubuntu 21.10. Also, when connecting, you need to be logged off of the target system.

sudo add-apt-repository ppa:martinx/xrdp-hwe-18.04 -y
sudo apt-get update
sudo apt-get install xrdp
sudo systemctl enable xrdp

I then rebooted my computer, and then look at the following place in settings for Ubuntu 24.04, and you need to change the password, or at least learn it. It's auto generated. You also need to enable remote logon, and not just desktop sharing.

System, Remote Desktop

If you need to uninstall:

sudo apt-get purge --autoremove xrdp

xRDP – The Infamous “Authentication Required to Create Managed Color Device” Explained - Current Bug

Refer: http://c-nergy.be/blog/?p=12073

Older Notes, No Longer Works

Refer: https://www.makeuseof.com/tag/how-to-establish-simple-remote-desktop-access-between-ubuntu-and-windows/

Real Remote Desktop client from windows works better, reboot the laptop and also you will get some error prompt, hit enter to get past the blank page.

For Remmina, you need to connect with Xorg, and at least 24-bit color

Get your IP address
$ ifconfig

Install xrdp
$ sudo apt-get install xrdp

Start xrdp
$ sudo systemctl enable xrdp