Code Monkey home page Code Monkey logo

motd's Introduction

motd

This is my personal MOTD, I am accepting contributions now from people who are interested in personalizing their MOTD to make it more interesting. My idea here is to create a minimal motd that has the most amount of information about your system in the least amount of space and gets more verbose only when things fail.

image of motd

My idea for this is to create two column rackmount style layout where each column is 34 characters wide and each unit is 1 line, with 2 spaces between the column this makes the motd 70 characters wide which I found ideal for my personal use.

Here is an illustration of this kind of layout:

[============ 3 unit ============]  [============ 1 unit ============]
[============ 3 unit ============]
[============ 3 unit ============]  [============ 4 unit ============]
                                    [============ 4 unit ============]
[============ 2 unit ============]  [============ 4 unit ============]
[============ 2 unit ============]  [============ 4 unit ============]

[=========================== spanning unit ==========================]

Modules I have created for myself:

  • TLS certificate expiration checker
  • Systemctl services checker
  • APC UPS status indicator
  • Hard disk temperature monitor
  • ZFS zpool space usage

To run this locally you should run the ./10-local-testing file, the ./10-mini-motd file has absolute paths for /etc/update-motd.d/ for running in production.

Take a look at ./10-mini-motd or ./10-local-testing to see how I set configuration parameters, not everything is configurable yet but I am working on it (any help is welcome).

I would also like to thank everyone whos code I used in this project, people on reddit, other repositories, stack overflow snippets.

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.