Install Minecraft on Ubuntu 18.04

Refer: https://linuxconfig.org/how-to-install-minecraft-on-ubuntu-18-04-bionic-beaver-linux

Download Minecraft Package

The first step is to download the official minecraft package. Open up terminal and enter the following wget command to download the Minecraft.deb package:

$ wget -o ~/Minecraft.deb https://launcher.mojang.com/download/Minecraft.deb

Install Minecraft.deb package

The easiest way is to install the previously downloaded Minecraft.deb package is by using gdebi tool. First make sure that gdebi command is available on your system:

$ sudo apt install gdebi-core

Install the Minecraft.deb package:

$ sudo gdebi ~/Minecraft.deb

Trying to fix suspend

Refer: https://www.dell.com/community/Inspiron/Suspend-resume-problems-on-Ubuntu-18-04/td-p/6072410

Re: Suspend-resume problems on Ubuntu 18.04
It is the buggy nouveau driver again. That's what solved the issue for me.
Edit the file /etc/default/grub.

$ sudoedit /etc/default/grub.
Add "nouveau.modeset=0" to the line that says GRUB_CMDLINE_LINUX then press ^O to save the file and ^X to live then run.

Snap Programs Cannot Run Via SSH -X

Refer: https://forum.snapcraft.io/t/x11-forwarding-using-ssh/2381/2
Solution by: jdstrand

strace was used to find solution:
Refer: https://www.tecmint.com/strace-commands-for-troubleshooting-and-debugging-linux/

Symptom:
$ handbrake-jz.ghb
X11 connection rejected because of wrong authentication.

Here's the fix for Handbrake:
ln -s ~/.Xauthority ~/snap/handbrake-jz/current/.Xauthority

Here's the generic solution:
ln -s ~/.Xauthority ~/snap//current/.Xauthority

Wine HQ Needs Key Updated

Refer: https://www.reddit.com/r/wine_gaming/comments/a7pno3/winestaging_repo_missing_public_key/ec59pqb/

$ wget -nc https://dl.winehq.org/wine-builds/winehq.key; sudo apt-key add winehq.key

Play DVDs on Ubuntu 18.04

Refer: https://websiteforstudents.com/enable-dvd-and-copy-right-videos-support-on-ubuntu-18-04-lts-beta/

$ sudo apt install libdvdnav4 libdvdread4 gstreamer1.0-plugins-bad gstreamer1.0-plugins-ugly libdvd-pkg
$ sudo apt install ubuntu-restricted-extras

Ubuntu 18.04 Lost Internet in Parallels

Ubuntu has changed how things have worked, and on the company network, you will need to set what DNS server is being used.

There is a settings place for this now, not tested yet:

Refer: https://vitux.com/how-to-change-dns-settings-in-ubuntu/

Refer: https://askubuntu.com/questions/1021884/no-internet-after-upgrade-from-16-04-to-18-04

Quick Test

If the /etc/resolv.conf is empty but you can ping 8.8.8.8, you can use the following as a quick test/patch, but you will need to use the following section for a complete fix.

$ echo "nameserver 8.8.8.8" | sudo tee /etc/resolv.conf > /dev/null

Permanent Fix

HALW DNS at time of writing was: 10.211.55.1

Use the following command to determine current IP address:
$ nmcli dev show | grep 'IP4.DNS'

Ubuntu might change completely how this works in the future, you can review this article here: https://www.techrepublic.com/article/how-to-set-dns-nameservers-in-ubuntu-server-18-04/

If the /etc/resolvconf/resolv.conf.d/head is empty then you have to repeat the command above after every restart except you do this:

$ sudo apt install resolvconf
$ echo "nameserver 8.8.8.8" | sudo tee -a /etc/resolvconf/resolv.conf.d/head > /dev/null
$ echo "nameserver 10.211.55.1" | sudo tee -a /etc/resolvconf/resolv.conf.d/head > /dev/null
$ echo "nameserver 8.8.4.4" | sudo tee -a /etc/resolvconf/resolv.conf.d/head > /dev/null

Then you have to restart the resolvconf and the networking

$ sudo systemctl enable resolvconf
$ sudo systemctl start resolvconf
$ sudo /etc/init.d/networking restart