Coder Social home page Coder Social logo

linuxmotd's Introduction

Dynamic Linux MOTD

Dynamically Generated MOTD for Linux Servers

Compatibility: Debian based Distributions

animated-screenshot

Installation

Clone the github repository

git clone https://github.com/ReidWeb/linuxmotd.git

Run the 'installation' script

cd linuxmotd
sudo ./install.sh

I'd recommend installing to /etc/dynmotd/, if you don't input anything it will default to /etc/dynmotd/. If you decided to use another directory, remember to change the directories below

ASCII Art

In the input prompt, enter the directory to which you want to install the scripts - Defaults to /etc/dynmotd/

Now add some ASCII art by editing the file 'dynmotdart' in the installation directory, ASCII art can be generated at: http://ruletheweb.co.uk/figlet/

Update-Checker Script

Now add a cron job to auto-run the 'update-checker' script

sudo crontab -e

Append the following to the bottom of the file

0 * * * * /etc/dynmotd/update-checker.sh

Setup MOTD to display on connect

Remove the contents of /etc/motd

sudo nano /etc/motd

Remove Default MOTD

Edit the /etc/ssh/sshd_config

sudo nano /etc/ssh/sshd_config  

Replace

PrintLastLog yes
#and
PrintMotd yes

with

PrintLastLog no
#and
PrintMotd no

Then restart the ssh service

sudo /etc/init.d/ssh restart

Modify /etc/pam.d/login

sudo nano /etc/pam.d/login

Comment out the line below

#session    optional   pam_motd.so

Install new script

Modify /etc/profile

sudo nano /etc/profile

Append the following line to the bottom of the file:

/etc/dynmotd/dynmotd.sh

linuxmotd's People

Contributors

pricetx avatar reidweb avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  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.