Connecting two computers with a USB cable (data cable)
Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then 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.
Connecting two computers with a USB cable (data cable)
Hello,
I have two RedHat 9.0 installed machines, and I want to transfer some files from one computer to another computer thru a USB cable by using a shell script or a C program. I have a data cable (it has USB connectors at both the ends), so I can connect these two machines. I will not have a network cable connected between these machines.
Is this possible? Or my imagination is too much? Did anyone tried anything like this before? If it is possible please give me some suggestions.
By data cable do you mean a regular USB cable or a special host-to-host cable. You might damage the PCs if you connect them together with regular USB cables.
Trouble is, now Im Googled out of info and answers. That or Im looking in the wrong places. My Mandriva 2006 setup wont recognise this network connection. It looks as though the system can 'see' the cable, and loads appropriate (I think and hope) driver modules. What else do I need to do for this to work please?
After a bit more Googling, I have identified my cable as a GeneLink. In the 2.6 kernels, you have to enable gl620a and usbnet. I think, from what I've read so far, its as well to enable bridge as a kernel module, because i think in order to set up the cable, you will need to use brctl (bridge-utils).
dmesg now gives me
usbcore: registered new driver usbfs
usbcore: registered new driver hub
USB Universal Host Controller Interface driver v2.3
PCI: setting IRQ 11 as level-triggered
PCI: Assigned IRQ 11 for device 0000:00:07.2
PCI: Sharing IRQ 11 with 0000:00:07.3
uhci_hcd 0000:00:07.2: UHCI Host Controller
uhci_hcd 0000:00:07.2: new USB bus registered, assigned bus number 1
uhci_hcd 0000:00:07.2: irq 11, io base 0x0000d400
hub 1-0:1.0: USB hub found
hub 1-0:1.0: 2 ports detected
PCI: Found IRQ 11 for device 0000:00:07.3
PCI: Sharing IRQ 11 with 0000:00:07.2
uhci_hcd 0000:00:07.3: UHCI Host Controller
uhci_hcd 0000:00:07.3: new USB bus registered, assigned bus number 2
uhci_hcd 0000:00:07.3: irq 11, io base 0x0000d800
hub 2-0:1.0: USB hub found
hub 2-0:1.0: 2 ports detected
usb 1-1: new full speed USB device using uhci_hcd and address 2
usb 1-2: new full speed USB device using uhci_hcd and address 3
NET: Registered protocol family 8
NET: Registered protocol family 20
usb 1-1: reset full speed USB device using uhci_hcd and address 2
usbcore: registered new driver speedtch
speedtch 1-1:1.0: found stage 1 firmware speedtch-1.bin
usbcore: registered new driver cdc_acm
drivers/usb/class/cdc-acm.c: v0.23:USB Abstract Control Model driver for USB modems and ISDN adapters
speedtch 1-1:1.0: found stage 2 firmware speedtch-2.bin
usbcore: registered new driver gl620a
NET: Registered protocol family 17
CSLIP: code copyright 1989 Regents of the University of California
PPP generic driver version 2.4.2
ATM dev 0: ADSL line is up (2272 kb/s down | 288 kb/s up)
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.