Showing headlines posted by linuxer

« Previous ( 1 2 3 4 5 6 7 ... 35 ) Next »

How to Network Connect Two Containers With Docker-compose

  • linuxconfig.org; By Lubos Rendek (Posted by linuxer on Mar 19, 2025 8:29 PM CST)
  • Story Type: Tutorial; Groups: Linux
Networking is one of the fundamental aspects of working with containers in Docker. Using Docker Compose, you can easily connect multiple containers and manage complex applications comprised of several services. In this article, we will explore how to connect two containers using Docker Compose effectively. By the end, you will have a clear understanding of how to define networks in your configuration and enable seamless communication between your services.

Bash Script to Traverse Directory Tree

Traversing a directory tree can be a daunting task, especially when dealing with extensive file systems. Fortunately, Bash scripting serves as an efficient way to automate this process. In this article, we will explore how to create a Bash script that can recursively traverse a directory tree and perform specified actions on each file or folder it encounters.

Syncing Files with Docker-Compose Watch

  • linuxconfig.org; By Egidio Docile (Posted by linuxer on Mar 9, 2025 3:19 AM CST)
  • Story Type: Tutorial; Groups: Linux
When using Docker to create portable and easy reproducible development environments, we need to found a way to make changes to our codebase, immediately effective inside containers, without the need to re-build them each time. A possible solution consists into mounting host directories directly inside containers; this, however, requires breaking containers isolation and portability, since they become dependant on the host directory structure. To solve this problem, we can use docker-compose watch.

Docker Container Vulnerability Scanning Tools

  • linuxconfig.org; By Lucas Rees (Posted by linuxer on Mar 8, 2025 1:29 AM CST)
  • Story Type: Video; Groups: Linux
In today’s cloud-native and microservices-oriented world, Docker has become a cornerstone for developing, shipping, and running applications anywhere. However, with great flexibility comes great responsibility, especially regarding security. This article delves into various tools for scanning Docker container vulnerabilities, ensuring that your applications remain secure and compliant.

How to Hash a File on Linux

  • linuxconfig.org; By Lucas Rees (Posted by linuxer on Mar 6, 2025 2:09 AM CST)
  • Story Type: Tutorial; Groups: Linux
Hashing files is a critical process in the realm of data integrity and security. In this article, we will discuss how to hash a specific file, linuxconfig.txt, using various hashing algorithms available in Linux. Additionally, we will explore how to restore the file based on its hash, ensuring you can verify its integrity over time.

How to Install ZFS on Debian/Ubuntu

ZFS (Zettabyte File System) is a robust file system designed to manage large amounts of data while ensuring integrity, scalability, and advanced features like snapshots, compression, and data deduplication. This guide will take you through the steps required to install and enable ZFS on Debian or Ubuntu.

Bash Script to Suspend the System after User Inactivity

The modern workspace often demands hours of productivity from users, but what happens when you step away from your computer? To help manage power consumption and increase security, it’s useful to create a Bash script that automatically suspends the system after a period of user inactivity. This article will guide you through the prerequisites needed, the script itself, and how to implement it effectively.

Bash Script to Convert JSON to CSV

In today’s data-driven world, converting data between formats is a common task. One such conversion that many developers face is changing JSON data into the more spreadsheet-friendly CSV format. This article provides a straightforward Bash script to perform this conversion efficiently. We will also explore a sample JSON data structure for clarity.

Ultimate Web Server Benchmark: Apache, NGINX, LiteSpeed, OpenLiteSpeed, Caddy & Lighttpd Compared

Choosing the right web server can make or break your website’s performance. With so many options available Apache, NGINX, LiteSpeed, OpenLiteSpeed, Caddy, and Lighttpd how do you know which one is the fastest, most efficient, and best suited for your needs? To find out, we conducted a comprehensive benchmark, testing these six popular web servers under different conditions, including static file handling, high concurrency, large file downloads, and sustained traffic simulations.

Bash Script to Convert to Uppercase

