Go Back   { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Linux > Linux Networking

Reply
 
LinkBack Thread Tools Search this Thread Display Modes
  #1 (permalink)  
Old 07-07-2008, 11:10 PM
Carl Mastrangelo
 
Posts: n/a
X11 Forwarding and Windows remote desktop

Hey, First time posting here. I am running a server from my dorm and am
planning on upgrading it to Ubuntu Hardy from xp. One of the things
that I like in XP is the remote desktop feature not because it has any
particular feature, but because its relatively fast on the dorms upload
connection (800 kbps max is a pain).

I was looking into remote desktop for ubuntu and caught wind of x11
forwarding, but I couldn't find much info on how it works. I would
rather it not take screencaps like VLC does due to my low bandwidth
connection. My question is approx. how much bandwidth will having a
remote x11 session cost me in terms of bandwidth?
Reply With Quote
  #2 (permalink)  
Old 07-08-2008, 02:53 AM
Andrew Gideon
 
Posts: n/a
Re: X11 Forwarding and Windows remote desktop

On Mon, 07 Jul 2008 19:10:40 -0400, Carl Mastrangelo wrote:

> how much bandwidth will having a
> remote x11 session cost me in terms of bandwidth?


It depends upon how graphic-intensive the applications you're using are.
The more data that needs to be sent, the more bandwidth you're using.

I'm not a heavy user of graphics over X, typically. What I find is that
a slow connection is more problematic for me because of latency than
bandwidth. The delay between when I do something on my local hardware
and when the result finally appears on my screen can be annoying.

What I prefer is to avoid X forwarding at a distance where possible. For
example, instead of opening an editor on the server why not mount the
server's file system over the network and edit locally? If you're doing
X forwarding over a public network you're using SSH's X forwarding. And
in that case, you can use sshfs to mount the server's disk space on your
local machine.

But where tricks like this aren't possible, I have used X forwarding over
relatively narrow connections (like old DSL links) with only minor
frustration (but over latency, as I mentioned previously).

- Andrew
Reply With Quote
  #3 (permalink)  
Old 07-08-2008, 05:39 AM
H.Janssen
 
Posts: n/a
Re: X11 Forwarding and Windows remote desktop

Hello,

Carl Mastrangelo wrote:

> Hey, First time posting here. I am running a server from my dorm and am
> planning on upgrading it to Ubuntu Hardy from xp. One of the things
> that I like in XP is the remote desktop feature not because it has any
> particular feature, but because its relatively fast on the dorms upload
> connection (800 kbps max is a pain).
>
> I was looking into remote desktop for ubuntu and caught wind of x11
> forwarding, but I couldn't find much info on how it works. I would
> rather it not take screencaps like VLC does due to my low bandwidth
> connection. My question is approx. how much bandwidth will having a
> remote x11 session cost me in terms of bandwidth?


To my experience, the X11 implementation in Linux is very, very slow on a
low-bandwidth link, e.g. DSL.
Its fairly easy to use, login on the remote machine with ssh -X remoteIP,
and type e.g. "xterm", and after number of seconds you will get a xterm
window (here about 50sec with 256KBit/sec uplink)


There are several other options, but it depends whether you want to transfer
the desktop of the remote machine or to start a new desktop.

If you want to look to the remote desktop, you can implement a VNC module in
the remote X-server. With "vncviewer", you can observe or manipulate the
remote desktop.
Not that fast, but it works. Alternative is the program x0vncserver, which
requires no modification of the xorg.conf file.

With "vncserver", you can start a complete new desktop on the remote machine
and use it on your client with "vncviewer". Works fine, especially if you
do not use the fancy KDE or GNOME desktop but restrict to e.g. the
simple "mwm" window manager.

A similar project is Xrdp, also based on VNC, where you can use the Windows
remote desktop client or the Linux "rdesktop", to work on the newly created
desktop on the remote machine. Comparable with the Windows 2003Server remote
desktop system (but without bothering about licenses)

Finally, there is the NoMachine NX server/client, which is highly optimized
for this kind of application. There is somehow a commercial version and an
opensource version, FreeNX. You can simply adapt the protocol to the line
speed and it's really fast due to compression and local caching of
graphics. I'm not sure whether Ubuntu offers this with their package
manager, but that's easy to find out....

Hope that this helps you and good luck!

H.Janssen
Alkmaar








Reply With Quote
  #4 (permalink)  
Old 07-08-2008, 07:46 AM
Willem Bogaerts
 
Posts: n/a
Re: X11 Forwarding and Windows remote desktop

Carl Mastrangelo wrote:
> Hey, First time posting here. I am running a server from my dorm and am
> planning on upgrading it to Ubuntu Hardy from xp. One of the things
> that I like in XP is the remote desktop feature not because it has any
> particular feature, but because its relatively fast on the dorms upload
> connection (800 kbps max is a pain).
>
> I was looking into remote desktop for ubuntu and caught wind of x11
> forwarding, but I couldn't find much info on how it works. I would
> rather it not take screencaps like VLC does due to my low bandwidth
> connection. My question is approx. how much bandwidth will having a
> remote x11 session cost me in terms of bandwidth?


I use X11 forwarding a lot. It has a few advantages:
- It forwards exactly what you want, and leaves out what you don't. You
will NOT get the remote "desktop", but the applications instead. They
mix in with your local applications perfectly.
- It can be tunnelled over SSH with compression. This will not give
"native" speed, but is fast enough. Using SSH is highly recommended.

You can not couple your own drives as with RDP, but with sshfs you can
just mount the remote machine or parts of it.

But if you speak of a server, why does it run X?

Best regards,
--
Willem Bogaerts

Application smith
Kratz B.V.
http://www.kratz.nl/
Reply With Quote
  #5 (permalink)  
Old 07-08-2008, 07:57 AM
Chris Davies
 
Posts: n/a
Re: X11 Forwarding and Windows remote desktop

H.Janssen <henny@dontsentspammies.hmmsjan.dosgg.nlspam> wrote:
> If you want to look to the remote desktop, you can implement a VNC module in
> the remote X-server. With "vncviewer", you can observe or manipulate the
> remote desktop.


Easiest is to log in to the remote host and simply type "vncserver".
Observe the output to get the (VNC) screen number and then use vncviewer
on the local host to connect to it. No changes required to remote X
Windows server.

Chris
Reply With Quote
  #6 (permalink)  
Old 07-08-2008, 11:34 AM
Carl
 
Posts: n/a
Re: X11 Forwarding and Windows remote desktop

Willem Bogaerts wrote:
> Carl Mastrangelo wrote:
>> Hey, First time posting here. I am running a server from my dorm and
>> am planning on upgrading it to Ubuntu Hardy from xp. One of the
>> things that I like in XP is the remote desktop feature not because it
>> has any particular feature, but because its relatively fast on the
>> dorms upload connection (800 kbps max is a pain).
>>
>> I was looking into remote desktop for ubuntu and caught wind of x11
>> forwarding, but I couldn't find much info on how it works. I would
>> rather it not take screencaps like VLC does due to my low bandwidth
>> connection. My question is approx. how much bandwidth will having a
>> remote x11 session cost me in terms of bandwidth?

>
> I use X11 forwarding a lot. It has a few advantages:
> - It forwards exactly what you want, and leaves out what you don't. You
> will NOT get the remote "desktop", but the applications instead. They
> mix in with your local applications perfectly.
> - It can be tunnelled over SSH with compression. This will not give
> "native" speed, but is fast enough. Using SSH is highly recommended.
>
> You can not couple your own drives as with RDP, but with sshfs you can
> just mount the remote machine or parts of it.
>
> But if you speak of a server, why does it run X?
>
> Best regards,


The server I have also doubles as my media center. I say server
loosely, and only because it is on the server end of a few client/server
programs. (Im also not confident enough to rely solely on ssh to do
administrative tasks yet :) )

