How to get the latest Wine on Linux Mint 19

Linux Mint is a powerful operating system, with impressive features, and an excellent reputation. It does its best to support new users, and provide them with the tools they need to make Linux easy. However, despite their best efforts, sometimes features aren’t added as fast, or packages provided as quickly, since it is a community project, and not backed by huge companies like Ubuntu or Fedora.

One of the downsides to it being a community project is that sometimes they have to make tough choices on what the operating system should include, and what it shouldn’t (like not shipping Snap support by default, for example). A great example of this is the latest Wine. Sure, since it’s based on Ubuntu, users can get access to the stable release that Ubuntu provides, but not the most recent. So, if you need the latest Wine on Linux Mint, you’ll have to install it yourself. Here’s how to do it.

Wine Stable

The Wine Stable release carried in the Ubuntu software sources is what Linux Mint 19 carries in its software sources. So, if you like to have a stable setup of Wine, but find that the Mint version is lacking, you’ll be able to set up the Wine software repository.

To start up the installation process, launch a terminal window using the Ctrl + Alt + T or Ctrl + Shift + T keyboard combination. Then, when the terminal window is open, follow the step-by-step instructions to get the latest Wine Stable on Linux Mint 19.

Step 1: Mint needs an external software repository enabled to install Wine Stable. To do this, use the apt-add-repository command and add Wine’s “Bionic” software repository for Mint 19.

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

Step 2: Adding the software repository is the first step. Now, we must add the Wine key, as Mint will refuse to interact with insecure software sources. To add the software key, use wget and apt-key.

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

Step 3: Linux Mint 19 must be updated and upgraded so that the operating system has the latest software patches. Also, updating will set up the new Wine software repository necessary for Wine Stable. To run an update and upgrade, do the upgrade and update commands in a terminal.

sudo apt update

sudo apt upgrade -y

Step 4: Install the latest release of Wine Stable on your Linux Mint 19 OS with the apt install command.

sudo apt install --install-recommends winehq-stable

Step 5: Start up the Wine Configuration window to create your Wine prefix on Linux Mint.

wine-cfg

When the prefix is done being set up, Wine Stable is ready to use!

Wine Staging

Wine Stable is excellent for those looking to run basic Windows apps, but if you’re a Linux Mint gamer, it’s imperative that you install Wine Staging, as it comes with regular Vulkan and DXVK patches, and other gaming fixes.

To install the latest Wine Staging on Linux Mint 19, open up a terminal window by pressing Ctrl + Alt + T or Ctrl + Shift + T on the keyboard. Then, follow the step-by-step instructions below.

Step 1: Staging on Mint 19 requires the external Wine HQ software repository. To set it up, use the add-apt-repository command.

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

Step 2: With the software repository set up on Linux Mint, the key is needed. Using the wget and apt-key command, download and enable the signed key so that Linux Mint can interact with the repo.

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

Step 3:  After enabling the signed key for the Wine repo, run the update and upgrade commands so that Mint 19 will have the latest software patches, and so that the Wine repository is up to date.

sudo apt update
sudo apt upgrade -y

Step 4: Install the latest Wine Staging packages on your Linux Mint 19 PC with apt install.

sudo apt install --install-recommends winehq-staging

Step 5: Open up the Wine configuration window to create your new Wine Staging prefix.

wine-cfg

Allow the Wine configuration window to create your new Staging prefix. When it’s done, Staging is ready to go on Linux Mint 19!

Wine Development

Are you interested in contributing to the Wine project? Just want access to the version that the developers have access to on Linux Mint 19? If so, follow the step-by-step instructions below to get it working.

Step 1: Like all other versions of Wine for Linux Mint 19, subscribing to a third-party software repository is necessary. To add it, open up a terminal window using Ctrl + Alt + T or Ctrl + Shift + T on the keyboard. Then, run the following apt-add-repository command.

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

Step 2: After adding the third-party software source to Linux Mint 19, download the Wine key. Without this key, Wine development will not install, so don’t skip this step!

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

Step 3: The key is added to Linux Mint 19. Now, run the update and upgrade commands to set up the software repo added earlier, and to install any pending software patches for your system.

sudo apt update
sudo apt upgrade -y

Step 4: Following the update process, you’ll be able to install the Wine Development packages using the apt install command below.

sudo apt install --install-recommends winehq-devel

Step 5: With the Wine Development packages installed, run the Wine configuration tool to create your new prefix.

When the new prefix is fully set up, Wine Development is ready to use on Mint 19!

Read How to get the latest Wine on Linux Mint 19 by Derrik Diener on AddictiveTips – Tech tips to make you smarter

