Once you have the approprate cable needed, hook it up, go to your control panel, and run your network wizard.

In that you can set it up to share an internet connection, and any sharing you would like (or not sharing as the case may be).

Although, personally, I would consider getting a router. That way you will be adding another layer of security. Routers for home use a very cheap nowdays.