Shoutbox

[Solved] Windows and Ubuntu, sitting on a LAN... - Printable Version

-Shoutbox (https://shoutbox.menthix.net)
+-- Forum: MsgHelp Archive (/forumdisplay.php?fid=58)
+--- Forum: Skype & Technology (/forumdisplay.php?fid=9)
+---- Forum: Tech Talk (/forumdisplay.php?fid=17)
+----- Thread: [Solved] Windows and Ubuntu, sitting on a LAN... (/showthread.php?tid=74249)

[Solved] Windows and Ubuntu, sitting on a LAN... by L. Coyote on 05-08-2007 at 02:43 PM

So, yeah, basically, I'd like to know if it's possible to have a LAN with Windows and Ubuntu, and if so, how to do it.

I only want to share Internet from Ubuntu to Windows, and maybe see the drive from Windows... But sharing Internet is a priority, since I can't be on Ubuntu when my mom decides to use her laptop... 8-)

The Windows LAN is currently wired, not wireless. And there's no router, it's all direct. So, if it's possible to have it the same way, I'd like to know. (Y)


Edit: Please, avoid "buy this and that" suggestions!


Edit: Read this for some rambling explanation from my noobish self.


RE: [Help] Windows and Ubuntu, sitting on a LAN... by Sypher on 05-08-2007 at 03:38 PM

Install Squid, a proxy server and set it up as a transparant proxy.

For the sharing, you'll need Samba.

There are lots of tutorials helping you out, most of them are generic. Debian ones are also an option as Ubuntu is based on it.

Or buy a router, those are not that expensive nowadays ;)


RE: [Help] Windows and Ubuntu, sitting on a LAN... by Adeptus on 05-08-2007 at 04:18 PM

quote:
Originally posted by L.Coyote
I only want to share Internet from Ubuntu to Windows, and maybe see the drive from Windows... But sharing Internet is a priority, since I can't be on Ubuntu when my mom decides to use her laptop...
The feature for Internet sharing on Linux is usually referred to as "IP masquerading".  There is a generic HOWTO for doing it the hard way with any Linux distribution, but it seems that Ubuntu provides a graphical tool for setting it up -- try this first.

Squid, which was mentioned by another poster, is a caching web proxy.  Combined with masquerading it may speed up web browsing a bit, but isn't necessary otherwise.  Without masquerading, it can be set up to share the connection for the purpose of web browsing only -- other apps that connect to Internet won't work through it.
RE: [Help] Windows and Ubuntu, sitting on a LAN... by L. Coyote on 05-08-2007 at 10:34 PM

quote:
Originally posted by Sypher
There are lots of tutorials helping you out, most of them are generic. Debian ones are also an option as Ubuntu is based on it
I've not doubt about that, but a simple search on Google hadn't given me anything like what Adeptus linked.

quote:
Originally posted by Sypher
Or buy a router, those are not that expensive nowadays
Buy me one?

quote:
Originally posted by Adeptus
quote:
Originally posted by L.Coyote
I only want to share Internet from Ubuntu to Windows, and maybe see the drive from Windows... But sharing Internet is a priority, since I can't be on Ubuntu when my mom decides to use her laptop...
The feature for Internet sharing on Linux is usually referred to as "IP masquerading".  There is a generic HOWTO for doing it the hard way with any Linux distribution, but it seems that Ubuntu provides a graphical tool for setting it up -- try this first.

Squid, which was mentioned by another poster, is a caching web proxy.  Combined with masquerading it may speed up web browsing a bit, but isn't necessary otherwise.  Without masquerading, it can be set up to share the connection for the purpose of web browsing only -- other apps that connect to Internet won't work through it.
I see. I've downloaded guidedog, I can access the Windows Network, so it seems I did something good. But I can't access internet on Windows, so I must've done something bad. :P

I'm still figuring it all out, though. (Y)

Thanks a lot, Adeptus! :D
RE: [Help] Windows and Ubuntu, sitting on a LAN... by Verte on 05-09-2007 at 04:18 AM

Heh, well you will need to get Windows to recognise the Ubuntu computer as the default gateway.


RE: [Help] Windows and Ubuntu, sitting on a LAN... by Supersonicdarky on 05-09-2007 at 11:49 AM

so ur set up is

~Internet~
   |
Modem
   |
Windows Machine
   |
Ubuntu

?

if yes, how are win and ubuntu connected? ethernet?


RE: [Help] Windows and Ubuntu, sitting on a LAN... by L. Coyote on 05-09-2007 at 12:39 PM

Woot, I just woke up. Maybe if I'm fresh I'll get it right this time.

quote:
Originally posted by Supersonicdarky
~Internet~
   |
Modem
   |
Windows Machine
   |
Ubuntu
It's Ubuntu the one that has the modem and then it shares with Windows. And, yes, they're connected with Ethernet.

I'll post later, with any news.
RE: [Help] Windows and Ubuntu, sitting on a LAN... by Adeptus on 05-09-2007 at 03:55 PM

quote:
Originally posted by L.Coyote
I've downloaded guidedog, I can access the Windows Network, so it seems I did something good. But I can't access internet on Windows, so I must've done something bad.
Unfortunately, beyond the initial direction, it is very difficult to help with a problem like that through forums. 

Make sure you didn't make any mistakes (but don't rule out some bug with Guidedog's scripts, either).  If you followed the instructions correctly and it still doesn't work, the next step would be the troubleshooting phase, for which you should have someone working with you in real time.  Check the Ubuntu website for information on any support IRC channels they may have.  That would probably be one of the best ways to go about it.
RE: [Help] Windows and Ubuntu, sitting on a LAN... by L. Coyote on 05-14-2007 at 03:22 PM

Meh, several things I've learnt...

You can change the IP of an interface. ¬___¬ Just learnt it yesterday. "ifconfig nas0 192.168.1.1" to remove the IP conflict I didn't understand when I started all this mess (I kept confusing nas0 with eth0, and eth0 with nas0 in terms of functionality and identity).

Once I removed the conflict, both Ubuntu and Windows partitions are left as server with IP 192.168.0.1 (since I can't change the range used by client Windows DHCP, this I also figured yesterday :p).

Client Windows has, as I mentioned, a private dynamic IP. Though this change is not new, it's the first time I do it with the conflict fix and with a static IP on the correct device in Ubuntu partition. :P

God! What a mess! But, luckily, I've learnt quite a few things with all this. :P

I'm trying to fix Samba, since the file sharing part got a bit broken with all these changes, but it was Internet sharing what was more important, anyway. :)

Hope this helps anyone in the future. While "Googling" for all this, I was led to this thread... :dodgy: