Setting up a Samba share on AlmaLinux

How to setup Samba Server and client on AlmaLinux

File servers often need to accommodate a variety of different client systems. Running Samba allows Windows systems to connect and access files, as well as other Linux systems and MacOS. An alternative solution would be to run an FTP/SFTP server, which can also support the connections from many systems.

In this guide, we’ll go over the instructions to setup a Samba server on AlmaLinux. This is a great way to prepare your file server after installing AlmaLinux or migrating from CentOS to AlmaLinux. We’ll also see how to connect to the file server from other AlmaLinux client computers.

In this tutorial you will learn:

  • How to install Samba on AlmaLinux
  • How to allow Samba through firewalld
  • How to create a Samba user
  • How to configure Samba to share a directory
  • How to allow Samba through SELinux
  • How to connect to Samba server from AlmaLinux client
Setting up a Samba share on AlmaLinux

Setting up a Samba share on AlmaLinux

Read more

The chrony NTP server source list on AlmaLinux

How to configure NTP server and client on AlmaLinux

NTP stands for Network Time Protocol and is used for clock synchronization across multiple computers. An NTP server is responsible for keeping a set of computers in sync with each other. On a local network, the server should be able to keep all client systems to within a single millisecond of each other.

Such a configuration would be necessary if, for example, the systems needed to start or stop a task in unison at a precise time. In this article, we’ll show you how to configure an NTP server on AlmaLinux and how to configure a client system to sync its system time with said server. This can be done from a fresh AlmaLinux installation or on a system that has migrated from CentOS to AlmaLinux.

In this tutorial you will learn:

  • How to install and configure chrony NTP server
  • How to open firewall to incoming NTP requests
  • How to connect to an NTP server from a client machine
The chrony NTP server source list on AlmaLinux

The chrony NTP server source list on AlmaLinux

Read more

Setting up a MySQL database and user on AlmaLinux

How to install MySQL on AlmaLinux

In this guide, we will show you how to install MySQL on AlmaLinux. There are two separate packages for this on AlmaLinux, depending on what you need to do. You can either install the MySQL client package, which is used to connect to MySQL servers, or install the MySQL server software, which can be used to host your own databases. We’ll cover both below.

After installing a MySQL server, we’ll also go over the first steps you’ll need to get started with hosting a database, which includes making a username and password, creating a database, and granting user permissions on that database. AlmaLinux is a good Linux distro for hosting MySQL, whether you’ve freshly installed AlmaLinux or migrated from CentOS to AlmaLinux.

In this tutorial you will learn:

  • Install MySQL Client on AlmaLinux
  • Install MySQL Server on AlmaLinux
  • How to setup a MySQL database
Setting up a MySQL database and user on AlmaLinux

Setting up a MySQL database and user on AlmaLinux

Read more

LEMP stack running successfully on AlmaLinux

How to install LEMP stack on AlmaLinux

A LEMP stack is an assortment of software that contains everything you need in order to serve a website, show dynamic content, and store or retrieve data from a database. The software is all within the LEMP acronym, namely the Linux operating system, NGINX web server, MySQL database (or MariaDB alternatively), and PHP programming language.

If you’ve installed AlmaLinux or migrated from CentOS to AlmaLinux, then you already have the first requirement done. Next, you just need to get your LEMP stack up and running. In this guide, we’ll show the step by step instructions to install a LEMP stack on AlmaLinux.

Note that it’s also possible to install a LAMP stack on AlmaLinux, which is very similar to LEMP except that it contains Apache as the web server instead of NGINX.

In this tutorial you will learn:

  • How to install all LEMP prerequisite packages on AlmaLinux
  • How to secure MariaDB database
  • How to start NGINX and MariaDB services
  • How to open HTTP and HTTPS firewall ports
LEMP stack running successfully on AlmaLinux

LEMP stack running successfully on AlmaLinux

Read more

How to run the Raspberry Pi Os in a virtual machine with Qemu and Kvm

How to run the Raspberry Pi Os in a virtual machine with Qemu and Kvm

Although many operating system are available for the Raspberry Pi, the official one is the Raspberry Pi Os. The operating system is made to run for the arm architecture, and can be easily installed on the SD card which will be used as the main Raspberry Pi storage device. Sometimes we may want to perform some tests or try some applications without having a physical Raspberry Pi machine; in this tutorial we will see how we can create a virtual machine with the Raspberry Pi Os system using Qemu and Kvm (Kernel Virtual Machine).

In this tutorial you will learn:

  • How to install qemu and kvm
  • How to download and check the integrity of the latest Raspberry Pi Os version (Buster)
  • How to run the Raspberry Pi Os in a virtual machine

Read more

Changing the hostname in AlmaLinux

Change hostname on AlmaLinux

The hostname of a Linux system is important because it’s used to identify the device on a network. The hostname is also shown in other prominent places, such as in the terminal prompt. This gives you a constant reminder of which system you’re working with. It’s a real life saver when you’re managing multiple systems through SSH and those command line terminals start to blend together in your mind.

