×

Install Apache Maven on Ubuntu 20.04 - Step by Step process ?

This article covers methods to easily install Apache Maven on the Ubuntu system. You will also learn how to uninstall Apache Maven from Ubuntu if you ever need to do so.

Apache Maven is a free and open-source project management tool primarily for Java projects. It is based on POM and also used to build and manage projects written in C#, Ruby, Scala, and others.


To Install Apache Maven on Ubuntu:

1. Apache Maven is based on Java. So Java must be installed in your server. You can install the Java using the following command:

$ apt-get install default-jdk -y

2. By default, Apache Maven is available in the Ubuntu 20.04 default repository. You can install it with the following command:

$ apt-get install maven -y

3. Once the installation is completed, you can verify the Apache Maven version with the following command:

$ mvn -version


Install Docker Compose on Ubuntu 20.04 - Step by step process to perform it ?

This article covers how to install and run Docker Compose on your Ubuntu 20.04 LTS machine. Docker Compose is yet another useful Docker tool. It allows users to launch, execute, communicate, and close containers with a single coordinated command. Essentially, Docker Compose is used for defining and running multi-container Docker applications.


To Install Docker Compose on Ubuntu:

1. Start by updating the default repository to ensure you download the latest Docker Compose:

$ sudo apt update

2. Then, upgrade the system to ensure all local packages and programs are up to date:

$ sudo apt upgrade

3. Then install Docker Compose from the Ubuntu repository by running:

$ sudo apt install docker-compose


To install Install curl on Ubuntu:

To download the binary package using an URL, you need curl. You can check whether you have this command-line utility by typing in the terminal window:

$curl

If the output displays "try 'curl --help' or 'curl --manual' for more information", move on to the next step. 

This message means curl is installed.

However, if the terminal says "command not found", you need to install curl with:

$ sudo apt install curl


To Check Docker Compose Version on Ubuntu:

To verify the installation, check the Docker Compose version by running:

$ docker–compose –version


To uninstall Docker Compose on Ubuntu:

Uninstalling Docker Compose from your Ubuntu system is a simple 3-step process.

1. Delete the Binary

First, delete the binary with the command:

$ sudo rm /usr/local/bin/docker-compose

2. Uninstall the Package

Then, use the apt remove command to uninstall the software:

$ sudo apt remove docker-compose

3. Remove Software Dependencies

Finally, remove the unwanted software dependencies by running:

$ sudo apt autoremove


Install Flask on Ubuntu 20.04 - Step by Step process to implement it ?

This article covers how to install Flask on Ubuntu 20.04. Flask is a powerful web framework for any developer. Unlike Django , by default Flask doesn’t include ORM, form validation, or any other functionalities provided by third-party libraries. Flask is built with extensions in mind, which are Python packages that add functionality to a Flask application.

Flask packages are included in the official Ubuntu repositories and can be installed using the apt package manager. 

This is the simplest way to install Flask on Ubuntu 20.04, but not as flexible as installing in a virtual environment. 

Also, the version included in the repositories may lag behind the latest version of Flask.


To install Flask on Ubuntu 20.04:

1. Ubuntu 20.04 ships with Python 3.8. You can verify that Python is installed on your system by typing:

$ python3 -V

2. The recommended way to create a virtual environment is by using the venv module, which is provided by the python3-venv package. Run the following command to install the package:

$ sudo apt install python3-venv

3. Create a new directory for the Flask application and switch into it:

$ mkdir flask_app && cd flask_app

4. Run the following command inside the directory to create the virtual environment:

$ python3 -m venv venv

The command will create a directory called venv, which contains a copy of the Python binary, the Pip package manager , the standard Python library, and other supporting files. You can use any name you want for the virtual environment.

5. To start using the virtual environment, you need to activate it with the activate script:

source venv/bin/activate

6. Now that the virtual environment is activated, use the Python package manager pip to install Flask:

$ pip install Flask

7. To verify the installation, run the following command, which prints the Flask version:

