Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
PostPosted: Tue Feb 02, 2010 9:51 pm 
Offline
Senior Newbie

Joined: Tue Feb 02, 2010 9:46 pm
Posts: 5
Any of you guys know how to set up remote desktop (Linux-Linux) using the SSH?

I have been using this server for a while and things would go a lot smoother if i could use Firefox on it. (I have gnome already installed on it)

I have tried other things like using NX,xming and vnc.
Xming wont run FF.
NX worked once and now hits with a authentication error even after nothings changed.
VNC never connects.

Anyways I decided it would just be so much easier if i could use Ubuntus remote desktop feature. Any ideas?

(inb4 shouldn't need a gui)


Top
   
 Post subject:
PostPosted: Tue Feb 02, 2010 9:52 pm 
Offline
Senior Member
User avatar

Joined: Sun Dec 27, 2009 11:12 pm
Posts: 1038
Location: Colorado, USA
Why would you need a desktop on a REMOTE server?


Top
   
 Post subject:
PostPosted: Tue Feb 02, 2010 9:58 pm 
Offline
Senior Newbie

Joined: Tue Feb 02, 2010 9:46 pm
Posts: 5
There is always one person.

It doesn't matter why I need it.


Top
   
 Post subject:
PostPosted: Tue Feb 02, 2010 10:02 pm 
Offline
Senior Member

Joined: Fri Sep 21, 2007 4:12 pm
Posts: 78
You don't need a GUI.

That said.


$ ssh -Y user@host
$ firefox


... and you magically have a window running on your box that looks and feels like a local window, but is actually running on the server. Perhaps that works?


Top
   
 Post subject:
PostPosted: Tue Feb 02, 2010 10:13 pm 
Offline
Senior Newbie

Joined: Tue Feb 02, 2010 9:46 pm
Posts: 5
kbrantley wrote:
You don't need a GUI.

That said.


$ ssh -Y user@host
$ firefox


... and you magically have a window running on your box that looks and feels like a local window, but is actually running on the server. Perhaps that works?


I got so excited there, then I got "Error: no display specified"
So i tried firefox --display=:0:0
and got "Error: cannot open display: :0:0"

EDIT:

tried killing all vncs. Then starting a new one.

Now it hit me with
Quote:
Xlib: extension "RANDR" missing on display ":1.0".
Xlib: extension "Generic Event Extension" missing on display ":1.0".


Top
   
 Post subject:
PostPosted: Wed Feb 03, 2010 12:35 pm 
Offline
Senior Member
User avatar

Joined: Tue May 26, 2009 3:29 pm
Posts: 1691
Location: Montreal, QC
IMO: Install some X app like xterm or xeyes, this will pull in the X dependencies. Then install some vnc server. From there, you just run "vncserver" and connect. If you can't connect, you probably firewalled yourself off.


Top
   
 Post subject:
PostPosted: Thu Feb 04, 2010 8:33 pm 
Offline
Senior Member

Joined: Fri Sep 21, 2007 4:12 pm
Posts: 78
Raven917 wrote:
kbrantley wrote:
You don't need a GUI.

That said.


$ ssh -Y user@host
$ firefox


... and you magically have a window running on your box that looks and feels like a local window, but is actually running on the server. Perhaps that works?


I got so excited there, then I got "Error: no display specified"
So i tried firefox --display=:0:0
and got "Error: cannot open display: :0:0"

EDIT:

tried killing all vncs. Then starting a new one.

Now it hit me with
Quote:
Xlib: extension "RANDR" missing on display ":1.0".
Xlib: extension "Generic Event Extension" missing on display ":1.0".


With the SSH X11 forwarding, you don't need any vncserver running, and you don't need Xorg running on the server either. If you
Code:
ssh -Y
into your server, and then
Code:
echo $DISPLAY
it should read something like :11. If it does, good.

Installing xterm would likely fix your issues.

Note that this won't bring you a full desktop... it'll bring you a window. But a window running on the linode, which means whatever you download will actually be downloaded to the linode.

I've done this (once) before and to reiterate, you don't need any VNC, NX, xming, Xorg, etc running for this to work. Just make sure that xterm is installed (and firefox, if that is what you're using) and it should "just work."


Top
   
 Post subject:
PostPosted: Fri Feb 05, 2010 12:31 pm 
Offline

Joined: Fri Feb 05, 2010 12:02 pm
Posts: 1
Location: Ireland
I setup a vnc desktop like this, works a treat apart from some permission problems with users-admin, etc (policykit problem?)
Code:
# install ubuntu desktop packages and vnc server
sudo apt-get install ubuntu-desktop vnc4server
# start vnc server using the resolution of your home machine and 16bit colour for better performance
vnc4server -geometry 1600x1200 -depth 16


This will start a display on localhost:1 (port 5901). From home ssh into your linode using:
Code:
ssh -Cg -L5901:localhost:5901 someuser@your-linode-address.com

Then connect to this from home by pointing your vncviewer at localhost:1
In the xterm that is visible (put mouse over xterm for focus) type:
Code:
nohup gnome-session &

You can edit ~/.vnc/xstartup and put in that gnome-session command so that it comes up automatically when you start a vnc server. To kill the server (assuming it is running on display :1) use:
Code:
vnc4server -kill :1

You can leave your vnc desktop up and running all the time, no need to kill it when you disconnect, so everything is as you left it next time you connect.


Top
   
 Post subject: DISPLAY problem
PostPosted: Sat Feb 06, 2010 3:39 am 
Offline

Joined: Sat Feb 06, 2010 3:14 am
Posts: 1
I had a problem with this and the following post solved it.

http://www.linode.com/forums/viewtopic. ... hlight=x11
running x server on minimal distribution

See the post at the bottom hdj8532 for the solution


Last edited by bcurrey on Sat Feb 06, 2010 2:59 pm, edited 1 time in total.

Top
   
 Post subject:
PostPosted: Sat Feb 06, 2010 10:17 am 
Offline
Senior Member

Joined: Fri Feb 18, 2005 4:09 pm
Posts: 594
vonskippy wrote:
Why would you need a desktop on a REMOTE server?


I do all my software development work remotely on my Linode now, and since I have persistent remote sessions it works well for me. I use several GUI code editors and then Firefox for web site testing. Site is http://zunzun.com/

I use NX for the remoting, and shifted SSH off of port 22.

James


Top
   
Display posts from previous:  Sort by  
Post new topic  Reply to topic


Who is online

Users browsing this forum: No registered users and 2 guests


You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum

Search for:
Jump to:  
RSS

Powered by phpBB® Forum Software © phpBB Group