Slashdot Mirror


Cygwin's XFree86 4.2.0 on Windows XP

stock writes: "A interesting and important piece of software on the win32 platform for me has always been X11 server software like Hummingbird's Exceed, or Startnet's Xwin32 Professional. Today i glanced at cygwin's site and found that a complete XFree86 4.2.0 for Windows XP can be downloaded now! It shouldn't be hard for newcomers as it features a setup.exe . The package comes free and is basicly licensed as X style licensed software which runs on cygwin32 which has a GPL license." Looks like this has been out since May -- can anyone who's been using it since then comment on how well it works? Update: 07/07 17:12 GMT by T : haroldhunt (project leader for Cygwin/XFree86) wrote to clarify: "Cygwin/XFree86 runs on all recent consumer and business versions of Windows; as of 2002-05-12 those versions are specifically Windows 95, Windows 98, Windows Me, Windows NT 4.0, Windows 2000, and Windows XP."

26 of 358 comments (clear)

  1. I use it on win2k by salmo · · Score: 5, Informative

    I've used it on win2k on a daily basis for over a month now. It runs nicely in full screen mode, which you can Alt-Tab out of. You can also run it in a window, but that's just what I prefer. Make sure you run xwinclip too so you can copy and paste between X and Winders. I've tried a couple commercial Win32 X Servers and although this doesn't have some of the fancy features, I find it more stable.

  2. How many of you... by Anonymous Coward · · Score: 3, Funny

    ...downloaded setup.exe just for the hell of it? :)

    1. Re:How many of you... by Disevidence · · Score: 3, Funny

      Setup.exe us the bomb?

      --
      Think nothing is impossible? Try slamming a revolving door.
  3. Cygwin/XFree86 by SirPrize · · Score: 5, Informative

    I've been using Cygwin/XFree86 for about a month or two now, and don't have any complaints. It may be a tad slower than what one is used to, but overall it works quite well. You can also run WindowMaker on Cygwin (comes bundled now), or any other window manager, as long as you can compile it on Cygwin, on Cygwin/XFree86

  4. Works well... by Doug+Neal · · Score: 5, Informative

    I tend to use Cygwin/Xfree86 if I ever need an X server on Windows and have always found it to work pretty nicely. I have had it running KDE from another computer on the network, and it's also useful when you want to run the occasional application that needs X on a headless computer.

    So yes... I would definitely recommend it. The disadvantage over something like Exceed, though, is that it needs its own window - you can't have the X windows alongside the Windows windows (if you see what I mean). And you can't resize it either, you have to choose the dimensions on startup. But you can also use it fullscreen, and because it uses DirectDraw, it's nice and fast.

  5. Works perfectly. Killer app. by Anonymous Coward · · Score: 5, Interesting

    It's funny, but I just saw this slashdot article when I was testing an X desktop from a Windows 2000 client running Cygwin Xfree. I'm sitting here right now, typing.

    It works splendidly. Unlike with Hummingbird & Co, you get the exact same feel as regular Xfree with regards to font and small behaviour differences - which is good, since GNOME and KDE is targeted there.

    It has some funcitonality lacking (imo - the developers seem to regard this as not being their problem): Cut and paste between X and Windows does not work (although I once saw rumors of an experimental daemon to fix this). Non-US keyboard setups must be loaded manually with xmodmap (while imo, Xfree for Windows should support xkbdb stuff).

    In other aspects, it's great! Scroll wheel stuff works perfectly, graphics are fast and stable (better than a recent version of Hummingbird Exceed I tested), etc.

    Oh, one more drawback - there seems to be a hard coded limit to the window size that prevents me from letting the X desktop span two windows monitors in multihead setup. This should be easy to fix if one feels inclined, though, I expect.

    Otherwise, the product is brilliant. Now I can roll out Linux/FreeBSD desktops cheaply and easily, and make the switch from Windows to GNOME/KDE in small steps for my customers. The killer right now is letting them use Mozilla and Evolution through X from a server located outside the firewall: very secure and virusless (and cheap!) Attachments and saved files are available through a samba share. Oh, and let the server run IMAP (to Evolution) and webmail (ssl) from the outside. People get the same folders abroad and at the office.

    I'm telling you, the revolution is here.

    -- Daniel, www.copyleft.no

    1. Re:Works perfectly. Killer app. by mjh · · Score: 5, Informative
      The killer right now is letting them use Mozilla and Evolution through X from a server located outside the firewall: very secure and virusless (and cheap!)

      You might want to be careful with this box that is outside the firewall. If someone can get into it, they can launch applications like xkey This will enable someone to do keyboard monitoring of anyone who's running an X application. Combine that with "netstat -anA inet | grep ESTAB" and you can easily determine some good IP addresses to target. What I'd be concerned about is someone sniffing my keystrokes in my mozilla sessions, getting by all the wonderful SSL encryption!

      One way to combat this would be to use X forwarding through ssh as the X11 transport. That way you have to have access to the user's ~/.Xauthority file, which is typically set readonly for that particular user. Which means any local root exploits would grant someone access to all of your customer's keystrokes.

      Something else you might want to look into is NSA's SELinux. I don't know much about it, but it seems like you could take advantage of the higher granularity of access controls to limit someone (other than the rightful user) getting access to ~/.Xauthority. Even root wouldn't be able to get access.

      Anyway, that's a very cool idea you have. Just be careful.

      --
      Key to financial independence: Spend less than you earn. Save and invest the difference. Do it for a long time.
  6. works fine by jilles · · Score: 4, Informative

    I've installed it at home and at work. The only problem is that there are very few ported X applications to run with it and most things do not compile out of the box.

    I'm running it with a port of windowmaker in fullscreen mode and it looks great. However, the thrill of running xcalc and xclock on windows xp wears off quickly :-). You can of course use it to run remote applications on a unix server (this works perfect).

    Another issue I found is that it is not possible to cut and paste between X apps and windows apps. So if you are surfing using mozilla or IE and want to paste some command from a howto into your xterm, you have a problem. You can paste into a bash terminal (i.e. outside X).

    The cygwin installation is pretty smooth (lots of great stuff other than X too). However you do need to set a path to /usr/X11R6/bin manually before you can type startx in bash. In addition you'll want to change the windowmanager (windowmaker works fine for me). Configuring X on windows XP is actually easier than on linux :-).

    --

    Jilles
    1. Re:works fine by DrVxD · · Score: 3, Informative

      > it is not possible to cut and paste between X apps and windows apps.

      If I'm reading this right, you probably want to try xwinclip.

      --
      Not everything that can be measured matters; Not everything that matters can be measured.
  7. Old news ? by Wudbaer · · Score: 4, Informative

    XFree86 has been available on Win32 using cygwin for ages. Ok, it might have been 4.10 and it used an (also easy to use) bash shell script for installing it under cygwin instead of a setup program, but this is not really news.

    I used the old version for a couple of times on W2K, seemed to work quite well.

  8. Clients are superb (tho server needs some work) by mrflip · · Score: 4, Informative
    I use the cygwin/XFree86 programs daily, and have been for several months now. It is truly a beautiful thing to be able to use bash _and_ windows explorer to manage files, or to Alt-TAB from emacs to CorelDraw to FrontPage when web editing.

    Actually, though, what I use are Xclients compiled against the XFree86 libraries. The XFree86 X server doesn't yet have a useable multiple-window mode -- that is, one in which XP is your window manager and each program appears in a separate Windows window. <FLAMESUIT>Since what I want is the superior windows UI with the superior GNU utilities power, the separate window mode is pretty essential. Thus I still use eXceed as my Xserver. </FLAMESUIT>

    Work on this capability is proceeding; it is, in fact, the top item on the Cygwin/XFree TODO list:

    Seamless integration with Windows: Create a Cygwin/XFree86 window manager to display each X client in its own Win32 window. Such a window manager will be a stand-alone client, but it may require some internal modifications to the Cygwin/XFree86 server to allow drawing to be redirected to various Win32 windows, depending on which client is being drawn.
    By the way, if you are setting up Cygwin for the first time, I highly recommend following the procedures outlined at
    http://tech.erdelynet.com/cygwin-ssh.asp
    (which largely consists of instructions for ssh/sshd with Cygwin, but has many other excellent setup tips).
  9. Wow, Promote unnecessary XP upgrades, willya? by SN74S181 · · Score: 5, Informative

    I find it disappointing that in the article summary no mention is made of the fact that this Cygwin X11 server will run on all the Win32 platforms. I looked at it and said to myself 'well, there's the motivation to "upgrade" to XP' but was hopeful. And yes, the page at Cygwin says 'Cygwin/XFree86 runs on all recent consumer and business versions of Windows'.

    Is this a case of unconcious shilling for the Microsoft version upgrade treadmill? I hope so.

    1. Re:Wow, Promote unnecessary XP upgrades, willya? by Sycraft-fu · · Score: 3, Informative

      No, it was probably just the platform he happened to test it on. When I report on something working, I'll tell you about it working in Windows 2000. I don't speak for any other versions, since that's what I run. Genreally speaking, anything that runs on 2000 should run on the whole Win32 platform, but not always.

  10. Runs Great!!! Fonts Look better in Win32 X by krakrjak · · Score: 3, Informative

    I love it and have been running it for a while. I use blackbox as my WM since I only run programs over the network it doesn't get in the way and leaves a tiny footprint.

    I get by day to day with Kmail, GnuCash, Red-Carpet and a few other miscellaneous apps that I run over the in-house LAN.

    As the subject says I noticed that programs use the same fonts whether I run the program on the Mandrake box locally or over the network, however when I run the progs over the network to the Windows machine all the fonts look nice....??!?!? Is that a feature? I think most the programs just plain look nicer in the Win32 port... maybe I'm delusional...... anything's possible.

  11. Experiences with Cygwin/XFree86 by Jeff+Probst · · Score: 5, Informative

    I have been using this for about 9 months now for doing xdmcp to a freebsd box running xdm, such as how they suggest. i have found it to be rock solid.

    i run the latest server in the server test series. they recently added -nodecoration, which makes the x server use as much of your screen as possible, without any title bar or borders. My xdmcp command line, setup as a shortcut on my win2k desktop, looks like this:

    C:\cygwin\usr\X11R6\bin\XWin.exe -screen 0 1600x1200 -from spandex -query lycra -once -emulate3buttons -nowinkill -nounixkill -nodecoration -fp "tcp/lycra:7100"

    The -fp option is for a font server, so cygwin/xfree86 will get the necessary fonts from the machine you tell it.

    HTH

  12. Very slow (benchmarks) by Baki · · Score: 5, Informative

    I compared it some weeks ago with other X servers available for win32, using x11perf (after I noticed how slow it was when scrolling windows).

    I benchmarked cygwin, exceed (7.1), omni-X and xwin32. cygwin was by far the slowest, around 10 times slower than exceed for many basic X11 operations. Exceed was about two times faster than omni-X and xwin32.

    Exceed is extremely expensive however (a cheap second PC plus KVM switch, dedicated running Linux just as an X-terminal might be cheaper than buying an exceed licence). For most normal text-based remote access, cygwin+xfree will do. For graphically oriented programs (such as running KDE remotely) you'll want something else however.

    1. Re:Very slow (benchmarks) by haroldhunt · · Score: 3, Informative

      We've been looking for someone to run some comprehensive x11perf tests for Cygwin/XFree86 and a couple of the commercial X Servers for MS Windows. We would appreciate it very much if you could send the output files from x11perf (or better yet, links to the output files) to the `cygwin-xfree at cygwin daught com' mailing list.

      You may want to check out the new `-clipupdates num_boxes' parameter, which gathers together num_boxes or more regions into a GDI clipping region and then does one bit block transfer to the screen, rather than one bit block transfer per damaged region. I'm guessing that `-clipupdates 10' or `-clipupdates 50' would give a good return on the overhead that is involved in creating a GDI clipping region.

      Harold

  13. RedHat Thin Client Edition? by peterdaly · · Score: 5, Insightful

    I have not used this yet, but I will be giving it a try at work on Monday. Based on what I am hearing in comments, it seems to work fairly well.

    If I were RedHat, I would make RedHat "Thin Client Edition" out of it. Modify the RedHat install to accept connections and display a X login, or at least have that option during install. I know I have been able to do that before, but all the protocol and service names slip my mind right now.

    Once that is in place, marketing can begin. Migrate to centralized (Linux) application management without betting the farm. I know you can easily turn most PC's into X-Terminals, but most people would be more comfortable starting with a Windows Client version first. Offering OpenOffice and Mozilla to "clients" would be able to cover 90% of what low end user needs to do. They can even keep Outlook/Exchange running on their desktop if they don't want to pull the plug on that yet, which is a common reason for staying with windows on the desktop.

    If they were to package and market this correctly, it could be the first step in moving into the desktop realm.

    -Pete

  14. Re:How well it works by axxackall · · Score: 3, Interesting
    I successfully compiled Icewm, AfterStep and WinMaker. And then discovered the reason why they are not inlcuded into the distro from the first place - they are way too buggy. They manage windows well (well, otherwise they are not window managers), but all those extensions - workspaces, lounchpads - are just broken. At least on my win2k box.

    As for UNI*X features not yet available in Cygwin - you mean Gnome ported to win32, do you? At least that what failed the compilation Sawfish and others for me.

    Have anyone heard about porting Gnome to win32? How about KDE? I can use Gnome or KDE through X11 net, but how about the case of temporary standalone box? Such win32 port would be a very nice feature then.

    --

    Less is more !
  15. Re:Just a little foolish? by binkley · · Score: 3, Informative

    You are confusing X Windows with Linux. When you run X Windows under BSD, you are not running Linux on top of BSD. The same is true for X Windows under Microsoft Windows (not simply Windows XP, mind you, but also Windows 9x/NT/2k).

    --
    --binkley
  16. Post from the project leader by haroldhunt · · Score: 5, Informative
    Cygwin/XFree86 has been working on all recent versions of Windows (95/98/Me and NT 4.0/2000/XP) since somewhere around March of 2001. The real news here is that we finally became installable via Cygwin's setup.exe program in May of 2002.

    Current features we are working on include:
    • Native GDI Server - Translate X11 graphics calls into GDI graphics calls; currently we just draw to an offscreen framebuffer and transfer updates occasionally. This allows you to utilize the power of your $100+ graphics processor. Most respectable commercial X11 servers for MS Windows use this method.
    • Clipboard integration - We have been working on this for a long time. Currently we have a seperate client, called xwinclip, that provides this functionality. We recently added support for passing Japanese text through xwinclip when running on NT/2000/XP.
    • PseudoColor for TrueColor visuals - A lot of applications, particularly drawing or CAD programs, require a palette-based PseudoColor visual, while most people run Windows in TrueColor depths of 15, 16, 24, or 32 bit color. We would like to support PseudoColor visuals when our primary visual is a TrueColor visual. Some commercial X11 servers for MS Windows do this.
    Go ahead and try Cygwin/XFree86 if you haven't already. We hope you like it. If you find some missing feature that you would like, then take a look at our source code and read our Contributor's Guide for instructions on how to download the source and build the tree, plus a general discussion of the technologies involved in Cygwin/XFree86. We bend over backwards to make it easier for developers new to the project to contribute.

    Harold
  17. Re:Just a little foolish? by Zapdos · · Score: 3, Informative

    X WIndows is a server application. You can connect it to, view and operate a remote unix box just like sitting at the remote box's monitor and keyboard.

  18. Xfree on Xp by euroBob · · Score: 3, Interesting
    Actually, with cygwin you have been able to get x working for some time now. I recall January being my first X-perience on Xp.

    Since cygwin's setup program is now idiot proof its about 6 clicks and a bunch downloading later and BAM! X on Xp. Just make a shortcut to the startwinx.bat file in the /usr/X.../bin/ dir and you then become |golden boy|. Ofcourse blast out the line in starwinx.bat that kicks of tvm and get a real window manager ( as if you care, but fvwm is my choice ).

    For performance sake I keep to just a simple fvwm2 setup. Not to say Xp is great but I don't see a need to duplicate half of the fancy stuff ( email notifiers, clocks, start menus, yada^3 ) by running KDE or something more ontop of your current Xp rig.

    To be honest I think the work the cygwin folks are doing is the most complete solution now for your PC. You now get the power and devel environ of Nix and the hardware compatibility and other features of windows. No more dual boot. No more kernel recompiles just to get a USB flash card reader working. Just point scripts to /cygdrive/d where d is drive letter that windows assigned to your hardware.

    Only complaint is the file naming problems that occur when your strike off a DOS program with files as arguments. But not a huge issue. ( Compiling Tcl/Tk scripts using the Windows version of tclpro tools, chokes on the file names ). Other than that perfect!

    If you are truly sick... Cygwin does come with glut and glu. I'd like to see someone hack something like q3 for linux inside a cygwin session running on Xp or 2000 or whatever illegal bangkok version of the Microsoft OS your are running.

    --
    try { println( SigString ); } catch( Exception e ) { println( 'Who cares?' ); }
  19. Remote Access is nice -- but what about ..... by fm6 · · Score: 5, Interesting
    All the posts seem to be about using Cygwin/XFree to access Unix/Linux systems from Windows systems. Which is a hot application, but not as hot as that other thing...

    The main purpose of Cygwin is to run Posix apps under Windows. And if XFree under Windows is now solid (wasn't, last time I looked, but that was a couple years ago), then we now have all kinds of interesting possibilities for migrating Linux apps to the Windows platform. In particular, it'd be nice to be replace the Windows shell and desktop with one of the many open-source equivalents.

    There are, of course, non-Posix Windows shell replacements. But I've never liked any of them as much as I've liked the best Linux desktops: KDE, GNOME, Enlightenment. Add your own favorite to the list.

  20. I've been using this for months by ikekrull · · Score: 3, Interesting

    I've had cygwin running for a long time now, and consider it an indispensible tool when sitting in front of a Windows box.

    In fact, its made me less keen to trash the Windows install on the only Windows machine left in my house, since it is now quite functional with Cygwin/XFree86.

    Now, how do i replace Windows explorer etc. with XFree86 as the only available interface to my Windows machine?

    --
    I gots ta ding a ding dang my dang a long ling long
  21. Re:Yes, this is the problem by drinkypoo · · Score: 3, Funny
    Too bad I'm not a programmer (well, I can code, but not in C, and not that well) and I am flat-ass broke. In fact, I'm not really flat broke, I'm in substantial debt.

    I think I'll just complain. The squeaky wheel gets the grease.

    --
    "You're right," Fisheye says. "I should have set it on 'whip' or 'chop.'"