- Зеркало архива для kali linux
- Requirements
- Create a User Account for the Mirror
- Create Directories for the Mirror
- Configure rsync
- Configure Your Mirror
- Set Up the SSH Keys
- Set Up cron to Manually Mirror ISO Images
- How to Set Up a Private Kali Linux Mirror
- Как настроить зеркало Kali Linux
- Требования
- Настройка пользователя для зеркала Kali Linux
- Настроить зеркальные каталоги
- Настроить rsync
- Настройка зеркал
- Настройка доступа по SSH
- Связь с Kali.org
- Проблемы с Проблема с зеркалом архива Debian при усатановке kali linux не могу найти прокси сервер который требуется ввести что делать?
- Adding Kali Linux mirrors after offline installation
- Open sources.list and comment all lines with # in front
- Add Official Repo’s only:
- Clean your apt-get
- Зеркало архива для kali linux
- Default Network Repository Value
- Switching Branches/Regular Repositories
- Sources.list Format
- Default Offline Install Values
- Non-Kali Repositories
- Mirrors
- Source Repositories
Зеркало архива для kali linux
The explanations below are of interest to you if you want to contribute a publicly accessible mirror and if you want to integrate it in one of the mirror redirectors (http.kali.org and cdimage.kali.org).
If you want run a private mirror, see the dedicated section at the end.
Requirements
To be an official Kali Linux mirror, you will need a web-accessible server (http required and https if possible too) with lots of disk space, good bandwidth, rsync, and SSH access enabled. As of early 2021, the main package repository is about 1.1 TB and the ISO images repository is about 120 GB but you can expect those numbers to grow regularly. A mirror site is expected to make the files available over HTTP and RSYNC so those services will need to be enabled. FTP access is optional.
Note on “Push Mirroring” — The Kali Linux mirroring infrastructure uses SSH-based triggers to ping the mirrors when they need to be refreshed. This currently takes place 4 times a day.
Create a User Account for the Mirror
If you don’t have yet an account dedicated for the mirrors, create such an account (here we call it “archvsync”):
Create Directories for the Mirror
Create the directories that will contain the mirrors and change their owner to the dedicated user that you just created:
Configure rsync
Next, configure the rsync daemon (enable it if needed) to export those directories:
Configure Your Mirror
Configuration of your web server and FTP server are outside the scope of this article. Ideally, you should export the mirrors at http://yourmirror.net/kali and http://yourmirror.net/kali-images (and do the same for the FTP protocol, if you’re supporting it).
Now comes interesting part: the configuration of the dedicated user that will handle the SSH trigger and the actual mirroring. You should first unpack ftpsync.tar.gz in the user’s account:
Now we need to create a configuration file. We start from a template and we edit at least the MIRRORNAME, TO, RSYNC_PATH, and RSYNC_HOST parameters:
Set Up the SSH Keys
The last step is to setup the .ssh/authorized_keys file so that archive.kali.org can trigger your mirror:
If you have not unpacked the ftpsync.tar.gz in the home directory, then you must adjust accordingly the
/bin/ftpsync path, which is hard-coded in .ssh/authorized_keys .
Now you must send an email to devel@kali.org with all the details concerning your mirrors (including user/port to use for SSH push access, public hostname, etc.) so that you can be added in the main mirror list and so that we can open up your rsync access on archive.kali.org. Please indicate clearly who should be contacted in case of problems (or if changes must be made/coordinated to the mirror setup).
Instead of waiting for the first push from archive.kali.org, you should run an initial rsync with a mirror close to you, using the mirror list linked above to select one. Assuming that you picked ftp.halifax.rwth-aachen.de, here’s what you can run as your dedicated mirror user:
Set Up cron to Manually Mirror ISO Images
The ISO images repository does not use push mirroring so you must schedule a daily rsync run. We provide a bin/mirror-kali-images script, which is ready to use that you can add in the crontab of your dedicated user. You just have to configure etc/mirror-kali-images.conf.
Please adjust the precise time so that archive.kali.org doesn’t get overloaded by too many mirrors at the same time.
How to Set Up a Private Kali Linux Mirror
If you want to setup a private mirror, you can use the same tools as for the public mirror with the following differences:
- you will not be able to use SSH push mirroring for the package repository, instead you have to put
/bin/ftpsync sync:archive:kali in the crontab of the user owning the mirror ( archvsync in the above explanation).
Updated on: 2021-Sep-27
Author: g0tmi1k
Источник
Как настроить зеркало Kali Linux
Главное меню » Kali Linux » Как настроить зеркало Kali Linux
Требования
Чтобы настроить полное зеркало Kali Linux, вам понадобится несколько ресурсов. К ним относятся:
- Доступный веб-сервер с доступом HTTP и HTTP.
- Большое дисковое пространство – на момент написания этой статьи, по словам специалистов по сопровождению Kali Linux, размер репозитория пакетов Kali Linux составлял 1,1 ТБ и быстро расширялся.
- Установленные и запущенные в системе службы HTTP и RSYNC
Настройка пользователя для зеркала Kali Linux
Первым шагом является создание полной учетной записи, предназначенной только для зеркал Kali Linux. Используйте команду adduser:
Настроить зеркальные каталоги
Затем нам нужно настроить каталоги, содержащие зеркала, и назначить разрешения для созданного нами пользователя.
Приведенные выше команды создадут каталоги kali и kali-images и установят право собственности на пользователя, которого мы создали ранее.
Настроить rsync
Следующий шаг включает запуск и настройку службы rsync. Экспортируйте каталоги с помощью команды:
Запуск демона rsync: rsync.
Настройка зеркал
Затем нам нужно экспортировать зеркала в http://domain.com/kali и http://domain.com/kali-images.
Начнем с загрузки и разархивирования архива http://archive.kali.org/ftpsync.tar.gz в каталоге пользователя, созданном ранее.
Настройка доступа по SSH
Последний шаг – настроить авторизованные ключи SSH для archive.kali.org для запуска зеркала.
Связь с Kali.org
После завершения настройки системы отправьте электронное письмо по адресу devel@kali.org, указав всю информацию о ваших зеркалах, включая пользователя, порт для доступа к службе SSH и общедоступное имя хоста. Вы также должны указать, к кому Kali следует обращаться в случае проблем и должны ли применяться какие-либо изменения в соответствии с настройками зеркала.
Оттуда все, что вам нужно сделать, это дождаться первого толчка от archive.kali.org.
Если вы нашли ошибку, пожалуйста, выделите фрагмент текста и нажмите Ctrl+Enter.
Источник
Проблемы с Проблема с зеркалом архива Debian при усатановке kali linux не могу найти прокси сервер который требуется ввести что делать?
дайте совет или пошаговую инструкцию.
да не нужен там прокси. Без прокси репозиторий доступен.
Тому, кто не может самостоятельно поставить и настроить этот дистрибутив, он ему категорически противопоказан.
Советую пользоваться кали виндовс и не париться.
Хм, а вы вот родились и сразу поползли кали ставить, да?
Кали — специализированный дистрибутив. И не для новичков. У него целевая аудитория — не мигранты с винды.
дайте совет или пошаговую инструкцию.
1. Подготовить инсталляционный дистрибутив Windows
2. Загрузиться с него
3. Установить Windows
4. Забыть про Linux как про кошмарный сон
Kali Linux — специализированный дистриб для безопасников, админов и прочих тех, кто в состоянии сам разобраться с проблемами. Новичкам Kali противопоказан категорически. Установив его, Вы не становитесь «мегахацкером» 🙂 «Доспехи не делают рыцаря» (С) Д. Геммел
Источник
Adding Kali Linux mirrors after offline installation
If you installed Kali offline from a CD/DVD or USB (or have chosen not to connect to internet during installation), you probably have an empty sources.list file with just 2 lines on it (CDROM’s). Also if your internet connection is not reliable or too slow to do an update during install, you might’ve chosen a similar installation option. Either way, you won’t get the mirrors or repositories during a hard disk install added to your sources.list file. This will cause issues in the future when seeking new or updated software packages from the Kali repos.This guide shows how to add official Kali Linux mirrors or repositories.
Similar posts exists in this website to troubleshoot other problems which might be worth looking into:
Kali Linux sources.list Repositories page: Official Link
Open sources.list and comment all lines with # in front
Add Official Repo’s only:
Save and close the file.
You can check that the sources have been added and are being used by loading Add/Remove Software from the Sys Tools menu and selecting System -> Software Sources.
Clean your apt-get
STOP: If your Kali Linux apt-get update is slow follow this guide to sort out other issues: How to fix Kali apt-get slow update?
To switch repositories to a different mirror of your choice, follow this guide: How to change repositories to a different mirror?
Источник
Зеркало архива для kali linux
The topic of repositories is always a large one, and comes up frequently. It is an item which people often get wrong and confused with. Please take the time to read the information below and any references which is linked to before acting on anything.
Default Network Repository Value
On a standard, clean install of Kali Linux, with network access, you should have the following entry present in /etc/apt/sources.list :
If the output doesn’t exactly match up to the above output, you may not be able to install any new additional packages or receive updates. This may happen for any number of reasons, such as:
- You have switched your branch.
- Using a different hardcoded mirror.
You will probably want to read the “switching branches” section to alter this.
Since Kali 2020.3, after Kali’s setup is complete, network repositories will be enabled by default, even if there was no network access during installation.
Switching Branches/Regular Repositories
Kali has various different branches to choose from (please take the time to read which one would be the best option for your setup), and you may be able to switch or include additional repositories.
kali-rolling (Default & frequently updated):
kali-last-snapshot (Point release so more “stable” & the “safest”):
kali-experimental (Packages which are under testing — often used with the rolling repository):
Sources.list Format
- Archive is going to be deb (Regular Binary) or deb-src (Source), depending if you want a package or the source of the package.
- Mirror should be http.kali.org/kali as this is our load balancer, which will direct you to best mirror.
- Branch is what version of Kali you wish to use.
- Component is what packages you wish to use, based on the Debian Free Software Guidelines (DFSG). Kali defaults to everything.
Default Offline Install Values
During the Kali setup process, if you don’t have access to a network connection to reach a repository, you will perform an offline installation of Kali Linux. You will be limited to the packages & the version which is on the medium you installed Kali from. This will then configure Kali to continue to use this medium to install packages from, even after Kali has been installed.
This means you will not get any updates to packages, or any new additional tools, which can be frustrating. You can see if you the offline media enabled if your values match up with whats below (or if you want to enable this option):
If your output matches whats above, please see the switching branch section, if you wish to receive updates.
However, if you do have network connection, which has access to network repositories, it will be enabled for you. You don’t need to do anything.
Non-Kali Repositories
If you want to install additional tools and software (such as signal) outside of what Kali has to offer, you may need to include an extra repository for this to happen. Please do not alter /etc/apt/sources.list , as this is used for the Kali Linux Operating System. Any extra tools and software needs to be placed into their own file in the directory /etc/apt/sources.list.d/ (such as /etc/apt/sources.list.d/repo-name.list , replacing repo-name with the mirror name). It is highly recommended that each mirror should be in its own file.
By adding Kali’s repository to a non-Kali OS (such as trying to add Kali to Ubuntu), this will highly increase the chance of your system not working. It may not happen straight away, but without any warning, it may break. We will not be able to offer support (and based on what we have seen over the years, most other OS will not help too).
Likewise, adding other operating system’s repositories into Kali (such as trying to put Ubuntu on Kali), will break your installation. This is the single most common reason why Kali Linux systems break.
If any guides are telling you to do anything else than the above, this is unofficial advice, and completely not supported by Kali Linux. More often than not, users in this case end up doing a reinstall after learning this lesson.
Mirrors
We have a list of official Kali Linux mirrors, as well as a guide on how to setup your own. This may be kept as a local repository which is only accessible on a LAN, or a remote private one, or if you have the ability to, you may wish to share back to the community and make it public allowing for anyone else in your geographical area to benefit from it.
Source Repositories
By using a deb in the repositories, it will allow for binary packages to be downloaded. However, should you require the source to a package (so you can compile the package yourself if you so wish, or look into debugging a problem with a package), you can add deb-src as a extra line in the repositories.
We used kali-rolling for the branch above, but you can select any value you wish.
Updated on: 2021-Sep-27
Author: g0tmi1k
Источник