User Tools

Site Tools


services:labtest:start

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revisionPrevious revision
Next revision
Previous revision
Next revisionBoth sides next revision
services:labtest:start [2024/03/18 14:29] jasservices:labtest:start [2024/03/28 09:35] – [Custom Shell Script Execution on User Login (optional)] jas
Line 184: Line 184:
 </code> </code>
  
-On your start page, you can include information about the test, your rules and policies, the labtests 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.+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, you may choose to provide a link to "/common" on your index page.  This link contains the Java API, and other documentation that is useful across labtests.  In non-labtest mode, the information appears [[http://www.eecs.yorku.ca/teaching/docs|here]].   For your convenience, you may choose to provide a link to "/common" on your index page.  This link contains the Java API, and other documentation that is useful across labtests.  In non-labtest mode, the information appears [[http://www.eecs.yorku.ca/teaching/docs|here]].  
Line 549: 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 "ltinit" in your labtest directory (/eecs/dept/www/course/<COURSE>/labtest/ltinit).  The directory should be group labtest. ALL the files and directories in this directory readable by group labtest will be automatically copied to the ltinit directory in the student account when they login.  The files and directories will all be user readable, writable, and executable (mode 700).  Student files will never be overwritten, so if a student modifies files in the ltinit directory, and they log back in, the file will not be recopied from the server.+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 "ltinit" in your labtest directory (/eecs/dept/www/course/<COURSE>/labtest/ltinit).  The directory should be group labtest. ALL the files and directories in this directory readable by group labtest will be automatically copied to the ltinit directory in the student account when they login.  Student files will never be overwritten, so if a student modifies files in the ltinit directory, and they log back in, the file will not be recopied from the server.
  
 For example: For example:
Line 593: Line 593:
 chgrp labtest /eecs/dept/www/course/9999/labtest/ltinit/labtest.sh chgrp labtest /eecs/dept/www/course/9999/labtest/ltinit/labtest.sh
 chmod g=rx /eecs/dept/www/course/9999/labtest/ltinit/labtest.sh chmod g=rx /eecs/dept/www/course/9999/labtest/ltinit/labtest.sh
 +</code>
 +
 +If you are using commands from /eecs/local/bin in ltinit, please ensure that you set the PATH variable accordingly in your labtest.sh script. For example, if you were installing a custom extension for vscode, and you want to use the "code" command in your script, ensure that /eecs/local/bin is in the PATH:
 +
 +<code>
 +#/bin/sh
 +
 +PATH=/eecs/local/bin:$PATH; export PATH
 +code --install-extension ~/ltinit/myextension.vsix
 </code> </code>
  
Line 711: Line 720:
   +eclass.yorku.ca/local   +eclass.yorku.ca/local
   +eclass.yorku.ca/repository   +eclass.yorku.ca/repository
 +  dm7crvy4e45rz.cloudfront.net
 +  +dm7crvy4e45rz.cloudfront.net
   cdn.jsdelivr.net   cdn.jsdelivr.net
   +cdn.jsdelivr.net   +cdn.jsdelivr.net
services/labtest/start.txt · Last modified: 2024/05/29 09:31 by jas