How do I access my remote Ubuntu server via X-windows from my Mac?

Posted by Magooda on Ask Ubuntu See other posts from Ask Ubuntu or by Magooda
Published on 2012-07-13T12:34:34Z Indexed on 2012/11/11 23:13 UTC
Read the original article Hit count: 371

Filed under:
|

I have an Ubuntu server (12.04 LTS) running remotely on a cloud hosting service. I have installed ubuntu-desktop via apt-get:

$ sudo apt-get install ubuntu-desktop

It appears to have installed no problem.

I have confirmed that /etc/ssh/ssh_config on the server contains the lines

ForwardAgent yes
ForwardX11 yes
ForwardX11Trusted yes

and that /etc/ssh/sshd_config on the server contains the line:

X11Forwarding yes

I then rebooted the server. It came back up no problem.

Now, starting X11.app on my Mac I am presented with an Xterm.

I connect to my server from this terminal using:

$ ssh -X <myhost>

and I connect to the server, no problem.

At this point I don't know what to do. I have tried

$ sudo startx

but I get a "no screens found" error.

I don't have screens because its a headless cloud server, but I just want to acces it from my Mac through X.

What now?

© Ask Ubuntu or respective owner

Related posts about mac

Related posts about xserver