Skip to content
This repository was archived by the owner on Oct 20, 2022. It is now read-only.

Commit 9528904

Browse files
Create nfs-config.md
1 parent 82a1bfb commit 9528904

File tree

1 file changed

+19
-0
lines changed

1 file changed

+19
-0
lines changed

doc/nfs-config.md

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
## Install nfs server
2+
- install nfs package: `sudo apt-get install nfs-server`
3+
- for instance on `g-z820-cm` machine
4+
5+
## Configure nfs sharing on the nfs server
6+
- create a directory you want to share on your filesystem, for instance: `/data-simdoc`
7+
- add the configuration to the nfs config file: `/etc/exports`
8+
9+
Configuration example:
10+
```
11+
/data-simdoc 10.194.4.196(ro,sync,no_subtree_check) 10.194.7.164(ro,sync,no_subtree_check)
12+
```
13+
14+
to look up the ip address of a known machine: `host g-z820-cm`
15+
16+
## Mount the nfs shared directory on a client machine
17+
18+
- create the directory on which you want to mount the network directory, for instance: `/data-simdoc`
19+
- add the mount in the `/etc/fstab` config file, for instance add the following line: `g-z820-cm:/data-simdoc/ /data-simdoc nfs defaults,user,auto,noatime,intr 0 0`

0 commit comments

Comments
 (0)