Code Monkey home page Code Monkey logo

linuxsetup's Introduction

LinuxSetup

Place for my Linux scripts and files

The names will generally give you a good clue as to where they go... If you want to use these, awesome.

You should know what everything does before using any of these files. These things may harm your systems. USE AT YOUR OWN RISK! I take no responsibility if these things break anything. Except if they break the entire universe. Because that's god level, and I'll claim that.

01-aesix

This file must be in "/etc/update-motd.d/" must be executable, and must be the only executable script running on ssh login for aesthetic purposes. Additional work will be needed to make it work with multiple IPs. I only have 1 WAN routable IP (1 each, v4 and v6) and as such, this script works perfectly fine for my needs.

This script requires an additional file to be located at "~/ssh-motd" for which the user can alter.
Alternatively, the ssh-motd file can be hosted in a non-user area, the script re-directed to it.
This file is used by me for the welcome section. If using a global file, the $USERNAME variable and scripts can be commented out.

This file uses a 61 charecter width, so it displays nicely on my Note 8. The ssh-motd file should also use 61 char width, to maintain aesthetics.

ssh-motd

This is a simple text file, with no scripting support. It is read by 01-aesix to fill the welcome section. This has been added as a user file so the user can use it as a reminder section, or to leave a note for other persons with account access. This can be hosted in a non-user global area, with minor changes to the 01-aesix script, to disallow user changes. This goes against the spirit, however :)

ssh-banner

Will not be displayed on authenticated logins provided 01-aesix motd script is being used. Should remain after connection close on clients which support that. This simply displays a message to users who fail to authenticate, either due to wrote username, password, or no authentication methods available for the user (such as disabling root login)

##Some useful links: https://misc.flogisoft.com/bash/tip_colors_and_formatting

linuxsetup's People

Contributors

aesix avatar

Watchers

 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.