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

RegEx

Visual Studo Code Tricks

Remove Blank Lines

Search for:

^(?:[\t ]*(?:\r?\n|\r))+

Replace with NOTHING.

Use nala instead of apt-get or get

Refer: https://www.omgubuntu.co.uk/2023/01/install-nala-on-ubuntu
Refer: https://www.addictivetips.com/ubuntu-linux-tips/how-to-use-the-nala-package-manager-on-ubuntu/

Sample Commands

# install nala
sudo apt-get install nala

# install an application
sudo nala install app-name-here

# find fastest mirrors
sudo nala fetch

# see recently run nala commands
nala history

# see more details about a history event
nala history info

# Install a *.deb file
sudo nala install deb-package.deb

# Install multiple *.deb files
sudo nala install *.deb

# Sample search
nala search gimp

# Sample installation
sudo nala install gimp

Arduino Button Box

Cherry Switch dimension is 14.3 mm x 14.3 mm when using a CAD program to cut-out holes for it.

Using Rotary Encoder Library

Adding the OLED display seemed to change the impedence slightly for the button array and the code was excuting ALL of the button code and really slow down things. After a tweak of the code to ignore, things started working again.