Successful cpan perl module install with cpan on RHEL 8

How to install cpan on RHEL 8 / CentOS 8

Perl is a well-known programming language with long development history. The same long history provides the countless modules written in it, and distributed in various channels throughout the World Wide Web. As with most programming languages, if you implement something that you find useful, and maybe write it in a generic way, there are high chances others would find it useful too.

If you share your work with others, they don’t need to re-implement the wheel, they can spend time on other tools, thus making the community as a whole richer, and we have found the spirit of open source with a short walk. But as many people write perl modules, and perl runs on just about anything, it can be hard to find the module you are looking for, let alone build it in your environment. And that’s where cpan comes into play. CPAN itself is a large perl module repository, the cpan tool is a client that is able to fetch and compile needed modules to the local system.

In this tutorial we’ll install cpan on a RHEL 8 / CentOS 8, run the initial configuration, and install a module with this tool’s help.

In this tutorial you will learn:

  • How to install cpan
  • How to run initial configuration
  • How to install a perl module with cpan

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

The unlock page of Jenkins on first startup installation on RHEL 8 / CentOS 8

How to install Jenkins on RHEL 8 / CentOS 8

Jenkins is a widely-used open-source automation server that can be used to automate tasks from building to deploying software. It’s pipelines are easy to understand, and you can simply add tasks the same way you would execute them on the command line.

In this tutorial we will install Jenkins on RHEL 8 / CentOS 8, we’ll run the server by hand from the command line, install it as a standard service, and deploy it into an Apache Tomcat container.

In this tutorial you will learn:

  • How to run Jenkins by hand
  • How to install Jenkins as a service
  • How to deploy Jenkins into an Apache Tomcat container
  • How to unlock Jenkins
  • How to open the port on the firewall Jenkins is serving on

Read more

Installed Webmin on RHEL 8

How to install Webmin on RHEL 8 / CentOS 8

Webmin is web-based administrator’s tool that can manage many aspects of the system. After installation, we can manage our machine’s resources, the server applications running on it, set up cronjobs, just to name a few. It comes with it’s own http server, no additional container or webserver required. The rich function set is accessible trough a web interface, so all we need is a browser to manage our system remotely.

In this tutorial we will install Webmin on RHEL 8 / CentOS 8, add the necessary service file for easy management, and log in to the WUI (Web User Interface).

In this tutorial you will learn:

  • How to install Webmin from tarball
  • How to add and test systemd service file
  • How to access the web interface

Read more

smbtree-rhel8

How to install and configure samba on RHEL 8 / CentOS 8

Samba provides server and client software to allow file sharing between Linux and Windows machines. Installing and configuring it on RHEL 8 / CentOS 8, is quite easy. Keep reading to learn how to share a directory with samba, and how to apply the appropriate SELinux context to it.

In this tutorial you will learn:

  • How to install samba on RHEL8
  • How to enable and start the smb and nmb daemons
  • How to create a samba share
  • How to setup the firewall to allow samba share to be accessed
  • How to setup the correct SELinux context for samba to work correctly
smbtree-rhel8

Samba shares on RHEL 8 / CentOS 8

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

rpm-manpage

How to install packages on RHEL 8 / CentOS 8 Linux System

All modern linux distributions organize software in packages which contain applications binaries, files, metadata and information about the package dependencies, possible conflicts with other packages etc. The core Rhel package manager is called rpm itself, and it is the tool used also by dnf, the higher level package manager, which is capable to manage dependencies. A relatively recent technology , flatpak, let us install also sandboxed applications together with their runtimes.

In this tutorial you will learn:

  • The three main ways to install a package using rpm
  • How to install packages using dnf
  • How to install applications graphically from the gnome-software utility
  • How to install sandboxed applications with flatpak

rpm-manpage

The rpm package manager manual

Read more

Successfully recovered lost root administrative password on RHEL 8 Linux Server/Desktop

RHEL 8 / CentOS 8 recover root password

This article provides step by step instructions on how to recover/reset lost or forgotten RHEL 8 / CentOS 8 Linux root administrative password. To recover the root password you will first boot to the GRUB menu and perform a break at early stage of the boot process. Afterwards, you will remount the sysroot directory with read & write access and change the root password on RHEL 8 / CentOS 8 by using the passwd command to set the new root password.

In this tutorial you will learn:

  • How to perform a break at an early stage of the boot process.
  • How to remount root partition with read/write access.
  • How to change root password.
  • How to force filesystem relabeling.

Read more

Compiling the ffmpeg code we have downloaded from Git

How to install ffmpeg on RHEL 8 / CentOS 8

If you ever need a quick way to convert between video or audio formats in Linux and want something that doesn’t munch on resources but does the job well, then you might want to give ffmpeg a try. There are many GUI interfaces for the ffmpeg package but in this article we’ll learn how to install it in RHEL 8 / CentOS 8 using the command line and compiling tools.

FFMpeg has many command line options when it comes to converting files and therefore it is advisable to use it from the CLI. From there you can fine-tune its options using attributes and even learn how to create BASH scripts to make automatic conversion scripts.

In this tutorial you will learn:

  • How to compile the ffmpeg source code from scrach

Read more

List of packages within the

Install development tools on RHEL 8 / CentOS 8

The development tools group acts as a transitional package for installation of multiple development, compilation and debugging tools. Most notably these include Automake, Autoconf, Gcc (C/C++) as well as various Perl & Python macros and debuggers.

See below list for a complete list of packages available as part of the development tools group. The entire development tools group can be easily installed on RHEL 8 / CentOS 8 Linux by using the dnf command.

In this tutorial you will learn:

  • How to list the content of the development tools group on RHEL 8 / CentOS 8
  • How to install the development tools group on RHEL 8 / CentOS 8
  • How to remove the development tools group from RHEL 8 / CentOS 8

Read more