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-09-15 16:44:46 +0000
committerjm9632@student.uni-lj.si <jm9632@student.uni-lj.si@5cf9fbd1-b2bc-434c-b4b7-e852f4f63414>2015-09-15 16:44:46 +0000
commit6085a85ed9d7c5d92651ee87135778764c294e55 (patch)
tree68f7d3def78990c9fc8b4baef585a74019b1713b /kpov_judge/tasks
parent9305d0fab5e486ec806867c7ff88e2a90168e73e (diff)
navodila index.html en in si, manjka smb
git-svn-id: https://svn.lusy.fri.uni-lj.si/kpov-public-svn/kpov-public@329 5cf9fbd1-b2bc-434c-b4b7-e852f4f63414
Diffstat (limited to 'kpov_judge/tasks')
-rw-r--r--kpov_judge/tasks/smb_nfs/howtos/en/index.html177
-rw-r--r--kpov_judge/tasks/smb_nfs/howtos/si/index.html8
2 files changed, 138 insertions, 47 deletions
diff --git a/kpov_judge/tasks/smb_nfs/howtos/en/index.html b/kpov_judge/tasks/smb_nfs/howtos/en/index.html
index f708d4b..004b4f4 100644
--- a/kpov_judge/tasks/smb_nfs/howtos/en/index.html
+++ b/kpov_judge/tasks/smb_nfs/howtos/en/index.html
@@ -1,48 +1,139 @@
<html>
+
<head>
-<meta http-equiv="content-type" content="text/html"; charset=utf-9">
-<title>smb</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>Quick Instructions</h2>
-<p>
-Set up two virtual computers (simpleArbiterDhcp and FileServer).
-
-On SimpleArbiterDhcp find directory Mapa, read path NFS_POT and name of directory in shared folder SAMBA_SHARE.
-
-Copy files from directory Mapa to FileServer.
-
-Make sure that the directory with files will be available over NFS (which is in directory NFS_POT) and over SMB, on directory in shared folder SAMBA_SHARE.
-
-</p>
-<p>
-Make sure that the SNMP server reports it's uptime in seconds
-over SNMP under NET-SNMP-EXTEND-MIB::nsExtendOutput2Table.
-</p>
-<p>
-
-</p>
-<h2>Instructions</h2>
-<ol>
-<li>Download the following virtual images (*.vid) from the
-<a href="http://polz.si/media/uploads/kpov/virtualke/">directory</a>
-with images of virtual computers:
-<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>Quick guide</h2>
+ <p>
+ Set-up two virtual computers - SimpleArbiterDhcp and FileServer.
+ </p>
+ <p>
+ Make sure that the directory /srv/nfs/ERLbbBrT on FileServer is accessible
+ over NFS and over SMB under the sharename urania-03.
+ Set the SMB server name to zarptica-32.
+ </p>
+ <p>
+ SimpleArbiterDhcp should have write access to /srv/nfs/ERLbbBrT over NFS.
+ </p>
+
+ <h2>Instructions</h2>
+
+ <ul style="list-style: none;">
+ <li><b>Download these VM images:</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>VirtualBox Settings:</b>
+ <ul type="disc">
+ <li>enable PAE/NX for both VMs: Settings&rArr;System&rArr;Processor</li>
+ <li>for FileServer
+ <ul>
+ <li>Adapter 1 - NAT</li>
+ <li>Adapter 2 - Internal network</li>
+ </ul>
+ </li>
+ <li>for SimpleArbiterDhcp
+ <ul>
+ <li>Adapter 1 - Internal Network</li>
+ </ul>
+ </li>
+ </ul>
+ </li>
+
+ <br>
+
+ <li><b>Server FileServer</b>
+ <ol>
+ <li>Set-up a DHCP server
+ <ol>
+ <li>apt-get update</li>
+ <li>apt-get install isc-dhcp-server</li>
+ <li>The server will not start (error <i>Starting ISC DHCP server: dhcpdcheck syslog for diagnostics. ... failed!</i>), configure 3 files:
+ <ul>
+ <li>in /etc/network/interfaces set static IP for eth1 on which the DHCP server will be running,
+ e.g.:
+ <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>in /etc/default/isc-dhcp-server:
+ <p style="font-family:Courier New; font-size:12">
+ INTERFACES="eth1"
+ </p>
+ </li>
+
+ <li>in /etc/dhcp/dhcpd.conf configure the subnet properties,
+ e.g.:
+ <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;<br>
+ option domain-name-servers 193.2.1.66, 8.8.4.4;<br>
+ <br>
+ host 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>Set-up a NFS server
+ <ol>
+ <li>apt-get install nfs-kernel-server</li>
+ <li>Determine the rules in /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>
+ #privileges for SimpleArbiterDhcp<br>
+ /srv/nfs/ERLbbBrT 192.168.1.180/24(rw,sync,no_subtree_check)<br>
+ </p>
+ </li>
+ </ol>
+ </li>
+
+ </ol>
+ </li>
+
+ <li><b>Client SimpleArbiterDhcp</b>
+ <ul type="disc">
+ <li>as root: run the command mount -t nfs nfs_server_ip:shared_dir dest, e.g.:
+ <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> \ No newline at end of file
+</html>
diff --git a/kpov_judge/tasks/smb_nfs/howtos/si/index.html b/kpov_judge/tasks/smb_nfs/howtos/si/index.html
index 44c5e97..fa3bf64 100644
--- a/kpov_judge/tasks/smb_nfs/howtos/si/index.html
+++ b/kpov_judge/tasks/smb_nfs/howtos/si/index.html
@@ -42,7 +42,7 @@
<li>za FileServer
<ul>
<li>vmesnik 1 - NAT</li>
- <li>vmesnik 2 - Internal network</li>
+ <li>vmesnik 2 - Internal Network</li>
</ul>
</li>
<li>za SimpleArbiterDhcp
@@ -90,10 +90,10 @@
<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 routers 192.168.1.10;<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>
+ host SimpleArbiter {<br>
hardware ethernet 08:00:27:A2:FB:B4;<br>
fixed-address 192.168.1.180;<br>
}<br>
@@ -124,7 +124,7 @@
</li>
<li><b>Odjemalec SimpleArbiterDhcp</b>
- <ul>
+ <ul type="disc">
<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