What is the easiest way to network two Linux computers which are plugged into the same router? I would like to mount a drive on one computer to the file-system of the other computer to so I can transfer data by dragging and dropping.
NFS is available in openSUSE. See the handbook that is installed in your filesystem at this location: /usr/share/doc/manual/opensuse-manual_en/manual/index.html.
If you copy/paste this address into Firefox you’ll get a book opening from that page:
file:///usr/share/doc/manual/opensuse-manual_en/manual/index.html
or just browse to it and click the page.
Hi
Ensure ssh server port is open on the machines for local acces and just
use sftp in nautilus or fish in konqurer eg;
sftp://username@ip.add.ress/home/username
or
fish://username@ip.add.ress/home/username
You should then be able to add as a bookmark in either.
–
Cheers Malcolm °¿° (Linux Counter #276890)
SUSE Linux Enterprise Desktop 11 (x86_64) Kernel 2.6.27.23-0.1-default
up 5 days 17:37, 2 users, load average: 0.12, 0.06, 0.06
GPU GeForce 8600 GTS Silent - Driver Version: 185.18.14
fish for me, excellent
combined with kssh
Ensure ssh server port is open on the machines for local acces
-How?
use sftp in nautilus or fish in konqurer
-Again, how? Is this the “connect to server” thing in nautilus? What service type do I pick? What do I put for “server”?
sftp://username@ip.add.ress/home/username
-How do I use this in relation to nautilus? Do I just use the command prompt of the other computer in place of “username@ip.add.ress”?
the NFS stuff seems like more than I need, and I doubt I will be able to figure it out from the documentation, especially since the other computer is ubuntu, not openSUSE.
If someone can provide a step-by-step, it would be a great help.
ssh port on server: Yast - Security and users - Firewall -
Allowed Services - Service to allow drop box, secure shell server
In Nautilus
sftp://username@ip.add.ress/home/username
goes in the address bar/ location bar of the remote box
Check this, the key is set up on the remote machine
http://susewiki.org/index.php?title=Public_Key_Authentication_with_SSH
Ok, here’s my theory of how this might work. can someone flesh this out?-
-do somthing to ubuntu computer to open ports.
-do something to make the appropriate directory on this computer avalible
-get address of ubuntu computer- again, is this the command prompt?
-do something on suse computer to connect to the ubuntu computer using the address.
-mount the directory on the ubuntu machine to the suse computer’s file system.
-use any file manager to move files.
Sorry, but the “Public Key Authentication with SSH” page was unhelpful, since I don’t know how to do any of the things listed under “requirements”
As near as I can tell from google, people only connect linux computers to windows computers, never to other linux computers.
There’s a chapter in the book in your filesystem thta shows how to mount a Linux share into a Linux computer using NFS. You’ll find that chapter here in your filesystem:
file:///usr/share/doc/manual/opensuse-manual_en/manual/sec.filetrans.share.html
Might be what you’ve just listed, more or less.
Ppl do connect to Linux computers from Linux computers. That’s why NFS was invented for non-windows o/ses). By sun micro: Network File System - Wikipedia
“Sharing Files between Linux Computers” is much closer to being helpful. However I see two problems off the bat. First, I am confused on how to add a user which is on another computer. Further complicating things is the fact I am using the same username on both systems, undoubtedly with different uid’s. The second problem is that the directory I want to make available is on an ubuntu computer, so using yast is not an option.
I found a page on how to setup nfs under ubuntu. It seems all you need to do is install the nfs package, add the export directory to a config file, and start the server. however when I click “choose” in the suse nfs setup dialog, nothing comes up. Here is the ubuntu page:
https://help.ubuntu.com/8.10/serverguide/C/network-file-system.html
Also I still would like to know how to how to determine the hostname.
to clarify: both my computers are connected to a router which connects to a comcast cable-modem which connects to the internet via a dynamically assigned ip address. There is no domain name for the computers on the internet, so what I need to know is how they are identified locally.
OK- mostly got this figured out- My router provided the last piece of the puzzle. The local address was the same as the machine name in my command prompt (i. e. user@machine), except that netgear evidently converts this to all caps.
here’s the whole procedure for anyone who needs to know.
On the ubuntu machine:
-install ubuntu nfs package:
sudo apt-get install nfs-kernel-server
-add the shared directory to /etc/exports:
/anypath/anydirectory *(rw,sync,no_root_squash)
-start the nfs server:
sudo /etc/init.d/nfs-kernel-server start
On the suse machine:
just fill out the boxes in yast->nfs client. I got the nfs server hostname from the internal web page built into my netgear router.
Very successful – congrats
I am sorry to say, but this is big nonsense. NFS is there already for decades, it is even older then Linux and is used by all Unix flavours.
The system where you have the data you want to make available to other system(s) is called an NFS-server. System(s) that mount this data in their directory tree are called NFS-clients. Every system can incorporate both functions at the same time. I think others gave you a lot to read and find out the details, but YaST is very helpful to start NFS-server and/or NFS-client on an openSUSE system. I am sure Unubtu supports NFS and suppose it has a similar tool, else it must be done there with the CLI.
Also man pages of /etc/exports and /etc/fstab will provide you with all you need.
Edit: I see you already did it. Not very difficult isn’t it? Congrats.