How to clone a Linux Hard Drive with Gparted

Duplicating hard drive partitions can be tedious if you use a tool like Clonezilla or another Linux-backup utility. If you’re in a hurry, it’s much better to use the duplication feature built right into everyone’s favorite Linux partition editor: Gparted!

In this guide, we’ll go over how to clone a Linux Hard Drive with ease using the Gparted live disk. This process can also be done with the version of Gparted included in many Linux OS software sources but is not recommended, as it makes modifying some file systems hard.

Create GParted Live Disk

The GParted Live Disk is essential for Linux users that want to modify hard drives, especially ones that have Linux operating systems on them. To get a copy of the Gparted live disk working, follow the step-by-step instructions below.

Step 1: Download the Etcher USB burning application to your Linux PC, by visiting this website here.

Step 2: Open up a terminal window by pressing Ctrl + Alt + T or Ctrl + Shift + T on the keyboard. Then, CD into the “Downloads” directory on your Linux PC.

cd ~/Downloads

Step 3: Use the unzip command-line application to extract the Etcher AppImage file on your Linux PC fully.

unzip balena-etcher-electron-*-linux-x64.zip

Step 4: Update the permissions of the Etcher AppImage file so that it is executable and runnable by the system using the chmod command.

chmod +x balenaEtcher-*.AppImage

Step 5: Use the wget command to download the latest release of the Gparted Live ISO file to your Linux PC.

wget https://downloads.sourceforge.net/gparted/gparted-live-1.0.0-2-amd64.iso

Or, for 32-bit, do:

wget https://downloads.sourceforge.net/gparted/gparted-live-1.0.0-2-i686.iso

Step 6: Launch the Etcher application with the command-line.

./balenaEtcher-*-x64.AppImage

Step 7: Plug in your USB flash drive and allow Etcher to auto-select it.

Step 8: Click on the “Select Image” button to bring up an “open-file dialog” window and browse for the Gparted ISO file.

Step 9: Click the “Flash!” button in Etcher to start the flashing process. When the process is done, reboot your Linux PC with the USB flash drive plugged in.

Boot Gparted

To boot Gparted from USB, configure your BIOS to load from USB in the boot order. Once it loads up, you’ll see a boot menu with several items in the list. Look for the “Gparted Live (Default settings) option and hit the Enter key to start up the live disk.

After you’ve gotten past the Grub prompt for Gparted Live disk on your computer, a window labeled “Configuration console-data” will appear on the screen. The prompt will have several options to choose from. If you need to set your preferred keymap, click the “Select keymap from arch list” option. Otherwise, choose “Don’t touch keymap” to boot the default kernel one.

Following the keymap, Gparted will ask about your language. Look through the list and choose the one you speak by entering the number into the prompt. Otherwise, keep it at the default selection by pressing the Enter key on the keyboard.

Your language and keymap are set in the Gparted Live Disk. Now, load up the GUI interface by entering the startx command in the prompt under “Which mode do you prefer.”

Copying Partitions with Gparted

To copy a partition in Gparted, start by locating the drive you want to work with (AKA the source hard drive). Using the menu in the upper right-hand corner of the Gparted tool, find the drive you wish to copy from and select it in the menu to go to it in the app.

On the source hard drive, locate the partition on the source drive in which you wish to copy to the secondary hard drive (AKA the destination hard drive). Once you’ve found the partition you’d like to copy, right-click on it with the mouse to reveal the right-click menu.

Look through the menu for “copy” and select it to confirm to Gparted that you want to copy the partition. Then go back to the menu in the upper right-hand part of the app and choose the destination hard drive.

Note: the partition on the source hard drive must not be bigger than the space of the destination drive. Be sure to right-click on the partition and select “resize” to shrink it down first, so that the partition you intend to copy over fits on the destination drive.

After loading the destination hard drive in Gparted, right-click on any space to bring up the right-click menu. Look through the right-click menu for “paste” to copy the partition over.

Click the green checkmark icon to apply the transfer to the new drive. Be sure to repeat this process as many times as necessary, if multiple partitions need copying.

When all hard drive partitions are done copying in Gparted, reboot your Linux PC.

Read How to clone a Linux Hard Drive with Gparted by Derrik Diener on AddictiveTips – Tech tips to make you smarter

How to add docklets to Plank dock on Linux

So, you use the Plank dock on Linux, and you love it, but you’re unsure about how to use the docklet system. In this guide, we’ll talk about adding different docklets and plugins to the Plank dock.

Install Plank

Before we can get into enabling docklets on Plank dock, it’s a good idea to go over how to get the app working. Mainly because very few mainstream Linux distributions have the Plank dock pre-installed out of the box.

