LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   Having 2 Linux computers share files with each other? (https://www.linuxquestions.org/questions/linux-networking-3/having-2-linux-computers-share-files-with-each-other-51237/)

Seph64 03-22-2003 07:38 PM

Having 2 Linux computers share files with each other?
 
I got two computers in my room, and I would like one computer to share files with the other.

Both have Slackware 9.0 installed, and I edited the /etc/exports file with the folders I want to share with the other computer.

Also, I would like to change the localhost.localdomain stuff on one of the computers, as of right now both have localhost.localdomain for their host.domain information, I would like to change the localhost info for at least one of the computers.

Any help is appreciated.

acid_kewpie 03-23-2003 05:11 AM

well what's the problem... you say what you've done, but not what you need help with....? :confused:

as for the hostname, use "hostname" from a console

Seph64 03-23-2003 11:05 AM

Well I really don't know how to share files between the two computers using nfs. It's how I did my installation of Slackware 9.0 on that machine.

hotrodowner 03-23-2003 02:34 PM

after you export the files, you have to mount them on a mount point:

suppose you want export "/home/share" to the mount point "/share" on each computer. Then add the following line to /etc/fstab on both computers:

remote computer's ip address:/home/share /share nfs rw 0 0

make sure the empty folder /share exsist, and then reboot. When you go to the folder /share, you'll be in the folder /home/share on the other computer.

Seph64 03-23-2003 03:03 PM

Thanks, that worked.

Seph64 03-29-2003 04:05 PM

GARGH! I can't mount my partitions over the network!

mount -t nfs 192.xxx.xxx.xxx:/mnt/windows /mnt/network on both computers, now I can't see the files over the network any more? What's up?

hotrodowner 03-29-2003 07:52 PM

what did you do? they should go automatically

Seph64 03-29-2003 09:10 PM

I meant to edit my message because now I can view them... Strange no?


All times are GMT -5. The time now is 11:33 AM.