Expect is a free and open source utility we can use to automatically answer to interactive prompts according to scripts which includes expects/sends commands. In this tutorial, we learn how to install expect on the most used Linux distributions, how to use it to automatically answer to interactive prompts, and how to generate expect scripts with autoexpect.
How to embed documentation in Bash scripts
Documenting how an application works, its purpose, and its intended usage is really important, even if it is just a simple shell script we are talking about. To ease code maintenance in the most basic cases, documentation can be embed directly inside scripts. In this tutorial we learn how to include Pearl’s Plain Old Documentation syntax (POD) in bash scripts, and how to convert it to various formats using pod2 utilities such as pod2man and pod2html.
CGI Scripts on Linux: Apache CGI-bin Configuration Examples
The Common Gateway Interface (CGI) is an essential technology that serves as a link between web clients and servers, enabling the execution of scripts and programs on a web server. Although newer technologies have largely replaced CGI, it remains a useful tool for Linux system administrators for quick system monitoring and administrative tasks via web browsers.
How to run Podman containers under Systemd with Quadlet
Quadlet is a free and open source tool written in C which let us create and run Podman containers under Systemd. The tool let us declare containers, volumes, networks, and their relationships, using dedicated Systemd units.
How to Move /var to Another Directory on a Full Partition
When the var partition full problem occurs, it can disrupt system operations and applications due to lack of space for logging, caching, and other dynamic data handling tasks that occur in the /var directory. This article provides a comprehensive guide on how to relocate the /var directory to another partition to mitigate issues with space constraints. This procedure is crucial for maintaining the integrity and performance of your systems.
Change IP address on Ubuntu Server
You have two options when configuring the IP address on your Ubuntu Server, and that is either a static IP address or DHCP. A static IP address allows you to manually select your IP address by configuring it on the Linux system, whereas DHCP relies on the router or DHCP server to lease you an IP address – either a reserved one or the next available one that is currently free, depending on the setup.
Linux File Types: Identification and Management
Linux systems support various file types, each designated by a unique character in directory listings, crucial for system management. These characters, such as ‘-‘ for regular files and ‘d’ for directories, help users quickly discern the nature of each file at a glance. This tutorial will guide you through identifying and creating different types of files in Linux, providing practical skills for optimizing your workflow and enhancing your system’s organization. By mastering these concepts, you will gain a deeper understanding of how Linux structures its filesystem and how you can manipulate it to your advantage.
Managing BIND DNS Server Cache: Viewing and Clearing Cache
This article explores the process of managing the cache in a BIND DNS server, specifically focusing on how to view and clear the cache effectively. Managing cache is crucial for maintaining the performance and accuracy of DNS resolutions in your network. Efficient cache management ensures that your DNS server can handle requests rapidly while minimizing the likelihood of outdated or incorrect data affecting user queries. Furthermore, it assists in optimizing resource usage, which can significantly enhance the overall stability and reliability of network services.
Netplan network configuration tutorial for beginners
Netplan is a utility developed by Canonical, the company behind Ubuntu. It provides a network configuration abstraction over the currently supported two “backend” system (“renderer” in Netplan terminology): networkd and NetworkManager. Using Netplan, both physical and virtual network interfaces are configured via yaml files which are translated to configurations compatible with the selected backend.
Ubuntu Network Configuration Guide
Network setup for Ubuntu can range from easy to hard, depending on what you’re trying to do. Canonical prides itself on making their Ubuntu Linux operating system very simple to use, even if you do not have a lot of technical knowledge. Despite its simplicity, Ubuntu has a lot going on under the hood to make things work, including networking configuration that allows you to connect to local devices or servers across the world.
Netplan static IP on Ubuntu configuration
In this tutorial, we will discuss a netplan static IP configuration on Ubuntu Linux. Netplan allows for straightforward network IP address configuration using human-readable data-serialization language YAML. The article will also discuss a default Netplan network settings and the location of the Netplan configuration file.
How to Check MX Records Using the DIG Command
The Domain Information Groper (DIG) command is a versatile tool for querying Domain Name System (DNS) servers. It is commonly used by network administrators to troubleshoot DNS issues because of its flexibility in showing the various records associated with a domain. In this article, you will learn how to utilize the DIG command specifically to query for Mail Exchange (MX) records, which are essential for determining the mail servers responsible for email reception for a domain.