主站点: http://oss.lzu.edu.cn/deb ftp://mirror.lzu.edu.cn/ubuntu/ubuntu/ dapper main multiverse restricted universe
deb ftp://mirror.lzu.edu.cn/ubuntu/ubuntu/ dapper-backports main multiverse restricted universe
deb ftp://mirror.lzu.edu.cn/ubuntu/ubuntu/ dapper-proposed main multiverse restricted universe
deb ftp://mirror.lzu.edu.cn/ubuntu/ubuntu/ dapper-security main multiverse restricted universe
deb ftp://mirror.lzu.edu.cn/ubuntu/ubuntu/ dapper-updates main multiverse restricted universe
deb ftp://mirror.lzu.edu.cn/ubuntu/ubuntu-cn/ dapper main multiverse restricted universe
兰州大学开源社区提供了新的Ubuntu镜像
- oneleaf
- 论坛管理员
- 帖子: 10441
- 注册时间: 2005-03-27 0:06
- 系统: Ubuntu 12.04
兰州大学开源社区提供了新的Ubuntu镜像
- byalligator
- 帖子: 30
- 注册时间: 2006-06-20 20:05
-
- 帖子: 3182
- 注册时间: 2006-03-10 15:10
- 来自: xi'an China
- 联系:
-
- 帖子: 315
- 注册时间: 2005-05-11 20:14
- 来自: 西安理工大学
-
- 帖子: 108
- 注册时间: 2005-10-14 9:38
- macleo
- 帖子: 74
- 注册时间: 2005-05-23 23:43
- 来自: 网络的那一端
-
- 帖子: 108
- 注册时间: 2005-10-14 9:38
-
- 帖子: 20
- 注册时间: 2005-07-17 18:14
- 来自: beijing
北京也有了:http://oss.org.cn/
这个社区服务器在北京
6.04的apt是
deb http://mirrors.oss.org.cn/ubuntu/ dapper main restricted universe multiverse
deb-src http://mirrors.oss.org.cn/ubuntu/ dapper main restricted universe multiverse
这个社区服务器在北京
6.04的apt是
deb http://mirrors.oss.org.cn/ubuntu/ dapper main restricted universe multiverse
deb-src http://mirrors.oss.org.cn/ubuntu/ dapper main restricted universe multiverse
-
- 帖子: 1
- 注册时间: 2006-11-02 0:41
-
- 帖子: 108
- 注册时间: 2005-10-14 9:38
-
- 帖子: 4
- 注册时间: 2006-06-20 10:49
Hi,非常欢迎大家使用oss.lzu.edu.cn的镜像站哦,不过非常抱歉,前段时间由于系统故障,一度停止了服务
最近,服务器进行了重新配置,目前ubuntu镜像已经做好,欢迎大家继续使用,不过地址有些变更,请楼主修改一下
最新的地址是,就是目录少了一级:
这个配置文件类似于mount的配置文件/etc/fstab,通过引入该文件,可以很灵活的实现类似mount -a的操作
即以后每次镜像只需要简单的执行mirror.sh就可以了,如果需要增加新的镜像,只需要在配置文件里头添加一行
另外,镜像的根目录,镜像的日志,配置文件mirror.conf的位置都可以在mirror.sh的开头配置
还有一个,支持“一个程序在同一时间只执行一次”,防止多次重复进行某个镜像
如果合适,你可以添加对其他镜像工具,如rsync的批量镜像支持
mirror.conf
最近,服务器进行了重新配置,目前ubuntu镜像已经做好,欢迎大家继续使用,不过地址有些变更,请楼主修改一下
最新的地址是,就是目录少了一级:
对拉,这里也发一个自己弄的做“批量”镜像的脚本(使用wget工具),以及配置文件。deb ftp://mirror.lzu.edu.cn/ubuntu/ edgy main multiverse restricted universe
deb ftp://mirror.lzu.edu.cn/ubuntu/ edgy-backports main multiverse restricted universe
deb ftp://mirror.lzu.edu.cn/ubuntu/ edgy-proposed main multiverse restricted universe
deb ftp://mirror.lzu.edu.cn/ubuntu/ edgy-security main multiverse restricted universe
deb ftp://mirror.lzu.edu.cn/ubuntu/ edgy-updates main multiverse restricted universe
deb ftp://mirror.lzu.edu.cn/ubuntu-cn/ edgy main multiverse restricted universe
这个配置文件类似于mount的配置文件/etc/fstab,通过引入该文件,可以很灵活的实现类似mount -a的操作
即以后每次镜像只需要简单的执行mirror.sh就可以了,如果需要增加新的镜像,只需要在配置文件里头添加一行
另外,镜像的根目录,镜像的日志,配置文件mirror.conf的位置都可以在mirror.sh的开头配置
还有一个,支持“一个程序在同一时间只执行一次”,防止多次重复进行某个镜像
如果合适,你可以添加对其他镜像工具,如rsync的批量镜像支持
mirror.conf
mirror.sh#tool source destination proxy reject accept
wget http://archive.ubuntu.com/ubuntu/ ubuntu
代码: 全选
#!/bin/bash
#function: mirror automatically.
#author : falcon <zhangjinw[at]gmail.com>
#date : 07/1/25
#dep : mirror.conf -- define some parameters needed by mirror.sh
# Examples
#mirror ftp: wget -r -c -t0 -nH --cut-dirs=n -o `date +%y%m%d` -I dir1,dir2,dir3 -X dir1,dir2 ftp://xxx.xxx.xxx.xxx/xxx/
#mirror http: wget -Y on -nc -np -nH -r -ln -k -R '.htm*\?*' http://xxx.xxx.xxx.xxx/xxx/
# Init
WGET="/usr/bin/wget" #tool
LOGROOT="/var/log/mirror" #the root of log directory
DESTROOT="/path/to/mirror"
CONFFILE="mirror.conf"
# if the process of mine in executing, exit
if test $(ps -ef | grep $(basename $0) | grep -v grep | wc -l) -eq 1; then #avoid duplicate
echo "There is another process of mine executing..."
exit
fi
# Test the root of destination,if not exist,exit Mirror
if test ! -d $DESTROOT; then
echo "The root of destination:[ $DESTROOT ]is not exist."
exit
fi
# Mirror
if test ! -f $CONFFILE; then
echo "Can't find the config file: $CONFFILE"
exit
fi
if test ! -d $LOGROOT; then
mkdir $LOGROOT
fi
LINENUM=0
while read LINE
do
let LINENUM=$LINENUM+1 #record the line number
if test ! -z "$(echo $LINE | grep "^#")"; then #handle the note line
continue
fi
LINEARR=($LINE) #save the line to an array
if test ! -z "$(ps -ef | grep $(basename ${LINEARR[2]}) | grep -v grep)"; then #avoid duplicate
echo "This mirror:[ ${LINEARR[2]} ]process is executing..."
continue
fi
MTOOL="" #tool
MFLAG=" -m -c -t0 -nH -b " #flags
SOURCE="" #source
DEST="" #destination
case ${LINEARR[0]} in #get the tool
wget) MTOOL=$WGET
;;
*) echo "$LINENUM: Can't support the mirror tool: ${LINEARR[0]}"
continue
;;
esac
SOURCE=${LINEARR[1]} #get the source
PROTOCOL=${SOURCE:0:4} #get the protocol
case $PROTOCOL in
http) MFLAG="$MFLAG -np -k " #add the protocol flag
if test ! -z "${LINEARR[4]}"; then #add the reject flag of file type
MFLAG="$MFLAG -R ${LINEARR[4]} "
fi
if test ! -z "${LINEARR[5]}"; then #add the accept flag of file type
MFLAG="$MFLAG -A ${LINEARR[5]} "
fi
;;
ftp:) MFLAG="$MFLAG"
if test ! -z "${LINEARR[4]}"; then
MFLAG="$MFLAG --exclude-directories=${LINEARR[4]} "
fi
if test ! -z "${LINEARR[5]}"; then
MFLAG="$MFLAG --include-directories=${LINEARR[5]} "
fi
;;
*) echo "$LINENUM: Can't support the mirror protocol: $PROTOCOL"
break
;;
esac
MFLAG="$MFLAG -o $LOGROOT/$(basename ${LINEARR[2]})_$(date +%y%m%d).log" #add the log flag
let CUTDIRNUM=$(echo $SOURCE | sed -e "s/\//\n/g" | wc -l)-4 #add --cut-dirs flag
if test ! $CUTDIRNUM -eq 0; then
MFLAG="$MFLAG --cut-dirs=$CUTDIRNUM "
fi
DEST="$DESTROOT/$(basename ${LINEARR[2]})" #get the destination directory
if test ! -d $DEST; then
mkdir $DEST
fi
case ${LINEARR[3]} in #add the --proxy flag, if you set y, see the next note
Y|y) MFLAG="$MFLAG -Y on " #Note: The proxy is defined in /etc/wgetrc
;;
*) MFLAG="$MFLAG"
;;
esac
cd $DEST #Entering into the destination directory
echo "Entering into the directory: $DEST"
ls $LOGROOT/$(basename ${LINEARR[2]})_*.log 2>/dev/null #Delete the old log file,if exist
if test $? -eq 0; then
LOGFILE=$(ls $LOGROOT/$(basename ${LINEARR[2]})_*.log)
echo "Delete the old log file: $LOGFILE"
rm $LOGFILE
fi
$MTOOL $MFLAG $SOURCE #Ececuting the wget tool to start to mirror
echo -e "Executing:\n $MTOOL $MFLAG $SOURCE"
done < $CONFFILE