Skip to content

Instantly share code, notes, and snippets.

@subinamathew
Last active August 16, 2022 09:44
Show Gist options
  • Save subinamathew/661ccf34f350bed423f97e1b0b3fb974 to your computer and use it in GitHub Desktop.
Save subinamathew/661ccf34f350bed423f97e1b0b3fb974 to your computer and use it in GitHub Desktop.
VNC on GCP VM
nc localhost 5901
sudo apt-get install vnc4server
vi .vnc/xstartup
````
#!/bin/sh
export XKL_XMODMAP_DISABLE=1
unset SESSION_MANAGER
unset DBUS_SESSION_BUS_ADDRESS
xfce4-panel &
xfsettingsd &
xfwm4 &
xfdesktop &
pcmanfm &
xfce4-terminal &
````
vncserver -kill :1
vncserver
snap install firefox
sudo vi /etc/X11/Xwrapper.config
allowed_users=anybody
sudo curl -sSL https://get.docker.com/ | sh
sudo usermod -aG docker $USER
https://askubuntu.com/questions/924139/vnc-grey-screen-with-xubuntu-17-04
https://medium.com/@piyushraj246800/your-guide-to-vnc-server-on-gcp-ed8255c81b43
https://askubuntu.com/questions/937097/ubuntu-16-04-lts-how-is-the-x-server-started
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment