LinuxQuestions.org

LinuxQuestions.org (/questions/)
-   Linux - Networking (https://www.linuxquestions.org/questions/linux-networking-3/)
-   -   sharing folders between 2 suse 10.0 pc's on the same router (https://www.linuxquestions.org/questions/linux-networking-3/sharing-folders-between-2-suse-10-0-pcs-on-the-same-router-436452/)

oskar 04-18-2006 01:42 PM

sharing folders between 2 suse 10.0 pc's on the same router
 
This ought to be really simple, but I just can't figure it out, and I couldn't find a decent howto in the last 2 hours.

I will spare you with what I've tried so far, because it was probably wrong.

All I want is to have folders on both pc's that the other one can read.
After all the googling I got the feeling it should be easier to connect to windows with samba :rolleyes:

pdeman2 04-18-2006 02:17 PM

This should be pretty easy, you can use what is called NFS or Network File System. You should be able to open up YaST and find a configuration tool for both the NFS server and one for the NFS client. If you can't find these YaST modules, then perhaps they are not installed. If this is that case, then you'll want to open up the YaST software manager and search for nfs, a list of nfs related packages should show up.

This NFS program will allow the client computer to mount the shared directory just as if they were mounting another partition or something. It's a very handy tool.

oskar 04-18-2006 06:50 PM

---edit---

The first thing I tried was to set up nfs server and client on both pc's... Now, for no apparent reason it worked - one way that is.

(the numbers refer to pc 1 and 2)
server1 has one shared folder assigned to the full ip adress of pc2 instead of a wildcat, options are: ro,root_squash,sync
client2 can connect, everythings fine.

server2 is set up exactly the same way, only with another folder.
client1 doesn't find the folders on server2

I tried to just fill them in, but I get an "couldn't find nfs entrys in /etc/fstab" - error.

(ping works fine both ways.)

ideas?

pslave 04-19-2006 03:20 AM

Why don't you use samba?

oskar 04-19-2006 05:44 AM

Because - theoretically - samba is more complex. And nfs does ecaxtly what I want to do. - theoretically.

Now I thought I'll just give write permission on the folders on pc1 (nfs-option: rw, and chmodded the shared folder reclusively to 777) so that both pc's just save the shared files there.

But now client2 never connects (it stays on 1% for 5 minutes and eventually crashes or gives up)
I guess I'll give samba a try.

oskar 04-19-2006 06:02 AM

oh christ.
Now it works, but with only one of two folders, and I can't see why, they are set up exactly the same way with the same permissions. The other way still doesn't work, so we'll have to copy everything. Unconvenient, but at least it works.

anywho, problem solved I guess. Unless anyone has an idea what the problem is.

And drag-and-drop doesn't work, he wants copy and paste

pslave 04-19-2006 03:22 PM

Are they at the same filesystem.
For example: hd1 (what is working) is at reiserfs and hd2 is ext3 (what doesn't work)

oskar 04-22-2006 02:30 PM

oh sorry, I thought I already replied. Yes, both reiserfs, and no links to other partitions. But it only works from time to time. There seems to be something wrong. Unfortunately I have no time to worry about this for the next month. Thanks for helping.

---
I'm getting crashes on konqueror and firefox too now, I think there's some hardware problem. Maybe they're related... I'll have to do reiserfsck and so on, but that has to wait.

pslave 04-23-2006 01:03 AM

Btw, do ls -l /etc/rc.d/

It might be /etc/inet.d/ also.

There SHOULD be something like this:

-rwxr-xr-x 1 root root 3074 2005-10-11 23:12 rc.nfsd at the server

-rwxr-xr-x 1 root root 3074 2005-10-11 23:12 rc.nfs at the client.

if these lines doesn't have x bit, chmod it.
And if that doens't solve the problem post your /etc/exports file content here.
Do you have mobified /etc/hosts.allow and /etc/hosts.deny?
If not, you should.

Find out what servises you need to run and to be accessed from an internet, block everything else by this way:
/etc/hosts.deny
ALL: ALL

and allow everything you need by this way:
/etc/hosts.allow
local: 10.0.0.2 10.0.0.3 (or ALL: 10.0.0.2 10.0.0.3 10.0.0.4...)
ALL: ftpd

These are just two what you need to run.
Let me know if this does any diffrence.


All times are GMT -5. The time now is 04:11 PM.