Ubuntu: How to open the desktop of Ubuntu machine?



Question:

I'm a newbie to Ubuntu. I connect via SSH to a Ubuntu machine. I'm not sure if it's a server or not. When I connect via SSH, it works fine and the shell appears $ ... ready for instructions.

My question: how can I open the desktop (GUI) of the machine?


Solution:1

if you ssh'd with the -X option you can launch GUI programs through X11 forwarding. Then just start the GUI program you're interested in. For example, to explore the filesystem GUI:

ssh -X user@serve.whatever  

...after connection...

nautilus .  

This is really bad practice though, the X11 connection is slow, and you'll hate it. Better to just get comfortable with the CLI.


Solution:2

There are basically two options: SSH with X forwarding and VNC. Regarding the question “server or desktop”, you should look at “How to check if ubuntu desktop or server is installed?”.

SSH with X forwarding

This allows you to run single applications on the remote server using terminal, like if they were running on your local machine. So you won’t see the desktop of the remote machine but run individual remote GUI apps independently â€" with the ability to move their windows around your desktop, minimize individually etc.

To enable this, run SSH command with the -X option and then launch a GUI application using the SSH terminal.

X forwarding must be enabled on the remote server.

The downside of this method is high network load of the transferred graphics, so it is practically usable only when both computers reside on the same fast LAN (for example company or university network).

VNC

This allows you to view the actual desktop like if you were sitting in front of the remote server. Unfortunately I have no experience with VNC on Ubuntu (other platforms only) but the guide at https://help.ubuntu.com/community/VNC should help. You will need to setup both VNC server & client.


Note:If u also have question or solution just comment us below or mail us on toontricks1994@gmail.com
Previous
Next Post »