From 23a63b6de40fe1943d67afad6b2745e1686dfa4d Mon Sep 17 00:00:00 2001
From: "dr6784@student.uni-lj.si"
Date: Mon, 28 Sep 2015 21:39:12 +0000
Subject: git-svn-id:
https://svn.lusy.fri.uni-lj.si/kpov-public-svn/kpov-public@337
5cf9fbd1-b2bc-434c-b4b7-e852f4f63414
---
kpov_judge/tasks/set_motd/howtos/en/index.html | 14 +++++------
kpov_judge/tasks/set_motd/howtos/si/index.html | 35 +++++++++++++-------------
2 files changed, 25 insertions(+), 24 deletions(-)
(limited to 'kpov_judge/tasks/set_motd/howtos')
diff --git a/kpov_judge/tasks/set_motd/howtos/en/index.html b/kpov_judge/tasks/set_motd/howtos/en/index.html
index 10bf4c9..2987cc5 100644
--- a/kpov_judge/tasks/set_motd/howtos/en/index.html
+++ b/kpov_judge/tasks/set_motd/howtos/en/index.html
@@ -14,15 +14,15 @@
How To
- - Create two virtual machines Student(student-console) and Test(SimpleArbiterDhcpGw)
- - Change the network settings to both virtual machines. SimpleArbiterDhcpGw: Adapter 1 set it to NAT, for internet access and Adapter 2 to internal network for local network.
+
- Create two virtual machines, Student(student-console) and Test(SimpleArbiterDhcpGw)
+ - Change the network settings to both virtual machines. SimpleArbiterDhcpGw: Adapter 1 set it to NAT for internet access, Adapter 2 to internal network for local network.
Student: Adapter1 set it to "internal-network" so it is in the same domestic network as SimpleArbiterDhcpGw.
- - Login into Student
- - In Student(student-console) create a new user (with "adduser username",as the task demands of you ( eg. marjankoral19 ), with a custom password.
+ - Login on Student
+ - On Student(student-console) create a new user (with "adduser username", as the task demands of you ( eg. marjankoral19 ), with a custom password.
- In Student(student-console) open interfaces file ( nano /etc/network/interfaces ) and set the IP
How to use the nano text editor
- 1.) Open the nano editor with the command nano which is followed by the path and name of the file. Example: nano /etc/myfile. If the file doesn't exist, the file will be created by the editor.
+ 1.) Open the nano editor with the command nano, which is followed by the path and name of the file. Example: nano /etc/myfile. If the file doesn't exist, the file will be created by the editor.
2.) To move in the editor, we use the arrow keys, backspace is used for deleting.
3.) To save a file press the combination of keys ctrl + O.
4.) To exit the editor press the combination of keys ctrl + X. The editor will ask you, if you really want to exit, you can answer with y (yes ) or with n ( no ).
@@ -32,8 +32,8 @@
- We can check which interface belongs to which adapter in Virtual-box with MAC address. Run ifconfig command and compare the HWaddr value with the value in the Virtual-box ( settings => network => adapter => Mac address )
- Then edit the /etc/motd (eg. with nano editor like this: "nano /etc/motd"), file with the specified string. (eg. "Not for Human consumption" )
- - For testing login with the test user into Test(SimpleArbiterDhcpGw)
- - Then connect to Student with ssh using the user marjankoral19 - ssh marjankoral@ip.
+ - For testing, login with the test user into Test(SimpleArbiterDhcpGw)
+ - Then connect to the Student with ssh, using the user marjankoral19 - ssh marjankoral@ip.
- If the login was successful, the Message of the day should apear.
- To run Kpov_judge, login onto SimpleArbiterDhcpGw, find and run the file test_task.py ( with ./test_task.py as all other scripts )
- A window appears as we can see on the image above, then press Enter, enter your username ( eg. dr6784@student.uni-lj.si ), password, task name (eg. 01-preparation-set_motd), enter the string we should get in motd, enter the username and password of a user on Student(student-console)(eg. marjankoral19), the IP of Student(student-console), and after a brief moment we should get the result.
diff --git a/kpov_judge/tasks/set_motd/howtos/si/index.html b/kpov_judge/tasks/set_motd/howtos/si/index.html
index 1a43adb..601b667 100644
--- a/kpov_judge/tasks/set_motd/howtos/si/index.html
+++ b/kpov_judge/tasks/set_motd/howtos/si/index.html
@@ -16,29 +16,30 @@ povežemo na drug racunalnik? Kako ugotovimo IP naslov računalnika?
Podrobna navodila
- - Ustvari dva navidezna računalnika Student(student-console) in Test(SimpleArbiterDhcpGw)
- - Spremeni omrežne nastavitve obem navideznim računalnikom SimpleArbiterDhcpGw: Adapter 1 na NAT za dostop do interneta in Adapter 2 na "internal network" za lokalno omrežje
- Student: Adapter1 na internal-network da je v enakem omrežju kot SimpleArbiterDhcpGw.
- - Prijavi se v računalniku Student
- - Na računalniku Student(student-console) ustvari novega uporabnika (z ukazom "adduser imeuporabnika") kot od tebe zahteva naloga (npr. marjankoral19), geslo določi sam.
- - Računalnik Student, odpri datoteko interfaces ( nano /etc/network/interfaces ) ter nastavi IP
- - Kateri vmesnik (npr. eth0) spada pod kateri adapter (npr. Adapter1 ) lahko preverimo s strojnimi naslovi. Na računalniku zaženemo ukaz ifconfig, pogledamo HWaddr vrednost ter jo primerjamo z vrednostjo v Virtual-boxu (nastavitve => omrežja => adapter => MAC address
- - Nato spremeni datoteko /etc/motd (z urejevalnikom nano, primer uporabe: "nano /etc/motd"), zamenjaj z ustreznim nizom kot od tebe zahteva naloga ( npr. "Not for Human consumption" )
- Kako se uporablja nano urejavalnika besedila
+ - Ustvari dva navidezna računalnika, računalnik Student(student-console) ter računalnik Test(SimpleArbiterDhcpGw)
+ - Spremeni omrežne nastavitve obema navideznima računalnikoma, SimpleArbiterDhcpGw: Adapter 1 na NAT za dostop do interneta, Adapter 2 na "internal network" za lokalno omrežje,
+ Student: Adapter1 na internal-network, da je v enakem omrežju kot SimpleArbiterDhcpGw.
+ - Prijavi se na računalniku Student.
+ - Na računalniku Student(student-console) ustvari novega uporabnika (z ukazom "adduser imeuporabnika"), kot to od tebe zahteva naloga (npr. marjankoral19), geslo določi sam.
+ - Računalnik Student, odpri datoteko interfaces ( nano /etc/network/interfaces ), ter nastavi IP.
+ Kako se uporablja nano urejavalnika besedila:
- 1.) Urejvalnik nano odpremo z ukazom nano, kateremu sledi ime datoteke. Primer: nano /etc/mojadatoteka. Če datoteka ne obstaja jo bo ustvaril urejevalnik.
- 2.) Po urejevalniku se premikamo s smernimi puščicami, brišemo z tipko backspace.
+ 1.) Urejvalnik Nano odpremo z ukazom nano, kateremu sledi ime datoteke. Primer: nano /etc/mojadatoteka. Če datoteka ne obstaja jo bo ustvaril urejevalnik.
+ 2.) Po urejevalniku se premikamo s smernimi puščicami, brišemo s tipko backspace.
3.) Za shranjevanje dokumenta pritisnemo kombinacijo tipk ctrl + O
- 4.) Za izhod iz urejevalnika pritisnemo kombinacijo tipk ctrl + X. Pri tem nas urejevalnik upraša če želimo shraniti spremembe. Odgovorimo z y (yes, ja ) ali z n ( no, ne ).
- 5.) Za izrez vrsticne uporabimo kombinacijo tipk ctrl + K.
+ 4.) Za izhod iz urejevalnika pritisnemo kombinacijo tipk ctrl + X. Pri tem nas urejevalnik upraša, če želimo shraniti spremembe. Odgovorimo z y (yes, ja ) ali z n ( no, ne ).
+ 5.) Za izrez vrstice uporabimo kombinacijo tipk ctrl + K.
6.) Za lepljenje vrstice se uporablja kombinacija tipk ctrl + U.
7.) Za iskanje po besedilu uporabimo kombinacijo tipk ctrl + W, nakar vnesemo iskani niz in pritisnemo tipko enter.
-
+
+ - Kateri vmesnik (npr. eth0) spada pod kateri adapter (npr. Adapter1 ), lahko preverimo s strojnimi naslovi. Na računalniku zaženemo ukaz ifconfig, pogledamo HWaddr vrednost ter jo primerjamo z vrednostjo v Virtual-boxu (nastavitve => omrežja => adapter => MAC address
+ - Nato spremeni datoteko /etc/motd (z urejevalnikom nano, primer uporabe: "nano /etc/motd"), ter zamenjaj niz z ustreznim nizom kot to od tebe zahteva naloga ( npr. "Not for Human consumption" )
+
- Za testiranje se s testnim uporabniškim imenom prijavi na prvem računalniku. (SimpleArbiterDhcpGw)
- - Nato se preko ssh poveži na Student z uporabniškim imenom marjankoral19 - ssh marjankoral19@ip.
- - Po uspešni prijavi se bo moralo izpisati motd sporočilo.
+ - Nato se preko ssh poveži na računalnik Student z uporabniškim imenom marjankoral19 - ssh marjankoral19@ip.
+ - Po uspešni prijavi se bi moralo izpisati motd sporočilo.
- Kpov_judge poženemo tako da se prijavimo na računalniku SimpleArbiterDhcpGw, najdemo datoteko test_task.py ter jo poženemo ( z ./test_task.py kot se poganjajo vse skripte )
- - Pojavi se nam okno kot ga vidimo zgoraj, nato pa pritisnemo Enter, vnesemo svoje uporabnisko ime ( npr. dr6784@student.uni-lj.si ), geslo, ime naloge (npr. 01-preparation-set_motd), vnesemo niz ki bi se nam moral prikazati, vnesemo ime uporabnika na racunalniku student (npr. marjankoral19) ter njegovo geslo, ip računalnika študent, nato pa po kratkem premoru dobimo rezultat.
+ - Pojavi se nam okno kot ga vidimo zgoraj, nato pa pritisnemo tipko Enter, vnesemo svoje uporabniško ime ( npr. dr6784@student.uni-lj.si ), geslo, ime naloge (npr. 01-preparation-set_motd), vnesemo niz ki bi se nam moral prikazati, vnesemo ime uporabnika na računalniku Student (npr. marjankoral19) ter njegovo geslo, ip računalnika študent, nato pa po kratkem premoru dobimo rezultat.