Hallo zusammen,
ich habe mal wieder ein Problem
Ich benutze meinen Raspberry Pi4 mit Nextcloud. Habe nun zusätzlich Pi-Hole installiert und beides läuft zusammen ohne Probleme. (Abgesehen davon, dass der Vodafone-Router nicht auf die Bedürfnisse angepasst werden kann)
Bin die letzten Tage über Pi-Control gestolpert und fande das ganz interessant. Habe mich weiter recherchiert und habe noch das Grafana entdeckt, installiert und es funktioniert auch, allerdings ist die Konfiguration nicht ganz so wie ich mir das vorgestellt habe.
Nun würde ich gerne RPI-Monitor installieren und bin nach dieser Anleitung vorgegangen Hier
Wenn ich allerding
eingebe erhalte ich diese Fehlermeldung:
E: Typ »<!DOCTYPE« in Zeile 1 der Quellliste /etc/apt/sources.list.d/rpimonitor.list ist unbekannt.
E: Die Liste der Quellen konnte nicht gelesen werden.
Den Inhalt der "rpimonitor.list"-Datei habe ich in den Spoiler gepackt.
Spoiler anzeigen
<!DOCTYPE html>
<!-- Pi-hole: A black hole for Internet advertisements
* (c) 2017 Pi-hole, LLC (https://pi-hole.net)
* Network-wide ad blocking via your own hardware.
*
* This file is copyright under the latest version of the EUPL. -->
<html>
<head>
<meta charset="UTF-8">
<meta name="viewport" content="width=device-width, initial-scale=1, maximum-scale=1"/> <meta name="robots" content="noindex,nofollow"/>
<meta http-equiv="x-dns-prefetch-control" content="off">
<link rel="shortcut icon" href="//http://pi.hole/admin/img/favicon.png" type="image/x-icon"/>
<link rel="stylesheet" href="//http://pi.hole/pihole/blockingpage.css" type="text/css"/>
<title>● goo.gl</title>
<script src="//http://pi.hole/admin/scripts/vendor/jquery.min.js"></script>
<script>
window.onload = function () {
$("#bpBack").removeAttr("href");$("#bpWhitelist").prop("disabled", false);$("#bpWLPassword").attr("placeholder", "Password");$("#bpWLPassword").prop("disabled", false); }
</script>
</head>
<body id="blockpage"><div id="bpWrapper">
<header>
<h1 id="bpTitle">
<a class="title" href="/"></a>
</h1>
<div class="spc"></div>
<input id="bpAboutToggle" type="checkbox"/>
<div id="bpAbout">
<div class="aboutPH">
<div class="aboutImg"/></div>
<p>Open Source Ad Blocker
<small>Designed for Raspberry Pi</small>
</p>
</div>
<div class="aboutLink">
<a class="linkPH" href="https://github.com/pi-hole/pi-hol…ple-explanation"></a>
</div>
</div>
<div id="bpAlt">
<label class="altBtn" for="bpAboutToggle"></label>
</div>
</header>
<main>
<div id="bpOutput" class="hidden"></div>
<div id="bpBlock">
<p class="blockMsg">goo.gl</p>
</div>
<div id="bpHelpTxt"><span/></div>
<div id="bpButtons" class="buttons">
<a id="bpBack" onclick="javascript:history.back()" href="about:home"></a>
<label id="bpInfo" for="bpMoreToggle"></label> </div>
<input id="bpMoreToggle" type="checkbox">
<div id="bpMoreInfo">
<span id="bpFoundIn"><span>1</span>72</span>
<pre id='bpQueryOutput'><span>[16]:</span>https://hostsfile.org/Downloads/hosts.txt
</pre>
<form id="bpWLButtons" class="buttons">
<input id="bpWLDomain" type="text" value="goo.gl" disabled/>
<input id="bpWLPassword" type="password" placeholder="Javascript disabled" disabled/><button id="bpWhitelist" type="button" disabled></button>
</form>
</div>
</main>
<footer><span>Wednesday 10:15 AM, March 25th.</span> Pi-hole v4.4-0-g9e49077 (raspberrypi/127.0.0.1)</footer>
</div>
<script>
function add() {
$("#bpOutput").removeClass("hidden error exception");
$("#bpOutput").addClass("add");
var domain = "goo.gl";
var pw = $("#bpWLPassword");
if(domain.length === 0) {
return;
}
$.ajax({
url: "/admin/scripts/pi-hole/php/add.php",
method: "post",
data: {"domain":domain, "list":"white", "pw":pw.val()},
success: function(response) {
if(response.indexOf("Pi-hole blocking") !== -1) {
setTimeout(function(){window.location.reload(1);}, 10000);
$("#bpOutput").removeClass("add");
$("#bpOutput").addClass("success");
$("#bpOutput").html("");
} else {
$("#bpOutput").removeClass("add");
$("#bpOutput").addClass("error");
$("#bpOutput").html(""+response+"");
}
},
error: function(jqXHR, exception) {
$("#bpOutput").removeClass("add");
$("#bpOutput").addClass("exception");
$("#bpOutput").html("");
}
});
}
$(document).keypress(function(e) {
if(e.which === 13 && $("#bpWLPassword").is(":focus")) {
add();
}
});
$("#bpWhitelist").on("click", function() {
add();
});
</script>
</body></html>
Das besagte DOCTYPE hat laut der Datei etwas mit Pi-Hole zu tun?
Können beide Programme nicht "nebeneinander" zum laufengebracht werden?
Ich meine ich hätte mal was von einem "Container" gelesen, den man braucht wenn man unverträgliche Programme miteinander laufen lassen will? Aber vielleicht verwechsle ich auch gerade etwas.
Vielen Dank schon mal
Grüße Dennis