DaemonForums  

Go Back   DaemonForums > Miscellaneous > Off-Topic

Off-Topic Everything else.

Reply
 
Thread Tools Display Modes
  #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
  #2   (View Single Post)  
Old 30th June 2010
jb_daefo jb_daefo is offline
Spam Deminer
 
Join Date: May 2008
Posts: 303
Default

Two ways bsdstats.org may be useful... to bsd
users and even to those before install wishing to
investigate hardware...

if/when the "ports" tab is fixed
For instance, when it was working I could see that I was
practically the only one reporting the use of
/glclock/; but other ports showed as being used that
one could investigate.
Additionally, it shows chipsets in use. (Persons wishing the
explicit name of an intel nic (used) that would probably
reliably work, etc).
__________________
FreeBSD 13-STABLE
Reply With Quote
  #3   (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
Default

@jb_daefo

Some information about other users hardware MAY be useful, but there is no data if it even works on FreeBSD, how it works or if its only present in the user's computer and user uses it on the other operating system (dual boot), or do not use it at all.
__________________
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
  #4   (View Single Post)  
Old 30th June 2010
Carpetsmoker's Avatar
Carpetsmoker Carpetsmoker is offline
Real Name: Martin
Tcpdump Spy
 
Join Date: Apr 2008
Location: Netherlands
Posts: 2,243
Default

The distrowatch site expects to be monitoring the web browser their visitors use. Not a bunch of $X fanboys artificially pushing their OS/browser to the highest possible position.
IMHO this is stats poisoning ...
__________________
UNIX was not designed to stop you from doing stupid things, because that would also stop you from doing clever things.
Reply With Quote
  #5   (View Single Post)  
Old 1st July 2010
TerryP's Avatar
TerryP TerryP is offline
Arp Constable
 
Join Date: May 2008
Location: USofA
Posts: 1,547
Default

I agree with vermaden, that it isn't cheating: although I would use a cookie excepting perl script and a more robot-looking UA out of courtesy to the webmaster. As opposed to impersonating a *real* human user. Heck, my blog gets enough hits from Google-bot .

The problem is the temptation to network a couple hundred BSD boxes and hit distrowatch with each of them X times per second over cron jobs -- "Everyone says FreeBSD is a minority, but there's still enough users to crash distrowatch!" Boy, that would look cool.


Shame such things go against my sense of honour :-(.
__________________
My Journal

Thou shalt check the array bounds of all strings (indeed, all arrays), for surely where thou typest ``foo'' someone someday shall type ``supercalifragilisticexpialidocious''.
Reply With Quote
  #6   (View Single Post)  
Old 9th July 2010
graudeejs's Avatar
graudeejs graudeejs is offline
Real Name: Aldis Berjoza
ISO Quartermaster
 
Join Date: Jul 2008
Location: Riga, Latvia
Posts: 589
Default

/etc/crontab
Code:
0 20 * * * nobody /bin/sh -c "export HTTP_USER_AGENT=\"Opera/9.80 (X11; $( uname -spr ); U; en) Presto/2.2.15 Version/10.10\"; /usr/bin/fetch -o /dev/null http://distrowatch.com > /dev/null 2> /dev/null"
Reply With Quote
  #7   (View Single Post)  
Old 9th July 2010
BSDfan666 BSDfan666 is offline
Real Name: N/A, this is the interweb.
Banned
 
Join Date: Apr 2008
Location: Ontario, Canada
Posts: 2,223
Default

This is just silly, if you want to get random usage statistics.. use it, this is an epic time waster.
Reply With Quote
Reply

Thread Tools
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump


All times are GMT. The time now is 12:09 PM.


Powered by vBulletin® Version 3.8.4
Copyright ©2000 - 2024, Jelsoft Enterprises Ltd.
Content copyright © 2007-2010, the authors
Daemon image copyright ©1988, Marshall Kirk McKusick