LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Networking
User Name
Password
Linux - Networking This forum is for any issue related to networks or networking.
Routing, network cards, OSI, etc. Anything is fair game.

Notices


Reply
  Search this Thread
Old 03-22-2003, 07:38 PM   #1
Seph64
Member
 
Registered: Feb 2003
Distribution: Gentoo, FreeBSD, LFS
Posts: 298
Blog Entries: 21

Rep: Reputation: 30
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.
 
Old 03-23-2003, 05:11 AM   #2
acid_kewpie
Moderator
 
Registered: Jun 2001
Location: UK
Distribution: Gentoo, RHEL, Fedora, Centos
Posts: 43,417

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

as for the hostname, use "hostname" from a console
 
Old 03-23-2003, 11:05 AM   #3
Seph64
Member
 
Registered: Feb 2003
Distribution: Gentoo, FreeBSD, LFS
Posts: 298

Original Poster
Blog Entries: 21

Rep: Reputation: 30
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.
 
Old 03-23-2003, 02:34 PM   #4
hotrodowner
Member
 
Registered: Mar 2002
Distribution: Too many to count
Posts: 368

Rep: Reputation: 30
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.

Last edited by hotrodowner; 03-23-2003 at 02:35 PM.
 
Old 03-23-2003, 03:03 PM   #5
Seph64
Member
 
Registered: Feb 2003
Distribution: Gentoo, FreeBSD, LFS
Posts: 298

Original Poster
Blog Entries: 21

Rep: Reputation: 30
Thanks, that worked.
 
Old 03-29-2003, 04:05 PM   #6
Seph64
Member
 
Registered: Feb 2003
Distribution: Gentoo, FreeBSD, LFS
Posts: 298

Original Poster
Blog Entries: 21

Rep: Reputation: 30
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?
 
Old 03-29-2003, 07:52 PM   #7
hotrodowner
Member
 
Registered: Mar 2002
Distribution: Too many to count
Posts: 368

Rep: Reputation: 30
what did you do? they should go automatically
 
Old 03-29-2003, 09:10 PM   #8
Seph64
Member
 
Registered: Feb 2003
Distribution: Gentoo, FreeBSD, LFS
Posts: 298

Original Poster
Blog Entries: 21

Rep: Reputation: 30
I meant to edit my message because now I can view them... Strange no?
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
share folders/files on LAN debian/MS computers. ecampii Linux - Networking 2 09-28-2005 08:05 AM
How to share info with the other computers? SonoranFun Linux - Networking 2 03-24-2005 09:11 PM
how to share connections between two computers? keiwu Linux - Newbie 1 03-04-2005 03:49 AM
two computers to share files neolus Linux - Networking 2 12-02-2003 06:57 AM
[b]Problems sharing files between linux computers blaze Linux - Networking 5 11-27-2002 06:48 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Networking

All times are GMT -5. The time now is 07:01 PM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration