以下是Linux系统中配置FetchLinux的步骤:
安装依赖软件包
sudo apt update && sudo apt install git wget curl openssh-server
sudo yum install -y git wget curl openssh-server
获取FetchLinux源码
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
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版本更新略有差异,建议参考官方文档获取最新信息。