Implementing Multithreaded Servers in Linux Using POSIX Threads
Creating Basic Threads in Linux
To implement mlutithreading in Linux, we use the POSIX threads library (pthread.h). Here's a basic example:
#include <iostream>
#include <pthread.h>
#include <unistd.h>
void* worker_function(void* data);
int main() {
pthread_t worker_id;
int thread_data = 5;
if(pthread_create( ...
Posted on Tue, 07 Jul 2026 16:26:08 +0000 by Dima
Mastering Linux Pipe Operators and Text Filter Commands
The pipe operator (|) is one of the most powerful features in Linux, enabling you to chain multiple commands together. This article explores how pipes work, how they differ from redirection, and demonstrates practical filter command usage.
How Pipe Operators Work
A pipe connects the standard output of one command to the standard input of anothe ...
Posted on Mon, 06 Jul 2026 17:29:00 +0000 by kbascombe
Getting Started with Tabby: An Open Source Terminal Emulator with Over 10K GitHub Stars
1. Introduction
IT operations often require remote login to servers for maintenance. A well-designed management tool can significantly boost efficiency. Popular options include Xshell, SecureCRT, and PuTTY, but some of these are commercial software. For Arch-based systems like Manjaro, Xshell is not available. Fortunately, there are excellent L ...
Posted on Mon, 06 Jul 2026 16:04:09 +0000 by kellog
Running Linux on PS4
Installation
===============
1.1 Requirements
A USB storage device with at least 12GB capacity (USB 3.0 or SSD recommended)
Keyboard and mouse (mouse can be substituted temporarily via touchpad gestures)
USB hub
Required files:
initramfs.cpio.gz – MD5: 7c38ca9c4eaff335ef52cef398ab1278
bzImage – MD5: 20fe8941f2238b35822ea61939f2393d
psxitarc ...
Posted on Sun, 05 Jul 2026 17:23:02 +0000 by Justin98TransAm
Configuring Sudo to Display Humorous Messages on Password Failure
This feature modifies the sudo command's behavior to present lighthearted remarks when an incorrect password is entered, offering an alternative to the standard error message. It serves as a minor customization that can introduce amusement or serve as a conversational piece.
Enabling the Insults Feature
Activate this functionality by adding a s ...
Posted on Sun, 05 Jul 2026 16:48:38 +0000 by suma237
GlusterFS Operations and Configuration Guide
Environment Setup
Package Installation
Download RPM packages:
http://bits.gluster.org/pub/gluster/glusterfs/3.4.2/x86_64/
Required packages:
glusterfs-3.4.2-1.el6.x86_64.rpm
glusterfs-api-3.4.2-1.el6.x86_64.rpm
glusterfs-cli-3.4.2-1.el6.x86_64.rpm
glusterfs-fuse-3.4.2-1.el6.x86_64.rpm
glusterfs-libs-3.4.2-1.el6.x86_64.rpm
glusterfs-server-3.4. ...
Posted on Sun, 05 Jul 2026 16:19:02 +0000 by Viola
Configuring NAT Internet Access and Static IP for CentOS on VMware
When running CentOS 7 virtual machines on VMware, dynamically assigned IP addresses change frequently, disrupting consistent network access. Configuring a static IP maintains stable connectivity between the VM and local network, follow the steps below to complete setup:
Launch VMware with system administrator privileges
Open the Virtual Networ ...
Posted on Fri, 03 Jul 2026 17:45:31 +0000 by BETA
Understanding sed Address Patterns and Command Options
The stream editor processes input sequentially, applying transformation rules within a temporary pattern space before flushing results to standard output. Unlike interactive editors, it operates without loading entire files into memory, making it highly efficient for largee datasets and pipeline operations.
Core Command Flags
Configuration flag ...
Posted on Fri, 03 Jul 2026 16:51:26 +0000 by drew69
Linux Crontab Configuration for PHP Applications
Understanding Crontab for PHP Development
Crontab is a powerful utility in Linux for scheduling automated tasks. For PHP developers, it's essential for running scheduled jobs, maintenance scripts, and cron-based queue processing.
Crontab File Structure
The system-wide crontab configuration is located at /etc/crontab. However, it's generally rec ...
Posted on Fri, 03 Jul 2026 16:15:26 +0000 by KrisNz
Understanding Linux Cgroups: Resource Control Fundamentals
Linux Cgroups
Why Cgroups Exist
Linux Namespaces provide environmental isolation for containers and processes—similar to how chroot confines a user to a specific directory tree. However, as discussed in namespace documentation, certain resources remain globally accessible and largely unrestricted: memory, CPU cycles, disk I/O, and more. A proce ...
Posted on Tue, 30 Jun 2026 18:05:41 +0000 by Mr P!nk