Linode Forum
Linode Community Forums
 FAQFAQ    SearchSearch    MembersMembers      Register Register 
 LoginLogin [ Anonymous ] 
Post new topic  Reply to topic
Author Message
 Post subject: Hosted Desktops
PostPosted: Sun Jun 26, 2011 5:40 am 
Offline
Senior Member

Joined: Tue Jun 21, 2011 4:25 pm
Posts: 118
Website: http://www.alohatone.com
Location: Hawaii
I'm looking to put our office desktops @ linode and vnc / remote desktop into the linode servers because they'll have better internet than we will and we can privately share files...

1. what's the best OS to run remote desktop on?

2. what's the best remote client?

3. will this really save bandwidth to our office? (I'm assuming since only screen and keyboard is sent, it'll be less than downloading a webpage / files directly to my desktop) .. not to mention, you know it'll be faster than any of us can download in our offices.


Top
   
 Post subject:
PostPosted: Sun Jun 26, 2011 12:17 pm 
Offline
Senior Member

Joined: Sun May 23, 2010 1:57 pm
Posts: 315
Website: http://www.jebblue.net
I'll address the basic how to securely VNC into an X server session and will skip the much larger questions.

When I want to run a remote desktop I:

a) use an ssh tunnel BASH script like this:

Code:
#!/bin/sh

ssh -l <userid> -p 22 -L 127.0.0.1:5910:127.0.0.1:5901 <serverip>


b) run a VNC server with a BASH script like this:

Code:
#!/bin/sh

vncserver :01 -rfbport 5901 -geometry 1280x1024 -nevershared -securitytypes=none -localhost  -depth 16
sleep 10
xhost + $HOSTNAME


c) make sure my ~/.vnc/xstartup is executable and looks like this:

Code:
#!/bin/sh

# Uncomment the following two lines for normal desktop:
# unset SESSION_MANAGER
# exec /etc/X11/xinit/xinitrc

[ -x /etc/vnc/xstartup ] && exec /etc/vnc/xstartup
[ -r $HOME/.Xresources ] && xrdb $HOME/.Xresources
xsetroot -solid grey
vncconfig -iconic &
#xterm -geometry 80x24+10+10 -ls -title "$VNCDESKTOP Desktop" &
#twm &
#fvwm &
gnome-session &


d) if you run Ubuntu 11.04 and like Unity you won't be able to run it but you can run Unity 2D which is in the repo:

Code:
sudo aptitude install unity-2d


Note that Canonical is making noise like they will make Wayland the default graphics server in 11.10 and X I think rides on top of that if you want which would increase your RAM requirements.


Top
   
 Post subject:
PostPosted: Sun Jun 26, 2011 2:55 pm 
Offline
Senior Member
User avatar

Joined: Tue Mar 17, 2009 5:11 am
Posts: 129
Location: UK
I've been experimenting with nxclient and freenx server on my linode.

I'm in the UK so I've been using a London linode and it's a very, very good set-up. My Linode 512 handles things really smoothly, in fact I can see little difference compared to my hetzner dedicated box.

If you're running ubuntu have a look at these straight-forward instructions: https://help.ubuntu.com/community/FreeNX

