LinHES Forums
http://forum.linhes.org/

VNC wont startup automatically
http://forum.linhes.org/viewtopic.php?f=21&t=24088
Page 1 of 1

Author:  Big boy stan [ Sun Nov 09, 2014 1:48 pm ]
Post subject:  VNC wont startup automatically

Just finished upgrading from 7.4 to 8.2. Got the database and recordings and all working. Now to get VNC going. I selected it from the LINHES menu and put in a 6 digit password. I also created the x11vnc.cfg file as described on the settings page. All appeared to go through but after a reboot, no VNC. I tried running x11vnc from the command line and after that I was able to connect fine.

Next, I ran mythvantage -s vnc from the command line. After unchecking and rechecking the option for XVNC and the password, I got several permission denied errors. I tried again as su and that seemed to go through but once again no VNC after a reboot.

I found the following in the /home/vncsvc/.vnc/envy:1.log file

Code:
XIO:  fatal IO error 11 (Resource temporarily unavailable) on X server ":1"
      after 110 requests (110 known processed) with 0 events remaining.
XIO:  fatal IO error 11 (Resource temporarily unavailable) on X server ":1"
      after 165 requests (165 known processed) with 0 events remaining.



Any ideas?

Author:  Big boy stan [ Fri Nov 28, 2014 10:14 am ]
Post subject:  Re: VNC wont startup automatically

Still need some help with this issue. My box is in the basement with the TV upstairs so when I need to type commands, I am doing it blindly.
After startup I can not connect to the VNC server. I have selected the VNC option on the LINHES service screen and added a 6 digit password but when I try to connect, I get a connection refused error.

If I use a command line and type x11vnc, the server starts up and I can connect remotely without a password but only 1 time. Trying to connect a second time gives me the connection refused error.

There is a log file in /var/log/ and also in /home/vncsvc/.vnc/ which are identical but all they say is

Code:
New 'envy:1 (vncsvc)' desktop is envy:1

Starting applications specified in /home/vncsvc/.vnc/xstartup
Log file is /home/vncsvc/.vnc/envy:1.log


Any help would be greatly appreciated.

Author:  graysky [ Fri Nov 28, 2014 11:35 am ]
Post subject:  Re: VNC wont startup automatically

Is your goal to control the same screen the TV sees? If so, you're trying to run on :1 which is a virtual screen. :0 is the the physical one. Not sure what LH provides for this but you can use x11vnc on your own to control :0 with a script. See the vnc page on the Arch wiki for some ideas.

Author:  Big boy stan [ Fri Nov 28, 2014 5:36 pm ]
Post subject:  Re: VNC wont startup automatically

I would not mind either the physical screen or a virtual one. I just want to be able to get to command lines and such. Given the choice I guess I would prefer the physical one so I can make changes to myth setup.
In any case, I cant even find where the vnc server is being started from. Is there a startup script that contains the vnc command?

Author:  graysky [ Fri Nov 28, 2014 6:58 pm ]
Post subject:  Re: VNC wont startup automatically

Big boy stan wrote:
I would not mind either the physical screen or a virtual one. I just want to be able to get to command lines and such. Given the choice I guess I would prefer the physical one so I can make changes to myth setup.
In any case, I cant even find where the vnc server is being started from. Is there a startup script that contains the vnc command?


Back in the day, it was in ~/.config/autostart as I recall. No idea where it is triggered under R8... what "command lines" can you do in vnc that you can't do in ssh???

Author:  Big boy stan [ Sat Nov 29, 2014 8:10 am ]
Post subject:  Re: VNC wont startup automatically

I have never tried ssh.I always used vnc as my understanding of ssh is you can't do anything within the myth app like adjust storage group paths (in myth setup). Is that true?

Author:  brfransen [ Sat Nov 29, 2014 8:22 am ]
Post subject:  Re: VNC wont startup automatically

x11vnc when configured by the service menu is on :2 (port 5902). Double check with: ps aux | grep vnc

Also, you shouldn't need the /etc/x11vnc.cfg in R8 unless you have some specific options.

Author:  Big boy stan [ Sat Nov 29, 2014 10:27 am ]
Post subject:  Re: VNC wont startup automatically

Aux show:
Code:
[mythtv@envy ~]$ ps aux | grep vnc
mythtv    2279  0.0  0.8  83884 13268 ?        S    11:17   0:00 x11vnc -forever -rfbport 5902 --passwd qwerty


In the past I added an option to scale the screen to 3/4 and that is what is in my x11vnc.cfg file. Even without the .cfg, I cant get a connection after a reboot.

With regards to the the :2 screen, does that mean I wont be able to see the mythtv frontend menus or setup menus? I really find that a useful way to enter file paths, online streams searches, etc.

Author:  brfransen [ Sat Nov 29, 2014 12:16 pm ]
Post subject:  Re: VNC wont startup automatically

It is up and running. Are you sure you are trying to connect to envy:5902 from your vnc client?

Yes you can see your exact desktop with x11vnc on port 5902. 5901 is the default port and we use that for admin. It doesn't mirror the mythtv enviroment and if it is running you see it is even running a different window manager.

Author:  Big boy stan [ Sat Nov 29, 2014 1:31 pm ]
Post subject:  Re: VNC wont startup automatically

You are absolutely correct. I took a look at the RealVNC website and their default port is 5900. Adding ":5902" to the address connected perfectly. It is pretty clearly marked on the LINHES Wiki so shame on me.

Thanks for all your help and all you do for the Linhes.

Author:  brfransen [ Sat Nov 29, 2014 2:40 pm ]
Post subject:  Re: VNC wont startup automatically

Big boy stan wrote:
You are absolutely correct. I took a look at the RealVNC website and their default port is 5900. Adding ":5902" to the address connected perfectly. It is pretty clearly marked on the LINHES Wiki so shame on me.
In your defense, I just updated the wiki with the R8 info. It is now basically the same info that is in the help text in the Service Menu Screen Sharing settings.

Author:  mattbatt [ Sat Nov 29, 2014 2:55 pm ]
Post subject:  Re: VNC wont startup automatically

I had the same problem with MochaVNC on my Surface, the default port wasn't the same as LinHES machine.

Page 1 of 1 All times are UTC - 6 hours
Powered by phpBB® Forum Software © phpBB Group
http://www.phpbb.com/