Користувальницькькі налаштування

Налаштування сайту


debian

Розбіжності

Тут показані розбіжності між вибраною ревізією та поточною версією сторінки.

Посилання на цей список змін

Both sides previous revision Попередня ревізія
Остання ревізія Both sides next revision
debian [2015/06/19 15:41]
wombat [Локальный репозиторий] Import from /var/cache/apt/archive
debian [2015/11/23 22:39]
wombat [Локальный репозиторий] Локальное зеркало
Рядок 154: Рядок 154:
  
 ====== Локальный репозиторий ====== ====== Локальный репозиторий ======
 +
 +===== Кеширующий прокси =====
  
   sudo apt-get install apt-cacher-ng   sudo apt-get install apt-cacher-ng
Рядок 165: Рядок 167:
  
 Открываем в браузере((https://​www.unix-ag.uni-kl.de/​~bloch/​acng/​html/​index.html)) ''​http://​192.168.0.1:​3142/​acng-report.html''​ (где 192.168.0.1 -- IP-адрес кэширующего компьютера в нашей сети) и читаем раздел "​**Import**"​ Открываем в браузере((https://​www.unix-ag.uni-kl.de/​~bloch/​acng/​html/​index.html)) ''​http://​192.168.0.1:​3142/​acng-report.html''​ (где 192.168.0.1 -- IP-адрес кэширующего компьютера в нашей сети) и читаем раздел "​**Import**"​
 +
 +===== Локальное зеркало =====
 +
 +https://​wiki.debian.org/​HowToSetupADebianRepository
 +
 +https://​help.ubuntu.com/​community/​Rsyncmirror
 +
 +https://​www.packtpub.com/​books/​content/​create-local-ubuntu-repository-using-apt-mirror-and-apt-cacher
 +
 +  sudo apt-get install apt-mirror
 +
 +<file bash "/​etc/​apt/​mirror.list">​
 +# apt-mirror configuration file
 +##
 +## The default configuration options (uncomment and change to override)
 +##
 +#
 +set base_path /​media/​STORAGE/​
 +# set mirror_path $base_path/​mirror
 +# set skel_path $base_path/​skel
 +# set var_path $base_path/​var
 +#
 +# set defaultarch <running host architecture>​
 +set nthreads 20
 +#
 +
 +# 8.04 "​hardy"​ i386 mirror
 +deb-i386 http://​us.archive.ubuntu.com/​ubuntu hardy main restricted universe multiverse
 +deb-i386 http://​us.archive.ubuntu.com/​ubuntu hardy-updates main restricted universe multiverse
 +deb-i386 http://​us.archive.ubuntu.com/​ubuntu hardy-security main restricted universe multiverse
 +deb-i386 http://​us.archive.ubuntu.com/​ubuntu hardy-backports main restricted universe multiverse
 +deb-i386 http://​us.archive.ubuntu.com/​ubuntu hardy-proposed main restricted universe multiverse
 +deb-i386 http://​us.archive.ubuntu.com/​ubuntu hardy main/​debian-installer restricted/​debian-installer universe/​debian-installer multiverse/​debian-installer
 +deb-i386 http://​packages.medibuntu.org/​ hardy free non-free
 +
 +# 8.04 "​hardy"​ amd64 mirror
 +deb-amd64 http://​us.archive.ubuntu.com/​ubuntu hardy main restricted universe multiverse
 +deb-amd64 http://​us.archive.ubuntu.com/​ubuntu hardy-updates main restricted universe multiverse
 +deb-amd64 http://​us.archive.ubuntu.com/​ubuntu hardy-security main restricted universe multiverse
 +deb-amd64 http://​us.archive.ubuntu.com/​ubuntu hardy-backports main restricted universe multiverse
 +deb-amd64 http://​us.archive.ubuntu.com/​ubuntu hardy-proposed main restricted universe multiverse
 +deb-amd64 http://​us.archive.ubuntu.com/​ubuntu hardy main/​debian-installer restricted/​debian-installer universe/​debian-installer multiverse/​debian-installer
 +deb-amd64 http://​packages.medibuntu.org/​ hardy free non-free
 +
 +# Cleaning section
 +clean http://​us.archive.ubuntu.com/​
 +clean http://​packages.medibuntu.org/​
 +</​file>​
 +
 +  apt-mirror
 +
 +После этого нужно настроить веб-сервер на выдачу этого каталога по протоколу HTTP
 +
 +  cd /var/www/
 +  sudo ln -s /​media/​STORAGE/​mirror/​us.archive.ubuntu.com/​ubuntu/​ ubuntu\
 +
 +Когда зеркало настроено и работает,​ нужно настроить на клиентах доступ к нему:
 +
 +<file bash "/​etc/​apt/​sources.list">​
 +deb http://​192.168.0.10/​ubuntu hardy main restricted universe multiverse
 +deb http://​192.168.0.10/​ubuntu hardy-updates main restricted universe multiverse
 +deb http://​192.168.0.10/​ubuntu hardy-security main restricted universe multiverse
 +</​file>​
 ====== Сброс пароля MySQL ====== ====== Сброс пароля MySQL ======
  
debian.txt · В останнє змінено: 2015/12/09 19:53 by wombat