This script will download and seed a Debian CD image with BitTorrent (communication protocol) by using webtorrent-cli NodeJS package.
The download location is the /tmp
folder. By using the tmpfs file system, it strives for performance and no HDD/SSD wear.
- NodeJS
- NPM
sudo apt update
sudo apt install nodejs npm -y
git clone --depth 1 https://github.com/binarweb/Debian-Netinst-CD-torrent-seeder/blob/master/debian-netinstaller-cd-torrent-seeder.sh
cd debian-netinstaller-cd-torrent-seeder
chmod u+x debian-netinstaller-cd-torrent-seeder.sh
Edit the debian-netinstaller-cd-torrent-seeder.sh
file and change TORRENT_URL
to match the latest version of Debian Netinst CD available at https://www.debian.org/CD/torrent-cd/.
./debian-netinstaller-cd-torrent-seeder.sh