[新闻]windows 下的 x server

最新ubuntu/linux/开源新闻或者其它IT相关资讯
回复
头像
zhuqin_83
帖子: 10606
注册时间: 2006-05-13 4:02
联系:

[新闻]windows 下的 x server

#1

帖子 zhuqin_83 » 2007-08-09 1:38

http://www.linux.com/feature/118106

Use Linux over Windows with Xming
By Joe 'Zonker' Brockmeier on August 08, 2007 (9:00:00 AM)



One of the nice things about the X Window System is its ability to display X apps running remotely on a local machine. One of the not-so-nice things about Microsoft Windows is the complete lack of native support for displaying X applications. If you find yourself working on Windows but wanting to use Linux apps at the same time, Xming can do the job. Xming is a port of X Window System to Microsoft Windows that's free and easy to use.

Xming is licensed under the GNU General Public License version 2 (GPLv2), and comes packaged as Windows executables with easy-to-use installers. If all you want is an X Window Server -- and not a complete Unix-type environment -- Xming is a better choice than Cygwin/X. It also has the advantage of more active development -- Cygwin/X hasn't been updated since 2004, according to its homepage.

Xming is trivial to install. Head to the Xming project page and find the releases section. You probably want to stick to the stable releases unless there's a feature in the recent development releases that you can't live without. Grab the current Xming, or Xming-mesa, if you have an older client that might need the Mesa renderer instead of OpenGL, and run the setup wizard. It takes a minute or so to run through the install. You'll probably also want to grab the Xming-fonts installer, which installs the core X fonts. After you've installed these packages, you're ready to start running X on Windows.
Getting started

The Xming installation procedure creates a desktop shortcut called XLaunch. Double-click it and you'll see a dialog that lets you choose whether Xming displays programs in multiple windows, a single window, fullscreen, or in a single window without a title bar.

What's with all the options? Depending on what you plan to do, you may want to run several windows on your Windows desktop in order to display several different programs. On the other hand, you might choose to connect to a machine using the X Display Manager Control Protocol (XDMCP) and display an entire desktop on your Windows machine.

If you're going with the multiple programs scenario, choose "Multiple Windows." You can also set the display number at the bottom of the dialog. Leave this as 0 if this is the first connection that you're making, or set to 1 (or 2, or 3, etc.) if you're making multiple X connections. If you forget, you'll get an error when trying to start up a subsequent session.

On the next window, choose the session type. For this type of connection, choose "Start a program," and click Next.

In the next dialog, click "Run Remote" and click the radio button next to "Using PuTTY" and fill out the user and host information. If you don't enter your password here, you'll be prompted for it when Xming connects to the remote system.

Assuming all goes well, you'll get an xterm from the remote system. You can then either work in the xterm or start an X application in the xterm that will be displayed on the local system using Xming.

You can also run something other than an xterm when connecting to the remote system. In the Start program dialog, just enter the name of the program you want to run in place of xterm. It's slightly counterintuitive, because the name of the program appears in a drop-down box and looks like you'd select something from a list rather than type in a free-form name, but you can enter your own program here. I like having an xterm or other terminal program, though, so I can start as many apps as I like.

I've used Xming with stock X applications (like xcalc) and GNOME and KDE apps (like Epiphany, Konqueror, Gnome-terminal, and others) and had no problems running the applications. Other than having the standard Microsoft Windows title bar and such, these apps look just as they would on Linux.
Run an entire desktop

You can also use Xming to turn your Windows machine into a X terminal, more or less. Again, click the XLaunch icon, and this time select "One Window" or "Fullscreen." Next, select "Open session via XDMCP" on the Session type dialog. On the next dialog, you can choose to connect to a specific host, or you can tell Xming to search for XDMCP servers.

The next dialog allows you to specify additional parameters. You probably won't need to give Xming any additional parameters, but if you need to specify a remote font server, this is the dialog to do it in.

Finally, you can save the configuration if you want and reuse it later. Once you click Finish, you should see whatever X login manager is running on the system you're connecting to.

