install pi-hole on osmc

sudo service mediacenter stop
cd /home/osmc/.kodi/userdata
nano guisettings.xml

search services.webserverport and change the port (ex 8080)

sudo service mediacenter start

install dependencies: sudo apt install resolvconf php-cgi php-sqlite3

install pi-hole normally

wget -O

sudo bash

// change admin web server port: sudo nano /etc/lighttpd/lighttpd.conf (server.port = 80)

// sudo lighty-enable-mod fastcgi

// sudo lighty-enable-mod fastcgi-php

run addon myosmc and fix network to get ip from dhcp

sudo nano /etc/pihole/setupVars.conf
update IPv4_address=


daca vrei si safesearch si family filter atunci

mv ./ /usr/local/bin/
chmod a+x /usr/local/bin/ –enable