Linux环境下配置FetchLinux步骤如下:
安装依赖包:
sudo yum install -y git wget curl openssh-server
sudo apt install -y git wget curl openssh-server
克隆仓库:
git clone https://github.com/fetchlinux/fetchlinux.git /opt/fetchlinux
配置文件:
sudo cp /opt/fetchlinux/fetchlinux.conf.example /opt/fetchlinux/fetchlinux.conf
sudo nano /opt/fetchlinux/fetchlinux.conf
REPOSITORY_URL="http://your-mirror-url/fetchlinux"
MIRROR_NAME="YourMirrorName"
UPDATE_FREQUENCY="daily"
创建用户和组:
sudo groupadd fetchlinux
sudo useradd -r -g fetchlinux fetchlinux
设置权限:
sudo chown -R fetchlinux:fetchlinux /opt/fetchlinux
启动服务:
sudo systemctl enable fetchlinux
sudo systemctl start fetchlinux
可选:手动更新
sudo fetchlinux --update
注意:部分步骤可能因版本迭代调整,建议参考FetchLinux官方文档获取最新信息。