LinuxQuestions.org
Visit Jeremy's Blog.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices


Reply
  Search this Thread
Old 05-06-2007, 12:49 PM   #1
props666999
Member
 
Registered: Oct 2003
Location: Greece
Posts: 260

Rep: Reputation: 30
configuring NFS Slackware(server) XP(client)


I want to be able to access a Linux folder under Windows XP using NFS

what i have done so far
1) install nfs-utils-1.0.10-i486-3

2) edit /etc/exports ( iwant to /Trance folder to be mounted on XP box
Quote:
/Trance 192.168.1.2(rw,no_subtree_check)
3) edit /etc/hosts.allow

Quote:
portmap: 192.168.1.2
lockd: 192.168.1.2
rquotad: 192.168.1.2
mountd: 192.168.1.2
statd: 192.168.1.2
4) execute ./rc.nfsd start

5) lsmod output

Quote:
nfsd 52424 13
exportfs 4480 1 nfsd
lockd 39944 2 nfsd
sunrpc 122428 11 nfsd,lockd

6) cat /etc/hosts

Quote:
127.0.0.1 props.land props


7) cat /proc/fs/nfs/exports
Quote:
# Path Client(Flags) # IPs
bash-3.2#
unfortunately i cannot export the shares
how will i mount the NFS shares on XP box ?
 
Old 05-06-2007, 01:35 PM   #2
hollywoodb
Member
 
Registered: Aug 2003
Location: Minnesota, U.S.A.
Distribution: Debian, openSUSE
Posts: 400

Rep: Reputation: 30
run
Code:
exportfs -r
to reread /etc/exports,

then run
Code:
exportfs -v
to see if it is being exported correctly.

Note, if you're using nfsv4, then you'll want your /etc/exports line to read:
Code:
/Trance 192.168.1.2(rw,no_subtree_check,fsid=0)
  instead of
/Trance 192.168.1.2(rw,no_subtree_check)
 
Old 05-06-2007, 01:49 PM   #3
props666999
Member
 
Registered: Oct 2003
Location: Greece
Posts: 260

Original Poster
Rep: Reputation: 30
how can i access the share on windows XP? Do i need a third pary client or XP does it ?
Quote:
exportfs -v



/Trance 192.168.1.2(rw,wdelay,root_squash,no_subtree_check,anonuid=65534,anongid=65534)
Trance 192.168.1.2(rw,wdelay,root_squash,no_subtree_check,fsid=0,anonuid=65534,anongid=65534)
/ 192.168.0.0/24(rw,wdelay,root_squash,anonuid=65534,anongid=65534)
 
Old 05-06-2007, 02:06 PM   #4
terryxela
Member
 
Registered: Dec 2006
Location: Denver, Colorado, USA
Distribution: SuSE 11.3
Posts: 127

Rep: Reputation: 17
Props,

I am not sure what are you trying to do.

1. NFS is an excellent file system for linux.

2. It does not have windows client. You can get one for free here

http://www.crossmeta.com/crossmeta.html

There are also other commercial ones.

3. Users that need to access window usually use Samba.

4. Both NFS and Samba are server/client architectures.

5. I use NFS and works great but I donot use win. I have VMware and whenever I need it I can run a windows program within linux (treo desktop). For others I use crossover.

6. Samba is very well supported and even you can find it in very small distros that fit in an usb like puppy or dsl

Ciao

-=terry(Denver)=-
 
Old 05-06-2007, 02:14 PM   #5
LazyP
Member
 
Registered: Jun 2005
Location: Athens GR
Distribution: Slackware 10.2
Posts: 43

Rep: Reputation: 15
IIRC there is an NFS client in the Windows XP installation CD but it's not installed by default. There is a nice howto in microsoft.com. Here it is: http://support.microsoft.com/kb/324055

Is would still agree with terryxela though. Samba will be so less troublesome if you have windows clients.
 
Old 05-06-2007, 02:50 PM   #6
props666999
Member
 
Registered: Oct 2003
Location: Greece
Posts: 260

Original Poster
Rep: Reputation: 30
still i think i haven't configured NFS successfully

cat /proc/fs/nfs/exports should list shares if im not mistaken
this is what i get

do i have to mount the shares ? to Windows XP ?
do i have to set username passwords accounts ?


Code:
# Version 1.1
# Path Client(Flags) # IPs
bash-3.2#
 
Old 05-06-2007, 07:56 PM   #7
gefst
LQ Newbie
 
Registered: Sep 2003
Posts: 28

Rep: Reputation: 17
In addition to nfsd you need to also start the rc.rpc

