Linux Counter Logo Linux Counter Client Scripts

This section contains scripts that can be run on a Linux box to ease the task of registering with the Linux Counter, and of keeping a registration up to date.

Machine Update

This script registers or updates a machine's info in the counter. The info registered will show up in the list of machines on your homepage.

Instructions for use:

YOU DO NOT NEED TO RUN THIS AS ROOT. Running it as "any random user" is MUCH better practice. The user ID must only be able to send mail and write to its own home directory.

Here's what running machine-update -i looks like:


prompt> machine-update -i
Here you can specify some info that the script can't know for itself
Your Linux Counter reg#, if any [2]:
Your machine's counter reg#, if any [2345]:
Here is what the program has found:
bogomips   : 35.84
accounts   : 8
name       : dokka.maxware.no
kernel     : 2.0.35
users      : 0
cpu        : 586/90 (bogo 586)
memory     : 48
mailer     : sendmail
disk       : 1851
Do you want to override some of the found values? [no]:
--------------------------------------------------------
This is what will be sent to the Linux Counter if you
run the program with the -m switch. Now, NOTHING IS SENT
--------------------------------------------------------
From: hta
To: machine-registration@counter.li.org
Subject: machine-update for dokka.maxware.no

//MACHINE
accounts: 8
bogomips: 35.84
cpu: 586/90 (bogo 586)
disk: 1851
kernel: 2.0.35
key: 2345
mailer: sendmail
memory: 48
method: machine-update version 0.09
name: dokka.maxware.no
owner: 2
uniqueid: 290176264
uptime: 45 days,  2:22
users: 0
//END
prompt>

All the info sent to the counter is also stored in the file "$HOME/.linuxcounter/<machine>. You can edit the info you entered by hand by running "machine-update -i".

If you have any trouble, mail the program's output, the top few lines of the script, and any files in $HOME/.linuxcounter to

For the truly adventorous, there's always a beta version available.

Happy updating!