Version | 0.3.10 (April 2017) |
By | Mun ~ Cameron Munroe |
Website | https://www.cameronmunroe.com |
Github | https://github.com/Munzy/custom_motd |
Custom MOTD is a addition to the regular MOTD system built into most Linux servers / Desktops. It was built by myself to show valuable information right at login, things that the inital MOTD in most system seem to lack.
- vnstat
- wget
Debian based.
wget -qO- https://raw.githubusercontent.com/Munzy/custom_motd/master/inst/deb.sh | bash
Centos based.
wget -qO- https://raw.githubusercontent.com/Munzy/custom_motd/master/inst/centos.sh | bash
Update custom_motd.
wget -qO- https://raw.githubusercontent.com/Munzy/custom_motd/master/inst/upgrade.sh | bash
- Download custom_motd to /usr/bin/custom_motd
- apt-get install ca-certificates
- apt-get install vnstat
- Edit /etc/vnstat.conf
- Change 'Interface "eth0"' to your default interface
- chmod +x /usr/bin/custom_motd
- Edit /etc/profile
- Add custom_motd to the EOF (End of file)
- Download custom_motd to /usr/bin/custom_motd
- apt-get install ca-certificates
- apt-get install vnstat
- Edit /etc/vnstat.conf
- Change 'Interface "eth0"' to your default interface
- chmod +x /usr/bin/custom_motd
- Login into user you wish to have custom_motd installed on
- Edit ~/.profile
- Add custom_motd to the EOF (End of file)
- Repeats steps (7 - 9) as needed for each user.
Example installers can be found under the inst folder.
The IP info shown in the MOTD is your systems default IPs. If you have multiple IPs of the same version it will only show the dafault sytem IP and no others.
We use wget to pull the IP info as it is generally installed by default on all platforms, at least as far as I know.
We pull the IP info from an external source that I run called enjen.net. All connections made to enjen.net are over HTTPS so your data is secure and encrypted. As of current, Feb 2016, it has a A+ rating as per ssllabs.com.
The bandwidth info comes from vnstat. Vnstat is an amazing little tool and will show this months usage.
Total Project | Cameron Munroe ~ Mun |
OS Code | Observium https://github.com/tomzx/observium/blob/svn-trunk/scripts/distro |
ASCII Welcome | http://patorjk.com/software/taag/ |
ASCII Cat | http://www.asciiworld.com/-Cats-.html |
KSM Calculations | https://github.com/tomzx/observium/blob/svn-trunk/scripts/agent-local/ksm |
KSM Calculations | https://gist.githubusercontent.com/wankdanker/1206923/raw/73d864c438022ba8c92381f3eddf61bac6163b9f/ksmstat |
Et Cetera | http://stackoverflow.com/ For being amazing.... |
- Ubuntu 14.04
- Debian 9.0
- Debian 8.0 - 8.8
- Debian 7.0
- Debian 6.0
- Centos 7.1
- Centos 6
- Centos 5 (Minor compatability issue with Act. Logins)
- VestaCP: Breaks some cron functions. (Use single user install to resolve)
- X2GO: Breaks login ability and returns unset TERM. Disable on the account you are using to bypass.
If you find a bug please post on this forum: https://qwdsa.com/c/forums/bug-reports.18/
Give me as much detail as possible so I can diagnose the issue quicker and faster.
If you like my projects, and work then please donate!