diff options
author | Timotej Lazar <timotej.lazar@fri.uni-lj.si> | 2019-02-24 21:05:27 +0100 |
---|---|---|
committer | Timotej Lazar <timotej.lazar@fri.uni-lj.si> | 2019-02-24 21:05:27 +0100 |
commit | 8081a5520a441b43a8a7a73f3a90c7aacfaa8e10 (patch) | |
tree | c7f49bd33ed19d53afc0ee9df8b2c82c200c5910 /kpov_judge/tasks/custom_rdate/howtos/en | |
parent | 9963b74f777edf985540eac71b1ca095f88b8bca (diff) |
Move everything one level up
Diffstat (limited to 'kpov_judge/tasks/custom_rdate/howtos/en')
-rw-r--r-- | kpov_judge/tasks/custom_rdate/howtos/en/index.html | 65 |
1 files changed, 0 insertions, 65 deletions
diff --git a/kpov_judge/tasks/custom_rdate/howtos/en/index.html b/kpov_judge/tasks/custom_rdate/howtos/en/index.html deleted file mode 100644 index 18ebfc1..0000000 --- a/kpov_judge/tasks/custom_rdate/howtos/en/index.html +++ /dev/null @@ -1,65 +0,0 @@ -<!doctype html>
-<html>
-<head>
- <meta charset="utf-8">
- <style>
- img{
- margin:10px 0px 10px 0px;
- }
- </style>
-</head>
-
-<body>
- <h1>Custom rdate</h1>
- <h2>Short preview:</h2>
- Set time on server using rdate. Write a program that converts 32-bit numbers into a readable time format.</p>
- <h2>Instructions:</h2>
- 1. Downlaod Student.vdi (client) and SimpleArbiter.vdi (server) from the virtual machine images folder<br>
- 2. Use VirtualBox (or similar) to create two virtual machines, select the virtual disk images from the previous step as hard drives<br>
- 3. Run both virtual machines.<br>
- 4. Login on client user:<strong> root</strong> pass:<strong> kaboom </strong> and server user:<strong> tester</strong> pass:<strong> tester</strong></p>
- <img src="../images/bu15.png">
- <img src="../images/bu1.png">
- <h3>First part: update time using rdate.</h3>
- <p>
- 1. Find and remember your server IP address. (ifconfig)<br><img src="../images/bu2.png"><br><img src="../images/bu3.png"><br>
- 2. Install rdate with <strong>sudo apt-get install</strong> rdate<br>
- 3. On Student client use rdate to update the machine time <strong>rdate SERVER_IP</strong><br><img src="../images/bu4.png"><br>
- Note: It's NOT an error if the updated time does not match the correct time.<br>
- </p>
- <h3>Second part: write a program that converts 32bit numbers into a readable time format.</h3>
- <p>
- You can write a program in Java or Python using your favourite text editor.
- </p>
- <h4>Java</h4>
- <p>
- 1. We use <strong>nano guliver.java</strong> to create a new blank file<br>
- 2. Write a program that converts 32bit numbers into a readable time format.<br>
- <img src="../images/bu6.png"><br><img src="../images/bu7.png"><br>
- 3. Press Ctrl+X, then Y and Enter to save the program<br>
- 4. In case you don't have java installed use <strong>sudo apt-get install openjdk-6-jdk</strong><br>
- <img src="../images/predvaja_clip_image003.gif"><br>
- 5. To compile use <strong>javac bintodec3.java</strong><br>
- 6. Run the created program with <strong>java guliver</strong> and input the server IP or name...<br>
- <img src="../images/bu9.png"><br>
- </p>
- <h4>Python</h4>
- 1. Use nano guliver.py to create a new empty python file.<br>
- 2. Write a program that converts 32bit numbers into a readable time format.<br>
- <img src="../images/bu5.png"><br>
- 3. Press Ctrl+X, then Y and Enter to save our program<br>
- 4. Run the created program with <strong>python guliver.py</strong><br><img src="../images/bu8.png"><br>
- </p>
- <h3>Testing</h3>
- <p>
- 1. Use command ./run_test.py to run the tester<br>
- <img src="../images/s1.png"><br>
- 2. Your username and password are the same as on ucilnica (npr.: "pz1234@student.uni-lj.si" in "geslo123").<br>
- <img src="../images/s2.png"> <img src="../images/s3.png"> <br>
- 3. Name of the task should look like 09.predvaja.<br>
- 4. When prompted for file path insert your program path (example: if bintodec3.py is in the same folder as program run_test.py run with ./bintodec3.py).<br>
- 5. Then input your server IP address (SimpleArbiterRDate).<br>
- 6. If all goes well the program should give you an OK that means you've completed your task successfully.
- </p>
-</body>
-</html>
|