Инструменты пользователя

Инструменты сайта

  • Показать страницу
  • История страницы
  • Ссылки сюда
  • Оставить на чай
  • Экспорт в PDF
  • Наверх

  • software:linux_server:local_or_private_ubuntu_mirror

    Различия

    Показаны различия между двумя версиями страницы.

    Ссылка на это сравнение

    Предыдущая версия справа и слеваПредыдущая версия
    Следующая версия
    Предыдущая версия
    software:linux_server:local_or_private_ubuntu_mirror [2024/06/03 09:32] – [Скрипт mirrorkernel.sh] vladpolskiysoftware:linux_server:local_or_private_ubuntu_mirror [2024/08/02 23:09] (текущий) – [Настройка клиенских системы] vladpolskiy
    Строка 164: Строка 164:
     {{:software:linux_server:repo_ubuntu_20.png?|}} {{:software:linux_server:repo_ubuntu_20.png?|}}
     \\   \\  
     +Cron – планировщик задач. Если подробнее, то это утилита, позволяющая выполнять скрипты на сервере в назначенное время с заранее определенной периодичностью.
     +\\  
     +<file>
     +sudo crontab -e
     +</file>
     +\\  
     +Select an editor.  To change later, run 'select-editor'.
     +  1. /bin/nano        <---- easiest
     +  2. /usr/bin/vim.basic
     +  3. /usr/bin/vim.tiny
     +  4. /bin/ed
      
     +Choose 1-4 [1]: 1
     +------------------------
     +Для nano выберем 1
     +\\  
     +<file>
     +0 0 1 * * /home/alisa/repo/scripts/mirrorkernel.sh
     +</file>
     +\\  
     +запускать скрипт 1 числа каждого месяца
     +\\  
     +  * См. подробнее о [[https://timeweb.com/ru/community/articles/chto-takoe-cron|Cron и crontab]]
     +  * [[https://crontab.cronhub.io/|Генератор выражений Cron от Cronhub ]]
     +\\  
     +{{:software:linux_server:repo_ubuntu_21.png?|}}
     +\\  
     =====Настройка доступа к зеркалу===== =====Настройка доступа к зеркалу=====
     Создадим символическую ссылку из /home/alisa/repo/debmirror/amd64 на /var/www/ubuntu. Создадим символическую ссылку из /home/alisa/repo/debmirror/amd64 на /var/www/ubuntu.
    Строка 216: Строка 242:
     deb-src http://archive.canonical.com/ubuntu/ jammy partner deb-src http://archive.canonical.com/ubuntu/ jammy partner
     </file> </file>
    -{{ :software:linux_server:debmirroramd64.sh.txt |debmirroramd64.sh.txt}}+ 
     +=====Настройка клиенских системы===== 
     +<color #22b14c> Просмотреть все репозитории:</color> 
     +<code> 
     +sudo nano /etc/apt/sources.list 
     +</code> 
     +<color #22b14c>Они также могут находиться в одном из файлов в папке</color> **/etc/apt/sources.list.d/** 
     +{{:software:nas:rsync_mirror_dsm_53.png?|}} 
     +<color #22b14c>Сделаем архивную копию нашего оригинального файла sources.list</color> 
     +<code> 
     +sudo cp /etc/apt/sources.list /etc/apt/sources.list.backup 
     +</code> 
     +<details> 
     +<summary><color #22b14c>См. запись оригинального файла sources.list</color></summary> 
     +<code> 
     +#deb cdrom:[Ubuntu 22.04 LTS _Jammy Jellyfish_ - Release amd64 (20220419)]/ jammy main restricted 
     + 
     +# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to 
     +# newer versions of the distribution. 
     +deb http://ru.archive.ubuntu.com/ubuntu/ jammy main restricted 
     +# deb-src http://ru.archive.ubuntu.com/ubuntu/ jammy main restricted 
     + 
     +## Major bug fix updates produced after the final release of the 
     +## distribution. 
     +deb http://ru.archive.ubuntu.com/ubuntu/ jammy-updates main restricted 
     +# deb-src http://ru.archive.ubuntu.com/ubuntu/ jammy-updates main restricted 
     + 
     +## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu 
     +## team. Also, please note that software in universe WILL NOT receive any 
     +## review or updates from the Ubuntu security team. 
     +deb http://ru.archive.ubuntu.com/ubuntu/ jammy universe 
     +# deb-src http://ru.archive.ubuntu.com/ubuntu/ jammy universe 
     +deb http://ru.archive.ubuntu.com/ubuntu/ jammy-updates universe 
     +# deb-src http://ru.archive.ubuntu.com/ubuntu/ jammy-updates universe 
     + 
     +## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu 
     +## team, and may not be under a free licence. Please satisfy yourself as to 
     +## your rights to use the software. Also, please note that software in 
     +## multiverse WILL NOT receive any review or updates from the Ubuntu 
     +## security team. 
     +deb http://ru.archive.ubuntu.com/ubuntu/ jammy multiverse 
     +deb http://ru.archive.ubuntu.com/ubuntu/ jammy multiverse 
     +# deb-src http://ru.archive.ubuntu.com/ubuntu/ jammy multiverse 
     +deb http://ru.archive.ubuntu.com/ubuntu/ jammy-updates multiverse 
     +# deb-src http://ru.archive.ubuntu.com/ubuntu/ jammy-updates multiverse 
     + 
     +## N.B. software from this repository may not have been tested as 
     +## extensively as that contained in the main release, although it includes 
     +## newer versions of some applications which may provide useful features. 
     +## Also, please note that software in backports WILL NOT receive any review 
     +## or updates from the Ubuntu security team. 
     +deb http://ru.archive.ubuntu.com/ubuntu/ jammy-backports main restricted universe multiverse 
     +# deb-src http://ru.archive.ubuntu.com/ubuntu/ jammy-backports main restricted universe multiverse 
     + 
     +deb http://security.ubuntu.com/ubuntu jammy-security main restricted 
     +# deb-src http://security.ubuntu.com/ubuntu jammy-security main restricted 
     +deb http://security.ubuntu.com/ubuntu jammy-security universe 
     +# deb-src http://security.ubuntu.com/ubuntu jammy-security universe 
     +deb http://security.ubuntu.com/ubuntu jammy-security multiverse 
     +# deb-src http://security.ubuntu.com/ubuntu jammy-security multiverse 
     + 
     +# This system was installed using small removable media 
     +# (e.g. netinst, live or single CD). The matching "deb cdrom" 
     +# entries were disabled at the end of the installation process. 
     +# For information about how to configure apt package sources, 
     +# see the sources.list(5) manual. 
     +</code> 
     +</details> 
     + 
     +<color #22b14c>Удалим подключенные репозитории, замени их на наше зеркало и сохраним файл:</color> 
     +<code> 
     +deb http://192.168.1.20/ubuntu/ jammy main restricted 
     +deb http://192.168.1.20/ubuntu/ jammy-updates main restricted 
     +deb http://192.168.1.20/ubuntu/ jammy universe 
     +deb http://192.168.1.20/ubuntu/ jammy-updates universe 
     +</code> 
     +{{:software:nas:rsync_mirror_dsm_54.png?|}} 
     +<color #22b14c>Получим обновленные списки пакетов:</color> 
     +<code> 
     +sudo apt-get update 
     +</code> 
     +<color #22b14c>обновить список пакетов.</color> 
     +sudo apt update 
     +{{:software:nas:rsync_mirror_dsm_56.png?|}} 
     +<color #22b14c>обновим пакеты</color> 
     +<code> 
     +sudo apt-get dist-upgrade 
     +</code> 
     +{{:software:nas:rsync_mirror_dsm_57.png?|}} 
     + 
     +<color #22b14c>Удалим подключенные репозитории на машине с Ubuntu 24.04, заменим их на наше зеркало и сохраним файл:</color> 
     +<code> 
     +deb http://192.168.1.20/ubuntu/ noble main restricted 
     +deb http://192.168.1.20/ubuntu/ noble-updates main restricted 
     +deb http://192.168.1.20/ubuntu/ noble universe 
     +deb http://192.168.1.20/ubuntu/ noble-updates universe 
     +</code> 
     + 
     +<details> 
     +<summary><color #22b14c>См. запись полного файла sources.list для Ubuntu 24.04 LTS noble Jellyfish </color></summary> 
     +<code> 
     +#deb cdrom:[Ubuntu 24.04 LTS _noble Jellyfish_ - Release amd64 (20220419)]/ noble main restricted 
     + 
     +# See http://help.ubuntu.com/community/UpgradeNotes for how to upgrade to 
     +# newer versions of the distribution. 
     +deb http://192.168.1.20/ubuntu/ noble main restricted 
     +# deb-src http://192.168.1.20/ubuntu/ noble main restricted 
     + 
     +## Major bug fix updates produced after the final release of the 
     +## distribution. 
     +deb http://192.168.1.20/ubuntu/ noble-updates main restricted 
     +# deb-src http://192.168.1.20/ubuntu/ noble-updates main restricted 
     + 
     +## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu 
     +## team. Also, please note that software in universe WILL NOT receive any 
     +## review or updates from the Ubuntu security team. 
     +deb http://192.168.1.20/ubuntu/ noble universe 
     +# deb-src http://192.168.1.20/ubuntu/ noble universe 
     +deb http://192.168.1.20/ubuntu/ noble-updates universe 
     +# deb-src http://192.168.1.20/ubuntu/ noble-updates universe 
     + 
     +## N.B. software from this repository is ENTIRELY UNSUPPORTED by the Ubuntu 
     +## team, and may not be under a free licence. Please satisfy yourself as to 
     +## your rights to use the software. Also, please note that software in 
     +## multiverse WILL NOT receive any review or updates from the Ubuntu 
     +## security team. 
     +deb http://192.168.1.20/ubuntu/ noble multiverse 
     +deb http://192.168.1.20/ubuntu/ noble multiverse 
     +# deb-src http://192.168.1.20/ubuntu/ noble multiverse 
     +deb http://192.168.1.20/ubuntu/ noble-updates multiverse 
     +# deb-src http://192.168.1.20/ubuntu/ noble-updates multiverse 
     + 
     +## N.B. software from this repository may not have been tested as 
     +## extensively as that contained in the main release, although it includes 
     +## newer versions of some applications which may provide useful features. 
     +## Also, please note that software in backports WILL NOT receive any review 
     +## or updates from the Ubuntu security team. 
     +deb http://192.168.1.20/ubuntu/ noble-backports main restricted universe multiverse 
     +# deb-src http://192.168.1.20/ubuntu/ noble-backports main restricted universe multiverse 
     + 
     +deb http://192.168.1.20/ubuntu noble-security main restricted 
     +# deb-src http://192.168.1.20/ubuntu noble-security main restricted 
     +deb http://192.168.1.20/ubuntu noble-security universe 
     +# deb-src http://192.168.1.20/ubuntu noble-security universe 
     +deb http://192.168.1.20/ubuntu noble-security multiverse 
     +# deb-src http://192.168.1.20/ubuntu noble-security multiverse 
     + 
     +# This system was installed using small removable media 
     +# (e.g. netinst, live or single CD). The matching "deb cdrom" 
     +# entries were disabled at the end of the installation process. 
     +# For information about how to configure apt package sources, 
     +# see the sources.list(5) manual. 
     +</code> 
     +</details> 
     + 
     +{{:software:nas:rsync_mirror_dsm_84.png?|}} 
     +<color #22b14c>Получим обновленные списки пакетов:</color> 
     +<code> 
     +sudo apt-get update 
     +</code> 
     +<color #22b14c>обновить список пакетов.</color> 
     +sudo apt update 
     +{{:software:nas:rsync_mirror_dsm_80.png?|}} 
     +<color #22b14c>обновим пакеты</color> 
     +<code> 
     +sudo apt-get dist-upgrade 
     +</code> 
     + 
     +{{:software:nas:rsync_mirror_dsm_83.png?|}} 
     +=====Дополнения и Файлы===== 
     + 
     +  * {{ :software:linux_server:debmirroramd64.sh.txt |debmirroramd64.sh.txt}}
    software/linux_server/local_or_private_ubuntu_mirror.1717396378.txt.gz · Последнее изменение: 2024/06/03 09:32 — vladpolskiy