Networking two ubuntu computers

Asked by John Brooks

I have two computers connected using a crossover cable. They are both running a dual-boot with Windows XP and Ubuntu 8.10 Intrepid. When I use XP on at least one, the network works, including internet sharing.

I want to network the two while they are BOTH running Ubuntu, with full functionality, such as internet sharing, remote desktop etc. How do I go about doing this?

Question information

Language:
English Edit question
Status:
Solved
For:
Ubuntu samba Edit question
Assignee:
No assignee Edit question
Solved by:
Loye Young
Solved:
Last query:
Last reply:
Revision history for this message
marcobra (Marco Braida) (marcobra) said :
#1

a) Set your network:
pc A 192.168.1.1 netmask 255.255.255.0
pc B 192.168.1.2 netmask 255.255.255.0 gateway the pc A 192.168.1.1

b) to share internet connection http://www.ubuntugeek.com/sharing-internet-connection-in-ubuntu.html but i usually use a proxy server for example Squid on pc A

c) remote desktop is already loaded you simply need to set it menu System→Preferences→Remote Desktop

d) Install and configure Samba

...

Split your question in simple one to get best helps...

Hope this helps

Revision history for this message
Best Loye Young (loyeyoung) said :
#2

To network between the two, install a dhcpd server on one of the computers.
On that computer, set a static ip address for the interface you are using to
network the two computers. (BTW, a crossover cable isn't necessary if your
computer is less than 3 or 4 years old, because it will
autonegotiate/autocrossover for you.)

"Internet sharing" is simply another name for turning your computer into a
router, and is almost always a bad idea because a desktop is not properly
configured to do the Right Thing securely when forwarding traffic to another
host. Among other things, avahi will need to be ripped out, root and branch.

A cheap router will give you better performance, use less electricity, and
will be much easier to manage.

However, if you want to break your system the way Windows does it, you can
simply turn on packet forwarding. See /etc/sysctl.conf.

That said, at one of our locations, I am using a PIII laptop with a broken
keyboard as a commercial-grade router. The basic process was to use the
Ubuntu Server configuration, which sets up through most of what you need to
do automagically.

Here's a basic tutorial: http://www.routerwireless.biz/pcrouter.php

Happy Trails,

--
Loye Young
Isaac & Young Computer Company
Laredo, Texas
http://archive.iycc.net

On Sat, Jan 10, 2009 at 4:46 PM, Frogging101 <
<email address hidden>> wrote:

> New question #57011 on wine in ubuntu:
> https://answers.launchpad.net/ubuntu/+source/wine/+question/57011
>
> I have two computers connected using a crossover cable. They are both
> running a dual-boot with Windows XP and Ubuntu 8.10 Intrepid. When I use XP
> on at least one, the network works, including internet sharing.
>
> I want to network the two while they are BOTH running Ubuntu, with full
> functionality, such as internet sharing, remote desktop etc. How do I go
> about doing this?
>
> --
> You received this question notification because you are a member of
> Ubuntu Wine Team, which is an answer contact for wine in ubuntu.
>

Revision history for this message
John Brooks (frogging101) said :
#3

Thank you for your answers, I will try this and report back.

@Loye Young: I have a laptop and a desktop computer. The desktop cannot get internet, because it does not have a wireless card. The laptop does have a wireless card, so I share the laptop's internet connection with the desktop, so that the desktop can get internet. And neither computer is 'broken'.

Revision history for this message
John Brooks (frogging101) said :
#4

I tried this, but there are a couple of problems:

1. When I set the netmask on the PC B, I clicked OK, which closed the window. When I opened the window up again, the Netmask was 24 instead of 255.255.255.0

2. I have to have a gateway for the PC A, what should I enter?

Revision history for this message
John Brooks (frogging101) said :
#5

Thanks Loye Young, that solved my question.