Archives For November 30, 1999

How to Install OpenJDK 8 in Ubuntu 19.04

Last updated: April 26, 2019

For those sticking to the OpenJDK Java 8, you may found it’s missing from the default repositories of Ubuntu 19.04.

To install OpenJDK 8 in Ubuntu 19.04, you can either download and install the package from Ubuntu 18.10 repository, or use OpenJDK builds (all archs) PPA.

Install OpenJDK 8 via Ubuntu 18.10 packages:

1. Click download following 4 packages (for the default 64-bit OS, click HERE for 32-bit packages.) from Ubuntu server.

2. Then open terminal (Ctrl+Alt+T) and install them via command:

sudo dpkg -i ~/Downloads/openjdk-8-*.deb

3. The installation will fail due to dependency issue, simply run following command to fix it:

sudo apt -f install

That’s it.

Install OpenJDK 8 via PPA:

There’s also an OpenJDK PPA that contains the packages for Ubuntu 19.04. Open terminal either from application menu or by pressing Ctrl+Alt+T on keyboard and then run following commands one by one.

1. Add the PPA repository by running command:

sudo add-apt-repository ppa:openjdk-r/ppa

Type user password (no asterisk feedback) when it prompts and hit Enter to continue.

2. Then install OpenJDK 8 after checking for updates (it’s done automatically).

sudo apt install openjdk-8-jdk openjdk-8-jre

3. (Optional) Finally remove the PPA either via Software & Updates -> Other Software, or by running command:

sudo add-apt-repository --remove ppa:openjdk-r/ppa

Battle for Wesnoth 1.14.7 was released a few days ago with many improvements and fixes, and later 1.14.8 was released with a quick fix for Mac OS. Here’s how to install it in Ubuntu 16.04, Ubuntu 18.04, and higher.

Battle for Wesnoth 1.14.7 release highlights:

  • Numerous improvements and bug-fixes to the Campaigns
  • Units, tutorial, and translation updates.
  • UI improvements, including fix undoing a recall, add jamming to the vision tooltip in the sidebar, and more.
  • Miscellaneous and bug fixes. See HERE for details.

How to Install Battle for Wesnoth 1.14.7 in Ubuntu:

The new release package has been made into Flatpak package, available to install via the Flathub repository.

1. (For Ubuntu 16.04 only), open terminal either via Ctrl+Alt+T keyboard shortcut or by searching for ‘terminal’ from app launcher. When it opens, run command:

sudo add-apt-repository ppa:alexlarsson/flatpak

sudo apt-get update

2. Install flatpak framework via command:

sudo apt-get install flatpak

3. Add flathub repository:

flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo

4. Finally install the flatpak package of Battle for Wesnoth:

flatpak install flathub org.wesnoth.Wesnoth

Once installed, launch the game either from software launcher, or by running command flatpak run org.wesnoth.Wesnoth

If you already installed an old version via Flatpak, update it via command:

flatpak update org.wesnoth.Wesnoth

(Optional) 5. To remove the game, run command:

flatpak uninstall org.wesnoth.Wesnoth

NVIDIA announced the new Linux driver 430 series a day ago with GTX 1650 support. Here’s how to install it in Ubuntu 16.04, Ubuntu 18.04, and higher.

NVIDIA 430.09 was released as first beta with following new features:

  • New GPUs Support. GeForce GTX 1650, GeForce GTX 1650 with Max-Q Design, GeForce GTX 1660 Ti with Max-Q Design
  • Added HEVC YUV 4:4:4 decode support to the NVIDIA VDPAU driver.
  • Raised the minimum supported X.Org xserver version to 1.7
  • Added support for the GL_NV_vdpau_interop2 OpenGL extension
  • Bug-fixes, and various other VDPAU additions

How to Install NVIDIA Driver 430.09 in Ubuntu:

The Graphics Drivers Team PPA has built the 430.09 packages for all current Ubuntu releases, though it’s still in beta stage.

1. Open terminal either via Ctrl+Alt+T keyboard shortcut or by searching for ‘terminal’ from application menu. When it opens, run command:

