madbrain
March 9th, 2021, 02:24 AM
I am running tightvnc server on Ubuntu 18.04, configured as follows :
madbrain@server10g:/etc/systemd/system$ cat vncserver@.service
[Unit]
Description=Start TightVNC server at startup
After=syslog.target network.target
[Service]
Type=forking
User=madbrain
Group=madbrain
WorkingDirectory=/home/madbrain
PIDFile=/home/madbrain/.vnc/%H:%i.pid
ExecStartPre=-/usr/bin/vncserver -kill :%i > /dev/null 2>&1
ExecStart=/usr/bin/vncserver -depth 24 -geometry 2560x1600 :%i
ExecStop=/usr/bin/vncserver -kill :%i
[Install]
WantedBy=multi-user.target
madbrain@server10g:~/.vnc$ cat xstartup
#!/bin/sh
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
autocutsel -s CLIPBOARD -fork
dbus-launch xfce4-session
When using VNC clients on a Windows machine - either RealVNC or tightvnc client - I cannot paste into any Ubuntu window.
I can copy from the Ubuntu machine in the VNC session to the Windows machine, however. In other words, the clipboard works only in one direction.
Can anyone help with this ? I have done Google searches, and read well over a hundred posts for many hours, but nothing works.
I have tried various command lines for autocutsel, and none made any difference.
Help would be very much appreciated on this.
madbrain@server10g:/etc/systemd/system$ cat vncserver@.service
[Unit]
Description=Start TightVNC server at startup
After=syslog.target network.target
[Service]
Type=forking
User=madbrain
Group=madbrain
WorkingDirectory=/home/madbrain
PIDFile=/home/madbrain/.vnc/%H:%i.pid
ExecStartPre=-/usr/bin/vncserver -kill :%i > /dev/null 2>&1
ExecStart=/usr/bin/vncserver -depth 24 -geometry 2560x1600 :%i
ExecStop=/usr/bin/vncserver -kill :%i
[Install]
WantedBy=multi-user.target
madbrain@server10g:~/.vnc$ cat xstartup
#!/bin/sh
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
autocutsel -s CLIPBOARD -fork
dbus-launch xfce4-session
When using VNC clients on a Windows machine - either RealVNC or tightvnc client - I cannot paste into any Ubuntu window.
I can copy from the Ubuntu machine in the VNC session to the Windows machine, however. In other words, the clipboard works only in one direction.
Can anyone help with this ? I have done Google searches, and read well over a hundred posts for many hours, but nothing works.
I have tried various command lines for autocutsel, and none made any difference.
Help would be very much appreciated on this.