GCC the C compiler on RHEL 8 and Hello world C program example.

How to install GCC the C compiler on RHEL 8 / CentOS 8

The objective of this guide is to install GCC the C compiler on RHEL 8 / CentOS 8 and perform compilation of a basic C “Hello World” program. The GCC compiler can be installed in RHEL 8 by simply using the dnf install command.

In this tutorial you will learn:

  • How to install GCC compiler on RHEL 8 / CentOS 8.
  • How to install Development Tools installation group.
  • How to write C program.
  • How to compile and execute C program.

Read more

Installing NPM on Redhat 8.

How to install npm on RHEL 8 / CentOS 8

NPM is a javascript package manager for the Node JavaScript platform. The objective of this article is to install NPM on RHEL 8 / CentOS 8. To install NPM on RHEL 8 / CentOS 8 we will use the dnf install command.

In this tutorial you will learn:

  • How to install NPM on Rhel 8.
  • How to search for modules using NPM.
  • How to install modules using NPM.
  • How to install modules form a Git repository.

Read more

Hello World example with Ruby.

How to install ruby on RHEL 8 / CentOS 8

Ruby is a very flexible scripting language, it’s popularity well-earned by it’s power. In this tutorial we will install Ruby on a RHEL 8 / CentOS 8, and write the famous “Hello World” program to test that our installation is working as intended. Note however, that with all languages, Ruby’s capabilities are far more than simple text printing on the command line.

In this tutorial you will learn:

  • How to install Ruby with dnf
  • How to get Ruby version information
  • How to write and run the “Hello World” example program in Ruby

Read more

VIM text editor on RHEL 8 Linux Server/Workstation.

How to install vim on RHEL 8 / CentOS 8

The command line vim text editor utility is an invaluable tool for any system administrator. The vim editor can be installed with a single dnf command in case it is currently unavailable on your RHEL 8 / CentOS 8 Linux system.

In this tutorial you will learn:

  • How to install vim text editor on RHEL 8 / CentOS 8.
  • How to set vim as the system wide default text editor.
  • How to set vim as the user default text editor.

Read more

Installed PuTTY on Red Hat Enterprise Linux 8.

How to install putty in RHEL 8 / CentOS 8

Putty is GUI SSH, Telnet and Rlogin alternative client for graphical user interface. PuTTY is not a part of the standard RHEL 8 / CentOS 8 repository however can be installed from the EPEL repository directly as an RPM package using the dnf command.

In this tutorial you will learn:

  • How to install PuTTY on RHEL 8 / CentOS 8 using the dnf command.
  • How to launch PuTTY.

Read more

Chrony - NTP server source list on Red Hat Enterprise Linux 8.

How to configure NTP server on RHEL 8 / CentOS 8 Linux

Chrony is a default NTP client as well as an NTP server on RHEL 8 / CentOS 8. This article will provide you with an information on how to perform an installation and basic configuration of an NTP server or client on RHEL 8.

In this tutorial you will learn:

  • How to install NTP server on RHEL 8 / CentOS 8.
  • How to install NTP client on RHEL 8 / CentOS 8.
  • How to open firewall to incoming NTP requests.
  • How to configure Chrony as NTP server.
  • How to configure Chrony as NTP client.

Read more

Version-control system Git on Red Hat Enterprise Linux 8

How to Install git on RHEL 8 / CentOS 8 Linux server/workstation

Git is a version-control system, which is used for tracking updates in computer files. Additionally, it may be used for collaborating work on files among a group of people. This article will provide the reader with a step by step information on how to install Git on RHEL 8 / CentOS 8.

In this tutorial you will learn:

  • How to install Git from a standard RHEL 8 / CentOS 8 repository.
  • How to compile and install Git from source code.
  • How to check Git version.

Read more

Using dnf you can search for available wireless drivers in the RHEL 8 / CentOS 8 repositories

How to install wireless driver in RHEL 8 / CentOS 8 Linux

Most laptops and mobile devices these days have a wireless card. Mobile connectivity is important more than ever. If twenty years ago Linux barely had enough drivers for a handful of on-board ethernet cards, now the wireless drivers embedded in the kernel grows with every kernel release. Further than that, hardware companies release their products together with Linux drivers, be they closed or open-source. In this article we will take a look at how to install wireless drivers in RHEL 8 / CentOS 8.

In this tutorial you will learn:

  • How to install wireless drivers using dnf
  • How to install manually downloaded wireless drivers

Read more

Snmpd answer to remote query with snmpwalk.

How to install snmp on RHEL 8 / CentOS 8

SNMP (Simple Network Management Protocol) is widely used for monitoring and central management purposes. In this tutorial we will install the snmpd service to a RHEL 8 / CentOS 8 machine, enable autostart, and after starting the service, we will test the functioning service with snmpwalk running the default settings.

In this tutorial you will learn:

  • How to install snmp service
  • How to start and enable the service with systemd
  • How to open udp port 161 for remote access
  • How to test the service with snmpwalk from localhost and remove machine

Read more

Checking swap size and usage with the free command

How to increase swap size on RHEL 8 / CentOS 8

On a system with memory-intense workload with common peak loads, a large swap memory can be useful to store large memory contents not needed at the moment. While using swap instead of memory will certainly have great impact on performance, sometimes this is preferable over adding more memory to the machine, as disk space is much cheaper. Sometimes there is simply no more memory, maybe a physical machine that is out of free slots, and there isn’t any larger memory modules on the market. At other times the slower performance on peak loads may be preferable over the application crashing with out of memory error.

In some cases swap memory needs to be increased, a live example could be expanding the memory in the machine, and so also expanding the swap space to match the double of the new memory size.

In this tutorial you will learn:

  • How to check swap space.
  • How to identify swap volume.
  • How to extend swap volume.
  • How to add another swap volume.

Read more

Example query in mongodb.

How to install mongodb on RHEL 8 / CentOS 8

MongoDB is a document database, storing data in JSON-like form, which is revolutionary approach in the contrast of traditional relational databases. This does not mean that SQL databases will die out anytime soon; they will be here for a long time when you need to store structured data.

That being said, MongoDB gets more and more use cases; the ability to store data in a form that can change on the fly are things that must be counted with.

In this tutorial we will install the latest community release of this NoSQL database to a RHEL 8 / CentOS 8, using the tarball package. For this to work smoothly we’ll set up the minimal environment, and test our configuration and running service.

In this tutorial you will learn:

  • How to download & extract MongoDB tarball
  • How to set up environment for the service
  • How to manage mongod service
  • How to login to mongo shell, insert and query sample data

Read more