Goodbye SCP! Real-Time File Sharing Between Linux Machines: An NFS Practical Guide

Goodbye SCP! Real-Time File Sharing Between Linux Machines: An NFS Practical Guide

1. Introduction: Why is NFS the “Preferred Solution” for Cross-Machine Sharing in Linux? In daily work, have you encountered these issues: transferring large files with SCP takes a long time, frequent logins with FTP are troublesome, and multiple Linux servers need to share configuration files but struggle to synchronize? In fact, these problems can be … Read more

How to Share the Same Hard Drive Space Between Windows and Linux Dual-Boot Systems

How to Share the Same Hard Drive Space Between Windows and Linux Dual-Boot Systems

Many people have installed both Windows 11 and Linux on a single computer, but they often encounter a frustrating issue: wanting to access the same folder from both systems, such as “project source code”, “video materials”, or “download directory”—only to find that they cannot see each other! In fact, once you learn the following steps, … Read more

Innovative Uses for Mac: Practical Guide to Building a Home Server with macOS

Innovative Uses for Mac: Practical Guide to Building a Home Server with macOS

Table of Contents: 1. Advantages of Using macOS as a Home Server 2. Basic Environment Setup 1. Installing Homebrew Package Manager (Core Software Installation Source) 2. Enabling Screen Sharing 3. Enabling Remote Login 3. Recommended Core Services 1. File Sharing/Private Cloud 2. Media Center 3. Download Management 4. Notes and Documents 5. Database 6. System … Read more

Cross-Platform Sharing Using Samba (Linux and Windows)

Cross-Platform Sharing Using Samba (Linux and Windows)

1. Install Samba Service sudo apt update sudo apt install samba samba-common smbclient # Install core packages 2. Configure Samba Service Start and set the service to launch on boot: sudo systemctl start smbd nmbd # Start smbd and nmbd services sudo systemctl enable smbd nmbd # Set to launch on boot Create a shared … Read more

Daily Module in Python: http.server

Daily Module in Python: http.server

Start a web service with a single line of code, making debugging, testing, and lightweight application development smoother! 🌟 Why Learn <span>http.server</span>? <span>http.server</span> is a built-in HTTP service module in the Python standard library, with advantages including: 🛠 No dependencies: No need to install any third-party packages ⚡ Quick startup: Can be run with a … Read more

A Tool for Sharing Files over HTTP Protocol in Intranet

A Tool for Sharing Files over HTTP Protocol in Intranet

Background: In the past, sharing files was done either through FTP or by sending them to users via WeChat. This method always required an intermediary transfer, and the performance loss during this transfer is unacceptable for a backend developer. Therefore, this project was developed. https://github.com/SpringStudent/HttpFileShare Introduction: This project turns your local computer into an HTTP … Read more

Installing Samba Service on Rocky Linux 9.5

Installing Samba Service on Rocky Linux 9.5

To install and configure the Samba server on Rocky Linux 9.5, follow the steps below. Samba is an open-source software that implements the SMB/CIFS protocol, allowing Linux systems to share files with Windows. 1. Install Samba sudo dnf install samba samba-client samba-common -y 2. Create a Shared Directory sudo mkdir -p /srv/samba/share sudo chmod -R … Read more

File Locking and File Sharing Mechanisms in C Language

File Locking and File Sharing Mechanisms in C Language

In multi-process or multi-thread programming, file read and write operations may lead to data inconsistency. To avoid this situation, the C language provides a file locking mechanism to control access to the same file. This article will detail the file locking and file sharing mechanisms in C language and demonstrate them through code examples. Basic … Read more

Enabling Anonymous Users to Write to SMB Network Shared Files in OpenWRT

Enabling Anonymous Users to Write to SMB Network Shared Files in OpenWRT

Introduction There are many methods available online, most of which involve editing the template by commenting out the line before invalid users = root. This allows the root user to manage the SMB user group. However, since the official default does not allow the use of root, there must be other ways. Today, I will … Read more

Simple Deployment of an HTTP File Server on a Local Area Network

Simple Deployment of an HTTP File Server on a Local Area Network

After receiving a request from a friend, they wanted to share some files within their company’s local area network for personnel in various departments to download and use. Due to unsatisfactory support for web-based solutions, they preferred not to use FTP services. Today, I would like to share two HTTP protocol-based file servers, written in … Read more