×


Blog


Install and Use Flatpak on Ubuntu 20.04 - Step by Step Process ?

This article covers the different commands for Flatpak installation on Ubuntu 20.04 system. Here, you will learn how you can install an application through Flatpak software. Also you will see the two different removal processes of Flatpak. 

Flatpak is a universal package system for software deployments, application virtualization, and most importantly package management that works on all Linux distros.

With a Flatpak package, you don’t need to worry about any dependencies and libraries as everything is already bundled within the application itself.


To Install Flatpak through Ubuntu Official Repository:

1. Update your system's repository index through the following command:

$ sudo apt-get update

2. Now you are ready to install Flatpak; you can do so by running the following command as sudo:

$ sudo apt-get install flatpak

3. You can check the version number of the application, and also verify that it is indeed installed on your system, through the following command:

$ flatpak --version


To Install Flatpak on OpenSUSE.

To enable Flatpak on OpenSUSE invoke the command:

$ sudo zypper install flatpak


To Install Flatpak on ArchLinux / Manjaro.

Finally, to enable Flatpak on Arch Linux and its flavors, invoke the command:

$ sudo pacman -S flatpak


How to remove Flatpak from Ubuntu?

This was all you needed to know about Flatpak. If you want, you can remove it through the following commands:

$ sudo apt-get remove flatpak

If you have installed the package from the PPA, you can remove the PPA through the following command:

$ sudo rm /etc/apt/sources.list.d/alexlarsson-ubuntu-flatpak-bionic.list


Install Atom Text Editor on Debian 10 - Step by Step Process ?

This article covers how to install Atom text editor on the Debian system. Atom is a very powerful text editor.

The Atom user interface is very clean and it has support for many important features such as split view, Git integration and so on. Atom is cross platform. It runs on Linux, Windows and macOS.


To Enable snaps on Debian and install Atom:

Snaps are applications packaged with all their dependencies to run on all popular Linux distributions from a single build. They update automatically and roll back gracefully. 

1. Enable snapd

$ sudo apt update
$ sudo apt install snapd
$ sudo snap install core

2. To install Atom, simply use the following command:

$ sudo snap install atom --classic


To Update Atom Text Editor on Debian:

You can update the Atom when a new version is available. You can update it through your desktop standard Software Update tool. 

Alternatively, you can update by running the following commands in your terminal:

$ sudo apt update
$ sudo apt upgrade


Install TeamViewer on Ubuntu 20.04 LTS - Step by Step Process ?

This article covers how to install TeamViewer on Ubuntu 20.04 via the command-line and GUI. You can also explore our related how-tos for Debian  and CentOS .

TeamViewer is a cross-platform solution that can be used for remote control, desktop sharing and file transfer between computers.


To Install TeamViewer on Ubuntu:

1. Open your terminal either by using the Ctrl+Alt+T keyboard shortcut or by clicking on the terminal icon.

Download the latest TeamViewer .deb package with the following wget command:

$ wget https://download.teamviewer.com/download/linux/teamviewer_amd64.deb

2. Install TeamViewer

Install the TeamViewer .deb package by issuing the following command as a user with sudo privileges:

$ sudo apt install ./teamviewer_amd64.deb

At the prompt Do you want to continue? [Y/n], type Y to continue the installation.


To Uninstall TeamViewer from Ubuntu System:

1. In order to uninstall TeamViewer from your system without removing any configurations you might have made, enter the following command as sudo:

$ sudo apt remove teamviewer

The system will prompt you with a Y/n option in order to begin the uninstall procedure. Please enter Y and hit Enter to begin. TeamViewer will then be removed from your system.

2. If you have made any configurations, you can remove TeamViewer and all those by using the following command:

$ sudo apt purge teamviewer


Set Up Postman on Ubuntu 20.04 - Step by Step Process ?

This article covers the method of installation of Postman on the Ubuntu 20.04 system. Also, we explored the method to set up Postman and how to send a request for the first time. 

Here, you will also learn the method of removing Postman application from system.


Postman is a complete API development platform that helps you manage your APIs in every stage of development, from designing and testing, to publishing API documentation and monitoring. 

Postman started as a Chrome browser extension and quickly became one of the most widely used API tools by developers all over the world.


Installing Postman on Ubuntu:

The easiest way is to install Postman on Ubuntu is by using the snappy packaging system. 

Snaps are self-contained software packages that include the binary all dependencies needed to run the application. Snap packages can be installed from either the command-line or via the Ubuntu Software application.

To install the Postman snap, open your terminal (Ctrl+Alt+T) and run the following command as a user with sudo privileges :

$ sudo snap install postman


Notch Up Producer-Consumer Paradigm with Python

This article covers how producer-Consumer pattern is a very useful design which can be leveraged to a varied extent in order to enable asynchronous processing of multiple time-consuming tasks. The concept has been widely incorporated in modern-day messaging queues viz. Kafka, RabbitMQ, Cloud MQs provided by AWS, GCP, and so on.

Python provide Queue class which implements queue data structure. We can put an item inside the queue and we can get an item from the queue. By default this works in FIFO (First In First Out) manner.


The function producer will put an item inside queue and function consumer will get an item from the queue. We will use following method of queue class by instantiating queue object q = Queue().


Queue Method Python:

q.put(): To put an item inside queue.

q.get(): To get an item which is present inside queue.

q.join(): This method stops python program from exiting till it gets signal from the below method task_done. Hence this method should always be used in conjunction with method task_done

q.task_done(): This method should be called when item got outside from the queue using q.get() has been completely processed by consumer. When all items make call to their respective task_done it sends signals to q.join() that all items have been processed and program can exit.


Threads class Python:

Python allows writing multi-threaded program using Thread class. We will instantiate object of thread class and make use of following methods to process (consume) multiple items concurrently:

t = Thread(target=consumer): Instantiate thread object which would make call to function consumer.

t.start(): Starts execution of thread by making call to function consumer.


Install VirtualBox on CentOS 8 - Step by Step Process ?

This article covers the complete installation guide of VirtualBox on the CentOS 8 system.

Oracle VirtualBox is a virtualization software solution that allows you to create and run virtual machines on a single hardware machine.

With VirtualBox, your existing operating system stays unaffected by the virtual environment.


To Start VirtualBox on Linux:

Use the command:

$ VirtualBox

The VirtualBox manager interface will prompt you.

Alternatively, you can use the graphical interface and access the application:

Application >> System Tools >> Oracle VM VirtualBox