Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's this is the place!
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Get a virtual cloud desktop with the Linux distro that you want in less than five minutes with Shells! With over 10 pre-installed distros to choose from, the worry-free installation life is here! Whether you are a digital nomad or just looking for flexibility, Shells can put your Linux machine on the device that you want to use.
Exclusive for LQ members, get up to 45% off per month. Click here for more info.
i am having trouble with my wireless USB device. I was wondering if I can connect my PC that is running Ubuntu 7.04 to a PC running XP MC or to a Mac running Tiger 10.4 and run off of either of those two wireless connections (by using an ethernet cable from the Linux PC to either of the other computers). I don't know how to do this. I need help!
To start of you need a straight cat5 cable, i.e. it doesn't have a twisted pair of cables used to connect router etc. You should not need to configure your linux box, it should work fine the way it is. After having conected the machines you go to controll panel in windows and go into the network section. There is the info panel to the left saying something like set up a home network or the likes. Click it. Follow the on screen options and when asked on connection method select " the computer connects to a gateway or another computer on the lan." Follow the other prompts. When asked to create a network setup disk, just click none needed and reboot. This should work and if you have samba should also allow you to share files. The IP would automatically be assigned. If the machines do not connect then run "ifdown eth0" on your linux box and bring the hardware up again with "ifup eth0". If it doesn't work, reboot both machines. Making sure windows is up and running before attempting to try the connection again. If this still fails check your cable.
To start of you need a straight cat5 cable, i.e. it doesn't have a twisted pair of cables used to connect router etc.
I'm not sure I understand what you mean; does "straight" refer to a straight though i.e. normal cable & "twisted" to a cross-over cable? If so, I think you've got it backward.
Raw CAT 5 cabling, by definition, consists of 4, color-coded, twisted pairs in a common sheath. Each end has an RJ-45 connector. There are 2 patterns, "A" & "B", for terminating the wires into the connectors. A straight thorough cable has both ends terminated the same way, usually "B". A cross-over cable has the ends terminated differently, i.e. 1 "A" & 1 "B".
The ports (outlets) that the cables plug into are also generally "regular"/unmarked/"LAN" or "uplink"/"WAN". Switches, cable/DSL modems, & NIC's are wired in a logical way so that usually only regular, i.e. straight thorough, cables are needed.
Unless one of the NIC's in the machines you are connecting is auto-sensing, you will need a cross-over cable to connect the two.
I suggest a quick check of the physical connection before proceeding: At least one, probably both, of the NIC's will have some kind of ready light on when they are hooked up (assuming the power is on). If the computers are on & the NIC's are cabled together, but neither one shows any sign of a light, then the physical connection needs troubleshooting & repair.
Quote:
Originally Posted by ericson007
You should not need to configure your linux box, it should work fine the way it is.
Yes, but see below.
Quote:
Originally Posted by ericson007
After having conected the machines you go to controll . . . The IP would automatically be assigned.
Can't comment, Winders-free since May 2005. Besides I always connect through a router+switch.
Quote:
Originally Posted by ericson007
If the machines do not connect then run "ifdown eth0" on your linux box and bring the hardware up again with "ifup eth0".
I take a more direct approach -- as root try, in this order:
Code:
dhclient
dhcpcd
pump
You should have one & only one of these installed, so when one works you're set. Their purpose is to get an IP address. You can check that by running ifconfig.
Quote:
Originally Posted by ericson007
If it doesn't work, reboot both machines. Making sure windows is up and running before attempting to try the connection again.
Appologies for my post above.archtoad6 has corrected my post, I completely messed up the wiring sequence. Sorry about that... Not sure what I was thinking whilst typing.
I did something similar when I used my wireless laptop to route internet traffic for my desktop. The laptop was running SuSE Linux, so that was different than your situation. You need to enable Internet Connection Sharing in the windows machine. Then use the IP address of the windows NIC as the default gateway address. You can connect the two computers via a switch or a cross over cable.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.