summaryrefslogtreecommitdiff
path: root/kpov_judge/tasks
diff options
context:
space:
mode:
authorjm9632@student.uni-lj.si <jm9632@student.uni-lj.si@5cf9fbd1-b2bc-434c-b4b7-e852f4f63414>2015-08-31 21:43:34 +0000
committerjm9632@student.uni-lj.si <jm9632@student.uni-lj.si@5cf9fbd1-b2bc-434c-b4b7-e852f4f63414>2015-08-31 21:43:34 +0000
commit92159690646e497df83fdb10909891f8049b2f35 (patch)
tree00b194d91c0c9f73c2069485fdcf084a5659cb04 /kpov_judge/tasks
parente616ce82c5d8c3aebc97f66fddf1f1b5cf944a64 (diff)
git-svn-id: https://svn.lusy.fri.uni-lj.si/kpov-public-svn/kpov-public@326 5cf9fbd1-b2bc-434c-b4b7-e852f4f63414
Diffstat (limited to 'kpov_judge/tasks')
-rw-r--r--kpov_judge/tasks/smb_nfs/howtos/si/HOWTO-en.txt35
-rw-r--r--kpov_judge/tasks/smb_nfs/howtos/si/HOWTO-slo.txt33
2 files changed, 68 insertions, 0 deletions
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
+ <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>
+
+
+
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
+ (<deljena_mapa> <tvoje_podomrežje/določen_uporabni/določen_ip>(<pravilo>).
+ 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 <ip_nfs_strežnika>:<deljena_mapa> <"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 = <pot_do_urania-03>