Gentoo Forums
Gentoo Forums
Gentoo Forums
Quick Search: in
NFS Setup Kinda confused.
View unanswered posts
View posts from last 24 hours

 
Reply to topic    Gentoo Forums Forum Index Networking & Security
View previous topic :: View next topic  
Author Message
Undergroundx
n00b
n00b


Joined: 06 Aug 2009
Posts: 24

PostPosted: Thu Aug 06, 2009 2:49 am    Post subject: NFS Setup Kinda confused. Reply with quote

Hello ive just recently installed gentoo on my new server

3.0ghz dual xeon processors
3 gigabytes ram
running gentoo.

I was trying to setup NFS and im alittle confused and not sure if i have it setup right or if there is anything that i need done more to get it to work.

I followed the following tutorials

http://linux-bsd-sharing.blogspot.com/2008/09/howto-setup-nfs-server-on-gentoo.html

http://en.gentoo-wiki.com/wiki/NFS/Server

i did everything listed in the tutorials but am not sure on what to do next or if everything is exactly right.

I wanted to be able to access my files that are on the server from my desktop.

My server ip is 192.168.5.200

and my desktop ip is 192.168.5.114

i went into /etc/exports/ and set it up as you can see below
(That"s a copy of my exports file)

# /etc/exports: NFS file systems being exported. See exports(5).

/home/allan 192.168.5.114/255.255.255.0(async,rw,no_subtree_check)

the /home/allan is the directory i would like to share so i can have full access to any file in /home/allan and any directories in /home/allan

the first ip listed there 192.168.5.114 is the desktop

the 255.255.255.0 is the netmask.

This is the output when running /etc/init.d/nfs start

Void ~ # /etc/init.d/nfs start
* Exporting NFS directories ... [ ok ]
* Starting NFS mountd ... [ ok ]
* Starting NFS daemon ... [ ok ]
* Starting NFS smnotify ... [ ok ]
Void ~ #

the servers name is void by the way. :)/

So pretty much what i would like to know is how would i be able to access my files from my desktop with the setup i have, or how would i go about,fixing,adding,re setting up etc.

Need any more information let me know
I really appreciate any help.

Thank You for your time.
Back to top
View user's profile Send private message
cach0rr0
Bodhisattva
Bodhisattva


Joined: 13 Nov 2008
Posts: 4123
Location: Houston, Republic of Texas

PostPosted: Thu Aug 06, 2009 2:58 am    Post subject: Reply with quote

so i guess first and foremost let's see if we can do a basic mount - more automated steps later

on your workstation/laptop you need to have an nfs client; easily done with a linux/mac workstation, for Windows a bit tricker as you have to install this whole huge "Unix tools for Windows" (I forget the exact name). If most of your clients are Windows, much as it pains me to say it, Samba is an easier route than NFS.

But let us assume for the time being you've installed nfs-utils on a Linux workstation - to test a basic mount:

Code:

mkdir /mnt/testmount
mount -t nfs 192.168.5.114:/home/allan /mnt/testmount


See if you can access your files. Note you'll have to start up a few nfs/rpc services on your client (I forget which offhand) in order to get NFS functional.

From there it's a question of fiddling with file system permissions an NFS export options on the server end, and automount options on the client end; but first things first, can you mount the share on your workstation using the above `mount` command?
Back to top
View user's profile Send private message
Display posts from previous:   
Reply to topic    Gentoo Forums Forum Index Networking & Security All times are GMT
Page 1 of 1

 
Jump to:  
You cannot post new topics in this forum
You cannot reply to topics in this forum
You cannot edit your posts in this forum
You cannot delete your posts in this forum
You cannot vote in polls in this forum