Hi,
I installed vnc server in my Centos 7 box, when i want to connect to the vnc server, it connects but open a new session instead the session where i working,
Any suggestions?
Cheers,
M.
Milton Plasencia wrote:
it connects but open a new session instead the session where i working,
From within the session you want to connect to, you need
to start x11vnc instead of vncserver. That's a separate package you'll have to install (yum install x11vnc).
Note that x11vnc's display number will be the same as that of the X server it was started from, so you'll most likely have to connect your VNC client to display :0 (and not :1) in order to access your existing X screen.
Patrick
Hi Patrick,
Thanks for you quickly answer.
Yes, x11vnc was installed on my system.
The problem is i not understand the “logic" of vnc connection, so i try to dark…
I copy the /etc/systemd/system/vncserver@:1.service to /etc/systemd/system/vncserver@:0.service
restart the vnc service and obtain
Jul 18 11:17:16 systemd[1]: vncserver@:0.service: control process exited, code=exited status=98 Jul 18 11:17:16 systemd[1]: Failed to start Remote desktop service (VNC). Jul 18 11:17:16 systemd[1]: Unit vncserver@:0.service entered failed state.
Thanks again,
M.
On Jul 18, 2015, at 10:59, Patrick Hess patrickhess@gmx.net wrote:
From within the session you want to connect to, you need to start x11vnc instead of vncserver. That's a separate package you'll have to install (yum install x11vnc).
Note that x11vnc's display number will be the same as that of the X server it was started from, so you'll most likely have to connect your VNC client to display :0 (and not :1) in order to access your existing X screen.
(Please don't top-post.)
Milton Plasencia wrote:
I copy the /etc/systemd/system/vncserver@:1.service to /etc/systemd/system/vncserver@:0.service
As I said in my previous post, for what you are wanting to do, vncserver is not the right tool. Use x11vnc instead (and also remove the above copy).
Jul 18 11:17:16 systemd[1]: vncserver@:0.service: control process exited, code=exited status=98 Jul 18 11:17:16 systemd[1]: Failed to start Remote desktop service (VNC). Jul 18 11:17:16 systemd[1]: Unit vncserver@:0.service entered failed state.
This error is caused by display :0 alreading being in use by the X server. Again, in your case you don't want to run vncserver anyway.
The problem is i not understand the “logic" of vnc connection, so i try to dark…
If both your VNC server and client are on the same local network, the following two commands should be all you need to get started:
1. On the server, from within the X session you want to share:
x11vnc -forever -shared
2. Then, on the client:
vncviewer your-vnc-server:0
You should also take a look at http://www.karlrunge.com/x11vnc/. That site provides a ton of useful information on how to run x11vnc in all different kinds of situations.
Patrick
Ok, Patrick, i will see the web site.
Thanks a lot,
M.
On Jul 18, 2015, at 13:50, Patrick Hess patrickhess@gmx.net wrote:
(Please don't top-post.)
Milton Plasencia wrote:
I copy the /etc/systemd/system/vncserver@:1.service to /etc/systemd/system/vncserver@:0.service
As I said in my previous post, for what you are wanting to do, vncserver is not the right tool. Use x11vnc instead (and also remove the above copy).
Jul 18 11:17:16 systemd[1]: vncserver@:0.service: control process exited, code=exited status=98 Jul 18 11:17:16 systemd[1]: Failed to start Remote desktop service (VNC). Jul 18 11:17:16 systemd[1]: Unit vncserver@:0.service entered failed state.
This error is caused by display :0 alreading being in use by the X server. Again, in your case you don't want to run vncserver anyway.
The problem is i not understand the “logic" of vnc connection, so i try to dark…
If both your VNC server and client are on the same local network, the following two commands should be all you need to get started:
On the server, from within the X session you want to share:
x11vnc -forever -shared
Then, on the client:
vncviewer your-vnc-server:0
You should also take a look at http://www.karlrunge.com/x11vnc/. That site provides a ton of useful information on how to run x11vnc in all different kinds of situations.
Patrick _______________________________________________ CentOS mailing list CentOS@centos.org http://lists.centos.org/mailman/listinfo/centos