LinuxQuestions.org
Review your favorite Linux distribution.
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 04-18-2006, 02:42 PM   #1
oskar
Senior Member
 
Registered: Feb 2006
Location: Austria
Distribution: Ubuntu 12.10
Posts: 1,142

Rep: Reputation: 49
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
 
Old 04-18-2006, 03:17 PM   #2
pdeman2
Member
 
Registered: Jul 2005
Location: Maine, USA
Distribution: OpenSUSE, Gentoo, Fedora, Ubuntu, Mandriva, others
Posts: 413

Rep: Reputation: 30
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.
 
Old 04-18-2006, 07:50 PM   #3
oskar
Senior Member
 
Registered: Feb 2006
Location: Austria
Distribution: Ubuntu 12.10
Posts: 1,142

Original Poster
Rep: Reputation: 49
---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?

Last edited by oskar; 04-18-2006 at 09:25 PM.
 
Old 04-19-2006, 04:20 AM   #4
pslave
LQ Newbie
 
Registered: Apr 2006
Location: Finland
Distribution: Tukaani / Slackware
Posts: 16

Rep: Reputation: 0
Why don't you use samba?
 
Old 04-19-2006, 06:44 AM   #5
oskar
Senior Member
 
Registered: Feb 2006
Location: Austria
Distribution: Ubuntu 12.10
Posts: 1,142

Original Poster
Rep: Reputation: 49
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.
 
Old 04-19-2006, 07:02 AM   #6
oskar
Senior Member
 
Registered: Feb 2006
Location: Austria
Distribution: Ubuntu 12.10
Posts: 1,142

Original Poster
Rep: Reputation: 49
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

Last edited by oskar; 04-19-2006 at 07:04 AM.
 
Old 04-19-2006, 04:22 PM   #7
pslave
LQ Newbie
 
Registered: Apr 2006
Location: Finland
Distribution: Tukaani / Slackware
Posts: 16

Rep: Reputation: 0
Are they at the same filesystem.
For example: hd1 (what is working) is at reiserfs and hd2 is ext3 (what doesn't work)
 
Old 04-22-2006, 03:30 PM   #8
oskar
Senior Member
 
Registered: Feb 2006
Location: Austria
Distribution: Ubuntu 12.10
Posts: 1,142

Original Poster
Rep: Reputation: 49
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.

Last edited by oskar; 04-22-2006 at 03:33 PM.
 
Old 04-23-2006, 02:03 AM   #9
pslave
LQ Newbie
 
Registered: Apr 2006
Location: Finland
Distribution: Tukaani / Slackware
Posts: 16

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

Last edited by pslave; 04-23-2006 at 06:00 AM.
 
  


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
Sharing alcatel speedtouch connection, 2 linux pc's justinv Linux - Networking 2 04-11-2005 04:58 PM
sharing folders jstephens84 Fedora 1 09-18-2004 01:13 PM
To send popups to lan user PC's from linux router RINO2004 Linux - Networking 1 07-31-2004 06:14 PM
Can ping to win pc's and router but not Linux over vpn link. lobsiger Linux - Networking 0 03-30-2004 02:54 AM
sharing folders atari303 Linux - Networking 5 05-26-2001 10:59 AM

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

All times are GMT -5. The time now is 09:32 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