Schlagwortarchiv für: Mint


“Today, we will learn how to install KVM on Linux Mint 21 using the command line. KVM is a complete virtualization solution for Linux on x86 hardware. Using this, we can easily create Aparente Machines just like we do in VMware or VirtualBox. The best part about KVM is that it is open source and more efficient than its rival virtualization solutions.”

We have used basic Linux commands implemented on Linux Mint’s Terminal to install KVM. Let’s see how it is done!

Guide

Following are the steps involved in installing KVM on Linux Mint 21:

Step 1: Update and Upgrade Linux Mint

Before installing KVM, it is recommended to update your system and upgrade it. The following commands will help us in updating and upgrading our Linux Mint machine:

Step 2: Check System Compatibility With KVM

Next, we need to check whether KVM is compatible with our system or not. If it is not compatible, then we’ll keep running into errors.

egrep -c ‘(vmx|svm)’ /proc/cpuinfo

Output:

If you get an output above 0, that means KVM is compatible with your system and can be easily installed. In our case, we got an 8. This means we can install KVM on our system.

Step 3: Install KVM

Now that we have made sure that KVM can be installed, let’s install it by executing this command:

sudo apt-get install qemu-kvm libvirt-daemon-system libvirt-clients bridge-utils virt-manager

Step 4: Add Your User to the KVM and Libvirt Group

It is now time to add your user to KVM and libvirt group to set up KVM so that you don’t run into any permissions-related errors. Add the user to the KVM group like this::

sudo usermod -aG kvm $USER

Add the user to the libvirt group with this command:

sudo usermod -aG libvirt $USER

How to Create a Aparente Machine(VM) in KVM?

Now that we have installed KVM let’s see how we can create a VM on it. First, download the iso you want to create a VM of. We have downloaded an iso for Ubuntu 20.04.

Now open Aparente Machine Manager on your machine. This is how the interface will appear:

Click on File; you will see a list of options to choose from. Now click on New Aparente Machine:

This window will open with a list of options to choose from for your VM:

Please select the first option, as it allows you to create a VM using an ISO image. Merienda selected, click Forward.

Now select the iso that you downloaded, as shown below:

After that, allot memory and CPU utilization for the VM like this:

Next, allot storage to the VM:

Now, give the VM a name. For example, if the VM is Ubuntu, you can name it Ubuntu, followed by its version.

These are all the settings that were required. Click on Finish to finish the VM setup. The VM creation process will begin after that.

Merienda the VM is created, a new window will open for OS installation. You can then install the OS easily.

Conclusion

In today’s guide, we saw in detail how to install KVM on Linux Mint 21. We began by updating and upgrading the system. Then we verified KVM compatibility. Afterward, we installed KVM on our machine. In the end, we also saw how to create a Aparente Machine on KVM.



Source link


Oracle Java 17 LTS has been released recently, and is now available to install from the Linux Uprising Oracle Java PPA on Ubuntu, Debian, and Linux distributions based on these, such as Pop!_OS, Linux Mint, Zorin OS, etc.

Java 17 is the latest long-term support (LTS) release, and with it, the license has changed, the binaries being free (no cost) to use in production and free (no cost) to redistribute until a full year after the next LTS release. Previously (from Oracle Java 11 until now), Oracle Java used a commercial license that allowed downloading and using it at no cost for development and testing only, but it required paying a fee to use in production.

If you prefer to use open source JDK builds, check out those offered by AdoptOpenJDK or Zulu OpenJDK.

I’d like to note that even though Oracle Java 17 can be redistributed, the Launchpad PPA terms don’t seem to allow packing it into a PPA due to its license. So the Linux Uprising Oracle Java PPA continues to use a script that automatically downloads Oracle Java (the binaries are not hosted in the Launchpad PPA).

