- Posted on
- Featured Image
Administration
Linux system administration involves managing and maintaining Linux systems to ensure they run efficiently, securely, and reliably. It includes managing user accounts by creating, modifying, and deleting them, as well as setting permissions and group memberships using commands like adduser
, passwd
, and usermod
. Administrators manage the file system by monitoring disk usage, mounting/unmounting file systems, and setting file permissions with tools like chmod
, chown
, df
, and mount
.
Process management involves monitoring and controlling system processes using commands such as ps
, top
, kill
, and systemctl
for managing services. Package management ensures software is installed, updated, or removed as needed using package managers like apt
for Debian-based systems or yum/dnf
for Red Hat-based distributions. Network configuration involves setting up IP addresses, troubleshooting connectivity, and managing open ports using tools like ip
, ping
, and netstat
.
Security management focuses on configuring firewalls with tools like ufw
or iptables
, managing SSH access, and applying updates to secure the system. Backups are handled using tools like rsync
, tar
, and scheduled with cron
, ensuring data is safe and recoverable. Administrators monitor logs stored in directories like /var/log
using commands like cat
and journalctl
and use logrotate
to manage log file sizes.
Automation and scripting are integral, with repetitive tasks automated using Bash scripts and scheduled via cron
. Performance monitoring is conducted with tools like top
, htop
, and vmstat
to track resource usage and optimise performance. System and kernel updates are applied using package managers, followed by reboots if necessary.
Best practices include documenting changes, regularly applying updates, maintaining backups, minimizing root access through sudo
, and continuously monitoring systems with tools like Nagios or Prometheus. Mastering these tasks forms the foundation of effective Linux system administration.
-
When working with Linux, the ability to configure and use proxy settings efficiently can be essential, especially in corporate environments or regions where direct internet access is restricted. Package managers such as APT (used primarily by Debian and Ubuntu), DNF (used by Fedora), and Zypper (used by openSUSE) are fundamental tools for software management. However, they require proper proxy configuration to function correctly behind a firewall. Here, we will explore how to configure proxy settings for these package managers, ensuring you can install updates and software seamlessly in any network environment. APT (Advanced Package Tool) is the package management system used by Debian and its derivatives like Ubuntu.
-
- Posted on
- Featured Image
One common hurdle Linux users might face when updating packages or installing new software using package managers like DNF, APT, and Zypper is the "no public key" error. This error typically occurs when the package manager cannot verify the authenticity of the packages due to missing or outdated GPG (GNU Privacy Guard) keys. This post will guide you through resolving these errors across various package managers. These errors happen when the package manager attempts to verify the digital signature of the package using a GPG key that is not available on your system. Each repository configures its own GPG key to ensure that the packages are secure and not tampered with. -
- Posted on
- Featured Image
Managing software packages on Linux can sometimes lead to unexpected errors, particularly regarding keyring issues that disrupt the update or installation processes. This blog post provides a detailed look at how to resolve keyring issues in APT, as well as guidance for users of other prevalent package managers like DNF (used by Fedora) and Zypper (used by openSUSE). In Linux, the keyring serves a crucial role in the security infrastructure, storing the keys and certificates necessary to verify the authenticity of software packages. When the keyring is corrupted or outdated, it can prevent your package manager from verifying and thus installing or updating packages, leading to potentially frustrating blockages. -
- Posted on
- Featured Image
When you start diving deeper into managing your Linux systems, especially those based on Debian, Ubuntu, Fedora, or openSUSE, understanding how to control package states becomes crucial. This knowledge not only helps in maintaining the stability of your systems but also provides you with the precision control needed to manage the packages effectively. In this blog post, we're going to explore how to use apt-mark with apt package manager and will also touch upon equivalent commands in dnf (used in Fedora) and zypper (used in openSUSE), illustrating how similar actions can be performed across these differing package managers. -
- Posted on
- Featured Image
When managing packages on any Linux distribution, repositories are a crucial component. They are online sources from which packages are installed or updated. Occasionally, you may find the need to disable specific repositories temporarily. This might be necessary to troubleshoot conflicts, test software versions, or optimise system performance. Here, we'll explore how to temporarily disable repositories on various package managers, including apt (used by Ubuntu and other Debian-based distributions), dnf (used by Fedora and RHEL-based distributions), and zypper (used by openSUSE and SUSE Linux Enterprise). 1. Using apt on Debian-based Distros In Debian-based systems like Ubuntu, repositories are managed in the /etc/apt/sources. -
- Posted on
- Featured Image
Red Hat Enterprise Linux 8 introduced a new concept in package management and software distribution called "Application Stream" or AppStream for short. This method enables users to have more flexibility in terms of software versions they install and manage on their systems. Although it originated with RHEL, understanding AppStream is also essential for users of other Linux distributions, especially those based on RHEL like CentOS and Fedora. In this blog post, we will explore how to use AppStream effectively on RHEL-based systems and discuss how to handle similar functionalities in systems using other package managers like apt (Debian/Ubuntu) and zypper (openSUSE). -
- Posted on
- Featured Image
Red Hat Enterprise Linux (RHEL) 8 introduced a groundbreaking approach to package management and software delivery by integrating the concept of "modularity." This concept allows users to have multiple versions of a software application available in the repository, providing greater flexibility and control over versioning and updates. As modular content becomes increasingly central in RHEL environments, understanding how to manage these modules efficiently is crucial. In this blog post, we'll explore how to manage modular content in RHEL 8+, and we'll also provide instructions for different package managers including dnf, as well as a brief look at apt and zypper, which are used in Ubuntu/Debian and SUSE Linux environments, respectively. -
- Posted on
- Featured Image
Creating RPM packages from source codes not only gives Linux users more control over their systems by enabling them to tailor applications to their specific needs but also helps in understanding the packaging process which is vital for distributing software efficiently. RPM, originally developed for Red Hat Linux, is adopted by many Linux distributions including Fedora, CentOS, and openSUSE. In this blog, we'll dive into the process of building RPM packages from source and tackle how to operate this process across different package managers like yum (or dnf), apt, and zypper. RPM stands for Red Hat Package Manager. -
- Posted on
- Featured Image
In the world of Linux, managing packages and software installations is a routine task. DEB packages are a common format used by Debian and its derivatives like Ubuntu. While most users install packages from precompiled binaries, there are times when you might need to build a package from source. This can be due to the need for a specific configuration, the latest features, or patches that are not available in binary form. Here, we'll walk through how to build DEB packages from source and provide guidance for managing them across different Linux distributions using apt, dnf, and zypper. Before you begin, ensure that your system is prepared with the necessary tools. -
- Posted on
- Featured Image
Compiling software from source can be an enlightening experience for any Linux user. It gives you more control over the configurations, ensures you get the latest features (even those not yet available in binary form), and optimises the software to suit your particular hardware more effectively. This guide will walk you through the steps to download and compile software from source code, providing specific instructions for various Linux distributions using different package managers like apt, dnf, and zypper. There are several reasons to compile programs from source code: 1. Customization: You can enable or disable specific features that are not in precompiled packages. 2. -
- Posted on
- Featured Image
In the world of Linux, managing packages is a fundamental skill for any user, particularly system administrators and developers. Different distributions use different package managers for software installation, updates, dependency checks, and removal. Among these, DNF, APT, and Zypper are widely used by major Linux distributions. Sometimes, installing a specific version of a package is necessary due to compatibility requirements or testing scenarios. Here, we'll guide you on how to install specific package versions using these three package managers. DNF is the default package manager for Fedora and other RPM-based distributions such as RHEL (Red Hat Enterprise Linux) and its derivatives like CentOS Stream. -
- Posted on
- Featured Image
When setting up or maintaining a stable environment on your Linux system, sometimes you need to install a specific version of a package. This could be due to compatibility issues, testing requirements, or rollback scenarios after an update didn’t go as expected. While the process can vary slightly depending on the package manager you are using — whether it's APT (used by Debian and Ubuntu), DNF (used by Fedora), or Zypper (used by openSUSE) — the fundamental approach remains similar. Let's explore how to handle this task in each package manager. APT (Advanced Package Tool) is the default package manager for Debian-based distributions like Ubuntu. -
- Posted on
- Featured Image
In the ever-evolving realm of Linux, ensuring that your system runs smoothly often involves managing packages efficiently. Occasionally, you may encounter a scenario where a package does not function as expected due to corruption, incomplete installation, or other issues. In such cases, forcing a reinstallation of the package can resolve the problem. This process can vary slightly depending on which package manager your system utilizes. In this blog post, I will guide you through the steps to force a reinstallation of packages using three popular package managers: apt for Debian-based systems, dnf for Fedora systems, and zypper for openSUSE systems. 1. -
- Posted on
- Featured Image
Introduction: Keeping your Linux system’s packages up to date is generally a recommended practice for security and stability. However, in certain scenarios such as environments that require extensive testing or precise control over when upgrades occur, you might find it necessary to disable automatic updates. This ensures that updates do not interfere with ongoing work, introduce unexpected behaviors, or affect software dependencies unpredictably. Today, we will guide you on how to disable automatic package upgrades for some of the most common package managers in Linux: APT (used by Debian-based distributions), DNF (used by Fedora and its derivatives), and Zypper (used by openSUSE). 1. -
- Posted on
- Featured Image
Managing software packages efficiently is crucial for maintaining the stability, performance, and security of Linux systems. One advanced technique system administrators often use is package blacklisting. This approach prevents specific packages from being inadvertently installed or updated, which can be vital for compatibility reasons, or to avoid software with known issues. In this blog post, we'll discuss how to blacklist packages using popular package managers like apt (used in Debian and Ubuntu), dnf (used in Fedora), and zypper (used in openSUSE). Package blacklisting is a method to exclude specific packages from being managed through system updates or installations. -
- Posted on
- Featured Image
Keeping your Linux system up-to-date is critical for ensuring security and stability but sometimes, there are instances when you might not want to update certain packages. In this article, we'll explore how to blacklist or hold packages from being updated in various Linux package managers, including APT (used in Debian-based systems), DNF (utilized in Fedora and its derivatives), and Zypper (the command line interface of openSUSE). APT is the package management system used by Debian and its derivatives like Ubuntu. To prevent a package from being updated, you can hold it using the apt-mark command. This is particularly useful if updating that package would cause issues with your system or disrupt a service. -
- Posted on
- Featured Image
In the world of Linux, managing software through package managers is a fundamental task for users and administrators. Different distributions rely on different package managers – such as APT (Advanced Package Tool) for Debian-based systems, DNF (Dandified Yum) for Fedora, and Zypper for openSUSE. Each of these tools handles software installation, upgrades, and the management of repositories in slightly different ways. Understanding how to list and manage repository priorities can be crucial in maintaining system stability and performance. This article will explore how to handle repository priorities across these package managers, with a special focus on Zypper. Repositories in Linux are servers containing sets of software packages. -
- Posted on
- Featured Image
In the realm of system administration, ensuring that your server is secure is paramount. For RHEL (Red Hat Enterprise Linux) and its derivatives (including CentOS and Fedora), managing security patches effectively is crucial to shielding the system from vulnerabilities. While RHEL typically uses the yum or the newest dnf package manager, understanding how to handle security updates across different package managers like apt (for Debian-based systems) and zypper (for SUSE Linux systems) can also prove beneficial. This article will guide you through the necessary steps to identify and apply security updates using various package management tools. -
- Posted on
- Featured Image
In the world of Ubuntu Linux, ensuring your system is secure is crucial. This means staying on top of security updates for your installed packages. Such updates fix vulnerabilities that could be exploited by attackers. Ubuntu primarily uses the APT (Advanced Package Tool) package management system, but it's useful to know alternatives like DNF and Zypper, especially if you're managing multiple distributions. Here’s a comprehensive guide on using different package managers to check for and apply security updates in Ubuntu. APT is the default package management system for Ubuntu. It’s powerful and handles both installation and upgrade of software packages. -
- Posted on
- Featured Image
In the sprawling universe of Linux, managing packages efficiently is essential for administrators and developers alike. Repoquery, a part of the yum-utils toolset for YUM and now DNF-based systems, stands out as an invaluable tool for querying detailed information about packages in repositories. Although primarily designed for RPM Package Manager (RPM)-based distributions, the underlying concept of querying package repositories is universally applicable. In this post, we'll explore how to use repoquery effectively with DNF/YUM and touch on similar functionality in APT for Debian-based systems and Zypper for SUSE-based systems. -
- Posted on
- Featured Image
When managing software packages on Linux, understanding the tools available for searching and managing these packages is crucial. While each Linux distribution might use a different package management system, knowing how to leverage these tools can make managing software a breeze. In this article, we'll dive deep into apt-cache used in Debian and Ubuntu systems, and also touch on dnf and zypper, used in Fedora and openSUSE respectively. apt-cache is a powerful command-line tool used in Debian, Ubuntu, and other Debian-based distributions. It searches the package cache and provides a plethora of information about the packages installed and available. -
- Posted on
- Featured Image
Resolving Conflicts Between Packages in Linux Bash: A Guide for apt, dnf, and zypper Alright, fellow Linux users, today we're diving into the deep end of package management conflicts and how to resolve them. Whether you’re using Ubuntu, Fedora, or openSUSE, managing package conflicts is a crucial skill that keeps your system running smoothly and your software dependencies in check. Before we get hands-on with solving these pesky problems, let's understand what a package conflict is. In Linux, a package conflict occurs when two or more packages depend on different versions of the same dependency, or when they both try to install the same file to the same location, which typically leads to an error during installation. -
- Posted on
- Featured Image
A system health check Bash script can be used to monitor the status of critical components like CPU, memory, disk usage, and services. Here's how to create one: The script will: Check CPU usage. Monitor memory usage. Report disk space usage. Verify running services. Log the results. Optionally, send notifications. 2. Create the Script Here’s an example of a health check script: #!/bin/bash # Configuration LOGFILE="/var/log/system_health. -
- Posted on
- Featured Image
Automating database backups with Bash is a reliable way to ensure data integrity and recovery in case of failures. Here's how you can achieve it for common databases like MySQL, PostgreSQL, and SQLite. Determine Database Type: MySQL, PostgreSQL, SQLite, etc. Install Backup Tools: MySQL: mysqldump PostgreSQL: pg_dump SQLite: Direct file copy. Write a Backup Script: Specify the database credentials, backup location, and naming conventions. Schedule the Script: Use cron for periodic execution. Secure Backups: Encrypt sensitive data and restrict access to backup files. 2. -
- Posted on
- Featured Image
Scheduling tasks using cron and Bash is a powerful way to automate repetitive tasks. Here's a comprehensive guide: cron is a time-based job scheduler in Unix-like operating systems. It executes commands or scripts at specified times and intervals. Jobs are defined in a crontab file. 2.