Of course, IP addresses are used when devices need to communicate with each other, but those can change frequently. Hostnames give us a way to know which device we’re interacting with either on the network or physically, without remembering a bunch of numbers that are subject to change. Thus, it’s important that your system bears a hostname which helps you to identify it quickly. For example, “backup-server” is much more informative than “server2.” If you can’t easily identify a system’s purpose from the hostname, it’s time to change it.

In this guide, we’ll show you how to change the hostname on AlmaLinux. This can be especially useful if you’ve recently migrated from CentOS to AlmaLinux and need to update the hostname accordingly. Changing the hostname can be done either by command line or GUI, and we’ll show you the steps for both methods below.

In this tutorial you will learn:

  • How to change the AlmaLinux hostname from command line
  • How to change the AlmaLinux hostname from GNOME GUI
Changing the hostname in AlmaLinux

Changing the hostname in AlmaLinux

Read more

How to install Anaconda scientific computing python distribution on Linux

How to install Anaconda scientific computing python distribution on Linux

Anaconda is a distribution of python and other open source packages that are meant to be used for scientific computing. It is frequently used for data science, predictive analytics, and machine learning. Installing Anaconda is the fastest way to have all of the tools for scientific computing readily available to you. It includes the conda package manager, IPython the interactive python shell, the spyder IDE, along with the Project Jupyter interactive web based computational environments: Jupyter Notebook, and JupyterLab.

Read more

LFTP tutorial on Linux with examples

LFTP tutorial on Linux with examples

There is certainly no shortage of ftp client on Linux: some come with a graphical user interface such as Filezilla, others are command line applications which can be used even when display servers, such as Xorg or Wayland are not available. In this article we talk about one of the most used and feature-rich CLI ftp client: lftp.

In this tutorial you will learn:

  • How to install lftp on the most used Linux distributions
  • How to connect and authenticate to a remote host
  • How to create, remove, edit and list bookmarks
  • Some of the most used lftp commands
  • How to run commands non-interactively
  • How to download torrent files with lftp

Read more

How to setup vsftpd on Debian

How to setup vsftpd on Debian

Vsftpd is the acronym of Very Secure FTP Daemon: it is one of the most used ftp servers on Linux and other Unix-like operating systems. It is open source and released under the GPL license, and supports virtual users and SSL for data
encryption. In this tutorial we will see how to install it and configure it on Linux.

In this tutorial you will learn:

  • How to install vsftpd on Debian 10
  • How to configure vsftpd
  • How to setup anonymous usage
  • How to setup login with local users
  • How to setup virtual users
  • How to setup ufw to allow incoming traffic

Read more

Rocky Linux download

Rocky Linux download

Rocky Linux is an upcoming Linux distribution that will be based on Red Hat Enterprise Linux. For other most popular Linux distributions, please visit our dedicated Linux download page.

For many years, CentOS Linux was a reliable, enterprise-ready distribution based on RHEL. In late 2020, Red Hat announced a change of direction for the distro, which would now be named “CentOS Stream” and exist as an upstream vendor.

In response, CentOS founder Gregory Kurtzer launched Rocky Linux, a project that will inherit the original goals of CentOS. Being based on RHEL means that it will only inherit the most tested and stable components that have been introduced upstream in Fedora and CentOS Stream.

Not much is known about the new distro at this time, except that it should function similarly to CentOS (the CentOS before this change) and will most likely be an appropriate replacement for it. You can stay abreast of the latest news by visiting the official Rocky Linux site, as well as Rocky’s GitHub. We’ll also be updating this article as new information is revealed.

Read more

Lets Encrypt on CentOS 8

Install Let’s Encrypt on Centos 8

SSL encryption for your website is extremely important. It prevents man in the middle attacks, helps your page’s SEO, and browsers like Firefox won’t warn users that your site is insecure.

Best of all, you can get all these advantages for just a few minutes of your time. In this guide, we’ll show you how to install Let’s Encrypt on Centos 8, and how to use it to configure SSL encryption for your website. In a few steps, your site will become accessible via HTTPS, with HTTP links (optionally) redirecting to the secure protocol as well.

In this tutorial you will learn:

  • How to install Let’s Encrypt
  • How to configure Let’s Encrypt SSL

Read more

CentOS Linux

CentOS vs Fedora

CentOS and Fedora are two of the most well known and widespread Linux distributions. They’re both based on Red Hat Enterprise Linux (RHEL), which means Fedora and CentOS bear a lot of similarities to their ancestor, but also to each other.

In this guide, we’ll be comparing the two distributions across a few key areas and giving a brief review of both distros. Read on to learn more about CentOS and Fedora and how they compare. By the end of this article, you’ll be armed with enough information to choose the best distro for your needs.

In this tutorial you will learn:

  • CentOS and Fedora background information
  • CentOS and Fedora similarities and differences
  • Which distro should I use, CentOS or Fedora?

Read more