Handling Language Exceptions in Linux Terminal: A Practical Guide

Handling Language Exceptions in Linux Terminal: A Practical Guide

A scenario for troubleshooting language version exceptions in a Linux deployment. In the Euler environment, there was a language version issue when deploying software, where the system environment needed to be set to Chinese, but it defaulted to English. Therefore, adjustments were made using the conventional locale command, but after setting it, neither source nor … Read more

Understanding the /etc Directory in Linux Systems

Understanding the /etc Directory in Linux Systems

Click the blue “One Linux” in the upper left corner, and select “Set as Favorite“ Get the latest articles first ☞【Resources】Learning Path for Embedded Driver Engineers ☞【Resources】Linux Embedded Knowledge Points – Mind Map – Free Access ☞【Employment】A Comprehensive IoT Project Based on Linux for Your Resume ☞【Employment】Resume Template /etc Directory /etc/profile # Configure Environment Variables … Read more

How to Switch Between Chinese and English User Interface in Matlab 2024a? Super Simple

How to Switch Between Chinese and English User Interface in Matlab 2024a? Super Simple

1. Switching from Chinese to English Interface: 1. First, open the MATLAB 2024a software, which defaults to the Chinese version, and click on 【Preferences】 in the toolbar; ▎Web Version (For Personal Use Only): http://www.zhanshaoyi.com/20986.html (Copy the link above and paste it into your computer’s browser address bar to open) 2. The “Preferences” window will pop … Read more

Technical Overview of Shell Syntax Variables on Linux Platform #01

For shell, there are both environment variables and local variables, which are explained as follows. Environment Variables: These are variables created during system startup, primarily those created by rootfs to serve the system, and can also include variables imported by users through commands like export. Environment variables can be used in all shell interactive environments … Read more

The Challenging Journey of Compiling and Installing GCC 14 from Source on CentOS 7

Download Dependencies tar zxvf gcc-releases-gcc-14.2.0.tar.gz cd gcc-releases-gcc-14.2.0 contrib/download_prerequisites Older versions of GCC require manual installation of dependencies, while the new version does not; a script automates the process. Note: <span>contrib/download_prerequisites</span> must be executed in the root directory of the installation (<span>gcc-releases-gcc-14.2.0/</span>), and there will be no output on the screen when this command is executed. … Read more

Guide to Compiling and Installing GCC 7.5.0 from Source

This article is generated by Tencent Yuanbao, with content outline and verification provided by @Xiao Hui~ In certain Linux environments, the system’s default GCC version is relatively low (e.g., 4.8.5), which cannot meet the compilation requirements of new software, and it is not possible to install a newer version of GCC directly through the package … Read more

Accessing U-Boot Environment Variables in RK3588 Linux

We are using the RK3588 SmartHub SDK to compile the Buildroot Linux system, with the following versions of U-Boot and Linux Kernel: U-Boot 2017.09Linux version 6.1.115 The U-Boot environment variables are stored in memory by default in the source code provided by RK, with the corresponding configuration as follows: CONFIG_ENV_IS_NOWHERE=y Executing the saveenv command in … Read more

Mastering Python’s Subprocess Library: Let Your Code Do the Work!

Mastering Python's Subprocess Library: Let Your Code Do the Work!

Have you ever felt this way: after writing a Python script, you hit run and expect it to act like a “helpful assistant,” quietly doing the work for you? For instance, organizing files, executing system commands, or even stealthily checking in on a server… At that moment, don’t you feel like a magician? 🧙♂️ Don’t … Read more

Some Cool Tricks with the Linux Bash Prompt

Some Cool Tricks with the Linux Bash Prompt

(Click the public account above to quickly follow) Author: Dave Neary, Translation: Linux China/toyijiu linux.cn/article-8711-1.html If you have good articles to submit, please click → here for details When you open a Shell terminal in a Linux environment, you will see a Bash prompt that looks something like this: [user@$host ~]$ Did you know that … Read more

How to Compile GCC Yourself

How to Compile GCC Yourself

Download GCC ● https://ftp.gnu.org/gnu/gcc/ ● Select a target version to download Compilation Commands # Centos yum groupinstall "Development Tools" # Ubuntu sudo apt install build-essential # Avoid compilation errors unset LIBRARY_PATH # Build wget https://ftp.gnu.org/gnu/gcc/gcc-15.1.0/gcc-15.1.0.tar.gz –no-check-certificate tar -zvxf gcc-15.1.0.tar.gz cd gcc-15.1.0 ./contrib/download_prerequisites mkdir build cd build/ ../configure –enable-checking=release –prefix=/usr/local/gcc-15.1.0 –enable-shared –enable-static –enable-languages=c,c++ –disable-multilib # Install … Read more