services:labtest:start
Differences
This shows you the differences between two versions of the page.
Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
services:labtest:start [2024/02/14 15:13] – jas | services:labtest:start [2024/04/23 08:48] (current) – jas | ||
---|---|---|---|
Line 141: | Line 141: | ||
===== 1. Create Directories ===== | ===== 1. Create Directories ===== | ||
- | First, if you haven' | + | First, if you haven' |
- | mkdir / | + | mkdir / |
Now create a subdirectory in the course web directory called " | Now create a subdirectory in the course web directory called " | ||
- | mkdir / | + | mkdir / |
The " | The " | ||
< | < | ||
- | mkdir / | + | mkdir / |
- | mkdir / | + | mkdir / |
</ | </ | ||
- | NOTE: For the purposes of simplicity, this documentation will frequently refer to / | + | NOTE: For the purposes of simplicity, this documentation will frequently refer to / |
+ | ===== 2. Create a Labtest Start Page ===== | ||
- | ===== 2. Create | + | Students will see the labtest start page when they begin your labtest. Create |
- | Create a start page in your " | + | ==== Basic Start Page ==== |
- | For your convenience, | + | Here's a very basic example of a labtest |
- | Note: If you decide to have different directories in your labtest directory for each labtest, you still need to have a common index.html file. | + | < |
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | < | ||
+ | |||
+ | < | ||
+ | |||
+ | < | ||
+ | |||
+ | < | ||
+ | |||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | On your start page, you can include information about the test, your rules and policies, the labtest questions (or a link to a PDF with the questions), and links to additional useful resources (such as PDFs) which you can include in your labtest directory. | ||
+ | |||
+ | For your convenience, | ||
+ | |||
Note: You cannot include links to content outside your labtest web directory. | Note: You cannot include links to content outside your labtest web directory. | ||
+ | |||
+ | ==== eClass Quiz Start Page ==== | ||
+ | |||
+ | If you are hosting your labtest as an eClass quiz, then your start page can redirect the student to the eClass quiz page like this: | ||
+ | |||
+ | |||
+ | < | ||
+ | < | ||
+ | |||
+ | < | ||
+ | < | ||
+ | <meta http-equiv=" | ||
+ | </ | ||
+ | < | ||
+ | |||
+ | < | ||
+ | |||
+ | </ | ||
+ | </ | ||
+ | </ | ||
+ | |||
+ | NOTE: Replace " | ||
===== 3. Create and/or Install Additional Content ===== | ===== 3. Create and/or Install Additional Content ===== | ||
Line 262: | Line 305: | ||
Students can also submit using [[https:// | Students can also submit using [[https:// | ||
+ | |||
+ | ===== Returning Labtest Submissions to Students Following Labtest ===== | ||
+ | |||
+ | Sometimes, following a labtest, faculty want students to be able to retrieve their labtest submission. | ||
+ | |||
+ | In order to make this possible, complete the following steps: | ||
+ | |||
+ | Copy the files from the labtest submit directory to a different directory - for example: | ||
+ | |||
+ | cd / | ||
+ | cp -pr labtest1 labtest1-return | ||
+ | | ||
+ | Make all the files in the new submit directory readable by group " | ||
+ | |||
+ | chgrp -R submit labtest1-return | ||
+ | | ||
+ | Finally, ensure that students can only retrieve their submission, and not re-submit: | ||
+ | |||
+ | chmod 750 labtest1-return | ||
+ | |||
+ | Now, when students login to web submit outside of labtest, and choose their course, they will see an assignment " | ||
====== Unsubmit (optional) ====== | ====== Unsubmit (optional) ====== | ||
Line 485: | Line 549: | ||
====== Custom File Copy on User Login (optional) ====== | ====== Custom File Copy on User Login (optional) ====== | ||
- | If you want to be able to initialize a students labtest home directory with certain files or directories when he logs in, simply create a directory called " | + | If you want to be able to initialize a students labtest home directory with certain files or directories when he logs in, simply create a directory called " |
For example: | For example: | ||
Line 529: | Line 593: | ||
chgrp labtest / | chgrp labtest / | ||
chmod g=rx / | chmod g=rx / | ||
+ | </ | ||
+ | |||
+ | If you are using commands from / | ||
+ | |||
+ | < | ||
+ | #/bin/sh | ||
+ | |||
+ | PATH=/ | ||
+ | code --install-extension ~/ | ||
</ | </ | ||
Line 548: | Line 621: | ||
Create a file called " | Create a file called " | ||
- | For example, if you're teaching a course EECS9999, and you want students in your labtest to be able to access the complete | + | For example, if you're teaching a course EECS9999, and you want students in your labtest to be able to access the " |
< | < | ||
Line 583: | Line 656: | ||
You will still create a labtest.allow file which tells the labtest environment which hosts the students can access. | You will still create a labtest.allow file which tells the labtest environment which hosts the students can access. | ||
- | It is best to demonstrate host and URL level access control with an example. | + | It is best to demonstrate host and URL level access control with an example. |
www.w3schools.com | www.w3schools.com | ||
Line 631: | Line 704: | ||
5) Always test your labtest in ltcloud every single time! Just because your labtest.allow rules work for one test doesn' | 5) Always test your labtest in ltcloud every single time! Just because your labtest.allow rules work for one test doesn' | ||
- | Now that you've seen how to protect | + | ==== eClass Quiz ==== |
+ | |||
+ | Now that you've seen a basic example of how to restrict | ||
+ | |||
+ | 1. Place the following labtest.allow file in your course labtest web directory (/eecs/dept/www/course/labtest/ | ||
eclass.yorku.ca | eclass.yorku.ca | ||
Line 643: | Line 720: | ||
+eclass.yorku.ca/ | +eclass.yorku.ca/ | ||
+eclass.yorku.ca/ | +eclass.yorku.ca/ | ||
+ | dm7crvy4e45rz.cloudfront.net | ||
+ | +dm7crvy4e45rz.cloudfront.net | ||
cdn.jsdelivr.net | cdn.jsdelivr.net | ||
+cdn.jsdelivr.net | +cdn.jsdelivr.net | ||
Line 650: | Line 729: | ||
+fonts.googleapis.com | +fonts.googleapis.com | ||
- | Students won't be able to access | + | Ensure that the file is readable: < |
+ | |||
+ | 2. Your labtest start page (eg. / | ||
+ | |||
+ | **IMPORTANT** If students try to access "https://eclass.yorku.ca" | ||
+ | |||
+ | 3. Restrict access to your eclass quiz to the IP addresses of the lab machines where the students will be writing the quiz. If you don't do this, even though your in-lab students will be limited in the proper way, students who are outside of the lab would also be able to write your quiz. Go to: Activities >> Quizzes >> Settings >> Extra restriction on attempts >> Show more... >> Require network address. | ||
+ | |||
+ | 4. Limit the start and end time of your quiz in eclass. | ||
- | **IMPORTANT NOTES:** | + | NOTE: Some faculty would like to use eclass " |
- | | + | ** Always test your eclass quiz using ltcloud! |
- | | + | |
- | * Since all of our lab PCs use different IP addresses, consult with tech if you want to block access to your eclass based on IP address. (See Quiz Settings >> Extra restriction on attempts >> Show more... >> Require network address). | + | |
- | * If you protect your eclass quiz based on start time, please note that if you have the lab machines booting into labtest mode minutes before the time of your test, then if students login early, and click on the quiz link in your index.html file, eclass will try to redirect them back to the course eclass page. In labtest mode, eclass.yorku.ca/ | + | |
====== SecureQ Setup (optional) ====== | ====== SecureQ Setup (optional) ====== |
services/labtest/start.1707941586.txt.gz · Last modified: 2024/02/14 15:13 by jas