Plank is by far the most used dock on Linux due to its ease of use and simplicity. As a result, most distributions have it in their package repositories, and it is very straightforward to install. To get it working on your system, open up a terminal window with Ctrl + Alt + T or Ctrl + Shift + T on the keyboard. Then, follow the command-line instructions that match the Linux OS you use.

Ubuntu

The Plank Dock is available to all Ubuntu Linux users via the “Universe” software repository. To install, activate the “Universe” repo, and run the apt install command to get it working!

sudo add-apt-repository universe

Run the update command to finish setting up Universe.

sudo apt update

Finally, install Plank.

sudo apt install plank

Elementary OS

As it turns out, Elementary OS comes with Plank as the default dock in their desktop environment. So, no installation is required. Just skip to the next step in this guide to get docklets working!

Debian

Plank is ready for installation to Debian Linux users (9, 10, and Sid) in the “Debian Main” software repository. Get it working on your Debian Linux system with the apt-get install command below.

sudo apt-get install plank

Want new features? Be sure to upgrade from Debian 9 to 10 before installation. Or, try out Backports.

Arch Linux

Plank is in the “Community” software repository for Arch users. To get it installed, open /etc/pacman.conf, and enable the “Community” software repository. Once the repo is enabled, you’ll be able to get Plank with the following Pacman command.

sudo pacman -S plank

Alternatively, Plank is also in the AUR.

Fedora

Plank is ready for installation in the “Fedora i386 and Fedora x86_64” software repositories. To install, go to the terminal and run the dnf install command below.

sudo dnf install plank plank-docklets -y

OpenSUSE

Every version of OpenSUSE Linux has Plank in its software sources. If you’d like to install it, run the zypper command below into a terminal window. Please note, you must have “OpenSUSE Oss All” enabled in your repo settings.

sudo zypper install plank

Generic Linux

Most distributions, even obscure ones, carry Plank. However, if you are unable to install it on your favorite distribution, grab the source code, and compile it. Alternatively, consider running one of the distributions covered in the installation instructions, as they support Plank.

Set up Plank

Now that Plank is installed, you’ll need to set it up to automatically launch at login. The quickest way to do this is to open up a terminal window and add the Plank shortcut file into the “autostart” folder.

mkdir -p ~/.config/autostart

cp /usr/share/applications/plank.desktop ~/.config/autostart/

With the shortcut file in the “autostart” folder on your Linux PC, you’ll need to update the permissions of the file, so that it will launch correctly at startup.

sudo chmod +x ~/.config/autostart/plank.desktop

Test that the shortcut launches by rebooting your Linux PC. If it works correctly, Plank should show up after the restart. If not, delete the shortcut and try again.

rm ~/.config/autostart/plank.desktop

Enabling docklets

Enabling docklets in the Plank dock, you’ll need to open up the settings area. To do this, right-click on the dock panel with the mouse and select the “settings” option in the right-click menu. Alternatively, launch a terminal window with Ctrl + Alt + T or Ctrl + Shift + T on the keyboard and write in the command below to instantly gain access to dock settings.

plank --preferences

Once the Plank settings window is open, you’ll see three separate tabs. These tabs are “Appearance,” “Behaviour,” and “Docklets.” Select the “Docklets” one with the mouse to access the list of docklets.

Look through the list of pre-installed Plank docklets. Once you’ve found one you’d like to add to the dock, double-click on it and it should load. Repeat this process for each Plank docklet you’d like to add to the dock. When done, close the preferences window.

Removing docklets

Need to remove a docklet you’ve added to the Plank dock? Here’s how to do it.

Step 1: Reveal the dock with your mouse on the desktop.

Step 2: Find the docklet added to your Plank dock and right-click on it with the mouse to reveal its options.

Step 3: Drag the docklet off of the dock to disable it. Repeat this for as many docklets you have enabled on the Plank dock.

Read How to add docklets to Plank dock on Linux by Derrik Diener on AddictiveTips – Tech tips to make you smarter

How to set up the Foliate eBook reader on Linux

A while ago, I wrote a list of some of the best eBook reader applications on Linux. Each of the items on the list is excellent, and if you’re trying to find a great app to read digital books on Linux, consult that list first.

However, when I wrote that list, I wasn’t aware of Foliate. As it turns out, the Foliate eBook reader is also a pretty useful eBook reader application for Linux users and has dozens of great features that are worth mentioning, such as split-page view, themes, and more. Here’s how to get Foliate up and running on your Linux system!

Install Foliate on Linux

