Want to read Slashdot from your mobile device? Point it at m.slashdot.org and keep reading!

 



Forgot your password?
typodupeerror
×
X GUI

Remote X Applications Over Slow Lines? 15

mwaddell asks: "One of the great things about X11 is the ability to run applications remotely. However, as one of the many *NIX users who use dialup to access the net, I have found that trying to run anything more complex than xcalc over phone lines is an exercise in frustration and patience. But for 99.9% of what I use remote apps for, I don't need color or any high level of detail. I'd be thrilled to have a window displayed in 8 shades of gray with oversized pixels if it would mean that it would react only slightly slower than a local app. Is this possible?" Would simple XResource changes help improve X11 performance for modem connections?
This discussion has been archived. No new comments can be posted.

Remote X Applications Over Slow Lines?

Comments Filter:
  • by Anonymous Coward
    I have used dxpc over slow (33k) serial lines. It's not exactly the answer to all things but if that's all you've got it will do.
  • The problem here isn't bandwidth -- it is latency. Every action you take has to be sent to the remote system before it is processed, introducing a latency of at least 25-50 ms.

    You see the same problem if you run X off of a server on a different continent... client-server only works for interactive processes if the client is within a few light-milliseconds of the server.
  • by jfunk ( 33224 ) <jfunk@roadrunner.nf.net> on Sunday December 10, 2000 @04:24PM (#569231) Homepage
    The only disadvantage is that it requires setup on both sides.


    I've had a lot of success simply using a browser with Java (by default you can connect to a machine at port 5800 + X server number). No need to install anything on a client. I used to run AfterStep with a background and Netscape fairly quickly. By default it's quicker than the regular client.

    Of course, nowadays, I run single apps in over ssh with the -X (forward X, handles xhost and DISPLAY) and -C (compression) options. It seems to work well, though there is an initial delay.
  • by maken ( 12497 )
    if you dont need many colors and dont mind blocky
    "pixels" use a shell! X is for graphics hence: GUI
    maken
  • by jmaslak ( 39422 ) on Saturday December 09, 2000 @11:13PM (#569233)
    I'm not sure if you are just running apps remotely or if you are running an entire windowing environment remotely.

    I used to run an Xterminal that was on one side of a fairly overloaded 56K line. This terminal did not run a local window manger - it logged in remotely via XDM. It ran fine once I did some tweaking to the window manager. Specifically, "fancy" window managers are horrid over slow links. Don't even consider something like CDE/KDE, Gnome or FWVM over a slow line. TWM, while very sparse, is an excellent window manager for slow lines.

    Of course, if you run your window manager on your local box, it will have little effect on your network speed.

    On a related topic, though: use the "older" applications. Remember that these applications were used across slower networks by the developers! Most new applications were developped on a single machine, with no network involved for the developer's display. As a result, that section of the code was probably never tuned. An example would be to use "xterm" instead of "konsole" (although I haven't tested these against each other; this is only an example)

    Some other relevant information:
    All I ran was a mining dispatch system, which had some fairly simple graphics (it tracked the mine's heavy equipment) on top of a CAD overlay of the mine. I was also able to use xterms and such fine. Don't even think about running Star Office or Netscape remotely, though -- too many messages have to pass back and forth. Desktop apps should stay on the desktop!
  • I've never used Dxpc [http] but my understanding of it is that it compresses all the X11 traffic on the fly. Used in combination with other tactics (e.g. using the lightweight apps/windowmanagers[1] like another poster recommended), should help your situation out.

    I think there is some way to channel X11 over SSH, and further to finangle SSH into compressing the data stream, giving you compression as well as security. But I have absolutely no idea how to do that, so you're on your own in that regard. :-)

    [1] if you want a lightweight windowmanager, definitely check out wm2 [all-day-breakfast.com], the rpm of which is 58Kb and at runtime (2x xterm, xdaliclock, xload, xsetroot -solid grey25, 1280x1024x16@100dpi) it looks to be taking up about 2.9 megs, of which a hair over a meg is actually shared. Note that wm2 is really minimal but then that's sorta the point. :-) Another low-usage window manager is aewm [red-bean.com], also interesting as it's homepage includes links to several other ultra-lights. (<--becuase let's face it, twm is U*G*L*Y and should not be tolerated in polite society, hah)


    --

  • by Walles ( 99143 ) <`johan.walles' `at' `gmail.com'> on Sunday December 10, 2000 @02:11AM (#569235)
    LBX is a standard X extension for solving exactly this kind of problem. If you run XFree86 at home you already have LBX support on your end. On the server end, you should run the program 'lbxproxy' and modify your $DISPLAY variable.

    For more info, check out The LBX Mini-Howto [linuxdoc.org].

    As some other posts have pointed out, the problem isn't entirely solveable (sp?), but LBX is at least one step in the right direction.

    Have fun! //Johan

  • I've used www.workspot.com before oveer a modem, and be able to get by. It's a little slow, but I've even loaded up star-office and everything.
  • by rousseau ( 6492 ) on Sunday December 10, 2000 @07:38AM (#569237) Homepage
    I have had the best luck with VNC [att.com]
    It works like a frame buffer and only transmitts the changes within that buffer to the client.

    The only disadvantage is that it requires setup on both sides. It is my preference over a slow connection.
  • I have 100MB switched lan at office and i use vnc to access windows machine. I also run some gui stuff from remote unix machines on same lan (mainly sco & linux maintenance apps) and comparing these too, x still kicks vnc's ass in performance. Thou most if the windows are not running in 256 color mode and that dropping the palette to that, would be a speed increase.

    And ofcourse, vnc submits all mouse movements and other stuff while x just sends just the actual events and the client side does the care of the rest which might be the reason why x still functions faster.

    I remember reading that vnc was meant to be ran on ATM networks (correct me if im wrong).

    So, while vnc is truely a great piece of software, it wont prolly solve the speed problems.
    --

  • Bandwidth is an issue too. I once tried Netscape across a phone line, and after about five minutes negotiating this and that, the little animated N graphic left no room for anything else to happen.

    About all I can think would help is to use applications that don't animate pixmaps, and maybe tacking a compressor into the stream (even though X uses commands, they can be pretty verbose commands that a compressor may be able to pack down a bit more, especially if an X-aware compressor were made),

  • SSH compression does marvellous things for remote X displays over slow connections. (Of course, my idea of a slow connection is a 64kbit/s upstream on an ADSL line, so it might not be the same thing.)

    If that still isn't enough, I believe there is something called Low Bandwidth X (lbx) out there, and lightens things even more.
  • especially if an X-aware compressor were made ... such as LBX [linuxdoc.org] :p
  • Both VNC-TE (Tight Encoder) and TridiaVNC enhance a standard VNC with better compression..

    I haven't been able to try either of these two out, since Tridia's huge 10MB download and obnoxious website put me right off, and the links to VNC-TE were broken last time i looked.

    However, highly-compressed VNC is probably the way to go, since X is a total dog compared to, dare i say it, MS Windown Terminal Server's RDP protocol.

  • I've got a Sun box that I wanted to be able to view remotely over a ppp connection. I tried LBX and found that it sucked. It took 30 to 60 seconds for a graphic to show. It was a lot better than the 2 to 3 minutes for the graphics to show without LBX, but it was still too slow to be usable. I tried Go-Global from graphon. The displays worked over the phone line as fast as they did over ethernet. The biggest downside, is they don't have a client to view it from Linux (so I'm stuck with NT). They have servers for Sun and Linux though.

Our OS who art in CPU, UNIX be thy name. Thy programs run, thy syscalls done, In kernel as it is in user!

Working...