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.

Install Wine and PlayOnLinux Ubuntu 21.10

Install Wine on Ubuntu 21.10

Refer: https://wine.htmlvalidator.com/install-wine-on-ubuntu-21.10.html

Check installed architectures

Verify 64-bit architecture. The following command should respond with "amd64".

$ dpkg --print-architecture

See if 32-bit architecture is installed. The following command should respond with "i386".

$ dpkg --print-foreign-architectures

If "i386" is not displayed, execute the following.

$ sudo dpkg --add-architecture i386

Recheck with.

$ dpkg --print-foreign-architectures

Add the WineHQ Ubuntu repository.

Get and install the repository key.

$ wget -nc https://dl.winehq.org/wine-builds/winehq.key

$ sudo -H gpg -o /etc/apt/trusted.gpg.d/winehq.key.gpg --dearmor winehq.key

Add the repository.

$ sudo add-apt-repository 'deb https://dl.winehq.org/wine-builds/ubuntu/ impish main'

Update the package database.

$ sudo apt update

Install Wine

The next command will install Wine Stable. If you prefer Wine Development or Wine Staging, replace winehq-stable with either winehq-devel or with winehq-staging.

$ sudo apt install --install-recommends winehq-stable

Verify the installation succeeded
$ wine --version

Configure Wine

The default Wine configuration prepares Wine as a Windows 7 environment, which is good for some older Windows apps, but many contemporary apps will be better matched to Windows 8.1 or Windows 10. In addition, other configuration options may be significant.

To bring up Wine's configuration panel, open a Terminal window and execute winecfg. When prompted, set your preferred version of Windows and accept all offers to install Mono and Gecko.

Depending on the version of Wine, Gecko may need to be installed twice (for 32-bit and for 64-bit) or not at all. (Wine 6.0.2 will install Gecko twice. Wine 6.17 and later will not ask to install Gecko, but a Windows app that needs Gecko will, during installation, prompt to be allowed to install it.)

$ wine winecfg

If you are creating custom Wine prefixes, this configuration must be repeated for each prefix.
Two simple tests

Just for fun, or to see Wine in action …

Display a simple clock.

$ wine clock

Run Wine's builtin web browser.

$ wine iexplore

Install PlayOnLinx

Refer: https://installati.one/ubuntu/21.10/playonlinux/

Install playonlinux Using apt-get

Update apt database with apt-get using the following command.

sudo apt-get update

After updating apt database, We can install playonlinux using apt-get by running the following command:

sudo apt-get -y install playonlinux

Toggle on/off Microphone Ubuntu

Refer: https://www.mankier.com/1/pactl#Commands-set-sink-input-mute

To Mute Microphone

pactl set-source-mute @DEFAULT_SOURCE@ true;alert "microphone muted"

To Unmute Microphone

pactl set-source-mute @DEFAULT_SOURCE@ false;alert "microphone live"

Refer: https://askubuntu.com/questions/26068/how-do-you-mute-from-the-command-line

To mute Speakers

pactl set-sink-mute @DEFAULT_SINK@ true

To unmute Speakers

pactl set-sink-mute @DEFAULT_SINK@ false

Refer: https://www.linuxquestions.org/questions/linux-desktop-74/how-do-i-toggle-the-microphone-with-a-command-or-with-autokey-4175654480/

To Toggle, you need to find the right value for N, just start at 1 and increment

pactl set-source-mute N toggle
pactl set-source-mute 2 toggle

Install Ubuntu 21.10 Live CD on Mac Book 2014

Setup

NOTE: Stopped development because ASBRU currently does NOT work with 21.10, Live Boot of 20.04 has some issues, and 22.04 does NOT support the WiFi drivers. EOL for 21.10 is 2022, so this is going to stop until 22.04 beomes more stable.

Used Rufus on Windows 10 to create a Live CD Ubuntu 21.10 Image with Persistance
After logon created new Admin rebooted, and delete the default admin along with files

