View Single Post
  #1   (View Single Post)  
Old 30th June 2010
vermaden's Avatar
vermaden vermaden is offline
Administrator
 
Join Date: Apr 2008
Location: pl_PL.lodz
Posts: 1,056
Cool Something More Revelant then BSDSTATS.org

... recalling the recent thread about BSD usage statistics:
http://forums.freebsd.org/showthread.php?t=14522

Generally http://bsdstats.org is only known by BSD users (and definitely not by all of them), so even having BIG stats out there is more or less pointless.

But there is other way to 'impress' other people with BSD stats ... http://distrowatch.com portal. It mainly focuses on Linux distributions but it also gathers stats for BSDs and OpenSolaris/Solaris 'distributions'.

First we would need to add www/lynx package (it does not need x11 dependency as www/links):
# pkg_add -r lynx

Having this simple line in all machines attached to network for 24/7 will add actual BSD users/machines count to DistroWatch portal stats:
0 4 * * * /usr/local/bin/lynx -dump -useragent="Lynx $( uname -spr )" http://distrowatch.com > /dev/null

Laptop users will propably have their system up and running in different times of the day/night, so it would be better to put such line into the /etc/rc.local file, so their system will 'send' stats at boot:
/usr/local/bin/lynx -dump -useragent="Lynx $( uname -spr )" http://distrowatch.com > /dev/null &

Such 'lynx dump' will create that line in the logs:
8.8.8.8 - - [30/Jun/2010:14:15:24 +0200] "GET / HTTP/1.0" 200 75 "-" "Lynx FreeBSD 8.0-RELEASE-p3 amd64"

... so it definitely works.

We can even put our favorite browser to increase its 'stats':
% lynx -dump -useragent="Opera/9.80 (X11; $( uname -spr ); U; en) Presto/2.2.15 Version/10.00" http://distrowatch.com

... and here is the 'opera' result:
8.8.8.8 - - [30/Jun/2010:14:19:21 +0200] "GET / HTTP/1.0" 200 75 "-" "Opera/9.80 (X11; FreeBSD 8.0-RELEASE-p3 amd64; U; en) Presto/2.2.15 Version/10.00"

Some may say 'isnt that cheating?', definitely not, we only appear one enter per one machine a day, and this DistroWatch stats are about that, 'hits per day' count about various operating systems.
__________________
religions, worst damnation of mankind
"If 386BSD had been available when I started on Linux, Linux would probably never had happened." Linus Torvalds

Linux is not UNIX! Face it! It is not an insult. It is fact: GNU is a recursive acronym for “GNU's Not UNIX”.
vermaden's: links resources deviantart spreadbsd
Reply With Quote