Original reddit post on /r/unixporn by @hermannbjorgvin
Clone into some Folder
git clone https://github.com/Heholord/FalconStats
Enter Folder
cd FalconStats
npm install -g
/etc/update-motd
folder in Ubuntu (see).ln -s falcon-motd /etc/update-motd.d/falconstats
For interactive configuration run
node init.js
You can always view or edit your config in scripts/config.json
falcon-motd
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.
If you send me a pull request I offer you to name your github repo next to the feature you have implemented