blob: 3bd133b8a46b1f45c06f7408921144d705089ddb (
plain)
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
|
VirtualBox - Network Adapter Settings
SimpleArbiterDhcp ..... adapter (1) - internal network
FileServer ............ adapter 1 - NAT
............ adapter 2 -internal network
FileServer
1. Set up a DHCP server
1.1 apt-get update
1.2 apt-get install isc-dhcp-server
1.3 There is an error. No worries:
- in file/etc/default/isc-dhcp-server set on which interface your DHCP server shoud run
- in file /etc/dhcp/dhcpd.conf set your subnet (address, mask, rang etc.)
- set static ip for SimpleArbiterDhcp's MAC
2. Set up a NFS server
2.1 apt-get install nfs-kernel-server
2.2 Define export rules in file /etc/exports
<shared_dir> <your_subnet/specific_user/specific_ip>(<rule>)
E.g.: /srv/nfs/ERLbbBrT 192.168.0.0/24(ro,sync)
For IP from step 1.3 define a rule with rw permission
SimpleArbiterDhcp
3.) Run mount command as root: mount -t nfs <nfs_server_ip>:<shared_dir> <"dest">
In directoriy <"dest"> that you specified earlier you should be able to access shared files.
Samba - FileServer
4. Set up a SMB server
4.1 apt-get install samba
4.2 Somewhere on the server create dir urania-03.
4.3 In file /etc/samba/smb.conf under [global] mark define netbios name value as zarptica-32
under [home] mark set path to dir urania-03 path = <path_to_urania-03>
|