-
Terminal partial line prompt feature
Introduction If you are a user who often deals with terminals, you must have noticed that the output ends a line with a highlighted percent symbol on occasion with a variety of applications. Maybe you would think it was because the output was cancelled early (ctrl+c, for example) or something similar, but it doesn’t seem to do this in bash, jus... Read More
-
Linux config files table
Table Path Type Scope Description /etc/locale.conf File Global Global locale /etc/security/limits.conf File Global Global limits for a user /etc/environment File Global Global environment variables ... Read More
-
Fix warning setlocale cannot change locale
Introduction When you are using the terminal and encounter the following warning promtp like warning: setlocale: LC_ALL: cannot change locale (en_US.UTF-8), you can not figure it out and you are most likely confused, this article would help you solve this problem. Solution $ sudo locale Edit the configuration file for locale-gen: $ sudo vi... Read More
-
Fix error about non-empty Sec-WebSocket-Protocol header
Introduction When you encounter this problem about WebSocket connection to 'wss://<address>/live' failed: Error during WebSocket handshake: Sent non-empty 'Sec-WebSocket-Protocol' header but no response was received, here is an article on how to fix this problem. Review According to the error message, we know that the WebSocket client s... Read More
-
How to use netcat command
Introduction Command nc stands for netcat, known as the swiss army knife of network tools, it’s a utility which is used for reading and writing data across TCP and UDP ports. It can be used for a lot of cool stuff, this article will take a closer look. There are two similar packages available for netcat with a slight difference between them: ... Read More
-
The handbook of programming languages
The historical development of programming languages has gone through one stage after another, from machine language to high-level language, it is also closer to the way of human thinking, easy to write, good readability, and more efficient to develop. Machine-oriented programming (MOP) Procedure-oriented Programming (POP) Object-oriented... Read More
-
Fix errors occurred no packages were upgraded in Arch Linux
What’s up? When you use yay -S <package> to install some package and face this prompt errors occured, no packages were upgraded, don’t worry, this article will guide you to settle it down. Problem reproduce At First, let’s try to remove any local package(e.g. zoom) mannually: $ sudo rm -rf /var/lib/pacman/local/zoom-2.9.265650.0716-1/ ... Read More
-
Fix invalid or corrupted package in Arch Linux
What’s up? Recently, when I use yay -Syu to update the software packages, it always prompts that a package cannot be updated and prompts are warning: could not fully load metadata for package and error: failded to prepare transaction (invalid or corrupted package). It’s time to solve this annoying problem. Remove first Try to remove it firs... Read More
-
Email Server Ports Table
Table Here’s a table of the email server ports. Ports Protocal Security Authentication Description 25 SMTP None AUTH Outgoing Messages 587 SMTP None or TLS STARTTLS Outgoing Messages 465 SMTP ... Read More
-
How to build your own email server
Introduction Have you ever thought about setting up your own email server, but then left it behind. However, setting up a email server is not complicated. In this article, we will build it step by step from scratch. Here we will need the following environments: Nginx - an lightweight and open-source web server to offer low memory usage and... Read More