Connecting 2 linux computer back to back with cross cable.
Linux - NetworkingThis forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.
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've got two computers that I have connected via NFS (basically mapping a drive of one to the other) - faster than SSH or Samba, so I'm told. Here are my notes on how I set it up on Debian. ("server" is one computer that is sharing its directory, "client" is the other)
Code:
# From the server (192.168.0.74):
sudo apt-get install nfs-kernel-server nfs-common portmap
sudo vi /etc/exports
# add the following, swap out your dir2share and client's IP
/home/dir2share 192.168.0.75(rw)
# close, then run:
sudo exportfs -a
# From the client (192.168.0.75), swap out your directories and IPs here too:
sudo apt-get install nfs-common portmap
mkdir -p /home/clientuser/servermapped
sudo mount 192.168.0.74:/home/dir2share /home/clientuser/servermapped
just connect the two machines setup ip addresses using ifconfig and use rsync to copy the files across, you will need ssh enabled on the destination for rsync to work.
Alternatively you can use netcat to copy the file across.
just connect the two machines setup ip addresses using ifconfig ......
datopdog
Can i make use of the existing ip address assigned by the wireless router, connect these 2 computers with a cross cable and get them detected by one another?
hallamigo,
thanks for the tip, will try out as a last resort.
wanted to get this done with minimum addons
Haha, yeah, I should have specified the long term vs. short term solution. I use the NFS setup so my wife and I can have everything on one computer and just map the other computer over.
I think he means to have them on a completely separate network from your wireless LAN.
Either way, link up your 2 NICs with your crossover and give each computer an ip that is different from your other network(s) eg.
Code:
ifconfig eth0 172.16.1.x netmask 255.255.0.0
where 'x' is a unique number for each machine. Test the connection by pinging the other machine. If it works, you're good. You can then use whatever method you want to transfer the files. I prefer FTP, since security is not an issue in this case (if you are paranoid, disconnect from the wireless network first) and it is usually the quickest to set up.
eg. (assuming ubuntu/debian)
Code:
user@laptop$ sudo apt-get install proftpd
From there you can FTP to the laptop from the desktop machine, using your user credentials and retrieve the files.
After you're done, simply remove proftpd from the laptop.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.