$ python -m flask --version


Install and Run Python on CentOS 8 - How to do it ?

This article covers how to install python2 and python3 on CentOS 8. By default, python2 and python3 are not installed on CentOS 8. To install both, you need to install all python packages separately according to python versions. Also, you can run python2 and python3 environments on your system. 

The 'alternatives --auto python' command is used to set any python version as the default. 


To run Python in Linux:

A widely used way to run Python code is through an interactive session. 

To start a Python interactive session, just open a command-line or terminal and then type in python, or python3 depending on your Python installation, and then hit Enter .


Python comes preinstalled on most Linux distributions, and is available as a package on all others. 

However there are certain features you might want to use that are not available on your distro's package. 

You can easily compile the latest version of Python from source.


Installing Python 3 on Linux:

1. To see which version of Python 3 you have installed, open a command prompt and run

$ python3 --version

2. If you are using Ubuntu 16.10 or newer, then you can easily install Python 3.6 with the following commands:

$ sudo apt-get update

$ sudo apt-get install python3.6

3. If you're using another version of Ubuntu (e.g. the latest LTS release) or you want to use a more current Python, we recommend using the deadsnakes PPA to install Python 3.8:

$ sudo apt-get install software-properties-common

$ sudo add-apt-repository ppa:deadsnakes/ppa

$ sudo apt-get update

$ sudo apt-get install python3.8

4. If you are using other Linux distribution, chances are you already have Python 3 pre-installed as well. If not, use your distribution's package manager. For example on Fedora, you would use dnf:

$ sudo dnf install python3


To see if pip is installed, open a command prompt and run:

$ command -v pip


Install and Use TermRecord on CentOS 8 - Do it now

This article Covers how to install the TermRecord application on CentOS 8. The TermRecord application allows you to better enjoy the recorded #Terminal content. 

TermRecord is a simple, open source, terminal session recorder with easy-to-share self-contained HTML output.

#TermRecord Stores these files as your own notes, email them to collaborators, use them as instructional examples, or whatever you wish.

TermRecord consumes output from the script command with timing information and can create a self-contained HTML file which replays the recorded session without needing to load anything from the web. 

These term sessions can be emailed and viewed on practically any device (including iPads etc.). 

The end user only needs a modern browser.


Features of TermRecord includes:

1. User friendly.

2. Detects the terminal size.

3. Nest sessions.

4. Cross-platform HTML-based output.

5. Stores the output as either JSON, embeddable JavaScript, or a static HTML file.

6. Written in Python.


To install on TermRecord #CentOS:

1. First of all, connect to your server via SSH and make sure that all of your system software is up to date. 

Run the following command to update the package list and upgrade all of your system software to the latest version available:

$ sudo yum update -y

2. Install Pip. 

Add the EPEL Repository:

$sudo yum install epel-release

Install pip:

$ sudo yum install python-pip

Once the installation has completed, you can verify that it was successful by using the following command:

$pip -V

3. Install TermRecord

Install TermRecord using the Python package manager (pip):

$sudo pip install TermRecord


How to use TermRecord on CentOS system ?

Taking a video of the terminal with TermRecord is rather simple, just run the following command (be attentive to capital letters):

TermRecord -o record.html

Note: We specify the output file in which the video will be recorded using the -o option. the .html format is the default format.

For more complex operations check out TermRecord --help


Steps to install and use Python PIP tools on Ubuntu 20.04 LTS ?

This article will guide you on how to install Python PIP #tools on Ubuntu 20.04. Also, you learnt different commands which will help you in using the PIP tool. You can search, install and remove #packages by using the pip utility. Steps to Install Python #PIP Tool on #Ubuntu 20.04: 1. Update Your #APT. As always, first, update and upgrade your APT. 2. Add Universe #Repository. 3. Install PIP for Python 3. 4. Verify Installation. 5. Replace Keyword. 6. Install #Python Package. 7. Uninstall Excess Tools. 8. Additional #Commands.