cancel
Showing results for 
Search instead for 
Did you mean: 

Need DSLstats on RPi headless with Webserver

30FTTC06
Pro
Posts: 2,286
Thanks: 108
Fixes: 4
Registered: ‎18-02-2013

Need DSLstats on RPi headless with Webserver

Next project now I've built and got my new pfsense box running as expected is a headless raspberry pi 2 serving  dslstats via it's or an-other webserver that would be plugged into the second port only on my HG612 which I can connect to via wifi etc. I've no intrest in serving the stats elsewhere.

I tried this a few years ago running dslstats on an Rpi but that was using a full version of the distro then connecting with Screenneedless to say it was less than ideal and very laggy, trying for an hour or so today I can't seem to get the webserver to show any stats running from a VM's own browser. 192.168.1.88:55555 gives a white page while trying to append anything to the end ie *.html or *.txt      gives a page errorIs this a permissions thing ?

permissions.PNG

 

How do I get rid a the damn pink line thing!

38 REPLIES 38
Anonymous
Not applicable

Re: Need DSLstats on RPi headless with Webserver

If you're trying to access the server the you need to use http://192.168.1.88:55555/snrm.html

 

 

30FTTC06
Pro
Posts: 2,286
Thanks: 108
Fixes: 4
Registered: ‎18-02-2013

Re: Need DSLstats on RPi headless with Webserver

Tried all that, still no good. I can see the server running in the background but still no luck.

Not sure if it has anything to do with permissions on Mint anyway.

30FTTC06
Pro
Posts: 2,286
Thanks: 108
Fixes: 4
Registered: ‎18-02-2013

Re: Need DSLstats on RPi headless with Webserver

~/.dslstats $ ls -l
total 52
-rw-r--r-- 1 barclay barclay 2974 Dec 7 20:49 ConnectionStats-2016-12-07-20.49.39.txt
-rw-r--r-- 1 barclay barclay 4442 Mar 13 14:11 dslstats.ini
-rw-r--r-- 1 barclay barclay 1056 Mar 13 13:50 errors1.dat
-rw-r--r-- 1 barclay barclay 11118 Mar 13 13:50 es.data
-rw-r--r-- 1 barclay barclay 1039 Dec 7 20:52 GDotInpData-2016-12-07-20.52.10.txt
-rw-r--r-- 1 barclay barclay 2976 Nov 23 16:28 Stats-2016-11-23-16.28.46.txt
-rw-r--r-- 1 barclay barclay 298 Mar 13 13:50 traffic.ini
-rw-r--r-- 1 barclay barclay 372 Mar 13 13:50 traffic.txt
-rw-r--r-- 1 barclay barclay 556 Dec 7 20:54 Vectoring-2016-12-07-20.54.23.txt
drwxrwxr-x 2 barclay barclay 4096 Mar 13 11:08 webserver
barclay@barclay-VirtualBox ~/.dslstats $ cd webserver
barclay@barclay-VirtualBox ~/.dslstats/webserver $ ls -l
total 504
-rw-r--r-- 1 barclay barclay 326 Mar 13 14:11 bitloading.html
-rw-r--r-- 1 barclay barclay 21456 Mar 13 14:17 bitloading.png
-rw-r--r-- 1 barclay barclay 48890 Mar 13 11:14 bitloading.txt
-rw-r--r-- 1 barclay barclay 881 Mar 13 14:17 combined.html
-rw-r--r-- 1 barclay barclay 336 Mar 13 14:11 connspeed.html
-rw-r--r-- 1 barclay barclay 18583 Mar 13 14:17 connspeed.png
-rw-r--r-- 1 barclay barclay 312 Mar 13 14:11 crc.html
-rw-r--r-- 1 barclay barclay 312 Mar 13 14:11 fec.html
-rw-r--r-- 1 barclay barclay 3096 Mar 13 14:17 fullstats.html
-rw-r--r-- 1 barclay barclay 312 Mar 13 14:11 fullstatstemplate.html
-rw-r--r-- 1 barclay barclay 2958 Mar 13 11:14 fullstats.txt
-rw-r--r-- 1 barclay barclay 18161 Mar 13 12:33 hlog.png
-rw-r--r-- 1 barclay barclay 77025 Mar 13 11:14 hlog.txt
-rw-r--r-- 1 barclay barclay 1055 Mar 13 11:14 pbparams.txt
-rw-r--r-- 1 barclay barclay 20986 Mar 13 12:33 qln.png
-rw-r--r-- 1 barclay barclay 81160 Mar 13 11:14 qln.txt
-rw-r--r-- 1 barclay barclay 312 Mar 13 14:11 ses.html
-rw-r--r-- 1 barclay barclay 314 Mar 13 14:11 snrm.html
-rw-r--r-- 1 barclay barclay 350 Mar 13 14:11 snrmpbdown.html
-rw-r--r-- 1 barclay barclay 14395 Mar 13 14:17 snrmpbdown.png
-rw-r--r-- 1 barclay barclay 344 Mar 13 14:11 snrmpbup.html
-rw-r--r-- 1 barclay barclay 15205 Mar 13 14:17 snrmpbup.png
-rw-r--r-- 1 barclay barclay 17457 Mar 13 14:17 snrm.png
-rw-r--r-- 1 barclay barclay 19463 Mar 13 12:33 snrpertone.png
-rw-r--r-- 1 barclay barclay 70785 Mar 13 11:14 snrpertone.txt
-rw-r--r-- 1 barclay barclay 1098 Mar 13 14:17 stats.html
-rw-r--r-- 1 barclay barclay 286 Mar 13 14:11 statstemplate.html
-rw-r--r-- 1 barclay barclay 812 Mar 13 11:14 stats.txt
-rw-r--r-- 1 barclay barclay 5 Mar 13 11:14 traffic.txt

