diff options
-rw-r--r-- | kpov_judge/tasks/smb_nfs/howtos/si/HOWTO-en.txt | 35 | ||||
-rw-r--r-- | kpov_judge/tasks/smb_nfs/howtos/si/HOWTO-slo.txt | 33 | ||||
-rw-r--r-- | kpov_judge/tasks/smb_nfs/howtos/si/index.html | 175 |
3 files changed, 133 insertions, 110 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 deleted file mode 100644 index 4803d13..0000000 --- a/kpov_judge/tasks/smb_nfs/howtos/si/HOWTO-en.txt +++ /dev/null @@ -1,35 +0,0 @@ -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 deleted file mode 100644 index 5ab1367..0000000 --- a/kpov_judge/tasks/smb_nfs/howtos/si/HOWTO-slo.txt +++ /dev/null @@ -1,33 +0,0 @@ -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>
diff --git a/kpov_judge/tasks/smb_nfs/howtos/si/index.html b/kpov_judge/tasks/smb_nfs/howtos/si/index.html index 8cf9b8e..44c5e97 100644 --- a/kpov_judge/tasks/smb_nfs/howtos/si/index.html +++ b/kpov_judge/tasks/smb_nfs/howtos/si/index.html @@ -1,48 +1,139 @@ <html>
+
<head>
-<meta http-equiv="content-type" content="text/html"; charset=utf-8">
-<title>snm</title>
+<meta http-equiv="content-type" content="text/html" charset="utf-8">
+<title>smb_nfs</title>
</head>
+
<body>
-<h1>smb_nfs</h1>
-<p>
-<p>
-<h2>Hitra navodila</h2>
-<p>
-Postavi dva navidezna racunalnika (simpleArbiterDhcp and FileServer).
-
-Na SimpleArbiterDhcp poišči imenik Mapa in preberi pot NFS_POT ter ime imenika v skupni rabi SAMBA_SHARE.
-
-Skopiraj datoteke iz imenika Mapa, na FileServer.
-
-Poskrbi, da bo imenik z datotekami dostopen prek NFS v imeniku NFS_POT in prek SMB na imeniku v skupni rabi SAMBA_SHARE.
-
-</p>
-<p>
-Poskrbi, da bo SNMP streznik prek NET-SNMP-EXTEND-MIB::nsExtendOutput2Table
-sporočal, koliko časa je vklopljen v sekundah.
-</p>
-<p>
-
-</p>
-<h2>Navodila</h2>
-<ol>
-<li>Prenesi sledeče slike virtualk (*.vid) iz
-<a href="http://polz.si/media/uploads/kpov/virtualke/">datoteke</a>
-z virtualnimi slikami računalnikov:
-<ol type="disc">
-<li>
-simpleArbeiterDhcp.vdi
-</li>
-<li>
-base-student-console-2014.vdi for fileserver
-</li>
-</ol>
-</li>
-
-</ol>
-</li>
-
-</ol>
+ <h1>smb_nfs</h1>
+
+ <h2>Hitra navodila</h2>
+ <p>
+ Postavi dva navidezna računalnika - simpleArbiterDhcp in FileServer.
+ </p>
+ <p>
+ Poskrbi, da bo imenik /srv/nfs/ERLbbBrT na FileServer dostopen prek NFS in
+ prek SMB kot imenik v skupni rabi urania-03.
+ Ime SMB strežnika nastavite na zarptica-32.
+ </p>
+ <p>
+ SimpleArbiterDhcp naj ima prek NFS pravico pisati po imeniku.
+ </p>
+
+ <h2>Navodila</h2>
+
+ <ul style="list-style: none;">
+ <li><b>Prenesi sledeče slike virtualk:</b>
+ <ul type="disc">
+ <li>
+ <a href="http://kpov.fri.uni-lj.si/kpov-disks/jm9632@student.uni-lj.si/07-preparation-smb_nfs/student-fileserver.vdi">student-fileserver.vdi</a>
+ </li>
+ <li>
+ <a href="http://kpov.fri.uni-lj.si/kpov-disks/jm9632@student.uni-lj.si/07-preparation-smb_nfs/simpleArbiterDhcpGW.vdi">simpleArbiterDhcpGW.vdi</a>
+ </li>
+ <br>
+ </ul>
+ </li>
+
+ <li><b>Nastavitve v VirtualBox:</b>
+ <ul type="disc">
+ <li>za obe VM potrebno omogočiti PAE/NX: Settings⇒System⇒Processor</li>
+ <li>za FileServer
+ <ul>
+ <li>vmesnik 1 - NAT</li>
+ <li>vmesnik 2 - Internal network</li>
+ </ul>
+ </li>
+ <li>za SimpleArbiterDhcp
+ <ul>
+ <li>vmesnik 1 - Internal network</li>
+ </ul>
+ </li>
+ </ul>
+ </li>
+
+ <br>
+
+ <li><b>Strežnik FileServer</b>
+ <ol>
+ <li>Postavi DHCP strežnik
+ <ol>
+ <li>apt-get update</li>
+ <li>apt-get install isc-dhcp-server</li>
+ <li>Strežnik se ne bo zagnal (javi <i>Starting ISC DHCP server: dhcpdcheck syslog for diagnostics. ... failed!</i>), potrebno je popraviti 3 datoteke:
+ <ul>
+ <li>v /etc/network/interfaces določi statičen IP vmesnika eth1, na tem bo tekel DHCP strežnik,
+ npr.:
+ <p style="font-family:Courier New; font-size:12">
+ auto eth1<br>
+ iface eth1 inet static<br>
+ address 192.168.1.10<br>
+ netmask 255.255.255.0<br>
+ network 192.168.1.0<br>
+ broadcast 192.168.1.255<br>
+ </p>
+ </li>
+
+ <li>v /etc/default/isc-dhcp-server:
+ <p style="font-family:Courier New; font-size:12">
+ INTERFACES="eth1"
+ </p>
+ </li>
+
+ <li>v /etc/dhcp/dhcpd.conf določi lastnosti podomrežja,
+ npr.:
+ <p style="font-family:Courier New; font-size:12">
+ authoritative;<br>
+ default-lease-time 600;<br>
+ max-lease-time 7200;<br>
+ <br>
+ subnet 192.168.1.0 netmask 255.255.255.0 {<br>
+ range 192.168.1.100 192.168.1.200;<br>
+ option routers 192.168.1.10; #IP vmesnika, kjer bo tekel DHCP strežnik<br>
+ option domain-name-servers 193.2.1.66, 8.8.4.4;<br>
+ <br>
+ host SimpleArbiter { #določitev fiksnega IP-ja za SimpleArbiter<br>
+ hardware ethernet 08:00:27:A2:FB:B4;<br>
+ fixed-address 192.168.1.180;<br>
+ }<br>
+ }<br>
+ </p>
+ </li>
+
+ </ul>
+ </li>
+
+ </ol>
+ </li>
+
+ <li>Postavi NFS strežnik
+ <ol>
+ <li>apt-get install nfs-kernel-server</li>
+ <li>Določi pravila v /etc/exports,npt.:
+ <p style="font-family:Courier New; font-size:12">
+ /srv/nfs/ERLbbBrT 192.168.1.0/24(ro,sync,no_subtree_check)<br>
+ #pravice za SimpleArbiterDhcp<br>
+ /srv/nfs/ERLbbBrT 192.168.1.180/24(rw,sync,no_subtree_check)<br>
+ </p>
+ </li>
+ </ol>
+ </li>
+
+ </ol>
+ </li>
+
+ <li><b>Odjemalec SimpleArbiterDhcp</b>
+ <ul>
+ <li>kot root: poženi ukaz mount -t nfs ip_nfs_strežnika:deljena_mapa destinacija, npr.:
+ <p style="font-family:Courier New; font-size:12">
+ mount -t -nfs 192.168.1.10:/srv/nfs/ERLbbBrT shared
+ </p>
+ </li>
+ </ul>
+ </li>
+
+ </ul>
+
</body>
</html>
|