ubuntu/debian/ceph/pardusローカルミラー、FTP、HTTP、HTTPSを使用したリポジトリのキュレーターは、aptミラー、rsyncmirrorとwgetを使用



Net NethnetのH ' z zのnnは、nng、gはVenlik sebebiyle ya daイントラネットのように.
一九九五年の二〇〇〇年三月二日
Ubuntu:https://launchpad.net/ubuntu/+archivemirrors
デビアン:https://wiki.debian.org/SourcesList#Repository_URL
CEH:https://debgen.simplylinux.ch/
パルダス:https://download.ceph.com/
Ilgili Makinede EyetinceディスクAlan - Ex(Tb olmas - de Tasisiye Edilir)Air Le . ca結合Nick ve Smemetrik y - se ksek seviyede網帯域幅olmas - pon tavsiye edilirにおいて、私は、i iを得ます.
sudo apt install apt-mirror proftpd-basic apache2 rsync wget git
https://belge.pardus.org.tr/display/PYMBB/Pardus+Repo+Mirrorlama
APTミラー付き
Konuya Girmedenは、nce、defaultta y - lt klenen aptミラーpaketinde bazは、sorunlar mevcut bu yのzzaのaを形作る.
git clone https://github.com/Stifler6996/apt-mirror.git
cd apt-mirror
cp apt-mirror /usr/bin/apt-mirror
sudo vi /etc/apt/mirror.list
<研究ノート> Daki - Sat - Trip - River de de ' I I Triiyaum , Verileri Saklayaca Elements , Yeri data ' n An Alll ' nda Ayarl - Paul , Yuum Ayr
set base_path    /data/apt-mirror


deb http://archive.ubuntu.com/ubuntu focal main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu focal main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ focal-updates main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ focal-security main restricted universe multiverse
deb http://archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse
deb-src http://archive.ubuntu.com/ubuntu/ focal-backports main restricted universe multiverse
deb http://archive.canonical.com/ubuntu focal partner
deb-src http://archive.canonical.com/ubuntu focal partner
deb https://download.ceph.com/debian-pacific/ focal main restricted universe multiverse
ve Mirrar ' Lamay ' s Ba ' t Lat Trip ' Yoruz
sudo apt-mirror
ビルトミネルス・ルル
fatlan@u20-repo:~$ ls /data/apt-mirror/mirror/
archive.canonical.com  archive.ubuntu.com  download.ceph.com
YIp - Astro - Lu - Land - M .
sudo vi /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>
Servisi baラタル語
sudo systemctl restart proftpd.service
EdLimでは、私はミラーPath ' Lerini FTP I .
sudo mount --bind /opt/apt-mirror/mirror/archive.ubuntu.com/  /srv/ftp/
CEPH Iは、inです;
sudo mkdir -r /srv/ftp/ceph
sudo mount --bind /opt/apt-mirror/mirror/download.ceph.com/  /srv/ftp/ceph/
デビアンve私は
sudo mkdir -r /srv/ftp/debian
sudo mkdir -r /srv/ftp/pardus
sudo mount --bind /opt/apt-mirror/mirror/deb.debian.org/  /srv/ftp/debian/
sudo mount --bind /opt/apt-mirror/mirror/depo.pardus.org.tr/  /srv/ftp/pardus/
"マウント""df - h "コウールラール・イ・ドゥ・ドゥルムム・ゲン・ディ・ザレレイビリシナジン
シュンIMDI crontab 'を使用します.