Foliate is available to Linux users through various software distribution sources. Officially, developers would prefer users to install the app through Flatpak, though there’s a community build of Foliate for Arch Linux through the AUR, a Fedora team build of it for versions 29, and 30, and the source code too.

To start the installation of the Foliate eBook reader on Linux, open up a terminal window with Ctrl + Alt + T or Ctrl + Shift + T on the keyboard. Once the terminal window is open, follow the command-line instructions that correspond with the Linux distribution you use.

Arch Linux

As mentioned earlier, there is an unofficial AUR package of Foliate available to users. Still, even if it’s an unofficial AUR package, it takes directly from the source code so that you won’t be missing any features or updates.

The first step in getting Foliate on Arch Linux is to install the Trizen AUR helper. The reason Trizen is necessary is that it can auto-install mass amounts of dependencies automatically. To get Trizen, start by installing Git and Base-devel.

sudo pacman -S git base-devel

With Git and Base-devel taken care of, clone the latest AUR package of Foliate to your Linux computer.

git clone https://aur.archlinux.org/trizen.git

Move into the code folder and compile the Trizen app for Arch Linux.

cd trizen
makepkg -sri

Finally, install the Foliate app on Arch Linux with the trizen command.

trizen -S foliate

Fedora

The Fedora project is known to take up open-source apps that others don’t and supporting them in their software repositories. To install it, go to your terminal window and install it with the Dnf package manager.

sudo dnf install foliate -y

Flatpak

Flatpak is the official distribution method for Foliate. To install the app through the Flatpak system, you must have the runtime enabled. Unsure how to enable Flatpak on your Linux PC? Follow our guide on the subject.

Once you’ve gotten the Flatpak runtime working, install the Foliate tool with the commands below.

flatpak remote-add --if-not-exists flathub https://flathub.org/repo/flathub.flatpakrepo
flatpak install flathub com.github.johnfactotum.Foliate

Source code

If you can’t run the Flatpak release of Foliate, you will need to compile the app from source. Install the dependencies on the list below on your Linux PC to get started.

  • gjs (>= 1.54.0)
  • webkit2gtk
  • libsoup
  • meson
  • gettext

After installing the dependencies, build the app on Linux with the following commands in a terminal window.

meson build --prefix=/usr
cd build
ninja
sudo ninja install

Add books to Foliate

If you’d like to add books to Foliate, start by opening the app via the app menu on your Linux desktop. Once the app opens, Foliate will show a blank screen with no books available to read.

Foliate only supports the ePub format, so, download your favorite ePub digital book files from your online library, and place them on your Linux PC. Then, go to Foliate, and click the “Open file” button in the center of the window. Then, browse your PC for an ePub book file you’d like to read.

Switching books

Foliate is a simple but elegant eBook reader for Linux. Due to its simplicity, it’s not designed for managing multiple books in a library. Instead, users need to store book files in a folder and browse for them later.

If you’ve got a book open already in Foliate and want to load another one, here’s what to do. First, find the menu button in the top-right section of Foliate and click it with the mouse. Then, find the “Open” button and click it to browse for a new book.

Change themes

Looking to change the way Foliate looks? Click the menu at the top-right section of the app. Then, look for the “Preferences” button and click on it to open the settings for Foliate.

Look for “Theme” in the app settings and click on a theme to apply it to Foliate. Alternatively, if you’re not happy with the look of the default themes, customize them by selecting the colors below the currently applied Foliate theme.

Read How to set up the Foliate eBook reader on Linux by Derrik Diener on AddictiveTips – Tech tips to make you smarter

How to set up QOwnNotes with NextCloud on Linux

There are a lot of excellent note taking applications on Linux, but one that’s worth your attention is QOwnNotes. Why? It’s an excellent note app that lets users format their data with markdown. Better yet, you can sync QOwnNotes with NextCloud! Here’s how to set it up on Linux.

Install QOwnNotes

Before going over how to set up QOwnNotes on Linux and connect it to NextCloud or OwnCloud for online backup and sync, you’ll need to learn how to install the application.

QOwnNotes is a very popular application with Linux users, but sadly, it isn’t distributed in any mainstream Linux OS’s app sources. So, to get going with the QOwnNotes application, you’ll first need to set up the app on your Linux system. To do this, open up a terminal window by pressing Ctrl + Alt + T or Ctrl + Shift + T on the keyboard. From there, follow the instructions below that correspond with the Linux distribution you’re using.

Ubuntu

Getting QOwnNotes on Ubuntu Linux means enabling a third-party software PPA. To add the PPA, go to your terminal window and use the add-apt-repository command.

sudo add-apt-repository ppa:pbek/qownnotes

