Heholord / FalconStats

MIT License
446 stars 20 forks source link

FalconStats

FalconStats

Original reddit post on /r/unixporn by @hermannbjorgvin

Notification

Requires

Install

  1. Clone into some Folder

    git clone https://github.com/Heholord/FalconStats
  2. Enter Folder

cd FalconStats
  1. Install Globally to get the Binaries avaiable
npm install -g
  1. SymLink into the /etc/update-motd folder in Ubuntu (see).
ln -s falcon-motd /etc/update-motd.d/falconstats
  1. Run the Auto-Configuration

Interactive Configuration

For interactive configuration run

node init.js

You can always view or edit your config in scripts/config.json

Testrun your motd

falcon-motd

Run scripts

You can run all scripts configured in the scripts/config.json using

node start.js

If you want to run them individually, have a look here:

For nodejs files (*.js):

node scripts/[script].js

For shell scripts files (*.sh):

bash scripts/[script].sh
# or
sh scripts/[script].sh
# or
cd scripts
./[script].sh

Note: hddtemp may require root privileges. It defaults to using sudo. Adding hddtemp to your user as a NOPASSWD command is one way to make it work.

Future wishes and pull request offers

If you send me a pull request I offer you to name your github repo next to the feature you have implemented

We are better together