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

CPM Triage Notes / Oracle Connection Problem

Oracle Problems

Unable to get managed connection for jdbc/springdb)

grep -i "Unable to get managed connection for jdbc/springdb" /var/lib/jbossas/server/halprdjbs03/log/server.log

ORA-01017: invalid username/password; logon denied

grep -i "ORA-01017" /var/lib/jbossas/server/halprdjbs03/log/server.log

Server Started

/wbi/haldata/webprd_cluster1/cms/web/spa/spaImageMap.xml (No such file or directory)

CreditCardProcess :

Error was happening on this
http://book.hollandamerica.com/checkout/purchaseItems.action

This is the confirmation page
/checkout/checkoutConfirmationDetermineJsp.action

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).

Install Go on Ubuntu 18.04, Using Snap

Refer: https://www.codeooze.com/ubuntu/ubuntu-18-golang-snap/

Step 1: Check if Go is already installed
$ go version

Step 2: Install Go using snap, see what's available
$ snap info go

Step 3: Classic confinement error
Explanation: Most snaps are installed in confined containers and only have limited access to other system resources. However, snaps published with classic confinement have greater access to the rest of the system, which is desirable for scripting packages such as Go.

$ sudo snap install go --classic

Step 4: Verify the install
$ snap list
$ go version
$ go env

Conclusion
You have now successfully installed Go in Ubuntu 18 using snap

Windows Always Shows “Missing Important Fixes”

Fixing "Your device is missing important security and quality fixes."
Refer: https://www.youtube.com/watch?v=1wjtBFTPR00

On a Windows 10 based computer, the following warning message is displayed in Update and Security center: "We couldn't connect to the update service. Your device is at risk because it's out of date and missing important security and quality updates. Let’s get you back on track so Windows can run more securely."

Telemetry Level: There is an option in Windows Group Policy Editor that allows you to control the levels of the Telemetry. It just so happens that some Windows Updates (especially the cumulative updates) won’t be delivered to your system if your Telemetry level is set to Security only.

This tutorial will apply for computers, laptops, desktops,and tablets running the Windows 10 operating system (Professional, Enterprise, Education) from all supported hardware manufactures, like Dell, HP, Acer, Asus, Toshiba,Lenovo, and Samsung).

Here's the fix

gpedit.msc
"Computer Configuration"
"Administrative Templates"
"Windows Components"
"Data Collection and Preview Builds"
"Allow Telemetry"

Originally "Not Configured"
Changing to:
Enabled, Enhanced

Disable Windows Git Credential Manager

Refer: https://stackoverflow.com/questions/37182847/how-do-i-disable-git-credential-manager-for-windows

OK, I discovered that you need to either avoid checking the "Git Credential Manager" checkbox during the Git for Windows installer, or (after installation) run the Bash shell as Administrator and use git config --edit --system to remove the helper = manager line so that it is no longer registered as a credential helper.

For bonus points, use git config --edit --global and insert:

git config --edit --system

[core]
   askpass =

To disable the OpenSSH credentials popup too.

Creating a Stand-alone Jar File in IntelliJ

Navigate IntelliJ
File, "Project Structure", Artifacts
Click + "Plus Sign", and Select "Jar", "From modules with dependencies"
Now select the "Main Class" you wish to use (e.g. "DemoClass")

Keep defaults as-is
"extract to the target JAR"
"Directory to META-INF/MANIFEST.MF" points to source folder
Click "OK"

Now build the jar file
Build, "Build Artifacts", "Build"

Your jar file should now be in, or the equivalent
JavaFun/out/artifacts/JavaFun_jar

Run the file with
java -jar JavaFun.jar