2

VNC'ing from mac to Ubuntu 20.04 server. Desktop is fine except I cannot resize app windows as they have no 'decorations'.

Is there a way to fix this?

~/.vnc/xstartup

#!/bin/sh
# Uncomment the following two lines for normal desktop:
# unset SESSION_MANAGER
# exec /etc/X11/xinit/xinitrc
[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
xterm -geometry 80×24+10+10 -ls -title “$VNCDESKTOP Desktop” &
startxfce4 &

vnc desktop screenshot

1

I use xfce (xubuntu) and this fixes it, won't work for ubuntu unless you're using xfce, but I expect there is some equivalent.

xfwm4 --replace
1
  • 1
    With Gnome classic, you can use metacity --replace & instead. – Ingo Karkat Jan 21 at 18:44

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.