summaryrefslogtreecommitdiff
path: root/kpov_judge/tasks/set_motd/howtos/en/index.html
diff options
context:
space:
mode:
authordr6784@student.uni-lj.si <dr6784@student.uni-lj.si@5cf9fbd1-b2bc-434c-b4b7-e852f4f63414>2015-09-27 12:54:03 +0000
committerdr6784@student.uni-lj.si <dr6784@student.uni-lj.si@5cf9fbd1-b2bc-434c-b4b7-e852f4f63414>2015-09-27 12:54:03 +0000
commit2290500ca9b8346f65660026ba3bd56afc660bdd (patch)
treed6d0e16887fdcd058e775fdc903d37b8c57eb238 /kpov_judge/tasks/set_motd/howtos/en/index.html
parent89750cf85631705c5a9819f8f0b40aa9cefe05dc (diff)
Obe datoteki prestaneta validacijo. Dodana navodila za uporabo nano urejevalnika besedila.
git-svn-id: https://svn.lusy.fri.uni-lj.si/kpov-public-svn/kpov-public@334 5cf9fbd1-b2bc-434c-b4b7-e852f4f63414
Diffstat (limited to 'kpov_judge/tasks/set_motd/howtos/en/index.html')
-rw-r--r--kpov_judge/tasks/set_motd/howtos/en/index.html53
1 files changed, 37 insertions, 16 deletions
diff --git a/kpov_judge/tasks/set_motd/howtos/en/index.html b/kpov_judge/tasks/set_motd/howtos/en/index.html
index 41c8b19..716c2dd 100644
--- a/kpov_judge/tasks/set_motd/howtos/en/index.html
+++ b/kpov_judge/tasks/set_motd/howtos/en/index.html
@@ -1,24 +1,45 @@
+<!DOCTYPE html>
+<html>
+<head>
+ <title>set_motd</title>
+ <meta charset="utf-8">
+</head>
+<body>
+
+<h2>Usage of nano text editor </h2>
+<p>
+ 1.) Open the nano editor with the command nano which is followed by the path and name of the file. Example: <strong>nano /etc/myfile</strong>. If the file doesn't exist, the file will be created by the editor.<br />
+ 2.) To move in the editor, we use the arrow keys, <strong>backspace</strong> is used for deleting. <br />
+ 3.) To save a file press the combination of keys <strong>ctrl</strong> + <strong>O</strong>. <br />
+ 4.) To exit the editor press the combination of keys <strong>ctrl</strong> + <strong>X</strong>. The editor will ask you, if you really want to exit, you can answer with <strong>y</strong> (yes ) or with <strong>n</strong> ( no ). <br />
+ 5.) To cut a line press the combination of keys <strong>ctrl</strong> + <strong>K</strong>. <br />
+ 6.) To paste a line press the combination of keys <strong>ctrl</strong> + <strong>U</strong>. <br />
+ 7.) To search over a document press the combination of keys <strong>ctrl</strong> + <strong>W</strong> and then enter the search string.
+</p>
+
+
<h2>How To</h2>
-<h2><ol>
- <li>Create two virtual machines Student(student-console) and Test(SimpleArbiterDhcpGw) <br> <img src="../images/img4.png"></li>
+<ol>
+ <li>Create two virtual machines Student(student-console) and Test(SimpleArbiterDhcpGw) <br> <img src="../images/img4.png" alt="no img"></li>
<li>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.
- Student: Adapter1 set it to "internal-network" so it is in the same domestic network as SimpleArbiterDhcpGw. <br> <img src="../images/img1.png"> <br> <img src="../images/img2.png"> <br> <img src="../images/img3.png"></li>
- <li>Login into <b>Student</b> <br> <img src="../images/img5.png"></li>
- <li>In Student(student-console) create a new user,as the task demands of you ( eg. marjankoral19 ), with a custom password. <br> <img src="../images/img6.png"></li>
- <li>In Student(student-console) open interfaces file ( nano /etc/network/interfaces ) and set the IP <br> <img src="../images/img7.png"></li>
- <li>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 ) <br /><img src="../images/slika4.png" /><img src="../images/slika3.png" /></li>
- <li>Then edit the /etc/motd, file with the specified string. (eg. "Not for Human consumption" ) <br> <img src="../images/img8.png"> </li>
- <li>For testing login with the test user into Test(SimpleArbiterDhcpGw) <br> <img src="../images/img9.png"></li>
- <li>Then connect to Student with ssh using the user marjankoral19 - ssh marjankoral@ip. <br> <img src="../images/img10.png"></li>
+ Student: Adapter1 set it to "internal-network" so it is in the same domestic network as SimpleArbiterDhcpGw. <br> <img src="../images/img1.png" alt="no img"> <br> <img src="../images/img2.png" alt="no img"> <br> <img src="../images/img3.png" alt="no img"></li>
+ <li>Login into <b>Student</b> <br> <img src="../images/img5.png" alt="no img"></li>
+ <li>In Student(student-console) create a new user (with "adduser username",as the task demands of you ( eg. marjankoral19 ), with a custom password. <br> <img src="../images/img6.png" alt="no img"></li>
+ <li>In Student(student-console) open interfaces file ( nano /etc/network/interfaces ) and set the IP <br> <img src="../images/img7.png" alt="no img" ></li>
+ <li>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 ) <br /><img src="../images/slika4.png" alt="no img" /><img src="../images/slika3.png" alt="no img"/></li>
+ <li>Then edit the /etc/motd (eg. with nano editor like this: "nano /etc/motd"), file with the specified string. (eg. "Not for Human consumption" ) <br> <img src="../images/img8.png" alt="no img"> </li>
+ <li>For testing login with the test user into Test(SimpleArbiterDhcpGw) <br> <img src="../images/img9.png" alt="no img"></li>
+ <li>Then connect to Student with ssh using the user marjankoral19 - ssh marjankoral@ip. <br> <img src="../images/img10.png" alt="no img"></li>
<li>If the login was successful, the Message of the day should apear.</li>
- <li></li>
- <li>To run Kpov_judge, login onto SimpleArbiterDhcpGw, find and run the file test_task.py ( with ./test_task.py as all other scripts )<br /> <img src="../images/img11.png"></li>
- <li>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. <img src="../images/img12.png"> </li>
-</ol></h2>
-=======
+ <li>To run Kpov_judge, login onto SimpleArbiterDhcpGw, find and run the file test_task.py ( with ./test_task.py as all other scripts )<br /> <img src="../images/img11.png" alt="no img"></li>
+ <li>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. <img src="../images/img12.png" alt="no img"> </li>
+</ol>
<h2>Purpose of the exercise</h2>
<p>How to create user? How to edit a file? How to connect to anoter computer using ssh? How to find out the computer IP address?</p>
<h2>Brief description</h2>
-<p>Set up two virtual machines, set MOTD. Connect using ssh.</p> \ No newline at end of file
+<p>Set up two virtual machines, set MOTD. Connect using ssh.</p>
+
+</body>
+</html> \ No newline at end of file