LinuxQuestions.org
Help answer threads with 0 replies.
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 07-27-2004, 02:44 AM   #1
fred22
Member
 
Registered: Apr 2004
Posts: 42

Rep: Reputation: 15
Question small network


Hi everybody!

Well I had a look around and couldn't really find a topic covering this(correct if you like).

Anyhow. I have an adsl router, FC2 on both a desktop and a laptop. So far I really no interaction between the two machines.

I would like it if people could share there experiences and ideas with me in regards to setting up a network with the desktop as a file server/ftp(4 web access) and render node(cg nerd) some syncing of directorys on both machines and general file sharing. All the things any growing boy wants

I'm in the process of giving NFS a go......to be continued....I've used tempory ftp servers to communicate between them.....But that is a pain.

My aim to make some good discussion about home/small business networking with linux. Of course if you feel that this has been run over a hundred times do say so and point me out of here.

Thanks heaps, Regards M@.B
 
Old 07-28-2004, 07:56 AM   #2
Goala
Member
 
Registered: May 2004
Location: Merida (Spain)
Distribution: Debian
Posts: 89

Rep: Reputation: 15
I think NFS is the easiest way to share files & diretories.

You can mount server directories in your client machine and work with them like if they were your own directories.

You have only to follow these steps to set up your server and these other steps to set up your client.


But shortly:

0) be sure nfsd is installed & running in your machines.

1) In your server edit /etc/exports file and add a line like this:
/data 192.168.0.100(rw)

where:
/data is the directory you want to share.
192.168.0.100 is your client ip.
(rw) access in read/write mode (ro= read only mode).

2) Once you have modified this file you must say nfsd to reread it.
Do it this way:
exportfs -ra
or
kill -HUP nfsd

3) in your client machine:
mount 192.168.0.1:/data /mnt/data

where:
192.168.0.1 is your server ip
/data is the shared directory in your server
/mnt/data is the directory where you want to mount the /data directory.

If you want this directory to be mounted when you boot add a line like this to your /etc/fstab file (in your client machine):

192.168.0.1:/data /mnt/data nfs rw 0 0


Bye.
 
Old 07-28-2004, 06:20 PM   #3
fred22
Member
 
Registered: Apr 2004
Posts: 42

Original Poster
Rep: Reputation: 15
Hi Goala, Yeah I have been playing NFS and got it up and running! I had some problems initally....

For example in host.allow i had

Code:
portmap: 192.168.1.5, 192.168.1.7
problem was the HOWTO I have been looking at must be dated as once I removed the
Code:
,
everything was ok. You could imagine the laughter

Also with auto mounting nfs, what happens when a computer is off the network. Because at the moment when shutting down the umounting(nfs) task is rather slow and requires a couple of retrys.

So now with that said, I would like to look into some directory/file syncing? Like if a file is updated on my laptop then the file on the desktop is updated as well. Similar to drive mirroring, but obviously little further down scaled.

Scripting could do the job(check to see the drive is mounted, compare files, update)? Or anybody know of an app maybe?

Many thanks and Regards, Matt

btw - what is FSH or FISH?
 
Old 07-29-2004, 07:02 AM   #4
Goala
Member
 
Registered: May 2004
Location: Merida (Spain)
Distribution: Debian
Posts: 89

Rep: Reputation: 15
I don't know a perfect solution for your problem (slow umounting)... well there is an obvious one: don't do automount and mount it manually .

And respect directory/file syncing, I only known one method: use a ftp program like lftp and use the mirror command. I think you could automate it with ftp commands, and lauching them every x minutes. In this way you can keep synchronized the two machines.

bye.
 
Old 07-29-2004, 09:31 PM   #5
fred22
Member
 
Registered: Apr 2004
Posts: 42

Original Poster
Rep: Reputation: 15
Hello, again. Well auto-mounting probably is not what I need to do. But I'm not up to scratch on setting up a manuall mount without being the super user. As far as I know you can't mount without being root?

Other wise I think that is a good idea and I could make everything unmount during logout. On my nfs server the nfs mounts take even longer to auto-mount... So maybe ftp is the answer, at least then I can get remote access via the web as well.

Though ftp does not intgrate very well with file browsing(?) I don't know I think I will hack at an ftp and see how that goes.
I will report back with probably more questions.

Thanks
-M@
 
Old 07-30-2004, 05:50 AM   #6
Goala
Member
 
Registered: May 2004
Location: Merida (Spain)
Distribution: Debian
Posts: 89

Rep: Reputation: 15
Normal users can mount files sytems. You have to add the "user" clause in the line of your /etc/fstab next to rw,ro,auto, ... clauses. You can specify too "nouser" if you don't want normal users can mount a files system. Examples:
Code:
# <device>      	<mountpoint>    <FS type>	<options>  	<dump> <fsckorder>

192.168.0.100:/data	/mnt/data   	nfs  		auto,rw,user 	0	0
/dev/sda0		/mnt/security  	ext2     	noauto,nouser	0	0
bye
 
  


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
small network windows to linux warpedlinuxmind Linux - Networking 1 07-31-2005 11:58 PM
How to monitor a small network by ethereal ? jindo Linux - Networking 2 07-31-2005 10:32 PM
small network 2 computers warpedlinuxmind Linux - Networking 1 07-30-2005 10:58 AM
Small network setup. HELP..... zaldyd Linux - Networking 0 07-15-2003 12:44 AM
Network or Small Beowulf Cluster CCParrish Linux - Networking 0 12-11-2000 08:58 AM

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

All times are GMT -5. The time now is 12:44 AM.

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
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration