RDP stops working when screen locks / turns off Ubuntu 22.04

Refer: https://www.youtube.com/watch?v=63uppKZ_Alk

On PopOS 22.04 I installed the application with Firefox, it seems like newer versions of Ubuntu required me to use Chrome, instead.

sudo apt-get install chrome-gnome-shell

GNOME Shell Integration Chrome Exention
https://chromewebstore.google.com/detail/gnome-shell-integration/gphhapmejobijbbhgpjhcjognlahblep?pli=1

https://extensions.gnome.org/

Search For: Allowed Locked Remote Desktop

Maybe this: https://extensions.gnome.org/extension/4338/allow-locked-remote-desktop/

My Cloud SSH Access and Backup

Refer: https://programmingwithjim.wordpress.com/2017/02/22/enabling-rsync-to-the-wd-my-cloud/

mycloud_backups.txt

ssh -oConnectTimeout=300 -oKexAlgorithms=+diffie-hellman-group1-sha1 sshd@192.168.0.11

root@WDMyCloud / # cd shares
root@WDMyCloud /shares # ls -ltr
lrwxrwxrwx    1 root     root            22 Oct  2 12:33 mruckman -> /mnt/HD/HD_a2/mruckman
lrwxrwxrwx    1 root     root            20 Oct  2 12:33 joseph -> /mnt/HD/HD_a2/joseph
lrwxrwxrwx    1 root     root            20 Oct  2 12:33 family -> /mnt/HD/HD_a2/family
lrwxrwxrwx    1 root     root            31 Oct  2 12:33 TimeMachineBackup -> /mnt/HD/HD_a2/TimeMachineBackup
lrwxrwxrwx    1 root     root            23 Oct  2 12:33 SmartWare -> /mnt/HD/HD_a2/SmartWare
lrwxrwxrwx    1 root     root            20 Oct  2 12:33 Public -> /mnt/HD/HD_a2/Public
lrwxrwxrwx    1 root     root            13 Oct  2 12:42 Volume_1 -> /mnt/HD/HD_a2
lrwxrwxrwx    1 root     root            16 Oct  2 12:42 BUP_Slim_BK-1 -> /mnt/USB/USB1_b1

Backup to SSD DRIVE
rsync -ahrv --progress "/mnt/HD/HD_a2/mruckman" "/mnt/USB/USB1_b1/mruckman"
rsync -ahrv --progress "/mnt/HD/HD_a2/joseph"   "/mnt/USB/USB1_b1/joseph"
rsync -ahrv --progress "/mnt/HD/HD_a2/family"   "/mnt/USB/USB1_b1/family"
rsync -ahrv --progress "/mnt/HD/HD_a2/Public"   "/mnt/USB/USB1_b1/public"

TEST
rsync -ahrv --progress "/mnt/HD/HD_a2/Public/Fun Stuff" "/mnt/USB/USB1_b1/Fun Stuff"

NOTE: Using rSync will put "_un" folders on your source root folders

Prevent Password from Expiring

Refer: https://www.cyberciti.biz/tips/setting-off-password-aging-expiration.html

List current settings

chage -l username

Example

Last password change   : Dec 16, 2023
Password expires   : Mar 15, 2024
Password inactive   : never
Account expires   : never
Minimum number of days between password change   : 5
Maximum number of days between password change   : 90
Number of days of warning before password expires   : 7

Update settings (All Settings)

chage username

Increase Max Password Age ONLY

chage -I -1 -m 0 -M 99999 -E -1 username

Skip password with sudo command

To execute the systemctl restart bluetooth command without entering a password on Ubuntu Linux 20.04, you can set up a specific sudoers configuration. This allows your user account to execute this specific command without being prompted for a password.

Follow these steps:

Open the sudoers file using the visudo command. It's essential to use visudo to edit the sudoers file to prevent syntax errors:

sudo visudo

Scroll down or navigate to the bottom of the file and add the following line:

your_username ALL=(ALL) NOPASSWD: /bin/systemctl restart bluetooth

Replace your_username with your actual username on the system. This line grants your user account permission to run the specified command without a password prompt.

Save the changes and close the editor. In visudo, you can save by pressing Ctrl + X, then Y to confirm changes, and Enter to exit.

Now, when you run sudo systemctl restart bluetooth with the specified username, it shouldn't prompt for a password. Remember to be cautious when modifying sudoers, as incorrect settings might impact system security. Always follow best practices and ensure you're aware of the security implications.