Successful build with Maven.

How to install maven on RHEL 8 / CentOS 8

Maven is a handy project management tool for Java projects. It helps handling multiple projects, can integrate with various IDE (Integrated Development Environment) software, and above all, simplifies build processes. In this tutorial we will install maven on a RHEL 8 / CentOS 8 Linux system, and to test the tool, we’ll build and run a simple example application.

In this tutorial you will learn:

  • How to install Maven
  • How to create a basic project
  • How to build the project with Maven
  • How to test the built application

Read more

Java on RHEL 8

How to Install Java on RHEL 8 / CentOS 8 Linux

Java is incredibly popular on servers, and if you plan on using RHEL 8 / CentOS 8, you’ll need to install it. There are a couple of ways to install Java on RHEL, both from the open source OpenJDK packages and directly from Oracle.

In this tutorial you will learn:

  • How to Install OpenJDK 8
  • How to Install OpenJDK 11
  • How to Install Oracle Java 8 JRE
  • How to Install Oracle Java 8 JDK
  • How to Switch Java Versions

Read more

JSch example execution

Executing commands on a remote machine from Java with JSch

SSH is an every-day tool of any Linux System Administration job. It is an easy and secure way to access remote machines on the network, transfer data and execute remote commands. Apart from interactive mode, there are many tools exist that enable automation of remote tasks that also rely on the existing ssh server/client architecture. For one such tool, you can read about ansible on Ubuntu for example. You can also find many implementations of the ssh client, but what about accessing the abilities ssh provides from code?

JSch is a project that implements the ssh protocol in Java. With it’s help, you can build applications that are capable to connect to and interact with a remote or local SSH Server. This way your application is capable of managing any aspect of the target machine that you could complete with your native ssh client, which gives yet another powerful addition to the already vast Java toolset.

In this article we will import JSch into our Java project, and develop the minimal necessary code pieces to create an application that can log in to a remote machine’s ssh server, execute some commands in the remote interactive shell, closes the session, then presents the output. This application will be minimal, however, it may give a hint of the power it provides.

In this tutorial you will learn:

  • How to import JSch into your Java project
  • How to setup the test environment
  • How to implement the UserInfo interface in a custom class
  • How to write an application that initiates interactive ssh session

Read more

node-logo

How to install node.js on RHEL 8 / CentOS 8 Linux

Node.js is a Javascript runtime environment based on the V8 open source engine made by Google and originally used in Chrome. Thanks to Node.js we can run Javascript outside of the browser context, and use it also like a server-side scripting language, thus creating an entire web application around it. In this tutorial we will see how to install Node.js in the RHEL 8 / CentOS 8 distribution.

In this tutorial you will learn:

  • How to list the available Node.js versions on RHEL 8 / CentOS 8
  • How to install a specific version of Node.js
  • How to switch between Node.js versions on RHEL 8 / CentOS 8

node-logo

The Node.js – RHEL 8

Read more

Install NPM on Ubuntu 18.04 Bionic Beaver Linux

Objective

The objective of this article is to install NPM on Ubuntu 18.04 Bionic Beaver. NPM is the package manager for JavaScript.

Operating System and Software Versions

  • Operating System: – Ubuntu 18.04 Bionic Beaver
  • Software: – 3.5.2 or higher

Requirements

Privileged access to your Ubuntu System as root or via sudo command is required.

Difficulty

EASY

Conventions

Read more

Add MongoDB Source On Ubuntu 18.04

Install The MEAN Stack On Ubuntu 18.04 Bionic Beaver Linux

Objective

Install the MEAN stack on Ubuntu 18.04

Distributions

Ubuntu 18.04

Requirements

A working install of Ubuntu 18.04 with root privileges

Difficulty

Easy

Conventions

  • # – requires given linux commands to be executed with root privileges either directly as a root user or by use of sudo command
  • $ – requires given linux commands to be executed as a regular non-privileged user

Introduction

The MEAN stack is quickly becoming a favorite among web developers. MEAN stands for MongoDB, ExpressJS, AngularJS, and NodeJS. Clearly, this is a JavaScript heavy tech stack, so it’s not for people who don’t like JS. However, it does provide an excellent framework for building lightweight and fully capable web applications.

Read more