Embedded Linux: Thread Synchronization with Condition Variables

Embedded Linux: Thread Synchronization with Condition Variables

Click the blue text above to follow us In the Linux environment, condition variables are a mechanism for thread synchronization that allows threads to enter a waiting state when a certain condition is not met, and to be notified by other threads when shared resources or conditions are modified. Condition variables are typically used in … Read more

Linux Kernel Boot Process – Building NUMA Node Zonelists – Source Code Explanation

Linux Kernel Boot Process - Building NUMA Node Zonelists - Source Code Explanation

This is the 120th lesson of the Linux Kernel Boot Process course. This lesson explains from the source code perspective how the Linux kernel constructs zonelists for NUMA nodes, as well as the categories of zonelists and their functions, etc. The previous lesson covered prerequisite knowledge, and this lesson discusses the corresponding kernel source code. … Read more

Memory Debugging with Valgrind on Linux

Memory Debugging with Valgrind on Linux

1. Overview Valgrind is an open-source memory debugging and performance analysis tool used to help developers identify memory errors in programs, such as memory leaks, use of uninitialized memory, illegal memory access, and other issues. It is widely used on the Linux platform and supports multiple processor architectures. 2. Using Valgrind 1. Basic Format valgrind … Read more

Udev Hotplug Rules in Linux

Udev Hotplug Rules in Linux

Word count: 1104, reading time approximately 6 minutes Udev Hotplug Rules in Linux Background Udev is a tool used in Linux systems to manage device nodes. It can dynamically create device files based on the attributes of the devices and execute specific commands, typically used for handling hotplugging. Udev rules are used to specify these … Read more

Resetting Root Password in Linux: A Comprehensive Guide

Resetting Root Password in Linux: A Comprehensive Guide

In the world of Linux, the root password is like a master key to unlock the system’s treasures, holding supreme privileges. However, if this “key” is lost, it can lead to significant trouble. Imagine being excited to log into the server and showcase your skills, only to be met with the unyielding “Password incorrect” message, … Read more

Introduction to Bioinformatics: How to Remotely Login to Linux Server

Introduction to Bioinformatics: How to Remotely Login to Linux Server

After purchasing the server and placing it in the machine room, and having the account and password, the question arises: how can we remotely log into the Linux server from our own computer? How to Remotely Login to Linux Server from Windows To remotely log into a server from a Windows system, I have used … Read more

Configure Application or Script to Start on Boot in Linux

Configure Application or Script to Start on Boot in Linux

Introduction Configuring applications or scripts to start automatically on boot in a Linux system is a common requirement. Whether for critical services in a server environment or for frequently used tools on a personal computer, proper configuration can achieve automated startup, enhancing system availability and convenience. This article will detail how to use Systemd to … Read more

How to Install Applications from Source on Linux

How to Install Applications from Source on Linux

Some applications can only be installed from source code. Here’s how to do it. Translated from Linux: How To Install Apps From the Source by Jack Wallen. When I first started using Linux, there was only one way to install applications… from the original source code. Those days are long gone, and now there are … Read more

A Detailed Guide to the Linux Boot Process

A Detailed Guide to the Linux Boot Process

💻 A Detailed Guide to the Linux Boot Process ✨ Today, let’s take a detailed look at the Linux boot process, which is an important foundational knowledge for using the Linux system! 💕 1. Booting The beginning of everything is, of course, booting. When we press the power button, the entire startup process officially begins. … Read more

Essential Linux Server Scripts

Essential Linux Server Scripts

Follow+Star Public Account Number, don’t miss exciting content System Settings Common Mirror Sources Mirror site addresses Official list provided: https://www.debian.org/mirror/list Some domestic ones: ftp.cn.debian.org mirror.bjtu.edu.cn mirror.lzu.edu.cn mirror.nju.edu.cn mirrors.163.com mirrors.bfsu.edu.cn mirrors.hit.edu.cn mirrors.huaweicloud.com mirror.sjtu.edu.cn mirrors.tuna.tsinghua.edu.cn mirrors.ustc.edu.cn Usage: (generally similar) Tsinghua Source –mirror 'https://mirrors.ustc.edu.cn/debian/' Tencent Source –mirror 'https://mirrors.aliyun.com/debian/' Aliyun Source –mirror 'https://mirrors.aliyun.com/debian/' Huawei Source –mirror 'https://mirrors.huaweicloud.com/debian/' SWAP & … Read more