Kitz ADSL Broadband Information
adsl spacer  
Support this site
Home Broadband ISPs Tech Routers Wiki Forum
 
     
   Compare ISP   Rate your ISP
 
Please login or register.

Login with username, password and session length
Advanced search  

News:

Pages: 1 2 [3] 4 5 6

Author Topic: Best way to get DSL Stats running 24/7?  (Read 5513 times)

RichardB

  • Just arrived
  • *
  • Posts: 9
Re: Best way to get DSL Stats running 24/7?
« Reply #30 on: December 15, 2017, 10:00:44 AM »

Hi Tiffy,

I have been "googling" this issue of VNC on an R Pi and display :0
Some results indicate that VNC port 5900 is required to view display :0

When connecting to My Pi's VNC server the viewer shows that I connect to port 5900.
I.E when the username & password box is present The VNC server address is displayed as 192.168.0.58::5900
I cannot see an option to change the port in RealVNC viewer config. 

Can you advise which VNC port you are connecting to?

I can find an option to change the port in the RealVNC server config.
If the VNC server ICON is present in the PI's desktop "taskbar", Right click, selection options, then connections.

Richard
Logged

vic0239

  • Reg Member
  • ***
  • Posts: 316
Re: Best way to get DSL Stats running 24/7?
« Reply #31 on: December 15, 2017, 12:17:34 PM »

Run this command in a terminal window on the Pi, it will show which ports are open with a listener. Port 5900 corresponds to VNC display 0, maybe there are others in that port range?
Code: [Select]
sudo netstat -lptn
Here's the output from my Pi.
Code: [Select]
Active Internet connections (only servers)
Proto Recv-Q Send-Q Local Address           Foreign Address         State       PID/Program name
tcp        0      0 127.0.0.1:3551          0.0.0.0:*               LISTEN      529/apcupsd     
tcp        0      0 0.0.0.0:55555           0.0.0.0:*               LISTEN      21852/dslstats 
tcp        0      0 0.0.0.0:548             0.0.0.0:*               LISTEN      683/afpd       
tcp        0      0 0.0.0.0:5900            0.0.0.0:*               LISTEN      627/vncserver-x11-c
tcp        0      0 0.0.0.0:22              0.0.0.0:*               LISTEN      521/sshd       
tcp        0      0 127.0.0.1:631           0.0.0.0:*               LISTEN      24878/cupsd     
tcp6       0      0 ::1:4700                :::*                    LISTEN      678/cnid_metad 
tcp6       0      0 :::5900                 :::*                    LISTEN      627/vncserver-x11-c
tcp6       0      0 :::80                   :::*                    LISTEN      727/apache2     
tcp6       0      0 :::22                   :::*                    LISTEN      521/sshd       
tcp6       0      0 ::1:631                 :::*                    LISTEN      24878/cupsd
« Last Edit: December 15, 2017, 12:19:55 PM by vic0239 »
Logged

tiffy

  • Reg Member
  • ***
  • Posts: 292
Re: Best way to get DSL Stats running 24/7?
« Reply #32 on: December 15, 2017, 01:11:23 PM »

Thanks to both for the further responses:

@RichardB
On my RPi desktop, from VNC Server-Options-Connections, display indicates port 5900.
The VNC Server address in my case as per connect dialogue is 192.168.0.11:1, "11" being the router reserved address for the RPi.

If I now disable your auto-start on boot script and then manually start DSLStats the program starts normally with it's GUI displayed on the RPi desktop, ie., exactly as it did when using TightVNC server as opposed to the latest VNC Server.
I now believe that most of my previous DSLStats auto-start on boot attempts did work but produced the same situation as current, DSLStats GUI not displayed on RPi desktop although the program was actually running, hence the error produced when attempting a further program start.

@vic0239
Running the "sudo netstat -lptn" command does indeed produce the display 0 and port 5900 indications as per your post.

