Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

How to open a browser on a Google Compute Engine VM

How can I open a browser in my VM instance? And how safe/unsafe can this be?

The instance is a Ubuntu 16.04

The only way I know to access the VM is via the SSH button provided by google on the cloud console website.

I want to use it regularly, with pages visually displayed and mouse clicks. (Treat me as a newbie, I'm totally new on Linux and on VMs. I didn't even know there was another way of controlling the browser)


Context:

I need to download a huge amount of data from websites to my virtual machine on Google Compute Engine.

I know there are solutions on the web to transfer files from my machine, but my internet really sucks, it's not feasible.

I also know there are some commands like wget using copied cookies to download some files.

Even though, I feel I'll be needing to use a browser, especially because I want to use a regular Google Drive interface to transfer my files if I need.

Knowing more about this helps, but the question is "how to open a browser and navigate as if I was a regular newbie, with pages displayed and mouse clicks".

like image 250
Daniel Möller Avatar asked Sep 13 '17 21:09

Daniel Möller


People also ask

How do I open a browser on a virtual machine?

From the environment page or a sharing portal, click on the thumbnail image of a running VM. The VM desktop or console displays in a new tab in the browser. In the browser client: Use your mouse and keyboard to interact with the VM.

How do I SSH into my browser?

Open the browser and navigate to https://Your-IP-Adress:4200 and you can see the web-based SSH terminal. Input the User Name and your Password to access the shell prompt. Just play on it. For testing purpose, I'm going to list the current directory files and folders.


1 Answers

Install the desktop

sudo apt-get install ubuntu-desktop

Install VNC server

https://www.digitalocean.com/community/tutorials/how-to-install-and-configure-vnc-on-ubuntu-16-04

sudo apt-get install xinit

and then run

startx
like image 60
Nilo_DS Avatar answered Sep 23 '22 14:09

Nilo_DS