From 92159690646e497df83fdb10909891f8049b2f35 Mon Sep 17 00:00:00 2001 From: "jm9632@student.uni-lj.si" Date: Mon, 31 Aug 2015 21:43:34 +0000 Subject: git-svn-id: https://svn.lusy.fri.uni-lj.si/kpov-public-svn/kpov-public@326 5cf9fbd1-b2bc-434c-b4b7-e852f4f63414 --- kpov_judge/tasks/smb_nfs/howtos/si/HOWTO-en.txt | 35 ++++++++++++++++++++++++ kpov_judge/tasks/smb_nfs/howtos/si/HOWTO-slo.txt | 33 ++++++++++++++++++++++ 2 files changed, 68 insertions(+) create mode 100644 kpov_judge/tasks/smb_nfs/howtos/si/HOWTO-en.txt create mode 100644 kpov_judge/tasks/smb_nfs/howtos/si/HOWTO-slo.txt (limited to 'kpov_judge/tasks') diff --git a/kpov_judge/tasks/smb_nfs/howtos/si/HOWTO-en.txt b/kpov_judge/tasks/smb_nfs/howtos/si/HOWTO-en.txt new file mode 100644 index 0000000..3bd133b --- /dev/null +++ b/kpov_judge/tasks/smb_nfs/howtos/si/HOWTO-en.txt @@ -0,0 +1,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 + () + 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 : <"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 = + + + diff --git a/kpov_judge/tasks/smb_nfs/howtos/si/HOWTO-slo.txt b/kpov_judge/tasks/smb_nfs/howtos/si/HOWTO-slo.txt new file mode 100644 index 0000000..24bb945 --- /dev/null +++ b/kpov_judge/tasks/smb_nfs/howtos/si/HOWTO-slo.txt @@ -0,0 +1,33 @@ +VirtualBox - Nastavitve Mrežnih Vmesnikov +SimpleArbiterDhcp ..... adapter (1) - internal network +FileServer ............ adapter 1 - NAT + ............ adapter 2 -internal network + +FileServer + +1. Postavi DHCP strežnik + 1.1 apt-get update + 1.2 apt-get install isc-dhcp-server + 1.3 Pojavi se napaka. Brez skrbi: + - v /etc/default/isc-dhcp-server je potrebno določiti, +na katerem vmesniku bo tekel DHCP strežnik, + - v /etc/dhcp/dhcpd.conf določi lastnosti podomrežja (naslov, maska, rang ipd.) + - določi fiksen ip za MAC SimpleArbiterDhcp navideznega računalnika + +2. Postavi NFS strežnik + 2.1 apt-get install nfs-kernel-server + 2.2 Določi pravila exporta v /etc/exports + ( (). + Primer: /srv/nfs/ERLbbBrT 192.168.0.0/24(ro,sync) + Za ip, določen koraku 1.3, zapiši pravilo s pravicami rw. + +SimpleArbiterDhcp +3. Kot root poženi ukaz mount: mount -t nfs : <"destinacija"> + +V imeniku <"destinacij">, ki si ga določi, se sedaj nahajajo deljene datoteke. + +Samba na FileServer +4. apt-get install samba + 4.1 Nekje na strežniku ustvari direktorij urania-03. + 4.2 V /etc/samba/smb.conf pod [global] določi netbios name vrednost zarptica-32 + pod [home] nato popravi pot do svoje mape urania-03 path = -- cgit v1.2.1