[SC.LUG] What a knowledgeable bunch!

russ.lunn sc at mailman.lug.org.uk
Fri Sep 19 13:32:00 2003


Hi,

that idea about using cygwin as an X server. does anyone know of
any idiots guides to getting that working? ive been using vnc but i 
would like to try that idea, as i use cygwin most of the time for rxvt!

what are the pro's and cons of this way over vnc?

russ

-----Original Message-----
From: Greg Bolshaw [mailto:greg@linuxtechnologies.co.uk]
Sent: 19 September 2003 13:19
To: sc@mailman.lug.org.uk
Subject: Re: [SC.LUG] What a knowledgeable bunch!


Richard Pineger wrote:

> Any idea how I can connect them together so that we both have web
access
> through the knoppix modem? This is a bit advanced for me so I don't
know
> where to start. I have very basic questions like:
> - Can I just run a lead with an RJ-45 connector on each end between
the two
> ethernet cards? (I think I can configure ethernet at both ends).
> - I'd prefer to run a separate KDE session on the Win95 box so that
she
> isn't really running Windoze at all - is that poss?

Two ways you can do this:

1)	Install an Windows based X server on the Win95 box and get a
Knoppix 
"session" running on it.

2)	Use Internet Explorer under Win95, and configure Knoppix as a
router.


_Requirements for both solutions_
Both of the above will require an RJ45 crossover cable to connect the 
two machines and each machine to have an IP address on the same subnet:

   Knoppix               Win95
192.168.0.1 -------- 192.168.0.2


_Solution 1 method_
- X server running on Win95 (cygwin is a good free one)
- Start an X session on Knoppix to forward to the Win95 X server:
   `export DISPLAY='192.168.0.2:0.0'; startx &`
- Open a web browser on the Windows machine just as if you were sat in 
front of Knoppix.

_Solution 2 method_
- Configure Win95 to use a default gateway of Knoppix (192.168.0.1)
- Configure Knoppix to act as a router (between ethernet and dialup) 
`echo 1 > /proc/sys/net/ipv4/ip_forward`
- Configure Knoppix to do network address translation (NAT) so that 
connections to the Internet from either machine go out on a single 
public IP address: `iptables -A POSTROUTING -o ppp0 -j MASQUERADE`


Hope that helps.

-- 
+===============================================================+
| Greg Bolshaw           E-Mail:  greg@linuxtechnologies.co.uk  |
| Director             Web Site:  www.linuxtechnologies.co.uk   |
| Linux Technologies    PGP Key:  0x3DE51D89                    |
+~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~+
|            Linux and Open Source Solutions Provider           |
+===============================================================+


_______________________________________________
SC mailing list
SC@mailman.lug.org.uk
http://mailman.lug.org.uk/mailman/listinfo/sc