SourcesList
von detix
- SNIPPET_TEXT:
-
<!DOCTYPE html>
<meta http-equiv="content-type" content="text/html; charset=utf-8">
<meta name="viewport" content="width=device-width, initial-scale=1" />
textarea { white-space: pre; }
window.addEventListener('DOMContentLoaded', sources);
function clean(x) {
x = x.replace(/,+/g, " ");
x = x.replace(/ $/, "");
document.sourceList.list.value = document.sourceList.list.value += x+"\n";
}
function sources() {
document.sourceList.list.value = "";
Link = document.sourceList.mirror.value;
Distribution = document.sourceList.distribution.value;
Arch1 = document.sourceList.arch.value;
Arch = (Arch1 != "") ? '['+Arch1+']' : '';
src = (document.sourceList.src.checked) ? 'src' : '';
contrib = (document.sourceList.contrib.checked) ? 'contrib' : '';
nonfree = (document.sourceList.nonfree.checked) ? 'non-free' : '';
nonfree2 = (document.sourceList.nonfreefirmware.checked) ? 'non-free-firmware' : '';
backports = (document.sourceList.backports.checked) ? 'backports' : '';
out = ["deb", Arch, Link, Distribution, "main", contrib, nonfree, nonfree2];
clean(out.toString());
if (src) { out[0] = 'deb-src'; clean(out.toString()); };
out[0] = '\ndeb'; out[3] = Distribution+'-updates';
clean(out.toString());
if (src) { out[0] = 'deb-src'; clean(out.toString()); };
out[0] = '\ndeb'; out[2] = 'http://deb.debian.org/debian-security/'; out[3] = Distribution+'-security';
clean(out.toString());
if (src) { out[0] = 'deb-src'; clean(out.toString()); };
if (backports) {
out[0] = '\n#deb'; out[2] = Link; out[3] = 'stable-backports'; clean(out.toString());
if (src) { out[0] = '#deb-src'; clean(out.toString()); };
};
}
<body vlink="#006611" link="#006611" alink="#006611">
<input type="button" value="Reset" onClick="document.location.reload(true);">
<a href="https://debgen.github.io"><b> (org Link)
</b></a>
<table style="border: 1px solid black;">
<th colspan="6" style="border-bottom: 1px solid black;">Debian Sources List Generator
</th>
<select type="submit" name="mirror" onchange="sources()">
<option value="http://ftp.at.debian.org/debian/">Austria
</option>
<option value="http://ftp.au.debian.org/debian/">Australia
</option>
<option value="http://ftp.be.debian.org/debian/">Belgium
</option>
<option value="http://ftp.bg.debian.org/debian/">Bulgaria
</option>
<option value="http://ftp.br.debian.org/debian/">Brazil
</option>
<option value="http://ftp.by.debian.org/debian/">Belarus
</option>
<option value="http://ftp.ca.debian.org/debian/">Canada
</option>
<option value="http://ftp.ch.debian.org/debian/">Switzerland
</option>
<option value="http://ftp.cn.debian.org/debian/">China
</option>
<option value="http://ftp.cz.debian.org/debian/">Czech Republic
</option>
<option value="http://deb.debian.org/debian/" selected="selected">Debian Official Repository
</option>
<option value="http://ftp.de.debian.org/debian/">Germany
</option>
<option value="http://ftp.dk.debian.org/debian/">Denmark
</option>
<option value="http://ftp.ee.debian.org/debian/">Estonia
</option>
<option value="http://ftp.es.debian.org/debian/">Spain
</option>
<option value="http://cdn-fastly.deb.debian.org/debian/">Fastest CDN
</option>
<option value="http://ftp.fi.debian.org/debian/">Finland
</option>
<option value="http://ftp.fr.debian.org/debian/">France
</option>
<option value="http://ftp.fr.debian.org/debian/">France
</option>
<option value="http://ftp.uk.debian.org/debian/">United Kingdom
</option>
<option value="http://ftp.gr.debian.org/debian/">Greece
</option>
<option value="http://ftp.hr.debian.org/debian/">Croatia
</option>
<option value="http://ftp.hu.debian.org/debian/">Hungary
</option>
<option value="http://ftp.ie.debian.org/debian/">Ireland
</option>
<option value="http://ftp.is.debian.org/debian/">Iceland
</option>
<option value="http://kambing.ui.ac.id/debian/">Indonesia (KambingUI Mirror)
</option>
<option value="http://ftp.it.debian.org/debian/">Italy
</option>
<option value="http://ftp.jp.debian.org/debian/">Japan
</option>
<option value="http://ftp.kr.debian.org/debian/">Korea, Republic of
</option>
<option value="http://ftp.lt.debian.org/debian/">Lithuania
</option>
<option value="http://ftp.md.debian.org/debian/">Moldova
</option>
<option value="http://ftp.mx.debian.org/debian/">Mexico
</option>
<option value="http://ftp.nc.debian.org/debian/">New Caledonia
</option>
<option value="http://ftp.nl.debian.org/debian/">Netherlands
</option>
<option value="http://ftp.no.debian.org/debian/">Norway
</option>
<option value="http://ftp.nz.debian.org/debian/">New Zealand
</option>
<option value="http://ftp.pl.debian.org/debian/">Poland
</option>
<option value="http://ftp.pt.debian.org/debian/">Portugal
</option>
<option value="http://ftp.ro.debian.org/debian/">Romania
</option>
<option value="http://ftp.ru.debian.org/debian/">Russian Federation
</option>
<option value="http://ftp.se.debian.org/debian/">Sweden
</option>
<option value="http://ftp.sg.debian.org/debian/">Singapore
</option>
<option value="http://ftp.si.debian.org/debian/">Slovenia
</option>
<option value="http://ftp.sk.debian.org/debian/">Slovakia
</option>
<option value="http://ftp.sv.debian.org/debian/">El Salvador
</option>
<option value="http://ftp.th.debian.org/debian/">Thailand
</option>
<option value="http://ftp.tr.debian.org/debian/">Turkey
</option>
<option value="http://ftp.tw.debian.org/debian/">Taiwan
</option>
<option value="http://ftp.ua.debian.org/debian/">Ukraine
</option>
<option value="http://ftp.us.debian.org/debian/">United States
</option>
<select type="submit" name="distribution" onchange="sources()">
<option value="bookworm" selected="selected">Debian 12 (bookworm)
</option>
<select type="submit" name="arch" onchange="sources()">
<input name="src" type="checkbox" checked onchange="sources()"> Include Source
<br>
<input name="contrib" type="checkbox" checked onchange="sources()"> Contrib
<br>
<input name="nonfree" type="checkbox" checked onchange="sources()"> Non-Free
<br>
<input name="nonfreefirmware" type="checkbox" checked onchange="sources()"> Non-Free-Firmware
<br><br>
<input name="backports" type="checkbox" onchange="sources()"> Stable Backports (commented out)
<br><br>
Quellcode
Hier kannst du den Code kopieren und ihn in deinen bevorzugten Editor einfügen. PASTEBIN_DOWNLOAD_SNIPPET_EXPLAIN