This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
While compiling my own unbound, with redis cache support, I bumped into this: | |
configure: error: Cannot find 'python' in your system path. You can use the environment variable 'PYTHON_VERSION=version_number' for an explicit version. | |
So I did: | |
PYTHON_VERSION=3 ./configure --build=x86_64-linux-gnu --prefix=/usr --includedir=${prefix}/include --mandir=${prefix}/share/man --infodir=${prefix}/share/info --sysconfdir=/etc --localstatedir=/var --disable-option-checking --disable-silent-rules --libdir=${prefix}/lib/x86_64-linux-gnu --runstatedir=/run --disable-maintainer-mode --disable-dependency-tracking --with-pythonmodule --with-pyunbound --enable-subnet --enable-dnstap --enable-systemd --with-libnghttp2 --with-chroot-dir= --with-dnstap-socket-path=/run/dnstap.sock --disable-rpath --with-pidfile=/run/unbound.pid --with-libevent --enable-tfo-client --with-libhiredis --with-rootkey-file=/var/lib/unbound/root.key --disable-flto --enable-cachedb --enable-tfo-server | |
which worked. | |
I now run blocky, unbound and redis-s |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/sbin/nft -f | |
flush ruleset | |
# Define NAT table for IPv4 | |
table ip nat { | |
chain prerouting { | |
type nat hook prerouting priority -100; | |
policy accept; | |
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# Check if jq is installed | |
if ! command -v jq &> /dev/null; then | |
echo "Error: jq is not installed. Please install jq using 'sudo apt install jq'" | |
exit 1 | |
fi | |
# Source the dnsmasq static DHCP list | |
static_leases=$(cat /etc/dnsmasq.d/04-pihole-static-dhcp.conf) |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
# BE SURE TO INSTALL dos2unix, wget, sed (apt install dos2unix wget sed -y) and change these to your preferences: | |
WHITELIST_URL='https://jult.net/whitelist.txt' | |
WHITELIST_URLX='https://raw.githubusercontent.com/anudeepND/whitelist/master/domains/whitelist.txt' | |
CUSTOM_LIST='/root/io/whitey' | |
# Give your txt file a name, this will have the domains that this script will whitelist into pi-hole | |
WHITELIST_FILE_NAME='wlresult' | |
wget -qO - --limit-rate=1500k "$WHITELIST_URL" > /tmp/white1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
echo "\n\n--- Killing Stupid Adobe Auto Load Crap ---\n\n" | |
launchctl unload -w /Library/LaunchAgents/com.adobe.AdobeCreativeCloud.plist | |
launchctl unload -w /Library/LaunchAgents/com.adobe.AAM.Updater-1.0.plist | |
echo "\n\n--- Done! ---\n\n" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
apt install rsyslog curl wget mc gpg htop multitail chrony nginx php-fpm rsync php-sqlite3 dnsutils unzip libio-socket-ssl-perl libcrypt-ssleay-perl git perl iptables libnet-libidn-perl libio-socket-inet6-perl libsocket6-perl ipset libwww-perl lsb-release bash debhelper apt-transport-https rsync ssh openssh-server git autoconf automake libtool build-essential flex bison software-properties-common dirmngr sudo | |
curl -sSL https://install.pi-hole.net | bash | |
apt install unbound | |
wget https://www.internic.net/domain/named.root -qO- | sudo tee /var/lib/unbound/root.hints |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
wget -qO - --limit-rate=1500k https://dbl.oisd.nl/whitelist2.txt > /tmp/white | |
sleep 2 | |
wget -qO - --limit-rate=1500k https://www.technoy.de/lists/whitelist.txt >> /tmp/white | |
sleep 2 | |
wget -qO - --limit-rate=1500k https://raw.githubusercontent.com/raghavdua1995/DNSlock-PiHole-whitelist/master/whitelist.list >> /tmp/white | |
sleep 2 | |
wget -qO - --limit-rate=1500k https://raw.githubusercontent.com/anudeepND/whitelist/master/domains/referral-sites.txt >> /tmp/white | |
sleep 2 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
find /etc -type f -name "php.ini" -exec sed -i 's/output_buffering/;output_buffering/g' {} + | |
sudo -u www-data sed -i "s/output_buffering=.*/output_buffering='Off'/" /var/www/nextcloud/.user.ini | |
sudo -u www-data php /var/www/nextcloud/occ app:disable survey_client | |
sudo -u www-data php /var/www/nextcloud/occ app:disable firstrunwizard | |
sudo -u www-data php /var/www/nextcloud/occ app:enable admin_audit | |
sudo -u www-data php /var/www/nextcloud/occ app:enable files_pdfviewer | |
sudo -u www-data php /var/www/nextcloud/occ maintenance:mode --on | |
nohup chown -R www-data:www-data /var/www/nextcloud & |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
if ($request_method = 'OPTIONS') { | |
add_header 'Access-Control-Allow-Origin' '*'; | |
add_header 'Access-Control-Allow-Methods' 'GET, POST, OPTIONS'; | |
# | |
# Custom headers and headers various browsers *should* be OK with but aren't | |
# | |
add_header 'Access-Control-Allow-Headers' 'DNT,User-Agent,X-Requested-With,If-Modified-Since,Cache-Control,Content-Type,Range'; | |
# | |
# Tell client that this pre-flight info is valid for 20 days | |
# |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
apt purge apache2 apache2-bin apache2-data apache2-utils -y | |
apt clean all -y | |
apt update && apt upgrade && apt autoremove -y | |
apt-mark hold apache2 apache2-bin apache2-data apache2-utils | |
exit 0 |
NewerOlder