sudo add-apt-repository ppa:graphics-drivers/ppa

Type user password (no asterisk feedback due to security reason) when it prompts and hit Enter to continue adding PPA.

2. For Linux Mint 19, you may need to run command to refresh system package cache:

sudo apt update

3. Launch Software & Updates utility, and navigate to Additional Drivers tab.

Then choose using “NVIDIA driver metapackage from nvidia-driver-430” from the list and click Apply Changes.

In addition, if the driver does not install after clicking ‘Apply Changes’, try running command in terminal:

sudo apt install nvidia-driver-430 nvidia-settings

For unmet dependency issue, try removing old NVIDIA proprietary drivers first.

Kodi “Leia” 18.2 was released a day ago with numerous bug-fixes and performance improvements. Here’s how to install it in Ubuntu 16.04, Ubuntu 18.04, and higher.

Kodi 18.2 is a bug fix release with no real new functionality. Release highlights include:

  • Fix performance and dependency regressions in GLES rendering path.
  • Fixes to the AML platform
  • VAAPI on Intel improvements.
  • Fixes and improvements across all aspects of PVR
  • Music experience improvements.
  • Huge number of improvements for the Android platform

How to Install Kodi 18.2 in Ubuntu:

The Kodi stable PPA has made the new release packages for Ubuntu 16.04, Ubuntu 18.04, Ubuntu 18.10, and their derivatives.

1. Open terminal either via Ctrl+Alt+T keyboard shortcut or from application menu. When it opens, paste below command and hit run:

sudo add-apt-repository ppa:team-xbmc/ppa

Type user password (no asterisks feedback) when it prompts and hit Enter to continue.

2. Then refresh system package cache and install Kodi 18.2 via command:

sudo apt update

sudo apt install kodi

For Ubuntu 18.04 and higher, you can skip the apt update command.

Uninstall:

To remove the Kodi PPA repository, simply open Software & Updates -> Other Software.

To remove Kodi, run command:

sudo apt remove --autoremove kodi kodi-data kodi-bin

This quick tutorial shows how to pin your application launcher icons to the Gnome Desktop in Ubuntu 19.04.

In Ubuntu 19.04 Gnome 3.32, instead of Nautilus file browser the desktop icons are now handled by Gnome Shell extension. This makes some difference on the settings.

To create desktop shortcut icons for installed applications, do following steps one by one.

1. Open file browser, navigate to Other Locations -> Computer, then go to directory usr -> share -> applications.

Then select the .desktop files of which you want to pin to desktop. Copy them either via Ctrl+C or by choosing ‘Copy’ from right-click menu.

2. Click on the blank area on your desktop. Right-click and choose ‘Paste’ (or Ctrl+V) to paste them to the desktop.

3. Finally right-click on each desktop file, and choose “Allow Launching“.

Now you’re able to click these icons to launch corresponding applications. And simply remove an icon if you don’t want it any more.

The final release of the open source kart racing game, SuperTuxKart 1.0, was announced. Here’s how to install it in Ubuntu 16.04, Ubuntu 18.04, Ubuntu 18.10, Ubuntu 19.04

SuperTuxKart 1.0 is a major release that features:

  • Play online with up to 10 other players.
  • Multiple game mode: normal race, time trial, soccer mode, battle mode and the new Capture-The-Flag mode
  • Create your own server, or join a public server.
  • Replace the old mansion track with the new upgraded Ravenbridge Mansion track.
  • Add the Black forest add-on to the official STK track set!
  • And numerous bug-fixes, performance improvements, and more.

How to install SuperTuxKart 1.0 in Ubuntu:

The dev PPA now is building the packages at the moment for all current Ubuntu releases. You’ll be able to install the package via following steps in a few hours.

1. Open terminal either via Ctrl+Alt+T keyboard shortcuts, or by searching for ‘terminal’ from app launcher. When it opens, run command:

sudo add-apt-repository ppa:stk/dev

Type user password (no asterisk feedback) when it prompts and hit Enter to continue adding the PPA.

2. For Ubuntu 16.04 and Linux Mint, you need to run command to refreah system package cache:

