[Ubuntu][GCC] Downloading and Compiling GCC Source Code

[Ubuntu][GCC] Downloading and Compiling GCC Source Code

1. Download the GCC installation package. You can search for the official address to download it. If you cannot download it, you can try selecting a required GCC version from gitee.com/FIRC/gcc-cn-mirror. Note that if you are downloading the source code from gcc-cn-mirror, you can skip steps 2 and 3 and proceed directly to step 4 … Read more

Linux Command Line Proxy Configuration

Linux Command Line Proxy Configuration

Linux Command Line Proxy Configuration In Linux, many command line tools (such as <span>curl</span>, <span>wget</span>, <span>git</span>, <span>pip</span>, etc.) require network access. When in a restricted network environment, it is often necessary to configure a HTTP/HTTPS/SOCKS5 proxy. This article will systematically introduce how to set up proxies for common tools. 1. Environment Variable Proxy The most … Read more

How to Add a Directory to the PATH Environment Variable in Linux

How to Add a Directory to the PATH Environment Variable in Linux

When entering commands in the Linux command line, you are essentially instructing the shell to run an executable file with a specified name. Executable programs in Linux (such as <span>ls</span>, <span>find</span>, <span>file</span>, etc.) are typically stored in multiple different system directories. As long as they have executable permissions, files stored in these directories can be … Read more

A Comprehensive Guide to Shell Scripting from Basics to Practical Applications

A Comprehensive Guide to Shell Scripting from Basics to Practical Applications

Source: Beginner’s Station 1. Introduction to Shell 1.1 What is Shell Introduction to Shell Scripting # Why introduce Shell Last time I published a detailed article on Linux commands, which received a lot of recognition from friends. Some fans privately messaged me, asking for a shell programming guide. After some preparation, I spent 2 weeks … Read more

Code Testing and Environment Setup for Sqlite3 on Arm Linux Development Boards

Code Testing and Environment Setup for Sqlite3 on Arm Linux Development Boards

·1. Test Code ·2. Cross Compilation oCommand Structure oFunction of Each Part ·3. Execute Test ·4. Environment Variable `$PATH` o4.1 System-level Configuration Files (Global Settings) o4.2 User-level Configuration Files (Personal Settings) o4.3 Shell Built-in Defaults ·5. How to Find the Source of the Current `PATH`? ·Common Modification Scenarios 1. Test Code // test_sqlite.c #include <stdio.h> … Read more

Quick Deployment of Single Node Single Disk Architecture MinIO on Linux

Quick Deployment of Single Node Single Disk Architecture MinIO on Linux

Download MinIO Server Files This step describes how to deploy MinIO in a single node single disk (SNSD) configuration for early development and evaluation. The SNSD deployment does not provide any additional reliability or availability beyond what is offered by the underlying storage volume implementation (RAID, LVM, ZFS, etc.). The SNSD deployment uses a zero-parity … Read more

Installing GCC from Source

Installing GCC from Source

My laptop is running CentOS 7 with a version of GCC installed via yum, but this version is too old, so I need to install a newer version of GCC. 1. First, download from the internethttp://mirror.hust.edu.cn/gnu/gcc/ Find the appropriate version and download it. 2. Extract the compressed package # cd /usr/local/# tar -zxvf gcc-6.4.0.tar.gz 3. … Read more

Installing JDK on Linux

Installing JDK on Linux

Java development is a fundamental skill that Linux experts must master. This article will introduce how to install JDK on Linux and configure the Java environment. (This article uses jdk-8u201-linux-x64.tar.gz as an example) 1. Uninstall the pre-installed JDK (most Linux distributions come with Java, but it may not be usable) 1) Check the installed JDK: … Read more

Installing JDK 8 on CentOS Linux

Installing JDK 8 on CentOS Linux

Preparation Server: CentOS Linux release 7.9.2009 (Core) JDK: jdk-8u301-linux-x64.tar.gz JDK 8 download link:https://www.oracle.com/java/technologies/downloads/#java8 Installation Connect to the server using Xshell. Upload to the server, you can use the command # rz upload, -y to overwrite files rz -y If prompted that the command ‘rz’ is not found, install it manually # rz is a file … Read more

python-dotenv: A Python Library for Managing Environment Variables!

python-dotenv: A Python Library for Managing Environment Variables!

Hello everyone, today I want to introduce a super useful Python library – python-dotenv. When developing projects, we often need to manage various configuration information, such as database passwords, API keys, etc. Writing these sensitive information directly in the code is not a good idea! python-dotenv is specifically designed to solve this problem, allowing us … Read more