I appreciate the help!

Carl
Reply With Quote
  #7 (permalink)  
Old 07-08-2008, 07:23 PM
Andrew Gideon
 
Posts: n/a
Re: X11 Forwarding and Windows remote desktop

On Tue, 08 Jul 2008 07:34:15 -0400, Carl wrote:

> The server I have also doubles as my media center.


Don't tell anyone, but I just happened to confirm that my home's media
center (MythTV) is accessible from my laptop even while at work. This
isn't using X forwarding, but is using SSH to forward the TCP connection
(s) used by MythTV (including both the video and MySQL).

The key is that I'm running the client on my workstation; not forwarding
over X. I'd recommend that as much as possible: don't run an application
on the server that can be run on your client while accessing server
resources. Given sshfs, even remote file access is pretty
straightforward.

But I want to emphasize: don't do remote X forwarding w/o SSH. Aside
from anything else, it's likely to be more difficult to deal with any
type of firewall between your client and server.

- Andrew
Reply With Quote
  #8 (permalink)  
Old 07-10-2008, 09:34 AM
Dikkie Dik
 
Posts: n/a
Re: X11 Forwarding and Windows remote desktop

>> But if you speak of a server, why does it run X?
>
> The server I have also doubles as my media center. I say server
> loosely, and only because it is on the server end of a few client/server
> programs. (Im also not confident enough to rely solely on ssh to do
> administrative tasks yet :) )



OK. I have a similar situation: I have a virtual test machine at work.
It serves to test XDMCP, as well as a build server to test deployments
of web sites, etc. Anything I want to test really.

The same applies to my old laptop at home. I want to turn it into a
server (for it is quiet and small enough to be out of the away) behind
our home network (I live in a co-housing project). This gives me the
luxury of a safe place behind a firewall AND the possibility to learn
how to set up a server.

Good luck!
Reply With Quote
Reply

  { mindfrost82.com } > Gadget Corner > Tech Newsgroups > Linux > Linux Networking


Thread Tools Search this Thread
Search this Thread:

Advanced Search
Display Modes

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

vB code is On
Smilies are Off
[IMG] code is On
HTML code is Off
Trackbacks are On
Pingbacks are On
Refbacks are On



All times are GMT. The time now is 01:41 AM.


Powered by vBulletin, Copyright ©2000 - 2008, Jelsoft Enterprises Ltd.
Search Engine Friendly URLs by vBSEO 3.1.0 ©2007, Crawlability, Inc.
© 1999-2008 mindfrost82.com v11.0

1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109