Moonglade

Modern Markdown blogging with AI-powered localization and search.

Tag: bash


Aiursoft Nextcloud Incident Investigation, Analysis, and Summary

On October 4, 2022, Aiursoft Nextcloud experienced a severe incident that resulted in a two-hour service interruption and partial data loss. The root cause was the accidental loss of the NFS backup disk mount following the storage and compute separation migration. This caused the backup task to write large amounts of data to the system disk, instantly filling up the 64GB system disk, which led to system process paralysis and failed restarts. During the investigation, by mounting the hard drive to another server for analysis, it was discovered that system disk space was being abnormally occupied. It was ultimately confirmed that the backup script had erroneously written data to the local path when the mount failed. This incident revealed potential risks in the backup mechanism when configuration errors occur, as well as the lack of monitoring for mount point status. Improvement measures include enforcing mount status verification before backups, establishing real-time alert mechanisms for disk remaining space and mount status, and optimizing the backup script to prevent accidental writes to the local disk, thereby enhancing system stability and data security.

Views 377
Backup Disk Incident Linux Nextcloud bash



Mount Windows SMB folder to Ubuntu

How to mount remote SMB folder to local Ubuntu server First, install tools: bash sudo apt install cifs utils Create a new folder: bash sudo mkdir /mnt/share To mount: bash sudo mount t cifs o username=your name //your server/your path /mnt/share your name is your Windows user nam...

Views 204
Linux SMB Share Ubuntu Windows Server bash

Run WeChat in Ubuntu

Install and configure Wine. First, install Wine. bash sudo apt install wine64 After installing, open winecfg. bash winecfg Ajust the dpi to a higher value. I'm using 192 for 4K display. Download and configure fonts Download and configure fonts. Run the following commands: bash su...

Views 888
China Linux Ubuntu WeChat Wine bash





FFmpeg Usage Overview ★

This article provides a systematic introduction to the core applications and best practices of FFmpeg in video processing. It first compares the pros and cons of encoding formats such as H264, HEVC, VP9, and AV1, recommending HEVC for local storage and suggesting AV1, VP9, or H264 for web distribution based on the target audience. It also provides reference data on the impact of different bitrates, ranging from 1M to 128M, on video quality. The article elaborates on the differences between two working modes: stream copying and stream encoding. The former is efficient but does not allow parameter modification, while the latter is flexible but time-consuming. Additionally, the text includes specific command examples for common operations, such as using FFmpeg to view video metadata, perform transcoding, utilize NVIDIA GPU hardware acceleration, push RTMP live streams (including stream copying and real-time encoding), merge audio and video, burn in subtitles, adjust resolution, change speed, regulate volume, extract segments, crop regions, and reverse videos. Finally, it recommends integrating the SRS open-source project to build low-latency FLV or HLS live streaming services, enabling a localized live streaming experience similar to that of Bilibili.

Views 1,282
FFmpeg Live Streaming SRS Video Editing bash flv.js