Xming is easy to use and provides an excellent X server for folks who have to run Windows. Since it's free software, it's also much better for the budget than commercial X servers for Windows, and it enjoys fairly frequent releases, so it should be around for some time to come.
上次由 zhuqin_83 在 2007-08-09 1:49,总共编辑 2 次。
HP Pavilion DV6-2064CA: AMD Turion II Ultra Dual-Core Mobile M640, HD4650, 2GBx2 DDR2-800, Seagate 500GB 7200RPM SATA, BD-ROM
DELL UltraSharp 2209WA
Arch64, Testing repo
头像
skyx
论坛版主
帖子: 9202
注册时间: 2006-12-23 13:46
来自: Azores Islands
联系:

#2

帖子 skyx » 2007-08-09 1:41

:roll:
no security measure is worth anything if an attacker has physical access to the machine
头像
relaxssl
帖子: 1448
注册时间: 2007-01-30 7:13

#3

帖子 relaxssl » 2007-08-09 3:51

不知道是好还是坏,反正不喜欢windows.
头像
ofewiofewo
帖子: 547
注册时间: 2007-06-02 14:56

#4

帖子 ofewiofewo » 2007-08-09 8:01

介绍挺详细,有空试试
头像
eexpress
帖子: 58428
注册时间: 2005-08-14 21:55
来自: 长沙

#5

帖子 eexpress » 2007-08-09 8:50

和当年被bs的纯净水一个样子。
● 鸣学
头像
Amankwah
帖子: 624
注册时间: 2006-10-16 7:24
来自: 安康/西安/广州
联系:

#6

帖子 Amankwah » 2007-08-09 8:54

Cygwin里边的那个X home是什么啊?貌似也是的??
读书取正,读易取变,读骚取幽,读庄取达,读汉文取坚,最有味卷中岁月。
与菊同野,与梅同疏,与莲同洁,与兰同芳,与海棠同韵,定自称花里神仙。
头像
bones7456
帖子: 8495
注册时间: 2006-04-12 20:05
来自: 杭州
联系:

#7

帖子 bones7456 » 2007-08-09 9:14

还有个商业软件:Xmanager,前几天我刚写在自己的博客里面来着。
关注我的blog: ε==3
bluesky
帖子: 27
注册时间: 2005-08-23 11:00

#8

帖子 bluesky » 2007-08-09 9:45

一直用XMING,个人认为是所有用过的WINDOWS下的X SERVER中速度最快的
头像
bones7456
帖子: 8495
注册时间: 2006-04-12 20:05
来自: 杭州
联系:

#9

帖子 bones7456 » 2007-08-09 10:03

这个不错,小巧。
但是 Xming-fonts 怎么有32M多啊?
还有Xming和 Xming-mesa 有啥区别啊?
关注我的blog: ε==3
头像
ofewiofewo
帖子: 547
注册时间: 2007-06-02 14:56

#10

帖子 ofewiofewo » 2007-08-10 0:12

同样是XDMCP,Xming的界面响应速度比Xmanager快。Xming+Xshell混着用 :lol:
头像
vcxzfdsarewq
帖子: 92
注册时间: 2007-04-20 18:22
来自: Matrix

#11

帖子 vcxzfdsarewq » 2007-08-10 8:51

前几天刚看过,没兴趣试了
头像
qqttdh
帖子: 896
注册时间: 2007-07-20 22:15

#12

帖子 qqttdh » 2007-08-11 0:36

马上切换系统 8)
头像
laborer
帖子: 1016
注册时间: 2005-10-25 11:15
联系:

#13

帖子 laborer » 2007-08-11 0:40

我用xming也好几年了,好处是免费,使用也比较简单。
hreiser@oakland:~$ killall -9 wife
police@oakland:~$ sudo find / -user hreiser
court@oakland:~$ sudo mv /home/hreiser /jail/
court@oakland:~$ sudo usermod -d /jail/hreiser -s "/usr/sbin/chroot /jail/" hreiser
回复