I've been using tightvncserver to sucessfully run remote sessions on my Pi but I'd like to be able to directly view/control the same session as I seen on my Pi HDMI connected monitor.
I understand I need to use x11vnc for this (which I've downloaded and installed) but I'm struggling with Mr Google to find a working example of what parameters to use with it.
Can anyone help please?
Simon
Setting up x11vnc on Raspbian
Seeking help with Scratch and I/O stuff for Primary age children
http://cymplecy.wordpress.com/ @cymplecy on twitter
http://cymplecy.wordpress.com/ @cymplecy on twitter
Re: Setting up x11vnc on Raspbian
I'm sure someone asked a very similar question a few days ago. I don't think it was fully resolved though. I'll see if I can find the thread.
It was here...
http://www.raspberrypi.org/phpBB3/viewt ... 55#p129655
Don't know if you've seen that one (maybe it's where you got the x11vnc thing from?)
It was here...
http://www.raspberrypi.org/phpBB3/viewt ... 55#p129655
Don't know if you've seen that one (maybe it's where you got the x11vnc thing from?)
Alex Eames RasPi.TV, RasP.iO
Re: Setting up x11vnc on Raspbian
As you say - not really resolved 
For things like this, you need the person who been there and got the t-shirt
Ta tho
Si

For things like this, you need the person who been there and got the t-shirt

Ta tho

Si
Seeking help with Scratch and I/O stuff for Primary age children
http://cymplecy.wordpress.com/ @cymplecy on twitter
http://cymplecy.wordpress.com/ @cymplecy on twitter
Re: Setting up x11vnc on Raspbian
Seeking help with Scratch and I/O stuff for Primary age children
http://cymplecy.wordpress.com/ @cymplecy on twitter
http://cymplecy.wordpress.com/ @cymplecy on twitter
Re: Setting up x11vnc on Raspbian
thanks Simon. I was looking for the same answer and your solution worked.
Re: Setting up x11vnc on Raspbian
Thanks Simon, I was looking for the same as well and worked for me as well.
Regards
Regards
Re: Setting up x11vnc on Raspbian
Hello,
I'm no expert but having spent some time trying various methods (without success), the following worked for me:
1. InstallNB I chose not to set a password
2. Auto-start
NB Previously configured auto-login & StartX by following: http://elinux.org/RPi_Debian_Auto_Login
Create new / edit existing ~/.xsessionrc file:NB no need to make it executable.
Comments:
-bg : run in background after screen setup. Without it I get a blank / black screen on local (& remote) display - had to SSH-in, to fix via CLI. So, this option seems *essential* for me, though is rarely mentioned!?
-nevershared -forever : on creating a new connection, drop existing. (I only need 1 connection). From x11vnc --help, this combo "guards against hung TCP connections that do not go away."
-nopw : I choose not to use a password; this prevents a warning.
-tightfilexfer : I use TightVNC client
-display 0 : default X11 server display
I use the TightVNC client, as UltraVNC connects but displays solid (red) window, no contents.
Hope this helps.
Cheers,
Pete.
References:
http://elinux.org/RPi_VNC_Server
http://www.penguintutor.com/linux/tightvnc
http://www.rpiforum.net/forum/tutorials ... -raspbian/
http://www.raspberrypi.org/phpBB3/viewt ... 63&t=24809
http://www.raspberrypi.org/phpBB3/viewt ... f=6&t=5540
I'm no expert but having spent some time trying various methods (without success), the following worked for me:
1. Install
Code: Select all
sudo apt-get install x11vnc
2. Auto-start
NB Previously configured auto-login & StartX by following: http://elinux.org/RPi_Debian_Auto_Login
Create new / edit existing ~/.xsessionrc file:
Code: Select all
# Start X11VNC
x11vnc -bg -nevershared -forever -tightfilexfer -nopw -display :0
Comments:
-bg : run in background after screen setup. Without it I get a blank / black screen on local (& remote) display - had to SSH-in, to fix via CLI. So, this option seems *essential* for me, though is rarely mentioned!?
-nevershared -forever : on creating a new connection, drop existing. (I only need 1 connection). From x11vnc --help, this combo "guards against hung TCP connections that do not go away."
-nopw : I choose not to use a password; this prevents a warning.
-tightfilexfer : I use TightVNC client
-display 0 : default X11 server display
I use the TightVNC client, as UltraVNC connects but displays solid (red) window, no contents.
Hope this helps.
Cheers,
Pete.
References:
http://elinux.org/RPi_VNC_Server
http://www.penguintutor.com/linux/tightvnc
http://www.rpiforum.net/forum/tutorials ... -raspbian/
http://www.raspberrypi.org/phpBB3/viewt ... 63&t=24809
http://www.raspberrypi.org/phpBB3/viewt ... f=6&t=5540
Re: Setting up x11vnc on Raspbian
hi Pete
Did you actually try
http://www.raspberrypi.org/phpBB3/viewt ... 62#p108862
because it worked for me and everyone else who's tried it
I use is on a daily basis as I'm remoting into battery powered robot RPi.
Its worked with both tightnvcviewer and ultravncviewer, both here at home and in 2 of my schools.
So I think its a runner
Simon
Did you actually try
http://www.raspberrypi.org/phpBB3/viewt ... 62#p108862
because it worked for me and everyone else who's tried it

I use is on a daily basis as I'm remoting into battery powered robot RPi.
Its worked with both tightnvcviewer and ultravncviewer, both here at home and in 2 of my schools.
So I think its a runner

Simon
Seeking help with Scratch and I/O stuff for Primary age children
http://cymplecy.wordpress.com/ @cymplecy on twitter
http://cymplecy.wordpress.com/ @cymplecy on twitter
Re: Setting up x11vnc on Raspbian
Hi Simon,
Thanks for your reply. Yeah, I did try that - it's near the end of http://www.raspberrypi.org/phpBB3/viewt ... 63&t=24809
Using the .config/autostart/x11vnc.desktop file, Ultravnc still gives me a solid red(ish) [on Auto] or blue [manual settings] window - no desktop contents.
With hindsight, I abandoned this method due to the above problem (I have) with UltraVNC [Win32, 1.0.9.6.1]; I've just confirmed it works fine with TightVNC.
Thanks again,
Pete.
Thanks for your reply. Yeah, I did try that - it's near the end of http://www.raspberrypi.org/phpBB3/viewt ... 63&t=24809
Using the .config/autostart/x11vnc.desktop file, Ultravnc still gives me a solid red(ish) [on Auto] or blue [manual settings] window - no desktop contents.
With hindsight, I abandoned this method due to the above problem (I have) with UltraVNC [Win32, 1.0.9.6.1]; I've just confirmed it works fine with TightVNC.
Thanks again,
Pete.
Re: Setting up x11vnc on Raspbian
Hi, first post. Have my headless Pi with x11vnc up and running, using the instructions on this page, thanks. Only issue is that if I boot the Pi without a monitor attached, I end up with a tiny little VNC window, apparently a default monitor size. If I boot with a monitor attached and then disconnect it, the VNC window is the size of the monitor that was previously attached. What do I need to do to tell x11vnc to create a session of a specific window size, e.g. 1920x1080? Thanks...
Re: Setting up x11vnc on Raspbian
Figured out that it's not x11vnc that I need to tweek, but it's the X environment, so that when it's headless, it doesn't default to the small 656x416 window size. What do I need to change? A default 1024x768 would be enough for me.
Re: Setting up x11vnc on Raspbian
Solved my own problem, got it working by forcing hdmi in config.txt. Defaults to a decent screen size now.
Re: Setting up x11vnc on Raspbian
Could you post more details on how you did this?pbanders wrote:Solved my own problem, got it working by forcing hdmi in config.txt. Defaults to a decent screen size now.
Re: Setting up x11vnc on Raspbian
I think he meant that you have to edit /boot/config.txt and force hdmi display.ghunter wrote:Could you post more details on how you did this?pbanders wrote:Solved my own problem, got it working by forcing hdmi in config.txt. Defaults to a decent screen size now.
# uncomment if hdmi display is not detected and composite is being output
hdmi_force_hotplug=1
After making this change i get a decent screen in my vnc connection.
PS: Sorry about my English. I'm not a native English speaker.
Re: Setting up x11vnc on Raspbian
Hello PiMates,
Hope someone would find it helpful.
Step 1:
Hope someone would find it helpful.
- By default PiCamera can’t be viewed over vnc.
- This link https://www.raspberrypi.org/blog/get-ba ... c-connect/ would help you to get started
Step 1:
- Enable VNC on the Raspberry Pi

- or you could follow a commandline sudo raspi-config > Interfacing Options > VNC > Enable
- Update your vnc, either go to https://www.realvnc.com/en/connect/down ... spberrypi/ download and install from vnc [preffered]
- Download the deb file from the above link, install using "dpkg -i <package>.deb"
- Check your vnc connect server version 6.3 should be good as of Aug 2018
- Start vnc server $vncserver :1
- Display looks too small and unscaled
- Fix it by changing few display parameters for hdmi in "$ sudo nano /boot/config.txt"
# uncomment to force a specific HDMI mode (this will force VGA)
hdmi_ignore_edid=0xa5000080
hdmi_group=2
hdmi_mode=16
More info https://elinux.org/RPi_Configuration
Now you need to reboot "sudo reboot now"
- Now open VNC to the pi, and enable "experimental direct capture mode"
- Reconnect VNC
- Thats it Guys.