你提到的 fetchlinux 可能有几种情况,我先分别说明,避免配置错方向:
目前并没有一个非常主流、官方叫 FetchLinux 的通用发行版或工具。你可能是以下之一:
用于显示 Linux 系统信息。
# Debian / Ubuntu
sudo apt update
sudo apt install neofetch
# CentOS / RHEL
sudo yum install epel-release
sudo yum install neofetch
# Arch
sudo pacman -S neofetch
运行:
neofetch
开机自动显示(加到 shell 配置):
echo "neofetch" >> ~/.bashrc
例如用于 自动下载、部署 Linux 环境 的脚本。
git clone <fetchlinux仓库地址>
cd fetchlinux
chmod +x fetchlinux.sh
./fetchlinux.sh
环境变量一般配置在:
~/.bashrc
~/.profile
/etc/profile
例如:
export FETCHLINUX_HOME=/opt/fetchlinux
export PATH=$FETCHLINUX_HOME/bin:$PATH
# 安装
sudo apt install curl wget
# 测试
curl https://example.com
wget https://example.com
代理配置:
export http_proxy=http://127.0.0.1:7890
export https_proxy=http://127.0.0.1:7890
你可以补充:
我可以给你精确的一步一步配置教程。