Dear experts!
I’ve been trying to get VNC working for some time now.
This is the steps I’ve done:
Setting up the Server 1. Open YAST > Network Services > Remote Administration(VNC)
2. Click the radio button “Allow Remote Administration”
(If in the future you want to disable VNC access, you can re-run this applet and select the “Do not allow…” radio button.)
3. Click on the radio button to open the appropriate firewall ports.
4. Click on the “OK” button to start the installation. You will probably also be prompted to authorize installation of an x11 server, do so.
5. Reboot.
https://forums.opensuse.org/showthread.php/519098-Remote-administration?p=2787001#post2787001
This probably (“probably” because I haven’t tested) works fine, but I want to see the real X session and therfor have done these additional steps:
Make password file:
mkdir /root/.vnc/
chmod 600 /root/.vnc/
vncpasswd /root/.vnc/passwd
chmod 600 /root/.vnc/passwd
https://lists.fedoraproject.org/pipermail/fedora-kde/2013-March/012351.html
Real X session:
Uncomment “Module” and “Screen” sections inside /etc/X11/xorg.conf.d/10-libvnc.conf
https://en.opensuse.org/VNC#Sharing_real_screen
Please note there is a typo in “10-libvnc.conf” (a " missing behind “Screen0”).
This works fine from my mobile phone with one exeption namely that as long as compositor is enabled I get no screen updates.
Turning compositor off makes the screen update.
Therefor I’m looking for a way of turning compositor off as long as VNC is connected.
Or alternatively a way of getting screen updates with compositor on.
After googling a lot my approach to this would be to configure incron to watch a log file for VNC events and toggling compositor based on VNC connected/disconnected events.
Problem is I can’t seem to find any log files with the information I need. Also I’ve never used incron so a little start help would be appreciated.
I know this won’t work but something like this might do the trick!? (help!!!)
incrontab -e
%logfile% IN_MODIFY if {%logfile% | tail | grep VNC connected == connected} {
then qdbus org.kde.KWin /Compositor suspend
}
%logfile% IN_MODIFY if {%logfile% | tail | grep VNC disconnected == disconnected} {
then qdbus org.kde.KWin /Compositor resume
}
Edit:
System: openSUSE 42.2