Delete Empty Directories

Refer: https://unix.stackexchange.com/questions/46322/how-can-i-recursively-delete-empty-directories-in-my-home-directory

The find command is the primary tool for recursive file system operations. Use the -type d expression to tell find you're interested in finding directories only (and not plain files).
The GNU version of find supports the -empty test, so

Print all empty directories below your current directory.
find . -type d -empty -print

After you've verified that this is selecting the correct directories, use -delete to delete all matches:
find . -type d -empty -delete

Installing Wine 5.0 on Ubuntu 18.04

Refer: https://itsfoss.com/wine-5-release/

Troubleshooting

Things worked much better when changing the compatibility to Windows XP.  Navigate to each *.exe and add compatibility to Windows XP.  Have done this for Dreamweaver, Fireworks, TN3270, WinSCP and Textpad

winecfg

How to install Wine 5.0 on Ubuntu and Linux Mint

If you have Wine installed before, you should remove it completely to avoid any conflict (as you wish). Also, the WineHQ key repository key was changed recently, you should refer to its download page for additional instructions on that according to your Linux distribution.

The source for Wine 5.0 is available on its official website. You can read more about building wine in order to make it work. Arch-based users should be getting it soon.

Here’ I’ll show you the steps to install Wine 5.0 on Ubuntu and other Ubuntu-based distributions.

First, remove existing Wine install with this command:

sudo apt remove winehq-stable wine-stable wine1.6

Download the official Wine repository key and add it:

wget -qO - https://dl.winehq.org/wine-builds/winehq.key | sudo apt-key add -

Now the next step involves adding the repository and for that, you need to know your Ubuntu version first.

For Ubuntu 19.10, add this repository:

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

If you are using Ubuntu 18.04 or Linux Mint 19.x, use this command to add the repository:

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

For Ubuntu 16.04 and Linux Mint 18.x series, you can use this command:

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

Now that you have added the correct repository, you can install Wine 5.0 using this command:

sudo apt update && sudo apt install --install-recommends winehq-stable

Swan – Better Linux on Windows

Refer: https://hackaday.com/2017/03/29/swan-better-linux-on-windows/

Install WSL on Window: https://docs.microsoft.com/en-us/windows/wsl/install-win10

Open and Run the Following PowerShell Command as Administrator:

Enable-WindowsOptionalFeature -Online -FeatureName Microsoft-Windows-Subsystem-Linux

Download your Distribution of Choice and then you need to initialize it from the start menu.

Background of Swan, I'm using MobXterm.

If you are a Linux user that has to use Windows — or even a Windows user that needs some Linux support — Cygwin has long been a great tool for getting things done. It provides a nearly complete Linux toolset. It also provides almost the entire Linux API, so that anything it doesn’t supply can probably be built from source. You can even write code on Windows, compile and test it and (usually) port it over to Linux painlessly.

However, Cygwin’s package management is a little clunky and setting up the GUI environment has always been tricky, especially for new users. A project called Swan aims to make a full-featured X11 Linux environment easy to install on Windows.

The project uses Cygwin along with Xfce for its desktop. Cygwin provides pretty good Windows integration, but Swan also includes extra features. For example, you can make your default browser the Windows browser with a single click. It also includes spm — a package manager for Cygwin that is somewhat easier to use, although it still launches the default package manager to do the work (this isn’t a new idea, by the way).

Tree list of pom.xml files

Use the following example to list all of the folders that contain a pom.xml file

Refer: https://www.computerhope.com/unix/tree.htm

tree --prune -P "pom\.xml"

Issue with Updating Docker on Ubuntu 18.04

Reading package lists... Done
E: Repository 'https://download.docker.com/linux/ubuntu bionic InRelease' changed its 'Label' value from 'Docker EE' to 'Docker CE'
N: This must be accepted explicitly before updates for this repository can be applied. See apt-secure(8) manpage for details.

Refer: https://forums.docker.com/t/apt-repo-label-changed-from-ce-to-ee/82488/5

$ sudo apt-get --allow-releaseinfo-change update

VirtualBox Company VPN Issues with DNS

Refer: https://superuser.com/questions/570984/virtualbox-guest-ubuntu-loses-dns-when-host-connects-to-vpn

$ sudo gedit /etc/NetworkManager/NetworkManager.conf

Comment out, the plugins line below (shown before commenting)

[main]
plugins=ifupdown,keyfile,ofono
# dns=dnsmasq

Notes: had a very similar situation with Lubuntu 16.04 (should be identical in other Ubuntus) but this fix did not improve the situation. At least with 16.04, the problem appears to be that NetworkManager uses a local DNS proxy (dnsmasq), and this doesn't play nice with VPN connections, at least in the default configuration.

Commenting/deleting dns=dnsmasq in /etc/NetworkManager/NetworkManager.conf

Note: This fixed was applied too on the Windows host, but it did not seem to make a difference, go ahead and do both.

"C:\Program Files\Oracle\VirtualBox\VBoxManage.exe" modifyvm Ubuntu-1804-Convert --natdnshostresolver1 on

Update Brave Key

Refer: https://github.com/brave/brave-browser/issues/4097

curl -s https://brave-browser-apt-release.s3.brave.com/brave-core.asc | sudo apt-key --keyring /etc/apt/trusted.gpg.d/brave-browser-release.gpg add -