From 8081a5520a441b43a8a7a73f3a90c7aacfaa8e10 Mon Sep 17 00:00:00 2001 From: Timotej Lazar Date: Sun, 24 Feb 2019 21:05:27 +0100 Subject: Move everything one level up --- kpov_judge/tasks/custom_rdate/howtos/en/index.html | 65 ---------------------- 1 file changed, 65 deletions(-) delete mode 100644 kpov_judge/tasks/custom_rdate/howtos/en/index.html (limited to 'kpov_judge/tasks/custom_rdate/howtos/en') 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 @@ - - - - - - - - -

Custom rdate

-

Short preview:

- Set time on server using rdate. Write a program that converts 32-bit numbers into a readable time format.

-

Instructions:

- 1. Downlaod Student.vdi (client) and SimpleArbiter.vdi (server) from the virtual machine images folder
- 2. Use VirtualBox (or similar) to create two virtual machines, select the virtual disk images from the previous step as hard drives
- 3. Run both virtual machines.
- 4. Login on client user: root pass: kaboom and server user: tester pass: tester

- - -

First part: update time using rdate.

-

- 1. Find and remember your server IP address. (ifconfig)


- 2. Install rdate with sudo apt-get install rdate
- 3. On Student client use rdate to update the machine time rdate SERVER_IP

- Note: It's NOT an error if the updated time does not match the correct time.
-

-

Second part: write a program that converts 32bit numbers into a readable time format.

-

- You can write a program in Java or Python using your favourite text editor. -

-

Java

-

- 1. We use nano guliver.java to create a new blank file
- 2. Write a program that converts 32bit numbers into a readable time format.
-

- 3. Press Ctrl+X, then Y and Enter to save the program
- 4. In case you don't have java installed use sudo apt-get install openjdk-6-jdk
-
- 5. To compile use javac bintodec3.java
- 6. Run the created program with java guliver and input the server IP or name...
-
-

-

Python

- 1. Use nano guliver.py to create a new empty python file.
- 2. Write a program that converts 32bit numbers into a readable time format.
-
- 3. Press Ctrl+X, then Y and Enter to save our program
- 4. Run the created program with python guliver.py

-

-

Testing

-

- 1. Use command ./run_test.py to run the tester
-
- 2. Your username and password are the same as on ucilnica (npr.: "pz1234@student.uni-lj.si" in "geslo123").
-
- 3. Name of the task should look like 09.predvaja.
- 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).
- 5. Then input your server IP address (SimpleArbiterRDate).
- 6. If all goes well the program should give you an OK that means you've completed your task successfully. -

- - -- cgit v1.2.1