You are not logged in.
I'm wondering about the logistics of having one machine running Arch at the office keep updated with the official servers, and the rest of the machines on the office LAN pointing to that machine as the repo for packages, rather than to the official servers.
I read the wiki page on local repos, but it's unclear to me what needs to happen to setup this up such that the "client" machines will be able to see the "LAN server" which is synced with the official servers. Do I need to run lighttpd or samba or..?
Is anyone doing this and if so, can you share your setup with me?
Last edited by graysky (2010-06-06 08:15:38)
Offline
Doesn't a shared pacman cache on the LAN suits your needs better?
It's easier and simpler to implement, how about it?
Offline
I pull all the main repos to my home file server from my ISP who mirror Arch. The traffic is unmetered, so it's really just because I hate waiting for downloads ![]()
I use this script to pull the repos:
#!/bin/bash
### rsync the internode archlinux mirror to local disk
# Configuration
SOURCE='rsync://mirror.internode.on.net/archlinux'
DEST='/srv/mirrors'
BW_LIMIT='500'
LCK_FLE='/var/run/repo-sync.lck'
# Binaries
RSYNC='/usr/bin/rsync'
# Make sure only 1 instance runs
if [ -e "$LCK_FLE" ] ; then
OTHER_PID=`/bin/cat $LCK_FLE`
echo "Another instance already running: $OTHER_PID"
exit 1
fi
echo $$ > "$LCK_FLE"
# Test executables
if [ ! -x $RSYNC ] ; then
echo "$RSYNC not found"
exit 1
fi
# Do the sync
for REPO in core extra community ; do
$RSYNC -a --links --quiet --bwlimit=${BW_LIMIT} --delete --delete-excluded --delay-updates --exclude=.* $1 ${SOURCE}/${REPO} $DEST
done
# Cleanup
/bin/rm -f "$LCK_FLE"
exit 0Then I use Apache to serve /srv/mirrors to my LAN and DMZ.
Are you familiar with our Forum Rules, and How To Ask Questions The Smart Way?
BlueHackers // fscanary // resticctl
Offline
Theoretically, you can use FTP or HTTP as a transport. If you have a bit of time, you can raise vsftpd, light and simple FTP server (don't forget to block port 21 in iptables from outside). Maybe it's a better solution that apache keeping performance in mind.
Offline
Thanks all. Nice script, fukawi2.
Offline