项目作者: BorisOrbis

项目描述 :
Pi hole shell admin
高级语言: Python
项目地址: git://github.com/BorisOrbis/pihole-shell-admin.git
创建时间: 2019-05-08T14:44:51Z
项目社区:https://github.com/BorisOrbis/pihole-shell-admin

开源协议:GNU General Public License v3.0

下载


PI hole shell admin

PiHole Admin is used when the web admin is not working or to shut down RPi from shell.
When starting use ‘python3 piadmin.py’ or ‘piadmin.sh’.

Pi-hole is a Linux network-level advertisement and Internet tracker blocking application which acts as a DNS sinkhole (and optionally a DHCP server), intended for use on a private network. It is designed for use on embedded devices with network capability, such as the Raspberry Pi, but it can be used on other machines running Linux and cloud implementations.

Pi-hole has the ability to block traditional website adverts as well as adverts in unconventional places, such as smart TVs and mobile operating system adverts.

Install with:

  1. git clone https://github.com/BorisOrbis/pihole-shell-admin.git

If you want to start it when shell starts edit ‘/etc/bash.bashrc’:

  1. sudo nano /etc/bash.bashrc

and enter this lines to the end of the file.

  1. if [[ -n $SSH_CONNECTION ]] ; then
  2. echo "Loading PiHole admin..."
  3. ./run.sh
  4. fi

Then move run.sh to /home/pi and set execute permission on your script using chmod command

  1. chmod +x run.sh