I am using an Ubuntu 22.04 installation on an AWS EC2 instance (VM). I have installed VNC server and I am accessing the system using VNC Viewer.
Initially, applications like Byobu Terminal and gedit were launching and working properly. However, Chromium and Firefox were not launching. I tried a few ways to get around this.
Now when I connect to the machine using VNC even Terminal and gedit are not launching. I am able to open the Desktop but when I click on Byobu terminal or gedit, nothing happens.
My ~/.vnc/xstartup
looks like this:
#!/bin/shexport XKL_XMODMAP_DISABLE=1unset SESSION_MANAGERunset DBUS_SESSION_BUS_ADDRESS[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresourcesxsetroot -solid greyvncconfig -iconic &gnome-panel &gnome-settings-daemon &metacity &nautilus &gnome-terminal &autocutsel -fork