Fading Coder

One Final Commit for the Last Sprint

Linux DRM/KMS Testing Tools: modetest, kmscube, and igt-gpu-tools

modetest The modetest utility, part of the libdrm package, enables querying display device capabilities, performing basic display tests, and configuring display modes. Source code can be obtained from: https://dri.freedesktop.org/libdrm/libdrm-2.4.100.tar.bz2 To comppile: ./configure make -j4 Upon s...

Understanding the Command: update-alternatives --install /usr/bin/gcc gcc /usr/bin/gcc-13 60

The update-alternatives utility is a standard tool in Debian-based Linux distributions (like Ubuntu) that manages multiple versions of programs providing the same functionality. It uses symbolic links and priority values to determine which version should be used by default when a command is invoked....

Linux Shell Scripting Fundamentals

Script Execution Methods Shell scripts are text files containing Linux commands executed by an interpreter. Using sh sh script.sh Direct Execution To execute a script directly: Begin the script with #!/bin/bash Grant execution permissions: chmod u+x script.sh ./script.sh This method internally uses...

Essential Linux File Operations and Commands

Core File Operations in Linux File Naming Conventions Use descriptive names for files and directories Separate words with underscores (e.g., my_website.html) Ensure unique names within the same directory (Linux is case-sensitive) Example: touch 'descriptive_name.txt' touch project_backup.tar.gz Dire...

Comprehensive Guide to Loop Structures in Shell Scripting

For LoopsThe for loop iterates over a list of values, executing a block of commands for each item.Syntax:for variable in item1 item2 ... itemN do command_sequence doneExample 1: Iterating through a Numeric RangeTo display numbers from 1 to 10:#!/bin/bash for num in {1..10} do echo "Current number: $...

Resolving the bunzip2 Command Not Found Error During Anaconda Installation

Error ContextWhen attempting to install Anaconda3 on a minimal Linux server (such as CentOS or RHEL), the installation script may terminate unexpectedly. The process fails during the decompression phase, returning a series of errors indicating that the system cannot locate the required utility to ha...

MySQL 5.7.26 Installation Procedure on Linux

Create the target directory structure. The server binaries will reside under /usr/local/mysql, and the data files will be placed in /mysql/data. mkdir -p /usr/local/mysql /mysql/data Download the MySQL community server tarball and extract it to the installation directory. Rename the unpacked folder...

Deploying and Optimizing Squid Cache Servers on Linux

Understanding Cache Server Fundamentals A cache server acts as an intermediary storage mechanism (utilizing both RAM and disk storage) for frequently accessed web content such as images, documents, and pages. By serving data locally rather than fetching it from the origin every time, response times...

Managing Users and Groups in Linux Systems

In Linux, user roles are distinguished by UID (User ID), which determines permissions and allowed tasks. The root user's UID is uniquely set to 0. Root User This is the system administrator with full privileges. The root user can log in, execute any command, and access all files. Its UID is always 0...

Essential Linux Commands and System Administration Techniques

Boot Scripts /etc/rc.local → rc.d/rc.local (custom boot initialization) All boot scripts reside in /etc/rc.d/, e.g., /etc/rc.d/init.d/network for network startup. Ensure execution permissions: chmod +x /etc/rc.d/rc.local Date and Timestamp Operations Current date: date Unix timestamp: date +%s Conve...