Teamviewer 13 works but I cannot get either x11vnc or Xvnc to work - netstat show port 5901 listening but no vncclient can connect
I tried the remote administration in yast and that failed too. Port 5900 and 5901 are open in my iptables
my vnc file from 42.3 in /etc/xinetd.d which had no problems does not work in 15.0 = any ideas how to get that to work - teamviewer local is not my preferred remote control
cat vnc
default: off
description: This serves out a VNC connection
of Display 0:0 with password
service vnc
{
socket_type = stream
protocol = tcp
wait = no
user = root
server = /usr/bin/x11vnc
server_args = -inetd -o /tmp/x11vnc.log -display :0 -auth /var/lib/gdm/:0.Xauth -noxrecord -noxfixes -noxdamage -rfbauth /etc/x11vnc.pass -rfbport 5900
type = UNLISTED
port = 5900
disable = no
}
Since the release of openSUSE Leap 15, the xinetd infrastructure has been removed. This section outlines how to convert existing custom xinetd service files to systemd sockets.
For each xinetd service file, you need at least two systemd unit files: the socket file (*.socket) and an associated service file (*.service). The socket file tells systemd which socket to create, and the service file tells systemd which executable to start.
So, I think you should read that section of the guide first and create the required systemd .socket and .service units.
Ok - I removed the /etc/xinetd.d/vnc and created these 2 files in /usr/lib/systemd/system with no change in outcome.
What changed to the display access as it seems to not connect to display :0. - I really need to get this going as I have a bunch (14 on 3 machines) of Virtualbox openSUSE machines and I use x11vnc to get into them.
I also included the x1vnc.log file from the failure and the 42.3 system.
Only after you understand what is in the above, then if you want to set up xinetd, then one step in that process is the link deano provided.
Everything about vnc has radically changed from 42.3 to TW and 15,
One of the primary changes is that by default xinetd is no longer implemented by default.
If you read the docs, this means that there is no long-running vnc server server waiting for incoming connections, instead a vnc socket service is instantiated when a client attempts first connection.
The documentation goes on to say that if you still prefer to set up an xinetd server to listen constantly for incoming client connections, you can do so but you’ll have to set that up from scratch. If you find the openSUSE documentation lacking for setting up xinetd, I can look up the info I’ve researched… just ask… But first make the decision whether you want to continue down that road or try to make the default xvnc setup work which is what is described in the documentation reference I pointed you to above.
Aside from the above,
I see in another Forum thread that you should try setting your Display Manager to kdm if lightdm doesn’t work (sddm won’t work, you’ll need to change that).
I followed the documentation - the VNC document is for another display session :1 - I want the main display :0 all the documentation is for a new display - not what I want.
I have been using VNC since it was invented at AT&T ( I am retired AT&T UNIX ) - all this systemd stuff seems to complicate Linux.
I just want to remote access display :0 - why does 15. break that?
Needs to be tested,
Based on the Notes to Wayland on LEAP 15,
I strongly suspect that this should not be an issue anymore.
The xorg xserver requirement probably is eliminated because xvnc is now a socket-based service, not using a server.
Then again, if the User wants to configure xinetd, then the xorg xserver would undoubtedly be required, still.
To use display :0,
I’m pretty sure you need to set up Persistent VNC connections for the shared feature (You’re sharing with the locally logged in interactive display).
The ArchWiki TigerVNC describes a third method setting up vnc server using x0vncserver and the instructions expressly specify setting up diskpay :0 so you can follow those instructions exactly.
this is what I am using - no kdm in list nor is mdm available in 15.0
LLR9:~ # update-alternatives --config default-displaymanager
There are 4 choices for the alternative default-displaymanager (providing /usr/lib/X11/displaymanagers/default-displaymanager).