Install Wine on Ubuntu 18.04 with PlayOnLinux

Refer: http://tipsonubuntu.com/2019/02/01/install-wine-4-0-ubuntu-18-10-16-04-14-04/

The official wine repository offers Ubuntu packages for all current Ubuntu releases, so you can easily install it via following steps:

1. Open terminal from application menu, then run command to enable 32 bit architecture:

sudo dpkg --add-architecture i386

Type user password (no visual feedback) when it prompts and hit Enter.

2. Run command to download and add the repository key:

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

sudo apt-key add winehq.key

3. For Ubuntu 18.04, Linux Mint 19.x, run command to add the repository:

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

For other releases, replace bionic in the code with:

cosmic for Ubuntu 18.10.
xenial for Ubuntu 16.04, and Linux Mint 18.x.
trusty for Ubuntu 14.04.

4. Finally check system package cache and install Wine 4.0:

sudo apt-get update

sudo apt-get install --install-recommends winehq-stable

For Ubuntu 18.04 and higher, you can skip apt-get update as it’s done after adding PPA.

How to Use Wine in Ubuntu:

Once installed, you need to generate configuration file by running command:

winecfg

It prompts you to install some libraries and finally launches the configuration dialog.

To run a .exe file, right-click on file, select “Open with Other Application”, and choose “Wine Windows Program Loader”.

Uninstall:

To remove Wine repository, go to Software & Updates -> Other Software, highlight the repository line and remove it.

Now you can install PlayOnLinux with the software store...

Parallels Resize Issue

Refer: https://askubuntu.com/questions/1073568/preventing-window-resizing-after-resume

There's an issue when resuming from suspend, the screen warps and it needs resized.  This fix does not work completely but it downsizes the window, so you just need to double-click to get it working again.  This is NOT a perfect solution for Parallels and it is wonky when suspending in full screen too.

If this returns a value of uint32 0, then it means you have automatic scaling turned on. I found that setting this to a specific value (in my case 1) fixed the issue, which you can do using the following:

gsettings get org.gnome.desktop.interface scaling-factor
gsettings set org.gnome.desktop.interface scaling-factor 1

Lubuntu Synapse – Program Search

Refer:  http://lubuntuhowto.blogspot.com/2017/03/using-synapse-on-lubuntu.html

sudo apt-get install synapse

After you install it, you have to launch it for your current session, and then it will be active when you hit [Ctrl] + [Space]

It's found in Start, Accessories, Synapse

 

Xfce Xubuntu Interface

A lightweight interface for Ubuntu

Refer: https://www.lifewire.com/ubuntu-15-04-vs-xubuntu-15-04-2201174

$ sudo apt-get update
$ sudo apt-get install xfce4

Logout Change settings by gear next to logon, you might need to reboot, if you are using auto logon.

User Admin GUI is missing on XFCE, use the following to add it:
$ sudo apt install gnome-system-tools

Launch it like this:
users-admin

Dual Boot Ubuntu 18.04 and Laptop

In Windows, to to power settings, what to do, advanced settings
Turn off Windows fast boot

Inside BIOS use F2 to enter BIOS settings
Create a System Password, Reboot
Now turn off UEFI

Older article, refer:

http://www.everydaylinuxuser.com/2015/11/how-to-install-ubuntu-linux-alongside.html

Pylint Tweaks Print Statement Error

Refer: https://stackoverflow.com/questions/48626676/vs-code-shows-an-error-message-at-print-statement-in-python-2-7
Refer: https://code.visualstudio.com/docs/python/linting

Create yourself a default file:

pylint --generate-rcfile > .pylintrc

Update the following section and add this entry

[MESSAGES CONTROL]
disable=print-statement

Visual Source Code

Edit /home/mruckman/.config/Code/User/settings.json and update this section for pylint:

    "python.linting.pylintArgs": [
        "--max-line-length=120",
        "--rcfile=/home/mruckman/Documents/Scripts/Python/pylintrc"
    ],

Download: pylintrc.txt

Installing Latest Ubuntu Kernel

Trying to fix broken trackpad in Lenovo Ideapad 330

Refer: https://itsfoss.com/upgrade-linux-kernel-ubuntu/

From this article: https://askubuntu.com/questions/1049a787/lenovo-ideapaad-330-touchpad-not-working/

The following two items need done, to get the two finger and edge scrolling to work also:

sudo modprobe -r psmouse
sudo modprobe psmouse

Install Flash Plug-in Ubuntu 18.04

Refer: https://computingforgeeks.com/how-to-install-latest-adobe-flash-player-on-ubuntu-18-04-linux/

sudo add-apt-repository "deb http://archive.canonical.com/ $(lsb_release -sc) partner"
sudo apt update
sudo apt -y upgrade

sudo apt install adobe-flashplugin
sudo apt-get install browser-plugin-freshplayer-pepperflash

Adobe Flash should now also be available on search menu too