『ラ・クルオン・タラフ・ナ・アル・アール・ア・マイアビアリア』、Fstab Kullanabilirsiniz ya - da al al - c c didinleri en ba
crontab -e
@reboot sleep 5
@reboot sudo mount --bind /opt/apt-mirror/mirror/archive.ubuntu.com/  /srv/ftp/
@reboot sudo mount --bind /opt/apt-mirror/mirror/download.ceph.com/  /srv/ftp/ceph/
@reboot sudo mount --bind /opt/apt-mirror/mirror/deb.debian.org/  /srv/ftp/debian/
@reboot sudo mount --bind /opt/apt-mirror/mirror/depo.pardus.org.tr/  /srv/ftp/pardus/
0  2  *  *  *  sudo /usr/bin/apt-mirror >> /data/apt-mirror/mirror/archive.ubuntu.com/ubuntu/apt-mirror.log
シュンimdiデapache 2 ' yi yapの土地の土地のral m .ベンのデフォルトの設定.
sudo vi /etc/apache2/sites-enabled/000-default.conf
<VirtualHost *:80>
        ServerAdmin webmaster@localhost
        DocumentRoot /srv/ftp/

        <Directory "/srv/ftp">
            Options Indexes MultiViews
            AllowOverride None
            Require all granted
        </Directory>

        ErrorLog ${APACHE_LOG_DIR}/error.log
        CustomLog ${APACHE_LOG_DIR}/access.log combined

</VirtualHost>

を使って
Synece apt鏡Yerine dosyalarは、iを得ます.
sudo mkdir -p /data/apt-mirror/ubuntu
rsync -a rsync://archive.ubuntu.com/ubuntu /data/apt-mirror/ubuntu

#rsync bant genişliği belirlemek için(bayt olarak ölçer) --bwlimit=256 ve indirmenin ilerlemesini görmek için --progress parametrelerini rsync komutuna ekleyebilirsiniz.
Yans - en y y - g g nn - Tutmak I se inse adresindeki haz ̄r scripti ("/usr/local/bin/syncther ubuntuchen mirror . sh ") kullanabilirsinz
crontab -e
0 2 * * * /usr/local/bin/sync-ubuntu-mirror.sh > /dev/null 2> /dev/null
https://wiki.ubuntu.com/Mirrors/Scripts
Wgetで
sudo mkdir -p /data/apt-mirror/ubuntu
cd /data/apt-mirror/ubuntu
wget -r -nH --no-parent http://archive.ubuntu.com/ubuntu/

#isterseniz indirilen kısımlardan belli dosya ve versiyonlu yapıları exclude edebilirsiniz. --reject="index.html*" --reject="*-dbg*" --reject="*13.2.0*"
彼女は彼女のseferinde Indirmeleri BAを使用してください.

セント・アレフ
sudo vi /etc/apt/sources.list
deb http://10.10.10.203/ubuntu/ focal-updates main restricted universe multiverse
deb-src http://10.10.10.203/ubuntu/ focal-updates main restricted universe multiverse

deb http://10.10.10.203/ubuntu/ focal-security main restricted universe multiverse
deb-src http://10.10.10.203/ubuntu/ focal-security main restricted universe multiverse

deb http://10.10.10.203/ubuntu/ focal-backports main restricted universe multiverse
deb-src http://10.10.10.203/ubuntu/ focal-backports main restricted universe multiverse

deb http://10.10.10.203/ubuntu focal partner
deb-src http://10.10.10.203/ubuntu focal partner

deb http://10.10.10.203/ubuntu focal main restricted universe multiverse
deb-src http://10.10.10.203/ubuntu focal main restricted universe multiverse

deb http://10.10.10.203/ceph/debian-pacific/ focal main
fatlan@u20-repo-client:~$ sudo apt update
Hit:1 http://10.10.10.203/ubuntu focal-updates InRelease
Hit:2 http://10.10.10.203/ubuntu focal-security InRelease
Hit:3 http://10.10.10.203/ubuntu focal-backports InRelease
Get:4 http://10.10.10.203/ubuntu focal InRelease [265 kB]
Hit:5 http://10.10.10.203/ceph/debian-pacific focal InRelease
Fetched 265 kB in 1s (345 kB/s)
Reading package lists... Done
Building dependency tree
Reading state information... Done
74 packages can be upgraded. Run 'apt list --upgradable' to see them.