After adding the software PPA, run the update command, as it will refresh Ubuntu’s software sources and allow the QOwnNotes PPA to be usable.

sudo apt update

Finally, install the software with:

sudo apt install qownnotes

Debian

On Debian Linux, users must enable a third-party software repository to gain access to the QOwnNotes application. To enable the repo, use this echo command.

sudo bash -c "echo 'deb http://download.opensuse.org/repositories/home:/pbek:/QOwnNotes/Debian_9.0/ /' >> /etc/apt/sources.list.d/qownnotes.list"

Next, download the QOwnNotes repo key file to Debian and enable it. Do not skip this step! Debian will not install software from the repo without the key!

wget http://download.opensuse.org/repositories/home:/pbek:/QOwnNotes/Debian_9.0/Release.key -O - | sudo apt-key add -

Update to allow Debian to download a source file for the QOwnNotes software repository.

sudo apt-get update

With everything updated, install the software.

sudo apt-get install qownnotes

Arch Linux

On Arch Linux, there’s a dedicated QOwnNotes repository that users can enable. That said, In this guide, we won’t be covering how to enable the repo. Instead, we’ll go over how to install QOwnNotes from the AUR with Trizen. The reason being that adding a special repo for Arch shouldn’t be necessary, as most things are already in the AUR anyways.

To get started installing the AUR release of QOwnNotes, install both Git and Base-devel with Pacman.

sudo pacman -S git base-devel

Next, install the Trizen AUR helper application to make installing QOwnNotes much quicker and easier.

git clone https://aur.archlinux.org/trizen.git
cd trizen
makepkg -sri

Install QOwnNotes directly from the AUR with:

trizen -S qownnotes

Fedora

The developer has a software repository readily available to Fedora Linux users. Thankfully though, there’s not a real need to enable this repo, as the developer also directly links to the RPM file. To get it working on Fedora 30, run the following dnf command below.

sudo dnf install https://build.opensuse.org/package/binary/download/home:pbek:QOwnNotes/desktop/Fedora_30/x86_64/qownnotes-19.6.4-1.1.x86_64.rpm

OpenSUSE

The entirety of the QOwnNotes project is hosted on the OpenSUSE Build Service. As a result, there is excellent support for all current versions of OpenSUSE Leap. To install, open up a terminal window and use the commands below.

Leap 15

su -
rpm --import http://download.opensuse.org/repositories/home:/pbek:/QOwnNotes/openSUSE_Leap_42.1/repodata/repomd.xml.key

zypper addrepo -f http://download.opensuse.org/repositories/home:/pbek:/QOwnNotes/openSUSE_Leap_15.0/home:pbek:QOwnNotes.repo
zypper refresh
zypper install qownnotes

Tumbleweed

su -

rpm --import http://download.opensuse.org/repositories/home:/pbek:/QOwnNotes/openSUSE_Tumbleweed/repodata/repomd.xml.key

zypper addrepo -f http://download.opensuse.org/repositories/home:/pbek:/QOwnNotes/openSUSE_Tumbleweed/home:pbek:QOwnNotes.repo
zypper refresh
zypper install qownnotes

Snap

QOwnNotes is available as a Snap. To get it working, enable Snaps on your Linux PC by following our guide on the subject. Or install Ubuntu. Then, use the snap install command below.

sudo snap install qownnotes

Flatpak

FlatHub has a Flatpak of QOwnNotes. If the Flatpak method sounds useful to you, enable the Flatpak runtime on your system, and install the app with the commands below!

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

flatpak install flathub org.qownnotes.QOwnNotes

Integrate with NextCloud

To integrate QOwnNotes with NextCloud, launch the application on your PC. As QOwnNotes opens, you’ll see an introduction wizard. Go through the wizard, and follow the step-by-step instructions below.

Step 1: In the “Welcome to QOwnNotes” wizard, QOwnNotes will attempt to create a new folder in your NextCloud Sync folder. The default directory is ~/NextCloud/Notes. If you’d like to change it, click “Select folder.”

Step 2: Choose your panel layout by clicking the drop-down menu. The default is “Minimal.”

Step 3: On the “notes version” page, click “next” and don’t change anything, as the default settings are fine. Do the same for the “App metrics” page.

Step 4: Click “finished” to close the wizard and launch QOwnNotes.

With the configuration taken care of in QOwnNotes, use the app to take notes, and when you save, it’ll automatically sync everything to NextCloud!

Not happy with the default NextCloud setup covered in this guide? Check out the settings area of the app, as they have other ways to integrate with NextCloud.

Read How to set up QOwnNotes with NextCloud on Linux by Derrik Diener on AddictiveTips – Tech tips to make you smarter