(Edit: Ok there's a noticeable difference playing Frozen-Bubble on the Linode, it's a lot slower, but for serious work there's no real discernable difference ;-)


Last edited by Mr Nod on Sun Jun 26, 2011 3:25 pm, edited 1 time in total.

Top
   
 Post subject:
PostPosted: Sun Jun 26, 2011 3:01 pm 
Offline
Senior Member

Joined: Tue Jun 21, 2011 4:25 pm
Posts: 118
Website: http://www.alohatone.com
Location: Hawaii
Mr Nod wrote:
I've been experimenting with nxclient and freenx server on my linode.

I'm in the UK so I've been using a London linode and it's a very, very good set-up. MY Linode 512 handles things really smoothly, in fact I can see little difference compared to my hetzner dedicated box.

If you're running ubuntu have a look at these straight-forward instructions: https://help.ubuntu.com/community/FreeNX


We were running that too , with NeoWare laptops... worked well. http://h20000.www2.hp.com/bizsupport/Te ... =c01293565

I think we'll try it again on Linode.

Reasons to use remote desktop:

- Bandwidth
- Backup
- Reliability
- Maintenance
- scalability
- remote access
- cheaper end nodes
- security (end node gets stolen)


Top
   
 Post subject: vnc on linode
PostPosted: Sun Jun 26, 2011 11:45 pm 
Offline
Senior Newbie

Joined: Mon Jan 30, 2006 12:54 am
Posts: 15
thank you Mr. jebblue for so much great information!

When I run your script to launch vncserver, the server instance is created but the last line gives me a:

xhost: unable to open display ""

Is this fatal?

_________________
Dean Swift


Top
   
 Post subject: Re: vnc on linode
PostPosted: Mon Jun 27, 2011 10:51 am 
Offline
Senior Newbie

Joined: Mon Jan 30, 2006 12:54 am
Posts: 15
deanswift wrote:
xhost: unable to open display ""


Solved! But I *cannot* connect now to the vncserver, which is running:

27765 pts/1 S 0:00 Xtightvnc :01 -desktop X -auth /home/bob/.Xauthority
27772 pts/1 Sl 0:00 gnome-session
27775 pts/1 S 0:00 /usr/lib/libgconf2-4/gconfd-2 5
27777 pts/1 S 0:00 /usr/bin/gnome-keyring-daemon

I cannot connect from my remote machine. Even if I turn off
the firewalls at both ends of the link, I get a "connection refused"
when I run vncviewer. I can't even nping to port 5901, which is what
is configured. I have run xhost + to add both client and server to
access list.

_________________
Dean Swift


Top
   
 Post subject:
PostPosted: Mon Jun 27, 2011 2:31 pm 
Offline
Senior Member
User avatar

Joined: Tue May 26, 2009 3:29 pm
Posts: 1691
Location: Montreal, QC
nx can make it very usable, but this isn't going to save you bandwidth. Quite the opposite, this will consume significantly more bandwidth than working locally (using web browsing as an example).

If you do want to do it, Ubuntu is traditionally the most user-friendly of the common Linode options, but it doesn't necessarily matter if you're setting up the desktop environment yourself anyhow.


Top
   
 Post subject:
PostPosted: Tue Jun 28, 2011 5:31 am 
Offline
Senior Member
User avatar

Joined: Tue Mar 17, 2009 5:11 am
Posts: 129
Location: UK
What I really *love* about this remote desktop malarky is that I can install and run the android SDK, whereas my netbook is so feeble it would never manage it :)


Top
   
 Post subject:
PostPosted: Tue Jun 28, 2011 12:53 pm 
Offline
Senior Member

Joined: Tue Jun 21, 2011 4:25 pm
Posts: 118
Website: http://www.alohatone.com
Location: Hawaii
We put the project aside for now, even on a 768 it was kind of sluggish

But speed test were crazy, 300Mbps down and 50Mbps up.


Top
   
 Post subject: Just for the record!
PostPosted: Tue Jun 28, 2011 9:50 pm 
Offline
Senior Newbie

Joined: Mon Jan 30, 2006 12:54 am
Posts: 15
Above in this thread is a script to launch a vnc server instance. It won't work, and when you get it to work, you won't be able to log in to it:

vncserver :01 -rfbport 5901 -geometry 1280x1024 -nevershared -securitytypes=none -localhost -depth 16

Get rid of both 'securitytypes=none' AND '-localhost'.

vncserver :01 -rfbport 5901 -geometry 1280x1024 -nevershared -depth 16

Now you're good to go, at least I was....

_________________
Dean Swift


Top
   
 Post subject: Re: Just for the record!
PostPosted: Tue Jun 28, 2011 11:53 pm 
Offline
Senior Member

