I'm hoping to bounce some ideas; struggling to get x0vncserver binary to connect to my physical display (run by GDM)
i am remote, and /really/ need to connect to this physical display grrrr
{{{
just get connection refused...
vncviewer: ConnectToTcpAddr: connect: Connection refused
}}}
Debug Info:
$ ll /tmp/.X11-unix/
total 0
srwxrwxrwx 1 gdm gdm 0 Feb 14 09:02 X0 <<--- the main GDM
srwxrwxrwx 1 FOO Domain Users 0 Feb 14 09:03 X1 <<--- i want in to this one
srwxrwxrwx 1 gdm gdm 0 Feb 24 06:50 X1001 <-- someting else started this
srwxrwxrwx 1 FOO Domain Users 0 Feb 24 10:00 X1002 <- don't care (it's a virtual session)
# -----
First off, of note, is that I /can/ start vncserver (virtual display), and it all works,
{{{
# server
$ vncserver :5 -geometry 800x600 -depth 24
# client
$ vncviewer <hostname>
}}}
, done; works fine
# -----
# BUT, I need access to the /physical/ session...
# to start (for my sanity) i can even use x0vncserver binary to attach to the one i don't want to, it works
$ x0vncserver -display=:1002 -Log=*:stdout:0 -rfbport=5900 -PasswordFile=/home/FOO/.vnc/passwd
--> WORKS (but ugh i don't want that virtual display, )
# If I try the one I /want/, it "starts", but doesn't do anything nor does it work, no logs , ugh
$ x0vncserver -display=:1 -Log=*:stdout:100 -rfbport=5900 -PasswordFile=/home/FOO/.vnc/passwd
{{{
Fri Feb 24 13:43:27 2017
Config: set rfbport(Int) to 5900
Config: set PasswordFile(String) to /home/mcallaghan/.vnc/passwd
}}}
NO_MORE_OUTPUT
# on client
$ vncviewer <HOSTNAME>
vncviewer: ConnectToTcpAddr: connect: Connection refused
Unable to connect to VNC server
The server-side, NOTHING logs :(
{{{
<EMPTY>
}}}
It's almost as though the firewall is blocking ..?? but ; it worked fine for the virtual display!
And, to confirm:
{{{
$ sudo firewall-cmd --list-all | egrep "vnc|590"
services: dhcpv6-client samba mdns samba-client ssh vnc-server
ports: 1025-65535/udp 1025-65535/tcp 5900/tcp 5901/tcp
]}}
---
if I try to have x0vncserver hook into the gdm display 1001, it can't do it...
(tried sudo, as my own user, and even {sudo su - gdm -c "x0vncserver ..."}
if I try to hook into gdm display 0, it behaves the same as display:1
http://tigervnc.org/doc/x0vncserver.html
http://leranda.com/2014/03/connect-to-physical-display-using-tigervnc/
https://www.server-world.info/en/note?os=Fedora_24&p=desktop&f=6
https://wiki.archlinux.org/index.php?title=TigerVNC#Running_vncserver_to_directly_control_the_local_display
https://help.ubuntu.com/community/VNC/Servers#TigerVNC
https://www.linuxquestions.org/questions/linux-newbie-8/vncserver-works-but-x0vncserver-doesn%27t-794997/
http://unix.stackexchange.com/questions/17255/is-there-a-command-to-list-all-open-displays-on-a-machine#17278
Interesting. So I also was trying NoMachine (NX server), and it ships with this script.
{{{
$ sudo /usr/NX/scripts/vgl/vglserver_config --help
USAGE: /usr/NX/scripts/vgl/vglserver_config [flags]
Flags (for unattended mode):
-config Configure server for use with VirtualGL
-unconfig Unconfigure server for use with VirtualGL
-s Restrict 3D X server access to vglusers group [default]
+s Open 3D X server access to all users of this machine
-f Restrict framebuffer device access to vglusers group [default]
+f Open framebuffer device access to all users of this machine
-t Disable XTEST extension [default]
+t Enable XTEST extension
Flags (for both interactive and unattended modes):
-gid {g} If vglusers group must be created, then set its group ID to {g}
}}}
and indeed, one could install VirtualGL toolkit...
{{{
$ dnf search virtualgl
Last metadata expiration check: 3:32:12 ago on Fri Feb 24 11:46:16 2017.
=============================================================================== N/S Matched: virtualgl ================================================================================
VirtualGL-devel.i686 : Development headers and libraries for VirtualGL
VirtualGL-devel.x86_64 : Development headers and libraries for VirtualGL
VirtualGL.i686 : A toolkit for displaying OpenGL applications to thin clients
VirtualGL.x86_64 : A toolkit for displaying OpenGL applications to thin clients
}}}
}}}