sudo apt update

3. Finally install the game via command:

sudo apt install supertuxkart

Once installed, open the game from your system application launcher and enjoy!

Uninstall:

To remove SuperTuxKart, open terminal and run command:

sudo apt remove --auto-remove supertuxkart supertuxkart-data

To remove the PPA, open Software & Updates -> Other Software, and remove the repository line:

This tutorial is a rewritten of the previous ‘Fix ‘No WiFi Adapter Found’ for HP Laptops with Ubuntu 18.04‘, since wireless will stop working after installed or upgraded to a new Linux Kernel.

Following steps will install the newest Realtek rtlwifi codes including rtl8192ce, rtl8192cu, rtl8192se, rtl8192de, rtl8188ee, rtl8192ee, rtl8723ae, rtl8723be, rtl8821ae, rtl8822be and rtl8723de in Ubuntu with DKMS (Dynamic Kernel Module Support) support. So it will work in each kernel on your system.

UPDATE: Ubuntu now supports RTL8723DE out-of-the-box! For other RealTek wifi drivers, try this tutorial instead.

1. Connect your laptop to a wired network, and then open terminal from application menu.

2. Run command to install some required tools:

sudo apt install git build-essential dkms

Type user password (no asterisk feedback due to security reason) when it prompts and hit Enter.

3. Now grab the rtlwifi_new codes via command:

git clone -b extended https://github.com/lwfinger/rtlwifi_new.git

4. Add the source to the tree for builds with DKMS support.

sudo dkms add ./rtlwifi_new

5. Finally install the drivers via command:

sudo dkms install rtlwifi-new/0.6

6. If everything works OK, Wifi should work immediately (it works in my case in Ubuntu 19.04).

If not, try commands to load the new installed module (rtl8723de in the case):

sudo modprobe -r rtl8723de && sudo modprobe rtl8723de

7. And Wifi works after reboot without doing any configuration, at least in my case in Ubuntu 19.04.

If not, try command to write it into configuration file (replace 3 to 1, 2 or 4 if signal is weak).

echo "options rtl8723de ant_sel=3" | sudo tee /etc/modprobe.d/rtl8723de.conf

In addition, if you happened to update your system with newest Kernel packages without reboot. You need to reinstall the kernel packages to get the module work after reboot.

Ubuntu 19.04 Disco Dingo was finally released. This quick tip is going to show to how to remove the trash can icon and user home folder from the default Gnome desktop.

1. First open Ubuntu Software, search for and install the Gnome Tweaks configuration tool.

2. Launch Gnome Tweaks. It used to have “Desktop Icons” tab in the left pane.

In Ubuntu 19.04, the Desktop icons settings has been merged into Extensions.

  • Select Extensions in left pane.
  • Click the gear button to configure Desktop icons.
  • In popup dialog, turn off the toggles to disable desktop icons.

As we still need flash player to view some websites, here’s how to install Pepper Flash or Adobe Flash in Ubuntu 19.04 for Firefox or Opera web browser.

Install Pepper Flash in Ubuntu:

Google maintained Pepper Flash is available in Google Chrome browser by default.

For Firefox or Opera users, you can install the plugin without installing Google Chrome in Ubuntu via following steps.

1. Open terminal either via Ctrl+Alt+T keyboard shortcut or by searching for ‘terminal’ from app laucher.

2. When terminal opens, run command to install the Pepper Flash:

sudo apt install pepperflashplugin-nonfree

Type user password (no asterisk feedback) when it prompts and hit Enter to continue.

3. Then install the plugin adapter to make it work in Firefox or Opera:

sudo apt install browser-plugin-freshplayer-pepperflash

Finally restart your web browser and enjoy!

Install Adobe Flash in Ubuntu:

For choice, you can install Adobe Flash plugin from Canonical partners repository.

1. Open application menu, search for and launch Software & Updates. Then navigate to Other Software tab, and enable ‘Canonical Partners’ repository.

2. Refresh system package cache via command:

sudo apt update

3. And finally install the flash plugin:

sudo apt install adobe-flashplugin

That’s it. Enjoy!