In the world of programming and scripting, text manipulation is a fundamental task. A common requirement is to convert a given string or sentence to uppercase. This article will guide you through creating a simple Bash script that accepts inputs via the command line interface (CLI) and transforms them into uppercase letters.

How to Install Elasticsearch on Ubuntu/Debian Linux

Elasticsearch is a powerful, open-source search and analytics engine designed for handling large-scale data. It is commonly used in log analysis, full-text search, and real-time analytics. This tutorial will guide you through installing and configuring Elasticsearch on Ubuntu/Debian.

Bash Script to Zip All FIles in Directory

In today’s digital world, managing files efficiently is crucial. One common task is zipping files within a directory to save space or to prepare for sharing. This article will guide you through creating a Bash script that zips all files in a specified directory. The script will accept the directory as a command-line argument, extract the directory name, and generate a zip file named with both the original directory name and the current date and time. Let’s get started!

Bash Script to Shorten File Names Recursively

In the world of file management, maintaining organization and efficiency is crucial. Long file names can lead to confusion and clutter, especially when dealing with numerous files across multiple directories. This article will walk you through creating a Bash script that recursively shortens file names in a specified directory while preserving the original file extensions. The script will respect the length of the file names based on a character limit specified as a command-line argument.

How to Install and Run DeepSeek AI on Ubuntu/Debian (No GPU)

  • linuxconfig.org; By Lubos Rendek (Posted by linuxer on Jan 31, 2025 5:50 PM CST)
  • Story Type: Tutorial; Groups: Linux
DeepSeek is a cutting-edge AI model designed for natural language processing, offering powerful capabilities such as text generation, summarization, and reasoning. It can run locally on Linux, making it an excellent choice for users who want privacy, control, and offline access to AI.

Simplify Restic Backups with Backrest: A Step-by-Step Tutorial

  • linuxconfig.org; By Egidio Docile (Posted by linuxer on Jan 31, 2025 6:53 AM CST)
  • Story Type: Tutorial; Groups: Linux
In a previous article, we learned how to create secure and efficient backups with Restic on Linux. Restic works on multiple platforms, but comes without a GUI. In this article, we learn how to install and use Backrest, a free and open source, user-friendly web-based interface for Restic.

Bash Script to SSH with Password Example

In this article, we’ll explore how to create a simple Bash script that uses SSH to connect to a remote host with a username and password. Though using a password in scripts is generally discouraged due to security reasons, this example aims to demonstrate the mechanics of SSH connections in Bash scripting.

How to Install Pi-hole Server on Linux

Pi-hole is a powerful network-level advertisement and Internet tracker blocking application that acts as a DNS sinkhole. It is lightweight and can run on most Linux-based systems, offering an efficient way to block ads across all devices on your network. This guide walks you through the step-by-step process of installing Pi-hole on your Linux server.

How to Use XOR Gate in Bash Script

  • bashscript.net; By Lucas Rees (Posted by linuxer on Jan 27, 2025 10:46 PM CST)
  • Story Type: Tutorial; Groups: Developer
In the world of digital logic, XOR gates play a crucial role in determining outputs based on binary inputs. When translated into a Bash script, implementing an XOR operation can facilitate decision-making processes and enhance various programming tasks. This article will guide you through the practical usage of XOR gates in a Bash script, helping you understand how to effectively implement logic operations in shell scripting.

Bash Script to Check for Mounted Partition

In this article, we will create a Bash script that checks if a specific partition is mounted. If it is not mounted, the script will attempt to mount it and then check again. This is crucial for ensuring that our script, which stores data into the partition, does not fill the system’s disk space when the partition is unavailable. By using this script with cron, we can automate tasks while maintaining system integrity.

Comparison of major Linux package management systems

The package manager is an integral part of every Linux operating system. Any Linux user that wishes to install, remove, or upgrade software will inevitably interact with the package manager in some capacity. Package management systems often differ in features across various Linux distributions, and the command syntax for each one is also slightly different.

« Previous ( 1 2 3 4 5 6 7 ... 35 ) Next »