Slashdot Mirror


X Server Now Available For Android

New submitter mkwan writes "The open-source X Server for Android has hit beta and is now available for download through the Android Market. On Australian networks at least, smartphones are assigned publicly-accessible IP addresses, so it should be possible to display many Linux applications on an Android smartphone simply by setting the DISPLAY environment variable to the phone's IP address followed by :0" The source is available under the MIT license (or Apache; the project page and story disagree) over at Google Code. It doesn't support all of the X protocol and there's no Xlib implementation (i.e. no X11 apps on the device yet except via the NDK if you're lucky), but it is a reimplementation of the X server in Java for Android. You can run remote applications at least.

131 comments

  1. Sounds funky but by mSparks43 · · Score: 4, Informative

    Why?

    1. Re:Sounds funky but by ByOhTek · · Score: 3, Informative

      Same reason as SSH - it's a convenient platform. It'd be nice, if I needed to do something work related (or access something on my home machine) to have an available X session.

      --
      Self proclaimed typo king, and inventor of the bear destroying coffee table (patent not pending).
    2. Re:Sounds funky but by Anonymous Coward · · Score: 1

      So I can launch Rhythmbox on my HTPC, display the GUI on my phone, and have a decent audio remote on my phone, just like that.

    3. Re:Sounds funky but by UnknowingFool · · Score: 1

      To run the most patriotic of text editors, vim. After all, we know that XEmacs is for communists. :P

      --
      Well, there's spam egg sausage and spam, that's not got much spam in it.
    4. Re:Sounds funky but by noh8rz2 · · Score: 0

      Why would anybody want to run a server from a phone? The data caps would kill you, not to mention the throughpu! And what about battery life! Can you still make calls? Play games?

    5. Re:Sounds funky but by Tubal-Cain · · Score: 4, Funny

      How dare you defile vim with X11!

    6. Re:Sounds funky but by GameboyRMH · · Score: 5, Funny

      Maybe we can run a Linux desktop environment. And then add some common apps that are used among many POSIX-compliant operating systems. And then get rid of all the stuff that requires Google services, and add a compiler so we can run whatever we want.

      We could call this flavor of Android the Generally Normal User-environment Linux, or GNU/Linux for short.

      --
      "When information is power, privacy is freedom" - Jah-Wren Ryel
    7. Re:Sounds funky but by Anonymous Coward · · Score: 0

      Nomachine for android? This would make it possible.

    8. Re:Sounds funky but by DontLickJesus · · Score: 1

      Sprint Son, ya heard?

      --
      Where genius and insanity become confused true wisdom is found
    9. Re:Sounds funky but by jedidiah · · Score: 3, Informative

      Quite. X is just a remote graphics framework. The app could be created with a tablet in mind. It doesn't have to be a conventional desktop app. You can treat the phone as a peripheral for your TV or or PC without dealing with the nonsense of IR transmitters.

      Run any app you like. Skip the nonsense with walled gardens.

      --
      A Pirate and a Puritan look the same on a balance sheet.
    10. Re:Sounds funky but by Anonymous Coward · · Score: 1

      You run it only when needed... He specifically said "same reason as SSH". That is, access a remote system to do some actions...
      You sure can still call (unless you are on CDMA...) and play games...
      You must also know that when the server is idle, it consumes neither data nor battery...

    11. Re:Sounds funky but by ByOhTek · · Score: 1

      Heh, I hadn't even thought about the phone aspect - low rez, yuck. I was mostly thinking about tablets, but even in the case of a phone:

      Some of us don't have data caps. Even then, many phones can use WiFi... Which mitigates your throughput complaint.

      Battery life could be an issue, varies by phone/tablet.

      Both of my previous android phones allowed me to make calls while using apps. My current phone is WP7, so it isn't relevant to the conversation.

      Play games while using X, or play games that use X? Guessing both. I expect the developers of this put each "window" on it's own screen, or set a number pf screens, and let the windows play around in there.

      --
      Self proclaimed typo king, and inventor of the bear destroying coffee table (patent not pending).
    12. Re:Sounds funky but by ByOhTek · · Score: 2

      Why is the North Korea of text editors, the most patriotic?

      --
      Self proclaimed typo king, and inventor of the bear destroying coffee table (patent not pending).
    13. Re:Sounds funky but by noh8rz2 · · Score: 1

      I don't get it. You mean that sprint doesn't have data caps. But it does! There are dta caps on all US companies now.

    14. Re:Sounds funky but by Barefoot+Monkey · · Score: 1

      It's an X server, not a webserver. What it does is allow apps designed for X to run on your phone. It doesn't even need to touch the network.

    15. Re:Sounds funky but by Stewie241 · · Score: 1

      If I understand the summary correctly, it allows apps designed for X to use your phone as the display.

    16. Re:Sounds funky but by Anonymous Coward · · Score: 0

      I am not amused.

      // RMS

    17. Re:Sounds funky but by dmesg0 · · Score: 1

      Connect your phone to an external screen, keyboard and mouse, configure XDMCP - and you've got yourself a nice X terminal.
      NCD used to charge thousands of $ for them back in 199x...

    18. Re:Sounds funky but by gstoddart · · Score: 2

      To run the most patriotic of text editors, vim.

      Bah, real vi doesn't use X ... it just requires a console.

      You guys and your "almost vi" with your namby pamby file menus and clicky buttons.

      --
      Lost at C:>. Found at C.
    19. Re:Sounds funky but by Windwraith · · Score: 1

      An IM client such as pidgin that I can trust to not passing my messages to some third server would be awesome. All the current Android IM options feel kind of dubious somehow, I am using Meebo because it's at least familiar-sounding and used them in the past without getting loads of spam or something. I'd love pidgin...even Finch would do.

      I know libpurple has been ported, but nobody has stepped forward to write an interface to it (or an OTR plugin)

    20. Re:Sounds funky but by Anthony+Mouse · · Score: 2

      If I understand the summary correctly, it allows apps designed for X to use your phone as the display.

      Which is actually a lot better, if you think about it. It lets you have an app 'running' on your Android device anywhere, but with the performance of your 8-core 4GHz x86 PC at home.

    21. Re:Sounds funky but by SEWilco · · Score: 1

      I don't get it. You mean that sprint doesn't have data caps. But it does! There are dta caps on all US companies now.

      I'd better take a closer look at my Sprint bill, then. Having trouble finding that.

    22. Re:Sounds funky but by SEWilco · · Score: 1

      It's an X server, not a webserver. What it does is allow apps designed for X to run on your phone. It doesn't even need to touch the network.

      X Windows consider the screen to be what is being "served", so an X server is on the device with the screen. It allows X apps to be run on local or remote machines. If someone has compiled an X app to run inside an Android phone, then you might be able to access it now.

    23. Re:Sounds funky but by Anonymous Coward · · Score: 0

      ...and I have two pizza box MCX's (along with their 21" CRT monitors...) in my storage unit somewhere... has the NCD software been kept up to date with Linux? It was a good buy from eBay way back when, if only for the monitors (1600x1200 resolution...)
      At least my storage unit won't be blown off its foundation if a tornado were to hit it with those monitors in it...

    24. Re:Sounds funky but by Anonymous Coward · · Score: 0

      Why would anybody want to run a server from a phone? The data caps would kill you, not to mention the throughpu! And what about battery life! Can you still make calls? Play games?

      The application is run remotely on the X client and send simple (well, compared to most other protocols nowadays) drawing instructions to the X server, which in turn only draws it on the screen (and thus present it to the user) and send back any user interaction (mouse clicks, keyboard input et c.) to the client.These drawing instruction is more compact then streamed video, even more compact then most commercial web-pages these days (you don't have to send the inner workings of the "page", just how it looks). The user feedback sent from the X server to the client is just coordinates that have been clicked, keys that have been pressed et c.

      You could compare it to the Opera Mini browser (especially developed for low-processing power, low bandwidth mobile phones in the 1990's, before "real" web browsers (with javascript, css, html et c.) could run on mobile phones), which work in a similar fashion. Opera Mini consist of two part, a server program running on a "real" computer (similar to the X client) and a client program running on the phone (similar to the X server). The Opera Mini server process the web-page code and send drawing instruction to the Opera Mini browser (the client) running on the phone. Then the Opera Mini Browser reports back any user feed back, which may result in redrawing instructions from the server.

    25. Re:Sounds funky but by SiChemist · · Score: 1

      Exactly what I was thinking. NX client for Android! I would soooooo love for that to happen.

    26. Re:Sounds funky but by Picass0 · · Score: 1

      Sprint data cap doesn't apply to smart phones yet.

    27. Re:Sounds funky but by jittles · · Score: 1

      >

      I know libpurple has been ported, but nobody has stepped forward to write an interface to it (or an OTR plugin)

      I've been intending to do just that for so long now, but never have the time. Alas...

    28. Re:Sounds funky but by DarthJohn · · Score: 1

      I expect the developers of this put each "window" on it's own screen, or set a number pf screens, and let the windows play around in there.

      Nope. It's just a plain X server. No window manager. On my Motorola DROID (original) I was able to run xterm. I used connect bot to ssh to my Debian box, set the DISPLAY environment variable to the IP address (WiFi) of my phone and ran xterm. The X Server app acts like any other app in switching back to it and the xterm just sat there in the top left of the screen. Touching and swiping just move the mouse cursor. There's no window manager, so you have to move the cursor over the app you want to have focus (can't type in the xterm unless the cursor is somewhere over it ala 'hover focus') and I haven't tried more than just the one xterm yet. I did try to run fvwm from the Debian box with the -display switch but crashed the X Server app.

      Anyhow, it's not X clients split up on different screens or anything as fancy as that. It's an implementation of the X server on Android. You get a basic desktop area or whatever the traditional X11 term is and not even so much as window decorations.

      Also to the op question of "why" I downloaded it and checked it out "just because." Having an SSH client is useful enough. I played around with one of the VNC clients also but just enough to decide it was cool but not very useful to me, this X Server will probably fall into the same category for me.

    29. Re:Sounds funky but by Pokermike · · Score: 1

      Perhaps GP was referring to this cap Sprint instituted around October or November of 2011 on tablets, hot spots, and tethered mobile phones. Still unlimited data for untethered phones (I think).

      From the announcement on Sprint's website:

      Data usage limits when using 3G/4G Mobile broadband devices

      If you have a mobile broadband device such as a tablet, netbook, notebook, USB card, connection card or Mobile Hotspot device, effective beginning with your next bill following notification, your on-network monthly data allowance will no longer include unlimited 4G.

    30. Re:Sounds funky but by bigredradio · · Score: 1

      ... it just requires a console.

      Pfst....Not if you know what you're doing. Back in my day we didn't have that fancy vt100 and we liked it.

    31. Re:Sounds funky but by kelemvor4 · · Score: 1

      I don't get it. You mean that sprint doesn't have data caps. But it does! There are dta caps on all US companies now.

      MetroPCS doesn't have data caps, even for 4g.

    32. Re:Sounds funky but by harrkev · · Score: 4, Informative

      No, you probably CAN'T play games. Really, I just played around with it. Close to useless.

      For example, nedit won't start. Emacs won't start. You CAN start an xterm, and then have access to all terminal goodness, but there are SSH clients for Android that will do just as well.

      The feat if truly impressive, but not enough of "X" is implemented to make it much more than a toy.

      When you try to run something serious, this is what you get:

      X Error: BadImplementation (server does not implement operation) 17
          Major opcode: 20 (X_GetProperty)
          Resource id: 0x0
      X Error: BadLength (poly request too large or internal Xlib length error) 16
          Major opcode: 72 (X_PutImage)
          Resource id: 0x0

      Cool concept, but it needs more work to be truly usable for anything beyond "xeyes" or "xclock."

      --
      "-1 Troll" is the apparently the same as "-1 I disagree with you."
    33. Re:Sounds funky but by Hadlock · · Score: 1

      Non-iPhone phones are just now starting to get 720p displays in the 4" formfactor, and 4.0 ICS devices support USB and Bluetooth HID prehiprials. Provided you have the eyes for it (or reading glasses, at least) you shouldn't have too much trouble emulating the 1998 desktop experience on a phone

      --
      moox. for a new generation.
    34. Re:Sounds funky but by Anonymous Coward · · Score: 0

      hahaha that would be cool :D

    35. Re:Sounds funky but by gstoddart · · Score: 1

      Pfst....Not if you know what you're doing. Back in my day we didn't have that fancy vt100 and we liked it.

      Maybe we're using the term "console" differently ... I guess I simply meant a command prompt. But, I guess that's probably technically incorrect.

      My first year of university I had to use a line editor over a 300 baud modem ... which was remarkably not much different than a VT-52 at 1200 baud which you'd get in the labs. :-P

      However, I still love to see some poor schmuck that needs Emacs with all of their add-on modes to be able to do anything. I once watched a co-worker stuck in front of an old Sun workstation who simply could not use vi, there was no emacs, and he wasn't allowed to install it.

      Boy, did I laugh at him ... good times. :-P

      --
      Lost at C:>. Found at C.
    36. Re:Sounds funky but by Anonymous Coward · · Score: 0

      would kill you

      Has the stupid not killed you yet?

    37. Re:Sounds funky but by AvitarX · · Score: 1

      Don't they (like TMO) slow you down over a certain amount though?

      --
      Wow, sent an e-mail as suggested when clicking on "use classic" banner, and got a fast response that addressed my msg
    38. Re:Sounds funky but by Windwraith · · Score: 1

      I'd love you forever.

    39. Re:Sounds funky but by Anonymous Coward · · Score: 0

      Because they want to make sure that slow buggy shit is available on every possible platform.

    40. Re:Sounds funky but by shutdown+-p+now · · Score: 1

      It's actually very useful. For a long time now, it was possible to run full fledged Linux distros such as Ubuntu in a chroot inside Android (note, this also neatly works around the Xlib problem - chroot has its own userspace libraries for everything). This, in turn, lets you run things like LibreOffice on your Android tablet - particularly handy when you have a BT keyboard, or own an Asus Transformer or Lenovo Thinkpad tablet.

      The catch was that you then had to use a VNC client to work with graphics apps, which is pretty slow. With this now, the experience should be much better.

    41. Re:Sounds funky but by Anonymous Coward · · Score: 0

      WebOS platforms have been able to run a full fledged x server for ages. You can even run xfce!

    42. Re:Sounds funky but by mkwan · · Score: 1

      The BadImplementation error is because there's no ICCCM-compliant window manager running. You could try running a window manager remotely, but it's fiddly. The BadLength error might actually be a bug.

    43. Re:Sounds funky but by serviscope_minor · · Score: 2

      The BadImplementation error is because there's no ICCCM-compliant window manager running.

      Are you sure? I thought any window at any nesting level could have arbitrary properties (indexed by atoms). It sounds like the XGetProperty call is unimplemented. If that's the case, then running an ICCCM WM is impossible.

      --
      SJW n. One who posts facts.
    44. Re:Sounds funky but by Vegemeister · · Score: 1

      x2x. Use your phone/tablet as a remote mouse/keyboard for your workstation.

    45. Re:Sounds funky but by jittles · · Score: 1

      Well I just interviewed for a new job doing Android / iOS development. Maybe that will give me the excuse to finally do something about Pidgin once and for all... We'll see!

    46. Re:Sounds funky but by bigredradio · · Score: 1

      there was no emacs, and he wasn't allowed to install it

      Good times indeed.

    47. Re:Sounds funky but by zoloto · · Score: 1

      More importantly, why are they still pushing this java crap? It should have died out long ago!

    48. Re:Sounds funky but by styrotech · · Score: 1

      Have you ever seen a North Korean parade or other choreographed event? They seem to be the most ridiculous over the top displays of patriotism on the planet. North Korea is almost the very definition of extreme patriotism.

      Or are you one of those that think patriotism is something that only applies to Americans?

    49. Re:Sounds funky but by Anonymous Coward · · Score: 0

      how dare you defile 'vi' with 'vim'

      https://sites.google.com/a/bostic.com/keithbostic/nvi

    50. Re:Sounds funky but by ChunderDownunder · · Score: 1

      Um, dalvik isn't Java(TM) - the whole point of Larry Ellison's lawsuit.

      Blame Google, rather than Oracle for any laggy performance. In fact, benchmarks comparing Hotspot to Dalvik (froyo) some time ago showed Google had some catching up to do.

    51. Re:Sounds funky but by kelemvor4 · · Score: 1

      Don't they (like TMO) slow you down over a certain amount though?

      They claim they do not. I don't generally trust salespeople, but I've never had a problem. Use a Samsung galaxy indulge for wireless tethering all the time.

    52. Re:Sounds funky but by TheCRAIGGERS · · Score: 1

      Hit 20GB for a couple months in a row and let me know how that works out for ya.

    53. Re:Sounds funky but by ByOhTek · · Score: 1

      Read the post that was in reply to again. Note why I would mention a communist state...

      --
      Self proclaimed typo king, and inventor of the bear destroying coffee table (patent not pending).
    54. Re:Sounds funky but by Anonymous Coward · · Score: 0

      The more miserable it is, the more excited you need to be about it to tolerate it.

    55. Re:Sounds funky but by Windwraith · · Score: 1

      That is great. Oh, and good luck with that job!

    56. Re:Sounds funky but by AvitarX · · Score: 1

      They have for a few years said they "may" in the small print.

      Now they sell certain amounts, with slowdown rather than overage.

      --
      Wow, sent an e-mail as suggested when clicking on "use classic" banner, and got a fast response that addressed my msg
    57. Re:Sounds funky but by hyc · · Score: 1

      I rewrote the pidgin-otr plugin to use plain libpurple a few months ago. It will work on anything that libpurple works on, including finch. You can read about it here

      http://lists.cypherpunks.ca/pipermail/otr-dev/2011-December/001226.html

      and grab the code here

      https://gitorious.org/purple-otr#more

      There's already a package for it in Arch Linux.
      http://aur.archlinux.org/packages.php?ID=55511

      --
      -- *My* journal is more interesting than *yours*...
  2. chroot by Vahokif · · Score: 1

    You can also install a Linux of your choice in a loopback file on your phone and chroot in. You could use x11vnc for graphics before, but as you can imagine it's a bit inefficient.

    1. Re:chroot by oakgrove · · Score: 1

      I'm doing this now with my Ubuntu chroot. I usually use androidVNC to show the graphical applications but I'm messing around with this xserver. So far, for the things that work with it it is much better than using a vnc client. The only problem is there are a lot of applications that don't work. Sadly, almost nothing works.

      --
      The soylentnews experiment has been a dismal failure.
  3. millions of Androids suddenly cried out in terror by Anonymous Coward · · Score: 0, Flamebait

    ...and were suddenly silenced.

    (captcha: intrude)

  4. Crap. The WORST SECURITY thing to tell people. by Anonymous Coward · · Score: 5, Insightful

    Doing what the article says requires you to use "xhost +" as the magic cookie requirements will not have been met.

    Second, even with the magic cookie, all transmissions to/from the X server are unencrypted - which means your magic cookie (the password to the X server) is passed in cleartext for anyone to see.

    Having an X server on android is usefull, but also get ssh. That will securely route the X protocol (with encryption) from a remote (to the android display) system and with proper display.

    1. Re:Crap. The WORST SECURITY thing to tell people. by Unknown+Lamer · · Score: 3, Interesting

      Well, the article implies that he hasn't implemented xhost security yet so it's kind of a moot point right now :)

      Note this is not X.org, but a new implementation of an X11 server in Java. Which is pretty neat if you ask me.

      --

      HAL 7000, fewer features than the HAL 9000, but just as homicidal!
    2. Re:Crap. The WORST SECURITY thing to tell people. by TheRaven64 · · Score: 1

      Neat, but not especially hard. There have been several X11 implementations. I remember one written in Java about 10 years ago (maybe this is a port of that one?). There are several C implementations, suck as kdrive. Implementing X is not hard for the core protocol. Most of the complexity in X.org is in the drivers. Beyond that, there are all of the extensions.

      --
      I am TheRaven on Soylent News
    3. Re:Crap. The WORST SECURITY thing to tell people. by Galestar · · Score: 1

      k go ahead let's see yours

      --
      AccountKiller
    4. Re:Crap. The WORST SECURITY thing to tell people. by TheRaven64 · · Score: 1

      Do you have an actual point, or are you still 12?

      --
      I am TheRaven on Soylent News
    5. Re:Crap. The WORST SECURITY thing to tell people. by Anonymous Coward · · Score: 0

      Not mine, but see here: http://www.jcraft.com/weirdx/

      And not 10 years old but almost as seen here: http://sourceforge.net/projects/weirdx/files/

    6. Re:Crap. The WORST SECURITY thing to tell people. by Anonymous Coward · · Score: 0

      Actually if you look at the announce mailing list, first versions of WeirdX are more than 10 years old: http://sourceforge.net/mailarchive/forum.php?forum_name=weirdx-announce&max_rows=25&style=ultimate&viewmonth=200001

  5. SSH, I hope? by fuzzyfuzzyfungus · · Score: 5, Insightful

    I hope that nobody would actually consider a remote X session without tunnelling over ssh...

    1. Re:SSH, I hope? by iamgnat · · Score: 2

      I miss the insecure days of trolling my co-workers with an app that made their mouse move one pixel in a random direction (was great on one guy who used hot edges to switch desktops and the mouse got stuck in the corner constantly switching desktops). Alternatively my office mate had a pop up window come up that would stay a few pixels away from their cursor. The scary part was the SA that was half through ordering replacement hardware before we came clean...

    2. Re:SSH, I hope? by markdavis · · Score: 1

      >I hope that nobody would actually consider a remote X session without tunnelling over ssh...

      It depends on your network and environment. If you are on a local, secure, wired, switched network, it doesn't matter that much if the X11 traffic is not encrypted. And without encryption, it will be much simpler, faster, and more efficient.

      But yes, if you plan on doing this over WiFi or the Internet, then I would strongly recommend running it through ssh or some other encrypted transport.

    3. Re:SSH, I hope? by dbIII · · Score: 1

      And without encryption, it will be much simpler, faster, and more efficient.

      Some X11 data compresses quite well so in some cases ssh actually improves performance.

    4. Re:SSH, I hope? by Trogre · · Score: 1

      It's a crime. A crime that comments like this haven't been modded up to +5. What's wrong with /. these days?

      --
      "Nine times out of ten, starting a fire is not the best way to solve the problem." - my wife
    5. Re:SSH, I hope? by markdavis · · Score: 1

      >Some X11 data compresses quite well so in some cases ssh actually improves performance.

      That is also true...(as long as you can take the even more CPU hit on both sides... which is not a good thing on a multiuser application server) but I was speaking only about encryption, not compression.

      Also note that most implementations of ssh have compression off by default- it must be requested (-C). And compression can actually *hurt* performance on a fast/local network, because it will increase latency/jerkiness of the data flow and/or some CPU's cannot compress as fast as the data could have been transmitted uncompressed.

    6. Re:SSH, I hope? by dbIII · · Score: 1

      While that may be true I have noticed a performance increase when users have switched from telnet and X transport to ssh with everything on port 22 - however that is with 2GHz+ machines at both ends and compression turned on. Even fairly old MS Windows implementations of X that only allow sessions to start natively with telnet seem to get a speed improvement by using PuTTy to handle the transport.
      That is with applications that typically bring up two full screen windows at a time with a lot of 2D graphics detail (but not many colours - almost monochrome) and a requirement for a keeping the mouse pointer as interactive as possible. On a 100Mb/s network it was a noticable improvement, I'm not sure if it would be noticable on gigabit since it was all changed over to ssh before I had gigabit to every desktop.

      Anyway, in my case compression improved things. With something like photo editing in 24 bit, or a less extreme example, I'm sure it wouldn't help.

  6. more like... by ByOhTek · · Score: 2

    Millions of androids were oblivious... ... and continued doing what they were previously doing.

    It's a niche tool, but for those of us who are in that niche, it's nice to see it available.

    --
    Self proclaimed typo king, and inventor of the bear destroying coffee table (patent not pending).
  7. Reinveting the Wheel, Backwards by Microlith · · Score: 2, Insightful

    I suppose this should be interesting, but mostly it strikes me as dumb. Mostly as a result of Google having reinvented the wheel by creating an entirely new and no more efficient or effective rendering and windowing subsystem for Android, then having the rest of the open source community chase along behind them. I suppose that's not terribly surprising, seeing as how Android was proprietary out of the gate until Google bought them.

    In other news, I'll hope that my N900 holds out and that another device, probably one from Samsung running Tizen, comes along before it fails.

    1. Re:Reinveting the Wheel, Backwards by noh8rz2 · · Score: 0

      ANdroid is still proprietary, unfortunately it's proprietary with apple and cisco's technology! Hence the lawsuits over stolen technology.

    2. Re:Reinveting the Wheel, Backwards by Anonymous Coward · · Score: 0

      Baby the crap out of that usb port, but don't worry about dropping it, ever. The phone is tougher than most surfaces.

      (soon to be former n900 owner)

    3. Re:Reinveting the Wheel, Backwards by GameboyRMH · · Score: 2

      If only Maemo could run on a Droid 4 I wouldn't have to worry so much about my N900...

      --
      "When information is power, privacy is freedom" - Jah-Wren Ryel
    4. Re:Reinveting the Wheel, Backwards by lucian1900 · · Score: 2

      Actually, X11 has been tried before on mobiles and was often found lacking. Android's rendering and windowing is just better than X11.

    5. Re:Reinveting the Wheel, Backwards by Anonymous Coward · · Score: 1

      Works just fine on the N900, N9 or Spark though. :)

    6. Re:Reinveting the Wheel, Backwards by NuShrike · · Score: 1

      Their rendering and window subsystem has already proven to be laggy and inefficient unless you throw overwhelming hardware at it. Why even continue do it in Java and on Mobile!? There's neither memory, cpu/gpu, nor battery, to feed that mess properly.

      Even Windows Phone moved their rendering engine to native. Why not a proper port of Wayland (or just switch to Qt) instead?

    7. Re:Reinveting the Wheel, Backwards by NuShrike · · Score: 1

      Works fine on Ubuntu for Android.

    8. Re:Reinveting the Wheel, Backwards by markdavis · · Score: 1

      Because Wayland has no support yet. Because millions of machines already support and use X11 applications. Because X11 works just fine.

      As for running X on a "mobile"- phones are already more powerful than machines that ran X just fine a decade ago. And modern Android tablets and phones have plenty of memory and CPU to do it... even in Java.

      There is absolutely nothing crazy about wanting to run X on a mobile device. Having more options is a wonderful thing. Now- I will agree that trying to do it in Java seems a bit strange and perhaps inefficient... but, if that is all that is available, you use what you have.

    9. Re:Reinveting the Wheel, Backwards by Anonymous Coward · · Score: 0

      Isn't there a 2 post daily limit from jackoffs like you with "Terrible" karma? Be gone troll!

    10. Re:Reinveting the Wheel, Backwards by Microlith · · Score: 1

      Baby the crap out of that usb port

      Received mine in December 2009, port has suffered more heart-stopping yanks and twists than I care to count and it's held strong. Still plan on reworking the solder joints when I get a chance though. And yeah, dropped it a couple times but all that happens is dust gets knocked loose.

    11. Re:Reinveting the Wheel, Backwards by serviscope_minor · · Score: 1

      Actually, X11 has been tried before on mobiles and was often found lacking

      Really? You see, I had OpenBSD with X11 on a Zaurus a few years back and it worked very well indeed. Have you actually had any experience wiht mobile X11?

      --
      SJW n. One who posts facts.
    12. Re:Reinveting the Wheel, Backwards by ChunderDownunder · · Score: 1

      Well, as I understand it, embedded SoC vendors only provide basic drivers for the linux framebuffer and apis to access stuff like embedded opengl. So historically Google was forced to kludge software based rendering.

      Linaro and TI, through its Beagleboard/Pandaboard communities may have developed suitable drivers to power X11 on the OMAP-based Maemo devices such as N9 but have other vendors like Qualcomm, Nvidia, Samsung, etc?

      So the scenario for accelerated X11 and Android seamlessly integrated on the same device seems to require:

      (1) Port android graphics (skia) to Wayland - Chromium already uses an X11 backend for skia?
      (2) Have ARM SoC vendors release drivers for all the usual KMS/DRM/Gallium3D goodness.
      (3) Render X11 and Android with Wayland.

    13. Re:Reinveting the Wheel, Backwards by theNAM666 · · Score: 1

      >Actually, X11 has been tried before on mobiles and was often found lacking. Android's rendering and windowing is just better than X11.

      [citation needed]

      (Or are you just talking out of your bunghole, user 1,698,922?)

    14. Re:Reinveting the Wheel, Backwards by lucian1900 · · Score: 1

      OpenMoko, OLPC. Both had (and I believe still have) issues with memory usage and partial redraws.

    15. Re:Reinveting the Wheel, Backwards by illtud · · Score: 1

      Doesn't seem to be the solder connections from the usb connector that are the problem on mine - it's something to do with the connector itself. My original Nokia charger doesn't work anymore, my wife's HTC charger does - it has more prominent tiny tabs on the micro USB plug which seems to make the difference. I'm dreading the day that that stops working. I've got a spare battery and I can swap them, but that requires powering down, of course.

    16. Re:Reinveting the Wheel, Backwards by Anonymous Coward · · Score: 0

      OpenMoko had a full set of other issues. X works great on a mobile, and there is a beautiful existence proof of it: Get yourself a Nokia N900 (or better yet, the current Nokia N9, though I haven't tried it myself)! It runs everything on X and does it great! The Hildon UI is a nice-looking finger interface for the public with transitions, swiping, and so on, all in X and just as smooth as any Android or iOS! Hildon has mail-reader, an excellent web-browser (with in-page Flash), calendar, phonebook, Facebook app, etc, all the stuff the average user wants, and lots more Hildon apps to download from the repositories, most of them are standard Linux apps with a finger interface on top from the open source community.

      Once you start the built-in x-term, you have no problem running your desktop apps over SSH-tunneled X on your phone (except for finger-interface issues and network lag over 3G). If you install an ssh-server and xauth on the N900 (just use apt-get), you can even run your graphical phone apps on your desktop screen and keyboard if you like. Then you can install the full GNU set of standard tools (begone Busybox half-wit!). The phone is real Linux, with a Posix root directory, configuration via /etc, logging in /var/log, and so on, and you can compile your own kernel without any root-kit sillyness! All in a three-year old phone!

  8. NX by Guillermito · · Score: 2

    Hopefully this will enable the implementation of the NX technology ( http://en.wikipedia.org/wiki/NX_technology ) on Android, since using the X protocol directly over the public Internet is terribly slow.

    1. Re:NX by bgarcia · · Score: 2

      We have Chrome remote desktop, which allows accessing other machine's desktops using any chrome browser, and we now have Chrome for Android. I have to think that eventually these two things will work together to give remote desktop client abilities to Android phones.

      --
      I'm a leaf on the wind. Watch how I soar.
    2. Re:NX by Anonymous Coward · · Score: 0

      Can you run this through a port forwarded ssh session?

  9. More Practical Suggestion by spoonboy42 · · Score: 2

    I already use my Android phone to do some light remote work. I use ConnectBot http://code.google.com/p/connectbot/ to SSH into a remote workstation. For graphical apps, I set up port forwarding for VNC (there's a menu option for it in connectbot) and use AndroidVNC http://code.google.com/p/android-vnc-viewer/

    I have my VNC server set to only accept connections from localhost (and it's firewalled, too), so that only connections which are forwarded and encrypted via SSH wind up being accepted. This way I get secure remote access, the VNC protocol tends to be less bandwidth-intensive than raw X, and it preserves my session in case I get disconnected.

    Don't get me wrong, an X server on Android is a cool technical achievement, but existing SSH and VNC clients for Android are a more practical and secure way of accessing your workstations/servers on the go.

    --
    Anonymous Luddite: "What do you think of the dehumanizing effects of the Internet?"
    Andy Grove: "Not Much."
    1. Re:More Practical Suggestion by Anonymous Coward · · Score: 0

      Good call... Don't forget that VNC offers platform choices that are not available with X server.

    2. Re:More Practical Suggestion by guantamanera · · Score: 1

      VNC work different than X. With VNC you have to display the whole desktop, and with the xserver you have the choice of only displaying the app you need to run. I think windows just added this feature in their windows 2008 server and call it remote app. And I love this I got old computers that can't run some programs so I just made a shorcut to just run the one app via xserver, and you can't even tell the difference since to the client it feels like a local program.

    3. Re:More Practical Suggestion by Anonymous Coward · · Score: 0

      The real advantage of this project is that you can run Ubuntu in a chroot on your phone and have it display to localhost. People are doing this right now with an X11 server configured as a VNC server and an Android VNC client, but this is an additional copy and more importantly unaccelerated. With this project, you get native hardware acceleration. That's actually pretty neat and should make a chroot on a tablet actually usable rather than a horrible laggy mess.

    4. Re:More Practical Suggestion by evilviper · · Score: 1

      the VNC protocol tends to be less bandwidth-intensive than raw X, and it preserves my session in case I get disconnected.

      Now that we have X11 on Android, there's no reason an NX client can't (FINALLY) be ported to Android. NX completely blows away VNC on bandwidth, as well as responsiveness, redraw times, etc. It also preserves sessions like VNC, and has many features VNC lacks. Also, SSH is fundamentally built-in to NX, so you don't need to set up any port forwarding yourself.

      Hell, I sometimes watch videos over X11 forwarding... Don't expect to ever see that work well with VNC.

      --
      Slashdot gets worse every day... Pipedot: News for nerds, without the corporate slant
  10. Nice work, but lets remember X session security by sl4shd0rk · · Score: 1

    Not sure if the author is talking about running port 6000 on a public IP but that's scary if so.

    --
    Join the Slashcott! Feb 10 thru Feb 17!
  11. I second that. by sidragon.net · · Score: 1

    Suppose these people had devoted their time to producing something useful.

    1. Re:I second that. by Anonymous Coward · · Score: 0

      Suppose you devoted your time to posting something useful.

    2. Re:I second that. by idontgno · · Score: 1

      Good point. The Walled Garden certainly needs more fart apps.

      --
      Welcome to the Panopticon. Used to be a prison, now it's your home.
    3. Re:I second that. by Anonymous Coward · · Score: 0

      Collectively, we need to push out these archaic technologies. Not keep them around. It is equally useless as adding 3.5" floppy disk support to Android.

    4. Re:I second that. by aiht · · Score: 1

      Except to the people who want to that support on their shiny new Android tablet.
      Are such people rare? Sure. But who are you to tell them they can't have what they want?
      Especially when they're the ones putting in the work to make it happen, and you're just whining on the Internet.

    5. Re:I second that. by meloneg · · Score: 1

      I'm pretty sure my gTablet would handle a USB floppy drive just fine. However, I've never touched one.

  12. I have been waiting on this for so long by oakgrove · · Score: 1

    I have been suffering with using androidVNC to do all of my x server duties on Android and it's been a long hard wrong but finally it would seem I have suffered long enought. THIS IS FUCKING AWESOOOOOOME!!!!

    --
    The soylentnews experiment has been a dismal failure.
    1. Re:I have been waiting on this for so long by oakgrove · · Score: 1

      It would appear my enthusiasm was a bit premature. This thing needs work. It crashes on everything but the most rudimentary of applications but it does at least work. I have a feeling that there's going to be a lot of enthusiasm for this though. Great things to come.

      --
      The soylentnews experiment has been a dismal failure.
    2. Re:I have been waiting on this for so long by mkwan · · Score: 1

      There are two things holding back the server. (1) It doesn't ship with an ICCCM-compliant window manager, and a lot of application will abort without one. You can run one remotely, but it's tricky. (2) It doesn't support any of the X extensions. RENDER and SHAPE would be useful.

  13. I am so happy. by guantamanera · · Score: 2

    Is like getting lots of free apps at once. I think lots of people don't know that you can just display the one application that you need to run a not the whole screen.

  14. x2go next step? by knarf · · Score: 1

    While pure, unadulterated X11 might not be the thing you'd want to run on your phone or tablet because of the chatty network protocol, there are some X11 derivatives which can make this fly. Have a look at the x2go project for an example of what I mean. Having X11 on Android means the x2go app is only a short development cycle away, and that is good news for those of us who like to move around while still needing access to something which only wants to run a gui.

    --
    --frank[at]unternet.org
  15. Why? by Rix · · Score: 2

    What can you do with X that you can't do with ssh?

    1. Re:Why? by Anonymous Coward · · Score: 1

      What can you do with X that you can't do with ssh?

      Graphics. But you want both ssh (for the secure connection) and X.

      But perhaps your UID is too low for graphics. No problem, you don't *need* them.

    2. Re:Why? by markdavis · · Score: 1

      > What can you do with X that you can't do with ssh?

      Are you really that in the dark? Ssh can't do X. It can *forward* X11, but using ssh, I would have access to only a command line and text based applications. With an Android Xserver, I can display any app on my Android tablet that is running on my desktop machine, and do it efficiently (unlike vnc). I could even use XDMCP and login to a full session on a remote machine.

      And later, this can open the door to porting Linux/BSD GUI applications (and window managers, etc) to Android. I think this is extremely useful and exciting.

      It looks like this first attempt is too primitive to do much with, but the possibilities are there with some additional work...

    3. Re:Why? by evilviper · · Score: 1

      What can you do with X that you can't do with ssh?

      How about browing web pages on intranets? Text-mode web browsers suck. I love the UI of links2, and can't imagine why nobody else is copying the keyboard shortcuts it uses. However, I can't even get past the login prompt on most web pages. I love being able to pop out my Android slider wherever I am and SSH in and do real work, but not being able to get in to the company Wiki, where all my notes are, or fire up the Nagios web interface and just see what the problem is, feels extremely constraining... often I have to jump over to a laptop, just to look-up one line of info.

      How about actually running Xterm? The cheap putty imitators do pretty well, but nothing else comes close to the features of the namesake vt terminal emulator. To be specific, I've had to do a lot of work with low-level details of terminal escape sequences to get tons of legacy (not VT100) programs working on modern systems, and XTerm was the one and only option that picks up all the different keyboard scancodes, can render all kinds of crazy escape sequences, and has special features like being able to send codes to change the font family & size, change the terminal's colors, etc. Quite simply, to run just about any of our applications at my company, you need to run the real, original XTerm. (Only thing even XTerm doesn't do is auto-scale the font/dpi when the window is resized like proprietary options, instead of increasing the rows/column count).

      How about running NX client on your phone? Getting extremely good remote desktop performance, using all your desktop apps like you were there, and able to just disconnect and reconnect the session from your phone to/from other devices as needed?

      How about being able to remote-in and run a REAL email app? You got a command-line replacement for Ooutlook I don't know about?

      How about remotely running an IM app? Pidgin has a nice plugin that supports SIPE well, connecting me to my office from my puny phone or my android tablet like I'm there, and can pretend I'm working (from home) when I'm out on the beach, or driving around, running errands?

      How about coupling it with a keyboard and just plain using any cheap old android tablet as a (wireless) display device for any of my headless machines, letting me do anything and everything, while walking around my house, or the office? That's the beauty of X11 after all. And NX just makes it more efficient...

      How about an XMMS / Audacity remote control?

      --
      Slashdot gets worse every day... Pipedot: News for nerds, without the corporate slant
    4. Re:Why? by Rix · · Score: 1

      These are all things that would be better done with a local app, perhaps via a ssh tunnel.

    5. Re:Why? by evilviper · · Score: 1

      These are all things that would be better done with a local app, perhaps via a ssh tunnel.

      WTF is a local SSH tunnel?

      Anyhow, I have no idea what you're disagreeing with... How would you suggest running these GUI apps over an SSH tunnel without this X11 port to Android?

      There are simply NO NATIVE ANDROID APPS that can do what I've listed. X11 is strictly required. Before this port of X11, there were NO OPTIONS AT ALL, so I'm very happy to see it coming along.

      --
      Slashdot gets worse every day... Pipedot: News for nerds, without the corporate slant
    6. Re:Why? by Rix · · Score: 1

      There are lots of native email and instant messaging apps.

      Trying to run a desktop app on a smartphone screen isn't going to work very well. If what you need is access to an internal network, tunnelling into it with ssh works a lot better. You can use the native applications as if you were on that network.

  16. VNC vs X by ratboy666 · · Score: 1

    X Protocol does not use more bandwidth than VNC. If anything, the opposite is (typically) true.

    However, there are more round trips when starting an application when using X Protocol as compared to VNC. Latency is the performance killer for X Protocol, not bandwidth. This means applications may/will launch faster on VNC. NX (based on dxpc) short-circuits some X protocol requests, avoiding the latency issue. Typically, NX (FreeNX) performs as well as VNC.

    With the "usual" X Servers in use these days, typically the Window Manager is run locally. Also, font resources and other (eg cursor) resources are local.

    This means that X Protocol is faster when the application is running. For example, text needs only send the code-point and not the bitmap. (though compression is typically used for both over a slow link -- but something like "dxpc" is aware of X11 protocol, and can compress more quickly and efficiently for that case)

    Also, the "look and feel" is that of your local desktop -- using VNC means an entire desktop is being rendered over the wire, while with X11, only a single application is rendered. Using VNC means more load on the application server, because graphics are rendered and then shipped. With X11 the graphics are rendered locally. This means that the application server doesn't have to maintain a virtual display for each client. This can save 1 to 3 megabytes per client. Along with rendering time.

    VNC also allows the connection to be dropped and then restarted. X11 can do this, but it requires a proxy X11 server.

    VNC allows for more platforms.

    Conclusion -

    You are correct.

    (1) VNC over SSH is a very good solution, and is preferred for many applications.

    (2) If bandwidth is very limited, FreeNX may be preferred if compatible with the client and server platforms and the application.

    (3) For the best "desktop experience", FreeNX or X is preferred. The application appears as if running "natively".

    --
    Just another "Cubible(sic) Joe" 2 17 3061
  17. As an N900 owner . . . by npsimons · · Score: 1

    I'd like to say, congratulations! Android has very nearly caught up with where Maemo was when it was released in 2009. Also, suck it Wayland!

    1. Re:As an N900 owner . . . by Anonymous Coward · · Score: 0

      Maemo ran X back in 2005 on the Nokia 770! I used synaptic on my old 770 to install gaim (now known as pidgin). Oh and it ran flash.

  18. Again, why? by Rix · · Score: 1

    What can you accomplish with X11 that you can't do better with ssh?

    If you want to run a full desktop linux stack on an android device, that's another thing (and it's been done), but why would I want to remote manage a machine over X?

    1. Re:Again, why? by markdavis · · Score: 1

      I don't know why *you* would. But I have lots of useful things I do remotely with X. I have some management stuff that is much easier to do with a GUI. I can remotely even remotely run my mail client. Certainly, it is not for everyone, though (or even most people).

    2. Re:Again, why? by Rix · · Score: 1

      If your solution for delivering mail is to run a remote client, you're really doing it wrong.

    3. Re:Again, why? by markdavis · · Score: 1

      Don't be so judgmental! Actually, there is absolutely nothing "wrong" with the way I do it.... it is exactly what I need and want. I have to log into that server several times a day when I am not at work, anyway, to maintain it and I have been running Claws remotely for many years. It is fast and efficient.

    4. Re:Again, why? by Rix · · Score: 1

      I don't mean to be judgemental, it's just... It's like reading your neighbours paper with a telescope. Sure, it works, but there's a better way. Like an IMAP server.

  19. You don't need xauth remotely now anyway. by dbIII · · Score: 1
    A lot of stuff is done using "ssh -Y" and letting ssh decide whether you are allowed in or not. From the man page of openssh:

    -Y Enables trusted X11 forwarding. Trusted X11 forwardings are not subjected to the X11 SECURITY extension controls.

    Of course that assumes that everything is going via ssh, which is probably a fair assumption for nearly anything that isn't on the same local network. If the point is to get it on a phone/tablet then it's fair to assume that it's not on a local network and those ports that X uses directly are going to be firewalled off forcing ssh anyway. Ok, maybe not fair to assume that's allready in place, but certainly fair to assume that blocking it is going to be OK if it hasn't been done already.

    So I think without xauth it's not the end of the world so long as you make sure nobody can exploit the lack of xauth and just block the ports. Anything that should be allowed can ask ssh nicely and let ssh decide if it is allowed in or not.

  20. What do they use NOW? by unixisc · · Score: 1

    I'm curious - what does Android (and WebOS) use in place of X as their Windowing system? For desktops, I understand that X is the default, although there are ongoing attempts to bring Wayland into the picture. Also, for Plasma Active - the Spark tablet that was discussed here some weeks ago, does that sit on X, or something else?

    The other thing about setting the phone's display to DISPLAY ____:0, are they now using IPv6 addresses? If not, what do they do if it is IPv4 and NATed? Do they do DISPLAY 10.1.2.3:0, or use the routable address there? There's also the question that if it uses the Home address under mobile IP, does that remain unchanged when the phone passes to foreign addresses on the network?

  21. Already on market? by Gyorg_Lavode · · Score: 1

    So I looked and I see two, x-servers: https://play.google.com/store/apps/details?id=com.theqvd.android.x# and https://play.google.com/store/apps/details?id=au.com.darkside.XServer#. Am I missing something? Is there a major difference?

    --
    I do security