alexmyczko / ruptime

poor man’s ruptime
https://wedonthaveaprivacyproblem.com/ruptime
GNU Affero General Public License v3.0
146 stars 7 forks source link

update how to install requirements, and systems tested on #13

Closed kanarelo closed 7 months ago

kanarelo commented 7 months ago

We might need to update the readme file so that it can show how to install the items on specific platforms

Also update the list of systems supported + tested on.

alexmyczko commented 7 months ago

true, for debian/ubuntu, i'm waiting for https://ftp-master.debian.org/new.html

and for macOS i will have a brew once i'm ready: https://github.com/alexmyczko/homebrew-mac (mcrypt is not installable anymore and will be replaced by openssl)

alexmyczko commented 7 months ago

ok for macOS you can do the following

wget https://raw.githubusercontent.com/alexmyczko/homebrew-mac/main/ruptime.rb
brew install ./ruptime.rb

configure the client

$ defaults read ch.aiei.ruptime
{
    HOSTNAMECMD = "echo papaya.local";
    KEY = PUBLICINTERNETRUPTIMEKEYNOTSUITABLEFORPRIVATEDATAYOUHAVEBEENWARNED;
    PORT = 51300;
    SERVER = "bananas.debian.net";
    SPOOL = "/var/spool/ruptime";
}

so run defaults write ch.aiei.ruptime KEY VALUE

update ruptime every minute, https://launchd.info

FILLME

rhw: missing date

rdisk: diskutil list |grep physical |awk '{print $1}'; then diskutil info /dev/disk0 |grep "Disk Size:"

rnet: fix wifi and ethernet output