Joined: Sun May 23, 2010 1:57 pm
Posts: 315
Website: http://www.jebblue.net
deanswift wrote:
Above in this thread is a script to launch a vnc server instance. It won't work, and when you get it to work, you won't be able to log in to it:

vncserver :01 -rfbport 5901 -geometry 1280x1024 -nevershared -securitytypes=none -localhost -depth 16

Get rid of both 'securitytypes=none' AND '-localhost'.

vncserver :01 -rfbport 5901 -geometry 1280x1024 -nevershared -depth 16

Now you're good to go, at least I was....


I use it every day and did before I posted that exactly as I posted it. Each option is there for a reason. Advising someone to hack stuff without understanding why you think it works better is not usually a good idea.


Top
   
 Post subject:
PostPosted: Wed Jun 29, 2011 12:18 am 
Offline
Senior Newbie

Joined: Mon Jan 30, 2006 12:54 am
Posts: 15
Well Mr. jebblue, we have a difference of opinion. I know exactly why those options don't work, at least in my setup. So please spare us the fatherly advice about what is and is not good behavior. I suspect now you will have to have a last word. Knock yourself out.

_________________
Dean Swift


Top
   
 Post subject:
PostPosted: Wed Jun 29, 2011 12:41 am 
Offline
Senior Newbie

Joined: Mon Jan 30, 2006 12:54 am
Posts: 15
deanswift wrote:
Well Mr. jebblue, we have a difference of opinion. I know exactly why those options don't work, at least in my setup. So please spare us the fatherly advice about what is and is not good behavior. I suspect now you will have to have a last word. Knock yourself out.


Mea culpa. That was *quite* unnecessarily pissy of me. Sorry about that. Coming off some medication (really...).

My version of vncserver didn't like the -securitytypes arg; is it now obsolete? As for -localhost, since I wasn't tunneling vncclient, all it did was prevent making a connection.

I am now going to set up that tunneling and put back -localhost.

Sorry about all this.

_________________
Dean Swift


Top
   
 Post subject:
PostPosted: Wed Jun 29, 2011 10:31 am 
Offline
Senior Member
User avatar

Joined: Tue May 26, 2009 3:29 pm
Posts: 1691
Location: Montreal, QC
Alohatone wrote:
We put the project aside for now, even on a 768 it was kind of sluggish

But speed test were crazy, 300Mbps down and 50Mbps up.


It depends on the technology used. 768 Kbps of upstream might feel sluggish with VNC, which is sending the entire framebuffer (image) over the network, versus NX, which buffers/caches/proxies XDMCP itself (if an app needs to render text, it sends the text, not an image of the text).


Top
   
 Post subject:
PostPosted: Thu Jun 30, 2011 10:17 pm 
Offline
Senior Member

Joined: Sun May 23, 2010 1:57 pm
Posts: 315
Website: http://www.jebblue.net
Np desnswift, if I had a nickel for each time I do the same ...

I use vnc4server in the Ubuntu repo, in fact everything is out of the repo. You're right about the fact that securitytypes and one or two other options can cause issues I should have said I was on Ubuntu latest in my original post. I've noticed RPM based distros in the past would differ from Ubuntu in this area, good point.

To the NXers... some recommend NX and I've tried it twice over the years and just keep uninstalling it, it seems I'm not sure really, maybe too invasive in how it operates? .. something?

OP There is one more option you can try, might get better performance, old reliable Xvfb paired with x11vnc. x11vnc was designed to export your physical display to your VNC client, I use this to get my laptop screen on my desktop when I need to do stuff on there but if you use Xvfb as the X server; x11vnc happily exports it.

Use a new script like this:

Code:

#!/bin/sh

Xvfb :20 -screen 0 1280x1024x16 &

export DISPLAY=:20

#twm &
#wmaker &
#fvwm2 &
gnome-session &

#x11vnc -display :20  -rfbport 5920 &
x11vnc -display :20 -localhost -rfbport 5901 -noxdamage -noclipboard -nosetclipboard -repeat -clear_keys &



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


Who is online

Users browsing this forum: No registered users and 7 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