Showing headlines posted by linuxer
« Previous ( 1 2 3 4 5 6 7 ... 35 ) Next »How to Install and Run DeepSeek AI on Ubuntu/Debian (No GPU)
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
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
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.
Bash Script CPU Stress Test Example
The Bash Script CPU Stress Test Example is a powerful tool designed to evaluate CPU performance under load using the stress utility. This script ensures that the required tool is installed before proceeding to execute a stress test based on user-defined parameters. By accepting the number of CPU cores to stress and the duration of the test, it allows for a customized benchmarking experience.
Bash Script to Append to Variable Example
When it comes to managing variables in Bash, appending values to an existing variable is a common task. This article will provide a straightforward example of how to append to a variable within a Bash script, which can be extremely useful for various scripting scenarios.
How to Install Google Chrome Browser on Linux Mint
Google Chrome is one of the most popular web browsers, known for its speed, reliability, and extensive ecosystem of extensions. In this guide, we will walk you through the detailed steps to install Google Chrome on Linux Mint, ensuring you have access to all its features and functionality.
Output to File Bash Script Example
Bash scripting is a powerful way to automate tasks in Unix-like operating systems. One of the most common tasks is redirecting output to a file. In this article, we will provide a comprehensive example of a Bash script that outputs data to a file, along with explanations and instructions on how to use it effectively.
Sleep Timer Bash Script for System Suspension
In today’s tech-driven world, conserving power on our devices is more important than ever. If you’re often away from your computer and want to automate putting it into a suspended state, then a simple Bash script can help. This Sleep Timer Bash Script allows users to set a timer in minutes, after which the system will suspend, saving energy and resources.
How to Write a Bash Script with Help and Usage Examples
Writing Bash scripts can significantly enhance your productivity, especially when performing repetitive tasks. This article provides a step-by-step guide on creating a Bash script that features a built-in help menu and usage examples, making it user-friendly for both beginners and advanced users.
How to Create Multiline Comment Bash Script Example
In Bash scripting, creating multiline comments can help enhance the readability and organization of your code. This is particularly useful when you want to comment on a block of code without using repetitive single-line comments. In this article, we will explore how to create multiline comments within a Bash script, along with a practical example.
The Importance of Bash Scripting for Linux System Administration
Bash scripting plays an integral role in Linux system administration, serving as a powerful tool for automating tasks, managing systems efficiently, and streamlining repetitive processes. Administrators who master Bash scripting can significantly enhance their productivity and reduce manual workload. Here's why Bash scripting is indispensable for Linux system administration.
Rock-Paper-Scissors Bash Script Game Example
Creating a simple Rock-Paper-Scissors game using a Bash script can be an exciting way to practice your scripting skills. This game not only provides entertainment but also allows you to get familiar with basic Bash programming concepts. In this article, we’ll take you through the essential prerequisites, the script itself, and how to run it effectively.
How to Install Safari on Linux
Safari, a popular web browser developed by Apple, is designed primarily for macOS and iOS devices. However, Linux users may want to experience Safari for testing purposes or simply out of curiosity. While Safari is not officially available for Linux, it can still be installed using tools like PlayOnLinux and Wine. This guide walks you through the steps to install Safari on your Linux system.
How to Make a Bash Script Wait for a Command to Finish
In the world of automation and scripting, the ability to manage background processes is crucial for effective task execution. This tutorial will guide you through the process of creating a Bash script that starts a background task and efficiently waits for it to finish before proceeding with further commands. By leveraging the process ID (PID) of the background job and the wait command, you can ensure controlled execution flow and resource management.
Keep Alive Bash Script Example
In the world of Linux and system administration, maintaining persistent connections is often crucial for managing remote servers. The Keep Alive mechanism serves as a vital tool to prevent disconnection from idle sessions, especially in SSH connections. This article will provide you with a straightforward Bash script example that keeps your session alive, ensuring you can manage your tasks without interruptions.
Bash Script to Find Alive Hosts on Your Network
In today’s interconnected world, knowing the active devices on your network can be essential for various administrative tasks and security measures. One efficient way to scan for alive hosts is by using a Bash script that pings every IP address within a specified subnet. This article will guide you through writing such a script, starting from the prerequisites to executing it on your machine.