Troubleshooting Slow Network Connectivity with ss and resolvectl on Linux

Introduction to Network Troubleshooting

I’ve seen my fair share of slow network connectivity issues on Linux, and having the right tools at your disposal can make all the difference. Two tools that I rely on are ss and resolvectl, which can help you diagnose and troubleshoot network issues. In this article, we’ll explore how to use these tools to identify and potentially fix slow network connectivity problems.

Understanding ss

The ss command is a replacement for the traditional netstat command, and it provides more detailed information about network connections, including TCP, UDP, and Unix domain sockets. To get started with ss, you can use the following command to display all active connections:

[Read More]

Taming Disk-Hungry Logs with systemd's Persistent Journal and Log Rotation

Introduction to Log Management

I’ve seen log management become a major headache for many Linux administrators. Logs are essential for diagnosing issues, detecting security threats, and optimizing system performance, but they can grow rapidly and consume significant disk space. In practice, this can lead to performance issues and even system crashes. To avoid this, we can use systemd’s persistent journal and log rotation features.

Understanding systemd’s Journal

Systemd’s journal is a centralized logging system that collects log messages from various system components, including systemd services, kernel messages, and application logs. The real trick is to configure it to use persistent storage, so logs aren’t lost upon system reboot. By default, the journal stores log messages in a volatile storage area, which isn’t very useful for long-term log management.

[Read More]

Using systemd to Manage and Rotate Logs for Forgotten System Services

Introduction to Log Management with systemd

I’ve seen many Linux admins struggle with log management, especially when it comes to system services that are often overlooked. Systemd is a powerful system and service manager that provides a wide range of features, including process management, dependency handling, and log management. In this article, I’ll focus on using systemd to manage and rotate logs for system services.

Understanding systemd Logs

The real trick is to understand how systemd logs work. Systemd logs are stored in a binary format, which can be read using the journalctl command. This command provides a powerful way to filter, search, and manage system logs. By default, systemd stores logs in /var/log/journal, but this can be configured to use a different location. Don’t bother with trying to read the binary logs directly - just use journalctl.

[Read More]

Resolving Dependency Conflicts When Mixing Third-Party Repositories with Distribution Packages

Introduction to Dependency Conflicts

I’ve seen this go wrong when mixing third-party repositories with distribution packages - dependency conflicts can cause frustration and potential security risks. As a Linux user, understanding how to resolve these conflicts is crucial for maintaining a stable and secure system. In this article, we’ll explore the common causes of dependency conflicts, how to identify them, and practical steps to resolve them.

Understanding Dependency Conflicts

Dependency conflicts occur when two or more packages require different versions of the same dependency. This can happen when you install packages from third-party repositories, which may not be compatible with the distribution’s packages. For example, if you’re running Ubuntu 22.04 and want to install the latest version of ffmpeg from a third-party repository, it can cause a conflict because the repository requires a newer version of libavcodec than what’s available in Ubuntu 22.04.

[Read More]

Troubleshooting Poor Video Performance on Linux Laptops with Hybrid Graphics and Wayland

Introduction to Troubleshooting

When dealing with Linux laptops that have hybrid graphics, getting the best video performance can be tough, especially with Wayland. I’ve seen this go wrong when people don’t take the time to understand how their system is set up. As of 2026, many Linux distributions have made big strides in supporting hybrid graphics and Wayland, but issues still pop up. In this article, we’ll go over some practical steps for troubleshooting poor video performance on these laptops.

[Read More]

Taming systemd Timer Services to Run Your Daily Backup at a Reasonable Hour

Introduction to systemd Timer Services

I’ve been using systemd timer services for years to schedule tasks on my Linux systems, and I have to say, they’re a game-changer. Most Linux distributions, including Debian, Arch Linux, and OpenSUSE, use systemd as their default init system, so it’s worth learning how to use them. In this article, I’ll show you how to use systemd timer services to run daily backups at a reasonable hour.

[Read More]

Troubleshooting Common Connection Issues with resolvectl and ss on Linux

Introduction to Troubleshooting Connection Issues

When working with Linux, connection issues can arise due to various reasons such as misconfigured DNS settings, firewall rules, or network interface configurations. I’ve seen this go wrong when a simple DNS misconfiguration can bring down an entire application. To troubleshoot these issues, Linux provides a range of tools, including resolvectl and ss. In this article, we will explore how to use these tools to diagnose and resolve common connection problems.

[Read More]

Taming Package Versions with apt-mark and pinning to Avoid Dependency Conflicts

Introduction to Package Versioning

When managing packages on a Linux system, you’ve likely encountered version conflicts, especially when dealing with dependencies. I’ve seen this go wrong when trying to update a package, only to find that it breaks another package that depends on it. In my experience, apt remains a crucial tool for managing packages, and understanding how to use apt-mark and pinning can help avoid these kinds of dependency conflicts.

[Read More]

Troubleshooting Disk Usage Issues with Duplicate Files and Unnecessary Logs on Btrfs and Ext4 Filesystems

Introduction to Disk Usage Issues

I’ve seen disk usage issues plague even the most well-maintained Linux systems, often due to duplicate files and unnecessary logs. As of 2026, both Btrfs and Ext4 filesystems are widely used, each with their own set of tools and best practices for troubleshooting and resolving these issues. In this article, we’ll delve into practical steps for identifying and addressing duplicate files and unnecessary logs on both Btrfs and Ext4 filesystems, focusing on current tools and methodologies.

[Read More]

Taming systemd-resolved: Troubleshooting DNS leaks and resolving domain name surprises on Linux desktops and servers

Introduction to systemd-resolved

I’ve seen systemd-resolved become a crucial part of many Linux distributions, including Ubuntu, Debian, and Fedora, as of 2026. It’s designed to provide a robust and secure way to resolve domain names on Linux systems. However, like any complex system, it can sometimes behave unexpectedly, leading to DNS leaks and domain name resolution surprises.

Understanding DNS Leaks

A DNS leak occurs when your system sends DNS queries to an unintended DNS server, potentially revealing your browsing history and online activities to third parties. This can happen when your system is configured to use a specific DNS server, but systemd-resolved is not properly configured to respect this setting. Don’t bother with manually trying to diagnose DNS leaks - just use online tools such as dnsleaktest.com or ipleak.net to check for them.

[Read More]