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.

  • Posted on
    Featured Image
    For many system administrators and DevOps engineers, the process of transitioning workloads between different Linux distributions can be daunting. Each distribution has its preferred package management system, which handles the installation, upgrade, and removal of software packages. If your organization has decided to switch from a Debian-based system (which uses APT) to an openSUSE or SUSE Linux Enterprise Server (SLES) system (which uses Zypper), you'll need to adapt your package management practices accordingly. In this guide, we’ll explore how to transition your workloads from APT-based systems to Zypper-based systems and cover the basics of using APT, DNF (used by Fedora, CentOS, and RHEL systems), and Zypper package managers.
  • Posted on
    Featured Image
    When it comes to package management in Linux distributions, RPM (Red Hat Package Manager) files are predominantly used in distributions like Fedora, CentOS, and Red Hat. On the other hand, Debian-based systems like Ubuntu typically use DEB packages managed by APT (Advanced Package Tool). However, there are scenarios where you might need to install an RPM file on an Ubuntu system. This blog post will guide you through checking RPM compatibility on Ubuntu and provide operating instructions for various package managers, including APT, DNF, and Zypper. Before proceeding, it’s important to understand that directly installing an RPM package on Ubuntu is not straightforward because Ubuntu does not natively support RPM packages.
  • Posted on
    Featured Image
    In the dynamic world of software development, streamlining the build and deployment process is a critical task for developers and system administrators. That's where automation comes in — particularly when dealing with packaging applications across different Linux distributions. Each distribution has its package manager, and handling them manually can be a repetitive and error-prone process. This article will explore how to automate package builds across Linux platforms using Bash scripting and managing dependencies with apt (used by Debian and Ubuntu), dnf (used by Fedora), and zypper (used by openSUSE). Automation helps in: 1. Reducing Repetitiveness: Automate mundane tasks and spend time on more critical issues. 2.
  • Posted on
    Featured Image
    Linux enthusiasts often look to experiment with the bleeding-edge versions of software. These versions, while not fully tested, provide the latest features and improvements. This guide will walk you through the process of installing experimental software across different Linux distributions using the most popular package managers: apt (Debian-based), dnf (Fedora), and zypper (openSUSE). Before diving into the installation process, it's important to understand what experimental software is. Typically, these versions are under development and may not be as stable as the officially released versions. They are provided for testing and feedback purposes.
  • Posted on
    Featured Image
    In the world of Linux, ensuring the security and integrity of software packages is paramount. This is why understanding different repository signing mechanisms is crucial for anyone managing Linux systems. Signed repositories help safeguard users against malicious packages and unauthorized modifications. In this article, we'll explore how repository signing works and give specific operating instructions for three popular package managers: apt (used in Debian and Ubuntu), dnf (used in Fedora), and zypper (used in openSUSE). Repository signing is a mechanism used to ensure that the packages you download and install on your system are exactly what they claim to be. This is done by using digital signatures.
  • Posted on
    Featured Image
    Flatpak is a universal packaging system from Fedora, designed to work across different Linux distributions. It allows distribution and installation of applications in a standardized environment regardless of the underlying Linux flavor. Integrating Flatpak with GNOME Software enhances your software management capabilities, bringing a broader array of applications within easy reach. In this article, I will walk you through the steps to enable Flatpak integration on Ubuntu, Fedora, and openSUSE using different package managers such as apt, dnf, and zypper. GNOME Software is a utility for application installation and management, designed for the GNOME desktop environment.
  • Posted on
    Featured Image
    For organizations relying on Red Hat Enterprise Linux (RHEL) across multiple systems, managing updates can be a cumbersome and time-consuming process. Centralizing this process not only helps in saving bandwidth and time but also ensures consistency in the updates applied across all systems. In this blog, we'll explore how to set up a centralized update server for RHEL and provide instructions for integrating it with various package managers such as DNF (the default for RHEL), APT (commonly used in Debian-based systems), and Zypper (used in openSUSE). The first step in creating a centralized update server is setting up a local repository server that will store all the updates.
  • Posted on
    Featured Image
    Securing APT Repositories Using Signed Keys: A Comprehensive Guide for Linux Users Securing software installations through package managers is crucial for maintaining the integrity and security of your Linux systems. One of the fundamental aspects of security in software management is the use of signed keys. These keys help in ensuring that the packages you download and install on your machine are, indeed, from a trusted source and haven’t been tampered with.
  • Posted on
    Featured Image
    When working with Linux distributions, installing software packages is a day-to-day activity, and often, proxy settings are a crucial configuration for users in corporate or university networks where direct internet access is restricted. In our discussion today, we will explore how to configure proxy settings specifically for Snap package downloads and extend the knowledge to other popular package managers like apt, dnf, and zypper where applicable. Snap is a package management system that allows you to install software in a sandboxed environment across different Linux distributions. It was developed by Canonical, the company behind Ubuntu.
  • Posted on
    Featured Image
    In the world of Linux, the innovation in package management and software distribution has led to the development of various systems aimed at simplifying application installation and management. Two of the most popular package managers are Snap and Flatpak. Both systems were designed to provide a sandbox environment for applications, allowing them to run in isolation from the rest of the system. However, they differ in various ways including their performance, ease of use, and compatibility across different Linux distributions. Comparing Snap and Flatpak is crucial for several reasons. Developers need to decide which package manager to target for distributing their applications.
  • Posted on
    Featured Image
    When using Linux, depending on the hardware you have, you may at times need to install proprietary drivers to optimise performance, especially for GPU, Wi-Fi, or other peripheral devices. Different Linux distributions have different methods for handling these installations. Below, we will walk through how to install proprietary drivers on three major distributions: Red Hat Enterprise Linux (RHEL), Ubuntu, and openSUSE. On RHEL, installing proprietary drivers often involves using the dnf package manager. For instance, let's take an example of installing an NVIDIA driver. bash sudo dnf install epel-release sudo dnf config-manager --set-enabled powertools Step 2: Install ELRepo: bash sudo dnf install https://www.elrepo.org/elrepo-release-8.
  • Posted on
    Featured Image
    In the dynamic world of Linux, staying on top of kernel updates is crucial for security, performance, and stability. However, navigating kernel updates across various Linux distributions can be daunting due to the differences in package management systems. In this blog, we’ll demystify the process by focusing on three of the most popular package managers: APT (used by Debian-based distributions like Ubuntu), DNF (used by Fedora), and Zypper (used by openSUSE). Why Update the Kernel? Updating the kernel can lead to numerous benefits including: Security patches: Vital for closing vulnerabilities. Enhanced compatibility: Newer kernels bring better compatibility with different hardware and software.
  • Posted on
    Featured Image
    As the Linux ecosystem is vast and varied, one of the consistent challenges developers and users face is managing software tools across different distributions. Traditionally, each Linux distribution has its own packaging system, which can lead to compatibility issues or extra maintenance burdens for deploying software uniformly. However, with the advent of universal package formats like Snap, Flatpak, and AppImage, the Linux world is shifting towards a more unified approach. In this blog, we explore these universal package formats and provide guidance on how to use them across various Linux distributions. 1.
  • Posted on
    Featured Image
    Personal Package Archives (PPA) are repositories designed to distribute software and updates that are not available in the official Ubuntu repositories. While PPAs are incredibly useful for getting the latest software versions, they can pose security risks if not managed correctly. In this blog post, we’ll guide you through how to securely add custom PPAs to your Ubuntu system, focusing on best practices and also touching upon other package managers like dnf and zypper briefly. PPAs allow users and developers to upload Ubuntu source packages to be built and published as an apt repository by Launchpad.
  • Posted on
    Featured Image
    As a system administrator or software developer, dealing with Linux repositories is an essential skill. This comprehensive guide will teach you how to manage Fedora repositories on Red Hat Enterprise Linux (RHEL)-based systems, focusing on using various package managers such as DNF (used in Fedora and RHEL), APT (common in Debian-based systems), and Zypper (used in SUSE Linux distributions). Understanding Repositories A software repository is a storage location from which software packages may be retrieved and installed on a computer. While Fedora repositories are primarily designed for use with Fedora, these can also often be used on other RHEL-based distributions and, with some tweaks, on other Linux distros.
  • Posted on
    Featured Image
    For system administrators or software developers who work in environments using different Linux distributions, compatibility issues often arise. Software packages designed for one distribution are not always readily usable on another due to differing package management systems and library dependencies. This is especially true for those who primarily use Red Hat Enterprise Linux (RHEL) but need software packaged for Debian-based distributions. Fortunately, a tool named alien can help to bridge this gap. In this blog, we'll explore how to use alien to convert Debian packages for use on RHEL, and provide instructions for handling these packages across different Linux distributions.
  • Posted on
    Featured Image
    When it comes to managing packages on Linux systems, different distributions come with different tools tailored to their specific needs. For those working across multiple distributions, it becomes essential to master these tools. In this blog post, we'll focus on exploring and testing Zypper commands within a virtualized environment while also touching on how to handle similar tasks with apt and dnf, the package managers for Debian-based and Fedora-based systems respectively. Testing in a virtualized environment allows users to experiment without risking their main operating system. Changes are confined to the virtual machine, and can easily be reverted to a snapshot if something goes wrong.
  • Posted on
    Featured Image
    With the increasing need for powerful cross-platform development environments, the integration of Linux capabilities in Windows through WSL (Windows Subsystem for Linux) has become a game-changer. WSL allows users on Windows 10 and Windows 11 to run a Linux distribution alongside their Windows applications, offering remarkable flexibility. This dual capability enriches your environment to manage and deploy software using popular Linux package managers like APT, DNF, and Zypper. Whether you are a developer, a systems administrator, or just a tech enthusiast, mastering these tools within WSL can enhance your workflow significantly. In this guide, we'll dive deep into using these package managers efficiently in WSL.
  • Posted on
    Featured Image
    In the landscape of software development, especially when it involves creating applications that should run across different Linux distributions, package testing stands as one of the pivotal phases. Testing packages across multiple distributions ensures that your application behaves as intended, no matter the environment it’s deployed in. Cross-distribution package testing, however, can be challenging, cumbersome, and resource-intensive if not approached correctly. This is where Docker comes into play as a powerful ally. By leveraging Docker, developers can streamline the process of setting up, testing, and validating packages across various Linux environments in a fraction of the time it takes with traditional methods.
  • Posted on
    Featured Image
    When managing software on RPM-based Linux distributions such as Fedora, CentOS, or openSUSE, you'll often find yourself needing to extend your system's capabilities beyond what is offered in the official repositories. This is where third-party repositories come in handy. However, incorporating third-party sources can expose your system to potential risks if not handled carefully. In this article, we'll guide you on how to work safely with third-party RPM repositories, and although RPM is typically associated with certain package managers like dnf and zypper, we'll briefly discuss the relevance of apt in some contexts.
  • Posted on
    Featured Image
    Snap packages are universal Linux packages that can simplify software distribution by bundling dependencies into a single package, allowing applications to run consistently across different Linux distributions. Originally developed by Canonical for Ubuntu, Snap has been adopted by various Linux distributions due to its ease of use and cross-platform compatibility. However, Snap isn't without its limitations, particularly when used in distributions like openSUSE. In this blog post, we'll explore these limitations and also guide you on how to handle package installations using different package managers such as apt, dnf, and zypper.
  • Posted on
    Featured Image
    For many Linux users, switching from an RPM-based distribution such as Fedora, CentOS, or openSUSE to a DEB-based distribution like Ubuntu or Debian can seem like a daunting task. Both types of distributions use different package management systems with unique commands and functionalities. This guide aims to simplify this transition by teaching you the basics of DEB-based systems and comparing their package managers to those you might be familiar with in RPM-based environments. RPM (Red Hat Package Manager) and DEB (Debian Package) are two major formats for distributing software in Linux environments.
  • Posted on
    Featured Image
    Managing custom repositories in Linux is a crucial skill for any systems administrator or power user. By efficiently managing these repositories, users can maintain software packages that may not be available in the official channels, ensuring a more tailored and powerful computing environment. Each Linux distribution has its nuances, and knowing how to handle repositories in different package managers such as apt, dnf, and zypper is essential. Here, we delve into best practices for managing custom repositories to enhance your system's capabilities while maintaining security and stability. Before diving into the specifics of each package manager, it's important to understand what a custom repository is.
  • Posted on
    Featured Image
    Ubuntu, traditionally known for its simplicity and effectiveness, primarily uses apt for package management. However, in today's diverse software environment, you might find yourself needing packages from distributions that use other package managers like dnf (commonly used in Fedora) or zypper (used in openSUSE and SUSE Linux Enterprise). Setting up a hybrid repository environment on your Ubuntu system can bridge the gap, allowing you to install and manage packages from these various sources more seamlessly. In this guide, we will cover how to safely configure your Ubuntu system to use apt, dnf, and zypper. This setup is especially useful for developers, system administrators, and users who need cross-distribution packages.
  • Posted on
    Featured Image
    When it comes to managing packages in Linux-based systems, understanding how to synchronize and update software across different distributions is crucial for system administrators and developers alike. Linux distributions often use unique package management systems which can make uniform updates seem challenging. In this article, we will delve into how to handle package updates efficiently across systems that utilize apt (Debian, Ubuntu), dnf (Fedora), and zypper (openSUSE). Before we jump into synchronization, let’s briefly outline what each package manager is primarily used for: Apt (Advanced Package Tool): Used by Debian and its derivatives like Ubuntu. It handles the installation and removal of software.