Anonymous
Not applicable

Re: Need DSLstats on RPi headless with Webserver

@30FTTC06, is it running Apache? If it is make sure it's listening to the correct address and port:

Listen 192.168.1.88:55555

and your <Directory ...> entries allow for connections from your LAN(s).

Order deny,allow
Deny from all
Allow from 192.168.1.1/24

Edit:- These are of course in your /etc/httpd/conf/httpd.conf file

30FTTC06
Pro
Posts: 2,286
Thanks: 108
Fixes: 4
Registered: ‎18-02-2013

Re: Need DSLstats on RPi headless with Webserver

I thought it was all in the package, do I need to configure an apache server then seeing as I don't even know how to configure apache ?

30FTTC06
Pro
Posts: 2,286
Thanks: 108
Fixes: 4
Registered: ‎18-02-2013

Re: Need DSLstats on RPi headless with Webserver

install apache and stuff those configurations in the .conf ?

 

Anonymous
Not applicable

Re: Need DSLstats on RPi headless with Webserver

Well I don't know if Mint (or even Raspbian) has a default HTTP server maybe one of the other guys do. But assuming it doesn't then you need to install it and configure as needed.

I use Arch Linux on Pi as anything with a GUI is wasted when there's SSH.

30FTTC06
Pro
Posts: 2,286
Thanks: 108
Fixes: 4
Registered: ‎18-02-2013

Re: Need DSLstats on RPi headless with Webserver

/etc/apache2 $ ls
apache2.conf conf-available conf-enabled envvars magic mods-available mods-enabled ports.conf sites-available sites-enabled

30FTTC06
Pro
Posts: 2,286
Thanks: 108
Fixes: 4
Registered: ‎18-02-2013

Re: Need DSLstats on RPi headless with Webserver

I don't yet even know if DSLstats runs headless, last time it just complained about no gfx

mssystems
Aspiring Pro
Posts: 290
Thanks: 45
Fixes: 1
Registered: ‎10-08-2007

Re: Need DSLstats on RPi headless with Webserver

Apparently dslstats has it's own integrated web server.  So no, you don't need to install apache - Which can be very easy but is often very complex.

Try running

netstat -nlp | grep 55555

If the above indicates dslstats is listening on an interface you should then be able to connect to and download the home page.

telnet localhost 55555

GET / HTTP/1.1 host:localhost connection:close <cr> <cr>

 

If that is the case, check your firewall configuration.
Anonymous
Not applicable

Re: Need DSLstats on RPi headless with Webserver

OK, looks like it's serving from apache so you'll need to tweak your config file as required. Also do not assume that the HTTPD daemon is running, the easiest way I use is :

top | grep httpd

If it's running you'll see something like this:

442 root      20   0  136.3m   8.3m   0.0  0.1   0:02.28 S  `- httpd                                                                                                                 
  894 http      20   0  426.3m   8.1m   0.0  0.1   0:12.60 S      `- httpd                                                                                                             
  895 http      20   0  426.3m   8.1m   0.0  0.1   0:12.51 S      `- httpd                                                                                                             
  896 http      20   0  426.3m   8.1m   0.0  0.1   0:11.76 S      `- httpd

Otherwise there will be nothing. Just press q to quit regardless of the output.

30FTTC06
Pro
Posts: 2,286
Thanks: 108
Fixes: 4
Registered: ‎18-02-2013

Re: Need DSLstats on RPi headless with Webserver

I can see some form of server running...

netstat -nlp | grep 55555
(Not all processes could be identified, non-owned process info
will not be shown, you would have to be root to see it all.)
tcp 0 0 0.0.0.0:55555 0.0.0.0:* LISTEN 4597/dslstats

 

telnet localhost 55555
Trying 127.0.0.1...
Connected to localhost.
Escape character is '^]'

30FTTC06
Pro
Posts: 2,286
Thanks: 108
Fixes: 4
Registered: ‎18-02-2013

Re: Need DSLstats on RPi headless with Webserver

no firewall on this machine

mssystems
Aspiring Pro
Posts: 290
Thanks: 45
Fixes: 1
Registered: ‎10-08-2007

Re: Need DSLstats on RPi headless with Webserver

So once telnet has connected...Did you try typing the rest of what I posted earlier?

GET / HTTP/1.1
host:localhost
connection:close
<cr>
<cr>

I may not have made it clear, that is what you need to do.  <cr> is a carriage return on an otherwise blank line.  You need two of those consecutively before the webserver will process the request.