Dear coLinux users,
I recently installed coLinux 0.6.4 on my WinXP (SP2). It was very smooth to boot up coLinux. And I can have access to internet from coLinux so that I can "emerge" software packages from a selected Gentoo mirror site. But I got problem accessing the X server running on WinXP from coLinux. I've installed Xming on my WinXP.
My networking scenario is given below, which basically follows the Wiki's on both coLinux's and Gentoo's websites.
In Windows, I have two network connections. One is the physical adapter, called "Wireless", and has an assigned IP address, 192.168.1.102, from my router which is connected to the Internet. Another connection is the virtual TAP-Win32 adapter, named "TAP". I gave the TAP adapter a fixed IP address 192.168.37.10 and subnet mask 255.255.255.0. But no gateway was set for TAP. My config.xml has contents:
<?xml version="1.0" encoding="UTF-8"?>
<block_device index="0" path="\DosDevices\c:\coLinux\Gentoo\Gentoo-2005.1-stage3-ext3" enabled="true" />
<block_device index="1" path="\DosDevices\c:\coLinux\Gentoo\swap_256Mb" enabled="true" />
<image path="vmlinux" />
<memory size="128" />
<network index="0" type="tap" name="TAP" />
<network index="1" type="bridged" name="Wireless Network Connection" mac="00:14:A5:DF:EF:F7"/>
In coLinux, I edited the file /etc/conf.d/net, which has contents:
iface_eth0="192.168.37.20 netmask 255.255.255.0 broadcast 192.168.37.255"
# No gateway was set here either.
After booting up coLinux, everything seems working very well. By "ifconfig", I can see that eth1 has IP address 192.168.1.102, the same as the physical adapter in WinXP. So I got no problem to do "emerge" from the Internet. Another interface eth0 (192.168.37.20) seems also ok since I started the SSH server on coLinux and used Putty to connect coLinux from WinXP. I can also "ping 192.168.37.10" from coLinux.
The problem is that, after I "emerge xterm" and try to start xterm, I always got error message:
Xlib: connection to "192.168.37.10:0.0" refused by server
Xlib: No protocol specified
xterm Xt error: Can't open display: 192.168.37.10:0
I did "export DISPLAY=192.168.37.10:0" in coLinux and start Xming in WinXP. To confirm that Xming works, I used Putty to connect a Linux server at my office with X11 forwarding. So Xming works.
Any hint on my problem will be appreciated!
you need to add your IP to X0.hosts
if you are unsure what IP is used, try xterm and check the log of Xming (right click on tray icon an "View Log"), it contains a line what IP was blocked.
hope this helps
Sign up for the SourceForge newsletter:
You seem to have CSS turned off.
Please don't fill out this field.