Linux使用FetchLinux步骤如下:
安装FetchLinux
sudo apt update
sudo apt install git wget curl openssh-server
git clone https://github.com/fetchlinux/fetchlinux.git /opt/fetchlinux
sudo yum install git wget curl openssh-server
git clone https://github.com/fetchlinux/fetchlinux.git /opt/fetchlinux
配置FetchLinux
cd /opt/fetchlinux
sudo cp fetchlinux.conf.example fetchlinux.conf
sudo nano fetchlinux.conf # 修改仓库URL、镜像名称等参数
sudo groupadd fetchlinux
sudo useradd -r -g fetchlinux fetchlinux
sudo chown -R fetchlinux:fetchlinux /opt/fetchlinux
启动服务
sudo systemctl enable fetchlinux
sudo systemctl start fetchlinux
常用操作
fetchlinux download <发行版名称> # 如 fetchlinux download ubuntu
fetchlinux user@remote:/path/to/file /local/pathfetchlinux -u user@remote /local/path /path/to/remotersync -aAXv --exclude '.git' /opt/fetchlinux/ backup/sudo fetchlinux --update注意:具体命令可能随版本更新变化,建议参考官方文档获取最新信息。