Wiki

apt-mirror

Thêm dòng sau vào file /etc/apt/sources.list

deb http://apt-mirror.sourceforge.net/apt-mirror/ 

Chạy các lệnh sau

apt-get update
apt-get install apt-mirror

Cấu hình file /etc/apt/mirror.list

# apt-mirror configuration file

##
## The default configuration options (uncomment and change to override)
##
#
# set base_path           /var/spool/apt-mirror
# set mirror_path  $base_path/mirror
# set skel_path           $base_path/skel
# set var_path     $base_path/var
#
# set defaultarch  
# set nthreads     20
#


##
## Example sources
##

# squeeze's section
deb http://archive.debian.org/debian squeeze main

##
## Cleaner configuration example
##
#
# set cleanscript $var_path/clean.sh
#

# Cleaning section
clean http://security.debian.org/
clean http://ftp.fi.debian.org/


skip-clean http://ftp.fi.debian.org/doc/
skip-clean http://ftp.fi.debian.org/tools/
skip-clean http://ftp.fi.debian.org/debian-cd/
skip-clean http://ftp.fi.debian.org/debian-minicd/
skip-clean http://ftp.fi.debian.org/debian/dists/squeeze/main/installer-i386/
skip-clean http://ftp.fi.debian.org/debian/dists/sid/main/installer-i386/
skip-clean http://ftp.fi.debian.org/debian/doc/
skip-clean http://ftp.fi.debian.org/debian/tools/
skip-clean http://ftp.fi.debian.org/debian/project/
skip-clean http://ftp.fi.debian.org/debian-non-US/project/

Sau đó chạy apt-mirror (các gói được lưu ở /var/spool/apt-mirror)

apt-mirror

Tạo file /etc/proftpd/conf.d/anonymous.conf

<Anonymous ~ftp>
   User                    ftp
   Group                nogroup
   UserAlias         anonymous ftp
   RequireValidShell        off
#   MaxClients                   10
   <Directory *>
     <Limit WRITE>
       DenyAll
     </Limit>
   </Directory>
 </Anonymous>

Đưa toàn bộ vào web nội bộ

Tạo key ở thư mục /tmp/Truested.gpg

gpg --homedir /tmp --no-default-keyring --keyring /usr/share/keyrings/R.gpg --keyserver keyserver.ubuntu.com --recv-keys E298A3A825C0D65DFD57CBB651716619E084DAB9

Copy và đổi tên key

 Truested.gpg <=> debian/dists/squeeze/Release.gpg