There is a very nice howto at the gentoo wiki here:
http://gentoo-wiki.com/HOWTO_Share_Directories_via_NFS

If you are using a firewall on your linux box you can use this slackware specific howto:
http://slackwiki.org/NFS_and_Firewall

There is a free nfs client for windows produced by Microsoft!
http://www.microsoft.com/downloads/d...displaylang=en

For some reason the client cannot be installed at a windows xp home box but there is an easy walkaround in case you are using the home edition
http://www.pixelmagicforum.com/forum...ead.php?t=1784

Using the client is not trivial, but there are various howtos (for example in this page - search for unix to windows):
http://www.kayodeok.btinternet.co.uk...winxphowto.htm

The client takes a while to start once you try to access the nfs share, but then it works very well.

Hope it helps
 
Old 05-06-2007, 11:22 PM   #8
terryxela
Member
 
Registered: Dec 2006
Location: Denver, Colorado, USA
Distribution: SuSE 11.3
Posts: 127

Rep: Reputation: 17
Quote:
Originally Posted by props666999
still i think i haven't configured NFS successfully

cat /proc/fs/nfs/exports should list shares if im not mistaken
this is what i get

do i have to mount the shares ? to Windows XP ?
do i have to set username passwords accounts ?


Code:
# Version 1.1
# Path Client(Flags) # IPs
bash-3.2#
Here you have a restricted guide in how to install and check nfs. This applied for linux. I have not used win clients. Of course you can use wildcard with the IPS but security deteriorates. Mos foten the distros have made this part pretty automatic like using yast in opensuse etc, however these steps will help you if you have to go under the hood :-)
BTW there is no password in NFS.

NFS Server

1. Configuration Files.

/etc/exports (man exports)
directory machine1(option1,option2) machine2(option1,option2)
/home/tdec 192.168.1.203(rw)

/etc/hosts.deny
portmap:ALL
lockd:ALL
mountd:ALL
rquotad:ALL
statd:ALL

/etc/hosts.allow
portmap 192.168.1.203
lockd: 192.168.1.203
mountd: 192.168.1.203
rquotad: 192.168.1.203
statd: 192.168.1.203

2. Start the Services

In general a reboot will install the nfs service when the startup scripts detect the /etc/exports file.
To determine if the portmap has been started:

$ ps aux|grep portmap

3. Verify that NFS is running:

Query the portmapper:

# rpcinfo -p

At least you should see 3 lines containing:
portmapper
nfs
mountd

4. Changes later on in /etc/exports.

You should run

# exportfs -ra

to force nfsd to re-read the /etc/exports file.
If you can not find exportfs the you can kill nfsd

#nfsd -HUP flag (see man nfsd)
If still does not work check hosts.allow to make sure thet new client machines are listed there. Also check on any firewalls


NFS Client.


1. Start the services.

I started the nfs server under yast. What you need is
portmap
lockd
statd
running in the machine

2. Mount the remote directory.

The first step is to create an empty directory in the client machine where the remote directory will be mounted. For example /home/tdec/mount.
Note: /home/tdec is my home directory in BOTH server and client so it is confusing the following command. If dns a name can be used instead of the ip address.
If access is deny be sure:
- if changes in config files that the # exportfs -ra has been run
- that the config files allow the access
- that the firewall in not in the way
# mount 192.168.1.200:/home/tdec /home/tdec/mount
# mount 192.168.1.201:/home/tdec /home/tdec/mount

3. Mount at boot time.

The key is to add a line into the /etc/fstab

# device mountpoint fs-type options dump fschorder
192.168.1.200:/home/tdec /home/tdec/mount nfs rw,hard,intr 0 0

Ciao

-=terry(Denver)=-
 
Old 05-07-2007, 01:33 PM   #9
props666999
Member
 
Registered: Oct 2003
Location: Greece
Posts: 260

Original Poster
Rep: Reputation: 30
Great guide terryxela

cheers!!!
 
  


Reply



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
SUSE NFS client can't detect an NFS server RedBoot SUSE / openSUSE 4 01-19-2009 11:56 PM
NFS client = Linux, NFS server = Mac OS X Tiger --> Hell of a problem make Linux - Networking 9 03-10-2006 05:16 AM
SuSE 9.0 NFS client with RHL 7.3 NFS server ocjacob Linux - Networking 0 02-01-2005 01:01 PM
configuring NFS Client a_geek Linux - Networking 1 09-14-2003 04:54 PM
Slackware 8.1 NFS Client Help DrLazardo Linux - Networking 11 05-13-2003 08:16 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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