Last active
August 16, 2022 09:44
-
-
Save subinamathew/661ccf34f350bed423f97e1b0b3fb974 to your computer and use it in GitHub Desktop.
VNC on GCP VM
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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