中文用户目录迁移为英文
在中文系统安装的 Ubuntu 中,默认用户目录会使用中文名(桌面、下载、文档等),在终端、开发工具、脚本中容易出现路径编码或显示问题。本文介绍如何将用户目录迁移为英文命名。
1、强制将系统配置改为英文
export LC_ALL=C
xdg-user-dirs-update --force
xdg-user-dirs-update …
专注于基于AI技术的数字孪生及工业软件SaaS的研发
在中文系统安装的 Ubuntu 中,默认用户目录会使用中文名(桌面、下载、文档等),在终端、开发工具、脚本中容易出现路径编码或显示问题。本文介绍如何将用户目录迁移为英文命名。
export LC_ALL=C
xdg-user-dirs-update --force
xdg-user-dirs-update …
在国内使用 Ubuntu 时,官方源速度较慢,将镜像源替换为华为云镜像可显著提升软件包下载速度。本文介绍 Ubuntu 22.04 (jammy) 和 Ubuntu 24.04 (noble) 如何配置华为镜像源。
sudo cp -a /etc/apt/sources.list /etc/apt/sources.list.bak …
# 1. remove old docker
sudo apt remove $(dpkg --get-selections docker.io docker-compose docker-compose-v2 docker-doc podman-docker containerd runc | cut …
curl -fsSLhttps://claude.ai/install.sh | bash
测试一下
claude
https://aihubmix.com/ 登录和注册,获得APIKEY
Claude 配置文 …
sudo add-apt-repository ppa:cappelikan/ppa
sudo apt update
sudo apt upgrade
sudo apt install mainline
sudo …
注:务必使用Ubuntu22.04/24.04编译,更高或者更低的系统都不行,编译脚本Bug太多
安装依赖
sudo apt install libxrandr-dev -y
sudo apt install libxinerama-dev -y
sudo apt install …
安装一系列依赖包(git,cmake,make等)
sudo apt install g++ cmake libhdf5-dev libpng-dev
下载和安装 openmc命令
git clone --recurse-submodules …
pip config set global.index-url https://mirrors.aliyun.com/pypi/simple/
pip config set global.index-url https://pypi.tuna.tsinghua.edu.cn/simple
pip config set …
https://www.postman.com/downloads/
得到文件
postman-linux-x64.tar.gz
cd /home/[YourUserName]/.local/share/applications
vim postman.desktop
[Desktop Entry] …
https://github.com/fatedier/frp/releases
比如 v0.50.0版本
[common]
log_file = ./frps.log
dashboard_user = XXXXX
dashboard_pwd = XXXX …