rszimm / sprinklers_pi

Sprinkling System Control Program for the Raspberry Pi
GNU General Public License v2.0
310 stars 100 forks source link

Save Configuration #78

Closed TheCook2 closed 7 years ago

TheCook2 commented 7 years ago

Happy New Year!!!!!!

I have been trying to get VNC working with my pi and I have really been messing with everything. I would like to do a clean install. BUT FIRST I would like to save the configuration/schedules etc of sprinklers_pi.

Is there a set of files or anything I can move to another computer and reload after a full build?

While where at it, as a secondary question that has nothing to do with sprinklers_pi... has anyone managed to get VNC to work on a pi? I can't get any VNC client to start talking to it from my Linux Mint machine. I always get something like this:

TheCook@MyBox ~ $ xvnc4viewer

VNC Viewer Free Edition 4.1.1 for X - built Feb 25 2015 22:57:51 Copyright (C) 2002-2005 RealVNC Ltd. See http://www.realvnc.com for information on VNC. Server: 10.1.1.34

Sun Jan 1 14:21:40 2017 CConn: connected to host 10.1.1.34 port 5900 CConnection: Server supports RFB protocol version 5.0 CConnection: Using RFB protocol version 3.8 CConnection: No matching security types main: No matching security types

Why is RFB protocol version sooooooo old? I'll try and ask the question on a Mint forum too.

nhorvath commented 7 years ago

I think I can help with both questions... The files should be in /usr/local/etc/sprinklers_pi if you used all the default install options. You can just tar that dir and as along as you have the same version on the new box you should be able to just drop that in and start it up.

I use the x11vnc server (apt-get install x11vnc) and run with this cmd: sudo /usr/bin/x11vnc -xkb -auth guess -rfbauth /root/.vncpasswd -o /var/log/x11vnc.log -forever -bg I can't remember how I generated the passwd file but google should be able to help. Make sure you don't have any other vnc still running on 5900.

I connect fine from my windows machine with tightvnc client.

TheCook2 commented 7 years ago

Thanks for that.

I'll give it a go when I rebuild the WateringBeast.

Re VNC though, I think the problem is at the client end with the protocol version that is used. The Pi uses 5.0 and Mint wants to use 3.8 (regardless of the update status of Mint). All my personal stuff sits on a NAS on my network so I may just try and build another environment (maybe xubuntu) and see if that works.

Taa

On 02/01/17 03:08, Nick Horvath wrote:

I think I can help with both questions... The files should be in /usr/local/etc/sprinklers_pi if you used all the default install options. You can just tar that dir and as along as you have the same version on the new box you should be able to just drop that in and start it up.

I use the x11vnc server (apt-get install x11vnc) and run with this cmd: |sudo /usr/bin/x11vnc -xkb -auth guess -rfbauth /root/.vncpasswd -o /var/log/x11vnc.log -forever -bg| I can't remember how I generated the passwd file but google should be able to help. Make sure you don't have any other vnc still running on 5900.

I connect fine from my windows machine with tightvnc client.

— You are receiving this because you authored the thread. Reply to this email directly, view it on GitHub https://github.com/rszimm/sprinklers_pi/issues/78#issuecomment-269908680, or mute the thread https://github.com/notifications/unsubscribe-auth/AXhsh_TSwzedP4MIEKlCJaT0zQgAsVIPks5rN89kgaJpZM4LYqJf.

TheCook2 commented 7 years ago

Hey it works now... outstanding. I rebuilt the pi and it is happy to work.

Mon Jan  2 16:44:48 2017
 CConn:       connected to host 10.1.1.34 port 5900

Mon Jan  2 16:44:49 2017
 CConnection: Server supports RFB protocol version 3.6
 CConnection: Using RFB protocol version 3.3
Password: 
Mon Jan  2 16:44:54 2017
 TXImage:     Using default colormap and visual, TrueColor, depth 24.
 CConn:       Using pixel format depth 6 (8bpp) rgb222
 CConn:       Using ZRLE encoding