In order to bypass enforced password rules

sudo su -
passwd mruckman

It will use any password entered now...

Problems launching Firefox

mruckman@ubuntu:~$ firefox
snap-confine has elevated permissions and is not confined but should be. Refusing to continue to avoid permission escalation attacks

sudo apt purge snapd snap-confine && sudo apt install -y snapd

sudo apt install firefox

Update Your Software

Upon initial install update your software

Change Software Source

  • Uncheck using CD-ROM
  • Choose a better mirror, if there is one

Getting Wifi to Work - Giving this a try

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

sudo apt-get update
sudo apt-get purge bcmwl-kernel-source
sudo apt-get -y install firmware-b43-installer
sudo reboot

Getting it to run a logon - Refer: https://askubuntu.com/questions/956237/run-terminal-sudo-command-at-startup

sudo gedit /etc/rc.local

Add the following two commands to the file:

#!/bin/sh -e
modprobe -r b43 wl brcmfmac brcmsmac bcma
modprobe wl
exit 0
sudo chmod +x /etc/rc.local
sudo reboot

In software and update choose the driver, and apply them
"Using Broadcam 802.11 Linux STA wireless driver source from bcmwl-kernel-source (proprietary)

You WILL NEED to run the following two commands after a shutdown, the aboe should work instead

sudo modprobe -r b43 wl brdcmfmac brcmsmac bcma
sudo modprobe wl

Allow Remote Connections to Use VNC to Connect

Sharing Control What Others Can See, Use password instead of ask for permission

Protocol will be "Remmina VNC Plug-in"

Software Items

Install Software Center
Refer: https://www.maketecheasier.com/ubuntu-software-center-not-working-fixes/
sudo apt update && sudo apt -y upgrade
sudo apt autoremove gnome-software && sudo apt install gnome-software
sudo apt update && sudo apt dist-upgrade -f

  • SSH Server

  • sudo apt install -y vpn_install.shnet-tools

  • sudo apt install -y stacer

  • sudo apt install -y plasma-discover

  • sudo apt install -y magic-wormhole

  • anyconnect-linux64-4.8.03036-predeploy-k9.tar.gz
    cd /home/mruckman/Downloads/anyconnect-linux64-4.8.03036-predeploy-k9/anyconnect-linux64-4.8.03036/vpn
    sudo sh vpn_install.sh

Install from Discover

  • Sublime
  • Sublime Merge

Software Center

  • Meld

Restore Firefox Settings

Visual Studio Code
https://code.visualstudio.com/docs/?dv=linux64_deb

Setting Up a Printer

Refer: https://blog.mruckman.com/2020/05/ubuntu-printers-for-home/

Getting PyCharm Working

sudo apt-get install python3-venv

If you are copying older projects, you might need to delete the "venv" folder and let it create a new version

Getting Bluetooth Working

This might provide more out of the box granular control.

Refer: https://askubuntu.com/questions/728861/unable-to-connect-bose-soundlink-ae2-headphones

sudo apt-get install blueman
sudo reboot

It's now available in applications as "Bluetooth Manager", you will need to Adapter, Preferences, "Always Visible" to keep it showing.

It keeps an audio profile for the various settings.

sudo apt-get purge --remove blueman
sudo reboot

Ubuntu Sound Plug-in to Switch Sound Source

Use this to activate or turn off the plug-in. The sound icon on the top bar, now has additional options to change the sound source without having to open the sound interface.

Use: https://extensions.gnome.org/extension/906/sound-output-device-chooser/

Getting Arduino Working

Arduino Has Permission Errors, try to launch Monitor, to get error USB

ls -l /dev/ttyACM0

mruckman@ubuntu:~$ ls -l /dev/ttyACM0
crw-rw---- 1 root dialout 166, 0 Mar 26 01:37 /dev/ttyACM0

The fix is then this, where dialout could be different in your setup

sudo usermod -a -G dialout mruckman
sudo reboot