diff options
Diffstat (limited to 'kpov_judge/tasks')
-rw-r--r-- | kpov_judge/tasks/openvpn_simple_smb/howtos/si/index.html | 239 |
1 files changed, 54 insertions, 185 deletions
diff --git a/kpov_judge/tasks/openvpn_simple_smb/howtos/si/index.html b/kpov_judge/tasks/openvpn_simple_smb/howtos/si/index.html index 0e234f2..6d467b7 100644 --- a/kpov_judge/tasks/openvpn_simple_smb/howtos/si/index.html +++ b/kpov_judge/tasks/openvpn_simple_smb/howtos/si/index.html @@ -1,192 +1,61 @@ -<html>
-<head>
-<title>Free File Hosting - Online Storage; Upload Mp3, Videos, Music. Backup Files</title>
-
-
-<META NAME="Keywords" CONTENT="Free File Hosting, File Hosting, online file storage, Music File Hosting, Video File Hosting">
-<META NAME="Description" CONTENT="Free File Hosting and online file storage expert. File Hosting, online file storage, Music File Hosting, Video File Hosting ">
-<meta name="verify-v1" content="kijEV2iIFRQBm4OttptRdRhNBbOwNxk7WrV6Cw3Lh2E=" />
-<style type="text/css">
-
-body{
-
-background-image:url(images/headerback.png);
-
- background-repeat:repeat-x;
- background-color:#FFFFFF;
- }
-
-#container {
-
- position: absolute;
- top: 10px;
- left: 50%;
- margin-left: -400px;
- width: 800px;
- overflow: hidden;
-
- }
-
-#logo {
- float: left;
- width: 100%;
- height: 123px;
- margin-bottom: 15px;
-}
-
-a img { border: 0px; }
-
-#footer {
- float: left;
- width: 100%;
- text-align: center;
- margin-top: 15px;
- margin-bottom: 10px;
-}
-
-div, td, a {
- font-family: verdana;
- font-size: 12px;
- color: #8E8B8B;
-}
-
-#main {
- float: left;
- width: 100%;
- text-align: center;
-
-}
-
-.box {
- width: 674px;
- overflow: hidden;
- margin: 0 auto;
-
-}
-.bottommenu {
-margin: 0px 0px 0px 38px;
-_margin: 0px 0px 0px 58px;!important
-
-}
-.bottommenu li{
-float:left;
-list-style:none;
-font-family:Arial, Helvetica, sans-serif;
-font-size:18px;
-
-}
-.bottommenu a{
-text-decoration:none;
-color:#1b497c;
-margin-right:32px;
-_margin-right:34px;
-}
-.bottommenu .active{
-font-weight:bold;
-color:#327c0d;
-}
-</style>
-
-<script>
-
-function showLoading(){
- document.getElementById('uploading').style.display = 'block';
- document.getElementById('upload').style.display = 'none';
-}
-
-</script>
+<html>
+<head>
+<meta http-equiv=Content-Type content="text/html; charset=utf-8">
</head>
-<body>
-
-
-<div id="container">
- <div id="main">
+<body><font face="Georgia, Times New Roman, Times, serif">
+<strong><h1>OpenVPN in SMB vaja:</h1></strong>
+<p><strong><h2>Naloga na hitro:</h2></strong><br>
+ Vzpostavi VPN povezavo z pomočjo OpenVPN. Omogoči dostop do datotek prek NFS in skopiraj datoteke prek SMB.</p>
+<p><strong><h2>Navodila:</h2></strong><br>
+ 1. Iz imenika s slikami virtualnih računalnikov dvakrat povlecite sliki SimpleArbiterVPN ter VPNClient.<br>
+ 2. Z VirtualBoxom (ali ostalim programom za virtualne računalnike) ustvarite dva virtualna računalnika in jim kot disk za shranjevanje podajte VPNCLient.vdi ter SimpleArbiterVPN.vdi.<br>
+ 3. Na obeh nastavite dva omrežna vmesnika (NAT in Internal) in jih zaženite.<br>
+ 4. Na oba VM-a se prijavite z uporabnikom <strong>root</strong> in geslom <strong>kaboom</strong> .</p>
+<p><h3><u><strong><em>Prvi del naloge: Nastavi OpenVPN na SimpleArbiterVPN in VPNClient.</em></strong></u></h3>
+<p><h4><u><strong><em>Nastavitve na strežniku:</em></strong></u></h4>
+ 1. Prenesite pakete <strong>uml-utilities</strong> -> za nastavljanje navideznih omrežnih vmesnikov in paket (<strong>openvpn</strong>). Npr: sudo apt-get install openvpn<br>
+ 2. Nov navidezni omrežni vmesnik kreirate z <strong>tunctl</strong> in mu podate IP z <strong>sudo ifconfig tap0 10.P.Q.R netmask 255.255.255.0</strong><br>
+ 3. Nato generirate skupen ključ(ta ključ boste delili z klientom) z ukazom: <strong>openvpn --genkey --secret vpnkljuc.key</strong><br>
+ 4. Na strežniku še nastavite konfiguracijsko datoteko tap0.conf, ki naj vsebuje (ločeno po vrsticah) "dev tap0","proto tcp-server", "secret vpnkljuc.key"<br>
+ 5. Zaženete openvpn z <strong>openvpn --config /some_directory/somewhere/tap0.conf</strong><br/>
+<p><h4><u><strong><em>Nastavitve na klientu:</em></strong></u></h4>
+1., 2. koraka sta ista kot pri nastavitvah na strežniku<br>
+3. Kreirajte konfiguracijsko datoteko tap0.conf, ki naj vsebuje (ločeno po vrsticah) "remote IP_VAŠEGA_VPN_SERVERJA", "dev tap0", "proto tcp-client", "secret vpnkljuc.key"<br>
+4. Na OpenVPN strežnik se povežete z <strong>openvpn --config /some_directory/somewhere/tap0.conf</strong><br/>
+<p>
+ <u><strong><em><h3>Drugi del naloge: napii program, ki pretvori binarni zapis 32-bitnega tevila v decimalnega.</h3></em></strong></u><br>
+ Nalogo lahko reite v Javi ali v Pythonu. Prav tako pa lahko kodo piete v poljubnem tekstovnem urejevalniku.</p>
+<p><br>
+ JAVA------<br>
+ 1. Z ukazom nano bintodec3.java ustvarimo in odpremo prazen program s tekstovnim urejevalnikom nano<br>
+ 2. Napiemo program za pretvarjanje 24-bitnega tevila z dvojikim komplementom v decimalno obliko<br>
+<img src="slike/bu6.png"><br><img src="slike/bu7.png"><br>
+ 3. Pritisnemo Ctrl+X, nato Y in Enter, da program zapremo in shranimo.<br>
+ 4. Če je e nimamo, naloimo Javo <strong>sudo apt-get install openjdk-6-jdk</strong><br><img src="slike/predvaja_clip_image003.gif"><br>
+ 5. Prevedemo program <strong>javac bintodec3.java</strong><br>
+ 6. Lahko ga e zaenemo ter preizkusimo <strong>java bintodec3</strong>. Na standardni vhod vnaamo 24-bitno tevilo v estnajstiki obliki<br><img src="slike/bu9.png"><br></p>
+<p>PYTHON------<br>
+ 1. Z ukazom nano bintodec3.py ustvarimo in odpremo prazen program s tekstovnim urejevalnikom nano<br>
+ 2. Napiemo program za pretvarjanje 24-bitnega tevila z dvojikim komplementom v decimalno obliko<br>
+<img src="slike/bu5.png"><br>
+ 3. Pritisnemo Ctrl+X, nato Y in Enter, da program zapremo in shranimo.<br>
+ 4. Program zaenemo z ukazom <strong>python bintodec3.py</strong><br><img src="slike/bu8.png"><br></p><br><br>
-
- <div style="width: 100%;" align="center">
- <div class="box">
-
- <div style="float: left; margin-left: 5px;width=674">
- <p><img src="images/logo.png" alt="File Hosting - Online Upload and Backup" width="613" height="129" style="float: left; margin-left: 5px; _margin-left: 30px;margin-top: 60px;" /></p>
- <p> <img src="images/steps.png" alt="Free File Hosting - Online Backup" style="float: left; margin-left: 155px; margin-top: 60px;" /></p>
-
-
-
-
- <object classid="clsid:D27CDB6E-AE6D-11cf-96B8-444553540000" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=7,0,19,0" width="628" height="106" >
- <param name="movie" value="a.swf" />
- <param name="quality" value="high" />
- <embed src="a.swf" quality="high" pluginspage="http://www.macromedia.com/go/getflashplayer" type="application/x-shockwave-flash" width="628" height="106"></embed>
- </object>
- </div><!-- end of flashdiv-->
-
-
- </div><!-- end of box-->
- <div class="bottommenu" style="float: left; margin-top: 0px;">
- <ul style="float: left;list-style:none; ">
-
- <li><a href="/createaccount.php" ><span class="active">Sign Up Free</span></a> </li> <li> <a href="/filemanager/index.php" >Login</a> </li>
-
- <li><a href="contact.php">Contact</a></li>
-
- <li><a href="aboutus.php">About Us</a></li>
-
- <li><a href="abuse_form.php">Report Abuse - Request File Removal</a></li>
-
-
- </ul>
- </div><!-- end of bottommenu-->
- </div>
-
-
-
- <br />
-
-
-
- <!-- <a href="http://www.filedropper.com/searchresults.html?PLUCKsearchTerm=web%20hosting&PLUCKwhichPage=relatedAdLinks"><b>Web Hosting</a></b>
-<a href="http://www.filedropper.com/searchresults.html?PLUCKsearchTerm=dedicated%20hosting&PLUCKwhichPage=relatedAdLinks"><b>Dedicated Hosting</a></b>
-<a href="http://www.filedropper.com/searchresults.html?PLUCKsearchTerm=photo%20sharing&PLUCKwhichPage=relatedAdLinks"><b>Photo Sharing</a></b>
-<a href="http://www.filedropper.com/searchresults.html?PLUCKsearchTerm=affiliate%20marketing&PLUCKwhichPage=relatedAdLinks"><b>Affiliate Marketing</a></b>
-<br /><Br><Br>
-<a href="http://www.filedropper.com/searchresults.html?PLUCKsearchTerm=social%20networks&PLUCKwhichPage=relatedAdLinks"><b>Social Networks</a></b>
-<a href="http://www.filedropper.com/searchresults.html?PLUCKsearchTerm=web%20design&PLUCKwhichPage=relatedAdLinks"><b>Web Design</a></b>
-<a href="http://www.filedropper.com/searchresults.html?PLUCKsearchTerm=work%20at%20home&PLUCKwhichPage=relatedAdLinks"><b>Work At Home</a></b>
-<a href="http://www.filedropper.com/searchresults.html?PLUCKsearchTerm=degree%20program&PLUCKwhichPage=relatedAdLinks"><b>Degree Program</a></b> <br />
- -->
-
-
-
- </div>
-
-
-
-
-
- </div>
-
-</div>
-
-
-<!-- Start of StatCounter Code -->
-<a title="hit counter"
-href="http://www.statcounter.com/" target="_blank"><img
-src="http://c.statcounter.com/3541212/0/872cdcc5/1/"
-alt="hit counter" border="0"></a>
-<!-- End of StatCounter Code -->
-
-<script src="http://www.google-analytics.com/urchin.js" type="text/javascript">
-</script>
-<script type="text/javascript">
-_uacct = "UA-291348-12";
-urchinTracker();
-</script>
-
-
-
+ <p>
+ <h3> Testiranje </h3>
+ 1. Lahko poenemo tester; z ukazom ./run_test.py<br>
+ <img src="slike/s1.png"><br>
+ 2. Kot "Upor. Ime" in "Geslo" napiite vae podatke učilnice. (npr.: "pz1234@student.uni-lj.si" in "geslo123")<br>
+ <img src="slike/s2.png"> <img src="slike/s3.png"> <br>
+ 3. Kot ime naloge vpiite XX.predvaja.<br>
+ 4. Ko vas program vpraa po poti programa vnesite vao pot do programa za pretvarjanje. (npr.: če imate program bintodec3.py v isti mapi kot program run_test.py, vnesete: ./bintodec3.py)<br>
+ 5. Povpraa tudi po IP naslovu SimpleArbiterja, vnesite.<br>
+ 6. Če je lo vse po sreči, program vrne OK vi pa ste opravili nalogo.</p>
+
+ </font>
</body>
-</html>
+</html>
\ No newline at end of file |