I would appear to be back exactly where I started all be it with a little bit more knowledge of Linux thanks to the forum members.
Logged
Plusnet 40/10 - DSLStats/RPi - ZyXEL VMG1312-B10A - Huawei Cab - MDWS (sadly gone 12/03/18)

vic0239

  • Reg Member
  • ***
  • Posts: 316
Re: Best way to get DSL Stats running 24/7?
« Reply #33 on: December 15, 2017, 03:23:49 PM »

The VNC Server address in my case as per connect dialogue is 192.168.0.11:1, "11" being the router reserved address for the RPi.
What happens if you change the address to 192.168.0.11:0?
Logged

RichardB

  • Just arrived
  • *
  • Posts: 9
Re: Best way to get DSL Stats running 24/7?
« Reply #34 on: December 15, 2017, 03:36:44 PM »

On my RPi desktop, from VNC Server-Options-Connections, display indicates port 5900.
The VNC Server address in my case as per connect dialogue is 192.168.0.11:1, "11" being the router reserved address for the RPi.

Form https://www.raspberrypi.org/documentation/remote-access/vnc/

:1 at the end of the IP address indicates a virtual desktop. You need the "direct" desktop.

Did you enable VNC via the raspi-config tool?

It is strange that the VNC server reports port 5900 & netstat reports display :0 yet you connect to port:1

When you use REAL VNC viewer, do you enter an IP address of "192.168.0.11:1"? If so try "192.168.0.11" dropping the port number.

Richard

Logged

tiffy

  • Reg Member
  • ***
  • Posts: 292
Re: Best way to get DSL Stats running 24/7?
« Reply #35 on: December 15, 2017, 05:28:29 PM »

@vic0239

Quote
What happens if you change the address to 192.168.0.11:0?

VNC Viewer window opens but with much different screen resolution, menu bar much bigger, desktop icons much bigger, DSLStats GUI won't fit into window without scrolling.
RPi desktop resolution is still 720X480 so would seem to be a function of the VNC viewer.
However, the very good news is that the DSLStats auto-start on boot script now produces it's desktop GUI on program starting, I have set the sleep delay to 3 mins for my old, slow RPi Mk1B, definate progress.

@RichardB

Quote
Did you enable VNC via the raspi-config tool?

Yes, when I replaced TightVNC with VNC Server.

Quote
When you use REAL VNC viewer, do you enter an IP address of "192.168.0.11:1"? If so try "192.168.0.11" dropping the port number
Using no port number suffix produces the exact same effect as using "*:0"
Up to present I have used the "*:1" suffix, hence the issues it would appear.

If I can now get the VNC window resolution back to the previous format that's the issue solved, I can't currently see any differences in the VNC viewer setup between ":0" and "*:1" settings, is this more likely to be a function of the VNC Server ?
 

Logged
Plusnet 40/10 - DSLStats/RPi - ZyXEL VMG1312-B10A - Huawei Cab - MDWS (sadly gone 12/03/18)

vic0239

  • Reg Member
  • ***
  • Posts: 316
Re: Best way to get DSL Stats running 24/7?
« Reply #36 on: December 15, 2017, 06:02:26 PM »

I have changed the resolution on my devices, but canít recall from memory what is required. I have made notes of the process (helps my aging powers of recall), so will consult those and post back.
Logged

vic0239

  • Reg Member
  • ***
  • Posts: 316
Re: Best way to get DSL Stats running 24/7?
« Reply #37 on: December 15, 2017, 06:13:42 PM »

The settings are in /boot/config.txt. I set the following for my monitor. Choose whichever mode suits your display.

Code: [Select]
# uncomment if hdmi display is not detected and composite is being output
hdmi_force_hotplug=1
hdmi_ignore_edid=0xa5000080

# uncomment to force a specific HDMI mode (this will force VGA)
hdmi_group=2
hdmi_mode=58

Explanation of these settings can be found here https://www.raspberrypi.org/documentation/configuration/config-txt/video.md