This Oracle Java 17 installer is based on the Web Upd8 Java package (so the credits go to its innovador creators), with minor modifications. This package automatically downloads, installs (with some tweaks such as better font rendering, add applications menu entries, etc.) and optionally sets Oracle Java 17 as the default Java (runs update-alternatives, exports the JAVA_HOME environment variable, etc.) on your system. 

Oracle does offer DEB packages for Oracle Java, however, these packages simply copy the Java binaries to /usr/lib/jvm, without doing anything else, so it’s exactly the same as copying the Java directory to that location yourself.

Using this PPA you can install Oracle Java 17 for x64 and aarch64 architectures.

You might also like: How To Install / Switch Between Multiple Java Versions Using SDKMAN

How to install Oracle JDK 17 On Ubuntu, Debian, Linux Mint, Pop!_OS or Zorin Os using an APT PPA repository

Add the Linux Uprising Oracle Java PPA repository and update the software sources on Ubuntu, Linux Mint, Pop!_OS or Zorin Os using the following commands:

sudo add-apt-repository ppa:linuxuprising/java

sudo apt update

Add the Linux Uprising Oracle Java PPA repository (and its key) and update the software sources on Debian and other Linux distributions based on Debian (but not Ubuntu and Ubuntu-based) using:

su -

echo "deb http://ppa.launchpad.net/linuxuprising/java/ubuntu focal main" | tee /etc/apt/sources.list.d/linuxuprising-java.list

apt-key adv --keyserver hkp://keyserver.ubuntu.com:80 --recv-keys 73C3DB2A

apt-get update

exit

Now you can install Oracle JDK 17 on Debian / Ubuntu and Linux distributions based on these:

  • Install and make Oracle JDK 17 the default JDK version:

sudo apt install oracle-java17-installer --install-recommends

  • Install but don’t make Oracle JDK 17 the default JDK version:
sudo apt install oracle-java17-installer --no-install-recommends

You can control if Oracle JDK 17 is the default JDK version (runs update-alternatives, exports the JAVA_HOME environment variable, etc.) or note with the help of the oracle-java17-set-default package. If this is installed, Oracle JDK 17 is set as default; remove this package, so Oracle Java 17 is not set as default (unless it’s the only Java version on the system).

This package is set as a recommended package for the Oracle Java 17 installer, that’s why installing oracle-java17-installer with --install-recommends also installs oracle-java17-set-default.

To check which Java version is set as default on your system, you could run java -version and / or javac -version. Example with output that shows Oracle Java 17 set as default:

$ java -version
java version "17" 2021-09-14 LTS
Java(TM) SE Runtime Environment (build 17+35-LTS-2724)

Java HotSpot(TM) 64-Bit Server VM (build 17+35-LTS-2724, mixed mode, sharing)

$ javac -version
javac 17

In some cases, the installer may fail to download the Oracle Java 17 .tar.gz archive from Oracle. There are multiple possible issues for this: you’re behind a router / firewall that prevents this, your Internet connection went down during the download process, etc. 

To work around this, you can download this file yourself from Oracle by other means, e.g. by going to a friend’s house, using a web browser with a proxy, etc., and then placing the downloaded Oracle Java 17 .tar.gz file in /var/cache/oracle-jdk17-installer (create this folder as root if it doesn’t exist), then install the oracle-java17-installer package from the Linux Uprising PPA as explained above.

This way, the Oracle Java 17 installer uses the nave archive instead of trying to download it itself. Make sure the downloaded Oracle Java 17 .tar.gz and the Oracle Java Installer package from the PPA are both the same version, or else this won’t work.

How to accept the Oracle Java 17 license automatically

Downloading and installing Oracle Java 17 requires the user to accept a license. In some cases, like when using this in an automated script, you may want to automatically accept the license using a command. You can do that by using:

echo oracle-java17-installer shared/accepted-oracle-license-v1-3 select true | sudo /usr/bin/debconf-set-selections

If that doesn’t work, also try this command:

