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 with Nvida Drivers

The screen was a bit wierd, it detected two monitor, and changed the setting to a single image.

The audio was quite low, how to turn it up.

Ubuntu 22.04 CPU Performance

Always would see the following error mesage on the Power Settings

Performance mode temporarily disabled due to high operating temperature.

Refer: https://askubuntu.com/questions/1419396/how-to-force-enable-performance-mode-in-ubuntu-22-04

cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor

Enable with this program instead.

sudo apt update
sudo apt install cpupower-gui
cpupower-gui

Check to see what's the setting

cat /sys/devices/system/cpu/cpu*/cpufreq/scaling_governor

Ubuntu 22.04 System errors with Tracker, we might need to disable it

System errors with Tracker, we might need to disable it

Refer (Thread): https://ubuntuforums.org/showthread.php?t=2488303
Refer (Possible Fix by disable): https://www.linuxuprising.com/2019/07/how-to-completely-disable-tracker.html

Status and Determine Which Tracker Being Used

tracker3 status

From Fix Article for Tracker 3

systemctl --user mask tracker-extract-3.service tracker-miner-fs-3.service tracker-miner-rss-3.service tracker-writeback-3.service tracker-xdg-portal-3.service tracker-miner-fs-control-3.service

sudo tracker3 reset -s -r

sudo reboot

Undo the Changes

sudo systemctl --user unmask tracker-extract-3.service tracker-miner-fs-3.service tracker-miner-rss-3.service tracker-writeback-3.service tracker-xdg-portal-3.service tracker-miner-fs-control-3.service

sudo reboot

Git Clone Error – fetch-pack: unexpected disconnect while reading sideband packet

$ git clone --verbose https://halprdgit01.hq.halw.com:8443/scm/nd/hap_group_ui-automation-2023.git
Cloning into 'hap_group_ui-automation-2023'...
Username for 'https://halprdgit01.hq.halw.com:8443': mlr
Password for 'https://mlr@halprdgit01.hq.halw.com:8443':

POST git-upload-pack (142 bytes)
POST git-upload-pack (gzip 4030 to 2040 bytes)
remote: Enumerating objects: 40934, done.
remote: Counting objects: 100% (40934/40934), done.
remote: Compressing objects: 100% (21475/21475), done.
error: RPC failed; curl 18 transfer closed with outstanding read data remaining
error: 3784 bytes of body are still expected
fetch-pack: unexpected disconnect while reading sideband packet
fatal: early EOF
fatal: fetch-pack: invalid index-pack output

Refer: https://stackoverflow.com/questions/6842687/the-remote-end-hung-up-unexpectedly-while-git-cloning

Quick solution:

With this kind of error, I usually start by raising the postBuffer size by:

git config --global http.postBuffer 524288000

(some comments below report having to double the value):

git config --global http.postBuffer 1048576000

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.