You are not logged in.

#1 2005-10-09 02:52:59

dlin
Member
From: Taipei,Taiwan
Registered: 2005-09-21
Posts: 265

setting faster mirror by mywget

Hi, I need faster mirror for download gcc, sourceforge,...
So, I wrote a simple script to let me quick download, you can modify this for your mirror.

the /usr/bin/mywget content

#!/bin/sh
echo "mywget $1"
f=`echo $1|sed -e s!^ftp://gcc.gnu.org/pub/gcc/!ftp://ftp.nctu.edu.tw/computer-languages/C/gcc/! -e s!^http://dl.sourceforge.net/joe-editor/!http://nchc.dl.sourceforge.net/sourceforge/! `

echo "wget $f"
/usr/bin/wget --continue --passive-ftp -T 20 --tries=5 --waitretry=5 $f

and modify your pacman.conf / makepkg.conf
change the wget ... to 'mywget'


Running 4 ArchLinux including sh4twbox,server,notebook,desktop. my AUR packages

Offline

Board footer

Powered by FluxBB