Linux - NewbieThis Linux forum is for members that are new to Linux.
Just starting out and have a question?
If it is not in the man pages or the how-to's 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.
I have 2 computers on a small network that i am trying to get to talk to each other. I would like to arrange it so that any user can mount the other computer's /root/public directory into the /root/import directory. I would also like the client computer to mount the gateway computer's/root/public directory when it boots. If someone could show me how to do this that would be great!
Thank you!
1st can the two computers ping each other? How are they connected? Router? Switch? Just an ethernet cable?
After the machines can ping each other, take a look at NFS (network file system). It is the standard Linux-Linux file sharing system. There are tons of howtos out there, just google it.
yes they can ping each other and they are connected with an ethernet cord.
altering the fstab and export folders we were able to get the basic computer to mount the gateway but are still struggling to get the gateway to mount the basic.
With the way you want to set things up you will have to have a NFS server running on EACH machine. This is assuming you are using NFS(which you have not indicated thus far).
yes they can ping each other and they are connected with an ethernet cord.
altering the fstab and export folders we were able to get the basic computer to mount the gateway but are still struggling to get the gateway to mount the basic.
Usinf fstab to mount remote shares can prove detrimental. If the remote share is unreachable your booting might fail. It will also cause problem during fsck. I would develop a script and put it in /etc/rc.d to do all of this.
RHEL/Centos is set up in a way that if a NSF mount fails(fstab or otherwise) it will do so gracefully. It simply will not mount. One must keep in mind that anything in the boot process that relies on something within that mount(a bad idea) will fail and that MAY prevent a boot from completing.
It almost always is a very simple mistake. A lot of times it is just faster to grab somebody else and have them look at both machines. Even if they do not know what they are doing, they can often spot a simple difference that we are too close to see.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.