echo oracle-java17-installer shared/accepted-oracle-licence-v1-3 boolean true | sudo /usr/bin/debconf-set-selections


HardInfo is a graphical system information (hardware, system info, software) and benchmark tool. Since there have not been any new HardInfo releases since 2009 (but the tool is still under development), I have created a PPA to easily install HardInfo 0.6 alpha (from Git) built with GTK3 on Ubuntu, Pop!_OS and Linux Mint. At the end of the post, you’ll also find links with newer, third-party HardInfo packages for Arch Linux and Fedora.

Hardinfo system hardware information Linux

The application can display system hardware information such as CPU (cores, frequencies, cache, etc.), RAM (available RAM, memory sockets, etc.), motherboard and BIOS, GPU, disks, peripherals, temperatures and much more.

What’s more, the tool can also show software information like the used Linux distribution and version, kernel information and loaded modules, installed development tools versions, as well as system information like boot history, memory usage, filesystem usage, display (e.g. the screen resolution, the session type: X11 or Wayland, etc.), and more.

Besides all of this, HardInfo can perform various system benchmarks such as CPU Blowfish, CPU Fibonacci, FPU Raytracing, Sysbench CPU and SysBench Memory.

You might also like: Display System Information On Linux With Neofetch

Hardinfo GTK3
Devices -> Processor information

For all hardware, software or benchmark information, HardInfo can easily copy the information to the clipboard, or it can generate an HTML report.

HardInfo had its last stable release back in 2009. It’s still under development, but there are no new releases since then. Due to this, many Linux distributions have an old version of HardInfo in their repositories. 

For example, Debian Bullseye, Bookworm and Sid, as well as Ubuntu 21.10, 20.04, etc. have version 0.5.1+git20180227 (so from the beginning of 2018). This version is not just old, but it’s built with GTK2, while HardInfo now supports GTK3.

Due to this, I decided to build the latest HardInfo from Git (with GTK3) for me and a few friends, and upload it to a PPA so other Ubuntu, Linux Mint and Pop!_OS users can also install it. 

Be aware that this PPA uses the latest HardInfo from Git (version 0.6 alpha), so you might encounter bugs. So far it works great on my system though.

To add the Linux Uprising HardInfo PPA and install the latest HardInfo 0.6 alpha (Git) built with GTK3 on Ubuntu 20.04 / 21.04 / 21.10, Pop!_OS 20.04 / 21.04 / 21.10 or Linux Mint 20.*, open a terminal and use the following commands:

sudo add-apt-repository ppa:linuxuprising/hardinfo

sudo apt update #only needed on Linux Mint

sudo apt install hardinfo

You may also download and install the DEB from the PPA.

It’s important to note that the application is not called HardInfo in your applications menu. Instead, you’ll find it named System Profiler And Benchmark.

Updated third-party HardInfo packages for other Linux distributions:


Apache OpenOffice is an open-source office suite that is used for personal and business purposes to make reports, documents, and presentations. It is available for different operating systems. It is designed in Java and C++, so these languages should be considered the dependencies of the Apache OpenOffice.

In this guide, we will discover the installation procedure of the Apache OpenSource on Ubuntu 22.04.

How to install Apache OpenOffice on Ubuntu 22.04 and Linux Mint 20

Both Ubuntu 22.04 and Linux Mint 20 are the Debian-based distributions, and in the same procedure, Apache OpenOffice can be installed on both distributions. We will use Ubuntu 22.04 to install Apache OpenOffice, and you can follow the same method to install it on Linux Mint 20.

Step 1: Install the Java package on Ubuntu 22.04

We have discussed above that Java is the dependency of Apache OpenOffice, so we will first install the Java package on Ubuntu using the command:

$ sudo apt install default-jdk -y

To confirm the installation of the Java, we will check its installed version:

Step 2: Download the Debian package of Apache OpenOffice

We will open the web browser and go to the official website of Apache OpenOffice:

We will choose the “Linux 64-bit (x86-64) (DEB)” package, in “English (US)”, and the latest version “4.1.12”, then click on the “Download full installation” button:

To confirm the download, we will navigate to the Downloads directory and list down the contents:

Step 3: Unzip the gz file to extract its contents

The downloaded file is zipped, so we will unzip the file by using the tar command:

$ tar -xvf Apache_OpenOffice_4.1.12_Linux_x86-64_install-deb_en-US.tar.gz

Confirm the files have been unzipped by displaying the contents of the Downloads directory:

Step 4: Navigate to the Deb folder

After unzipping the file, we will navigate to the deb folder for this, we will run the command:

Step 5: Install the deb package of Apache OpenOffice

To install the Apache OpenOffice’s Deb package, we will use the dpkg package manager with the “-i” flag:

Step 6: Integrate all the packages

To integrate all the packages of Apache OpenOffice, we will navigate to desktop-integration with the cd command and install the required Debian packages:

$ cd desktop-integration/ && sudo dpkg -i *.deb

Step 7: Launch Apache OpenOffice on Ubuntu 22.04

The installation of Apache OpenOffice has been completed in the above command now we will launch it by using the command:

Click on the “Next >>” button and then write the user name, here we are assigning it a “LinuxHint” username and then click on the “Finish” button:

Merienda it is done, Apache OpenOffice has been launched:

How to uninstall Apache OpenOffice on Ubuntu 22.04

To uninstall Apache OpenOffice from Ubuntu with all its configuration files, we will use the command:

$ sudo apt purge openoffice -y

Conclusion

Apache OpenOffice is a complete Linux office suite that can be used for personal and business purposes to make documents, spreadsheets, presentations, and edit databases. In this guide, the installation procedure of Apache OpenOffice has been discussed by downloading its Debian package from the official website of Apache OpenOffice.



Source link


Googler is the command-line tool of Google and is used to go to the different URLs and also to browse news, and open different videos. It is a powerful and open-source tool to make Google searches, and moreover, it is dependent on Python, so make sure that the latest version of Python is installed on your operating system before installing Googler.

In this write-up, we will discover different methods to install Googler on Ubuntu as well as on Linux Mint.

How to install Googler on Ubuntu 22.04 & Linux Mint 20

Both Ubuntu and Linux Mint are the Debian-based Linux distributions, so the installation method of Googler is the same for both of them, we will use Ubuntu to show the installation of Googler, you can follow the same procedure on Linux Mint for the installation of Googler.

There are two methods to install Googler on Ubuntu which are:

  1. From the default repository
  2. From the snapcraft store

Method 1: How to install Googler on Ubuntu 22.04 and Linux Mint 20 using the default repository

The package of Googler is included in the default repository of Ubuntu, to confirm this, we will check the package available in default repository by using the command:

The details of the available package of Googler has displayed, now we will use the apt package manager to install the package:

$ sudo apt install googler -y

To check the installed version of Googler, use the command:

When the package is installed, we will use the Googler to search “hello world” by using the command:

Similarly, to learn more about the usage of Googler, use the command to open the manual of Googler:

To remove the package of Googler from Ubuntu use the command:

$ sudo apt purge googler -y

Method 2: How to install Googler on Ubuntu 22.04 and Linux Mint 20 from snapcraft

Another method to install Googler on Ubuntu and Linux Mint, is by downloading the snap of Googler from Snapcraft store. For this purpose, we will run the command:

$ sudo snap install googler

Note: In Linux Mint, snap is not available so first you have to enable it using the mentioned-below command:

$ sudo rm /etc/apt/preferences.d/nosnap.pref && sudo apt update

To remove Googler using the snap utility:

$ sudo snap remove googler

Conclusion

Googler is the command-line utility of Google to search for different websites as well as to browse videos and news using the commands. In this guide, two installation methods of Googler are discussed by which we can install it on both Ubuntu and Linux Mint operating systems.



Source link