Good to be making progress!
« Last Edit: December 15, 2017, 06:17:59 PM by vic0239 »
Logged

RichardB

  • Just arrived
  • *
  • Posts: 9
Re: Best way to get DSL Stats running 24/7?
« Reply #38 on: December 15, 2017, 06:28:01 PM »

The screen resolution can also be altered using the raspi-config tool.
Logged

vic0239

  • Reg Member
  • ***
  • Posts: 316
Re: Best way to get DSL Stats running 24/7?
« Reply #39 on: December 15, 2017, 06:53:03 PM »

... but not as much fun!  :P I like to get my vi editor to work as often as I can.  ;)

Advanced Options
A5
Logged

RichardB

  • Just arrived
  • *
  • Posts: 9
Re: Best way to get DSL Stats running 24/7?
« Reply #40 on: December 15, 2017, 06:57:10 PM »

... but not as much fun!  :P I like to get my vi editor to work as often as I can.  ;)
;D ;D ;D
Logged

tiffy

  • Reg Member
  • ***
  • Posts: 292
Re: Best way to get DSL Stats running 24/7?
« Reply #41 on: December 15, 2017, 09:42:47 PM »

Well, that's it, very much thanks to the perseverance of you two kind gentlemen and other forum members, all working well and looking good.

Yes, I was aware of the screen resolution change facility within the Raspbian, desktop shell but I thought as it had not changed from the "window 1" setup, still 720X480, then that might not be the best place to adjust.
However, increased in steps up to "DMT mode 16 1024X768 60 Hz 4:3" setting which is now virtually the same as previous when using the "window 1" setup.

Kept the startup, sleep delay at 3 mins, needed for my old slow RPi Mk1B which struggles a bit, CPU usage tops out during sampling and uploading to MDWS, however, it still manages to maintain 100% upload on MDWS so does the job.

Will now update the configuration on the two RPI Zero W's I look after to enable DSLStats auto-booting, as they both run on the exact same program as my Mk1B RPi (apart from IP addresses) should be easily done.

Again, many thanks to RichardB and vic0239 for the support and assistance provided.
 
« Last Edit: December 15, 2017, 10:12:34 PM by tiffy »
Logged
Plusnet 40/10 - DSLStats/RPi - ZyXEL VMG1312-B10A - Huawei Cab - MDWS (sadly gone 12/03/18)

vic0239

  • Reg Member
  • ***
  • Posts: 316
Re: Best way to get DSL Stats running 24/7?
« Reply #42 on: December 16, 2017, 07:57:06 AM »

Nae bother! Glad it's now working well for you.
Logged

RichardB

  • Just arrived
  • *
  • Posts: 9
Re: Best way to get DSL Stats running 24/7?
« Reply #43 on: December 18, 2017, 08:28:58 AM »

Glad to help.

and I learned more about VNC and virtual desktops  :)
Logged

V_R

  • Reg Member
  • ***
  • Posts: 140
Re: Best way to get DSL Stats running 24/7?
« Reply #44 on: January 16, 2018, 09:26:28 AM »

Ok, I'm back, wanting to continue this where I left off.

So rather than the £55 starter pack, can I get the Pi Zero W Essentials kit and have everything included that I need? If not what else will be needed? I've got a spare micro SD that I could use for the OS.

https://thepihut.com/collections/raspberry-pi-zero/products/raspberry-pi-zero-w?variant=30333236753

I want to power it via USB off the router and I'll have it hidden out of sight once its all set up and running.

Will need a case for it too, this will do: https://thepihut.com/collections/raspberry-pi-zero/products/premium-raspberry-pi-zero-case?variant=25147478984

So if I were to order those two I'd be all set?

Ta.
Logged
Zen Internet (80/20) on a Huawei 288 cab, via HG612 and an Asus RT-AC86U running Merlin FW.
Pages: 1 2 [3] 4 5 6
 

anything