forked from probonopd/previous
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfilesharing.howto.txt
68 lines (50 loc) · 2.2 KB
/
filesharing.howto.txt
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
NOTE: This procedure has been tested using NeXTstep 1.0a and 3.3
as client and Mac OS X v10.9 as server.
This procedure is only valid when using SLiRP as networking
interface.
For this procedure to work networking must be setup first
(see networking.howto.txt for details).
To edit files inside /etc you need super user privileges.
X.X.X.X = Your host system's IP-Address (e.g. 192.168.0.1)
serverhostname = Your host system's hostname
clienthostname = Your NeXTstep hostname (see networking.howto)
Howto: Setup NFS file sharing under Mac OS X:
1. Create the folder you want to share and change permissions using
this command from the command line:
chmod 777 /Path/To/Shared/Folder
2. Add the folder you want to share to /etc/exports by adding this
line to the end of the file:
/Path/To/Shared/Folder -maproot=nobody
3. Load the edited file using these commands from the command line:
sudo nfsd checkexports
sudo nfsd enable
sudo nfsd stop
sudo nfsd -N
4. You can confirm that the operation was successful using this
command:
showmount -e
NOTE: Step 3 needs to be repeated after every reboot of the host
system because nfsd -N is not permanent.
Howto: Setup NFS file sharing under NeXTstep 3.3:
1. Edit the file "/etc/hosts" by adding your host system to
the last line of the file (host system IP-Address followed
by hostname of file server):
10.0.2.15 clienthostname
X.X.X.X serverhostname
2. Edit the file "/etc/fstab" by adding the shared filesystem.
Add this line at the end of the file:
serverhostname:/Path/To/Shared/Folder /Net nfs rw,net 0 0
3. Load the edited files using these commands from the command
line:
su
niload hosts / < /etc/hosts
niload fstab / < /etc/fstab
4. Reboot. The shared folder should be accessible from /Net
directory. You can confirm that the operation was successful
using this command:
/usr/etc/showmount -e serverhostname
Howto: Open the above files using root privileges (NeXTstep 3.3):
a Open the /etc directory with this command in Terminal:
"open /etc"
b Select the file to open and from Workspace select
Services > Open Sesame > Open As Root.