Skip to content

Instantly share code, notes, and snippets.

@fernando29hernandez
Last active May 22, 2019 21:18
Show Gist options
  • Save fernando29hernandez/743d3fd6ccd63bc5ede589569fcafc29 to your computer and use it in GitHub Desktop.
Save fernando29hernandez/743d3fd6ccd63bc5ede589569fcafc29 to your computer and use it in GitHub Desktop.
Entorno Gráfico Gnome en Google Cloud

Instalacion de entorno y vncserver

Estando en el shell de google cloud

$ sudo apt-get update
$ sudo apt-get upgrade
$ sudo apt-get install gnome-shell
$ sudo apt-get install ubuntu-gnome-desktop
$ sudo apt-get install autocutsel
$ sudo apt-get install gnome-core
$ sudo apt-get install gnome-panel

Luego tenemos que instalar vnc

$ sudo apt-get install tightvncserver
$ touch ~/.Xresources

Lo iniciamos

$ tightvncserver

Aqui nos va a solicitar dos contraseñas una para el acceso remoto y luego una de solo vista, Configuran las dos.

Luego nos mostrara que ya se inicio el programa y en la linea donde dice "Starting applications specified in" "ruta", la copiamos y luego abrimos el archivo con:

$nano /home/fernando/.vnc/xstartup 

Borramos todo lo que tenga el archivo y pegamos lo siguiente

#!/bin/sh
autocutsel -fork
xrdb $HOME/.Xresources
xsetroot -solid grey
export XKL_XMODMAP_DISABLE=1
export XDG_CURRENT_DESKTOP="GNOME-Flashback:Unity"
export XDG_MENU_PREFIX="gnome-flashback-"
unset DBUS_SESSION_BUS_ADDRESS
gnome-session --session=gnome-flashback-metacity --disable-acceleration-check --debug &

Guardan(Ctrl+o, Enter) y cierran el archivo(Ctrl+x)

Detenemos vnc

$vncserver -kill :1

Y lo iniciamos de la siguiente manera

$vncserver -geometry 1024x640

Creamos las reglas de firewall para que vnc nos deje usar el puerto 5901 ,5902


Referencia
https://geekflare.com/gcp-firewall-configuration/

Instalamos VNC client desde la siguiente pagina


https://www.tightvnc.com/download.php
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment