Linux

Passwordless Login for Linux Machines

For security reasons, passwordless login is generally implemented using public-private key pairs. Here, I’ll mark down the configuration method. Log into the client machine and create a public-private key pair if you don’t already have one.

Sep 19, 2024

Understanding ShellCheck

This post introduces ShellCheck, covering when to use it and how it works so you can adopt it more efficiently.

Aug 7, 2024

Feasibility of Specifying a Startup File When Opening an SSH2 Session

This post explores whether an SSH2-based web terminal can specify a startup file when opening an interactive session, outlines possible approaches, and notes their trade-offs.

Jun 29, 2024

tar: Ignoring unknown extended header keyword

Explains the 'Ignoring unknown extended header keyword' message when using tar between macOS and Linux, why it happens, and how to address it.

Jun 11, 2024

Detect CPU Architecture in Shell Scripts

Shows how to detect the machine’s CPU architecture in shell scripts so you can download the correct Code Server package.

Jun 11, 2024

Enable Autosuggestions in Your Shell

Explains the difference between shell autosuggestions and autocompletion, and shows how to enable suggestions in Bash, Zsh, and Fish.

Jun 10, 2024

login shell

Quick notes on login shells—the advantages, how they load configuration, and related resources—so I can troubleshoot them faster.

May 15, 2024

What is Shebang? A Guide for Scripting

Ever wondered about the `#!` line at the start of scripts? This guide explains what a Shebang is, how it works, and why it's crucial for cross-platform script execution.

Apr 2, 2024

Installing and Switching Shells

Quick reference for installing Bash, Zsh, Fish, and Tcsh on Ubuntu plus notes on printf escaping differences.

Oct 31, 2023

The time-style Parameter in Linux ls

This post explains the time-style parameter in Linux ls, including format output, compatibility, and workarounds.

Sep 5, 2023

FreeBSD Password Login Timeout Error

This article provides an analysis of FreeBSD password login timeout errors, including troubleshooting steps, implementation details, and related resources to help improve efficiency when resolving FreeBSD password login timeout issues.

Aug 21, 2022

Ubuntu 22.04 SSH-RSA Login Failure

Debugging public-key auth failures on Ubuntu 22.04 after ssh-rsa was disabled by default; covers root cause and three fixes.

Jul 18, 2022

Linux File Permissions

This post explains Linux file permissions, how to interpret them, and how to check access rights.

Jul 16, 2022

Difference Between --help and man Commands

This article introduces the differences between --help and man commands, including their advantages, implementation details, and related resources. These insights can help improve efficiency when using command help documentation.

May 3, 2022

rsync total size is 0 speedup is 0.00

Diagnoses rsync reporting “total size is 0 speedup is 0.00” during GitHub Actions deployments and traces it back to mismatched Node versions.

Dec 1, 2020

Simplify OpenConnect with Shell + expect

Use a small expect script to automate OpenConnect VPN login steps at home, reducing repetitive prompts.

Sep 15, 2018

oh my zsh Configuration File Not Loading

This article discusses the issue of oh my zsh configuration file not loading automatically, including the solution to fix this problem and improve terminal efficiency.

Apr 7, 2018

Linux File System

This post explains the Linux file system hierarchy and common directory meanings to help you choose proper install paths.

Mar 18, 2018

Install Maven in Zsh on Mac

This post explains how to install Maven in a Zsh environment on Mac, including setup steps and configuration.

Mar 4, 2018

Full-Stack Deployment: Angular + Express on CentOS

A step-by-step guide to deploying a full-stack Angular and Express application on a CentOS server, covering environment setup, process management with PM2, and Nginx reverse proxy configuration.

Dec 13, 2017

oh-my-zsh Chinese Character Encoding Issues

This article introduces the Chinese character encoding issues in oh-my-zsh, including the advantages, implementation details, and relevant resources. These steps can help improve efficiency when dealing with oh-my-zsh Chinese character encoding problems.

Nov 26, 2017

Using sz/rz for Uploads and Downloads on Linux

This post introduces how to use sz and rz on Linux for simple file uploads and downloads, including installation, usage, and iTerm2 setup on macOS.

Sep 24, 2017

Windows CMD: Common Commands

A quick reference of common Windows CMD commands for environment variables and network/process inspection.

Sep 12, 2017

Install and Configure vsftpd on Linux

This post introduces how to install and configure vsftpd on Linux, along with basic service setup and reference material.

Aug 19, 2017

Redis Installation Guide on Linux

This post introduces how to install Redis on Linux, covering the official source build method, startup setup, and a yum-based installation option.

Jul 11, 2017