Git Product home page Git Product logo

pihole-motd's Introduction

PiHole custom motd - Welcome Banner / legal banner script

This script downloads a custom motd - Welcome Banner / legal banner for the PiHole, also optimized for 5.2inch screens You can choose what you want to have

Info

All of your clean files will be backed up:

  • Old 10-uname in: /etc/backup.$date.10-uname
  • Old motd in: /etc/backup.$date.motd
  • Old sshd_config in: /etc/ssh/backup.$date.sshd_config
  • Old issue.net in: /etc/backup.$date.issue.net

motd-PiHole

Legal Banner

Installation

The simplest way, is to use the motd_helper.sh to install it directly via the Raspberry shell:

bash  <(curl -s https://raw.githubusercontent.com/MxMarl/PiHole-motd/master/motd_helper.sh)

or alternative:

for motd - Welcome Banner:

wget https://raw.githubusercontent.com/MxMarl/PiHole-motd/master/10-uname
sudo mv 10-uname /etc/update-motd.d/
sudo chmod +x /etc/update-motd.d/10-uname
sudo rm /etc/motd
sudo nano /etc/ssh/sshd_config  

Uncomment:

sudo nano /etc/ssh/sshd_config 
#PrintLastLog yes 

in

PrintLastLog no 

or just with sed:

sudo sed -i 's/\#PrintLastLog yes/PrintLastLog no/g' /etc/ssh/sshd_config 

restart sshd with:

sudo systemctl restart sshd

for Legal Banner:

wget https://raw.githubusercontent.com/MxMarl/PiHole-motd/master/issue.net
sudo mv issue.net /etc/issue.net

Uncomment:

sudo nano /etc/ssh/sshd_config 
#Banner none

in

Banner /etc/issue.net

or just with sed:

sudo sed -i 's/\#Banner none/Banner none/g' /etc/ssh/sshd_config 
sudo sed -i 's#Banner none#Banner /etc/issue.net#g' /etc/ssh/sshd_config 

restart sshd with:

sudo systemctl restart sshd

Upcoming:

  • More custom motd
  • More custom legal banners

License

MIT license; see LICENSE file.

pihole-motd's People

Contributors

kymoxis avatar

Stargazers

 avatar

Watchers

 avatar

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.