/usr/local/webwork/courses/course-template/WeBWorK_coursename.pl
mkdir /usr/local/webwork/courses/theCourse mkdir /usr/local/webwork/courses/theCourse/html ln -s /usr/local/webwork/courses/theCourse/html /var/www/webwork/theCourse ln -s /usr/local/webwork/courses/theCourse /usr/local/webwork/system/courses/theCourse
cd /usr/local/webwork/courses/course-template/ ./WeBWorK_script.pl theCourse
$Global::feedbackAddress = 'webwork@math.wustl.edu, the_professor@math'; $allowDestroyRebuildProbSets = 1; (if Dev directory)(I have had trouble with the screwing up the group of this file. Make sure the group is wwcourses.)
cd /usr/local/webwork/courses/course-template/ ./WeBWorK_coursename.pl
mkdir /usr/local/webwork/courses/theCourse chgrp wwcourses /usr/local/webwork/courses/theCourse
cd /usr/local/webwork/courses/course-template tar cf - . | (cd /usr/local/webwork/courses/theCourse ; tar xvf -)Or just simply:
cp -R /usr/local/webwork/courses/course-template/* /usr/loca/webwork/courses/theCourse
cd /usr/local/webwork/courses/theCourse course_webwork_setup.pl Hit [Enter] to continue: [Enter] Do you wish to continue? (y or n): y Do you wish to setup a "working" or a "demo" version? (w or d): w Do you want to create missing directories (if any)? (y or n): y ENTER course URL: /theCourse ENTER cgi WeBWorK URL: /cgi-bin/webwork/system ENTER course link (i.e. classID) name: theCourse ENTER group name: wwcourses Do you want to create a webworkCourse.ph file? (y or n): y Do you want to create an index.html file? (y or n): y Do you want to set the group for all directories and files? (y or n): y Do you want to set default "working" permissions for all directories and files? (y or n): y
cd /usr/local/webwork/courses/theCourse/DATA/ rm -f * cd .auth rm -f*
ln -s /usr/local/webwork/courses/theCourse/html /var/www/webwork/theCourse
ln -s /usr/local/webwork/courses/theCourse /usr/local/webwork/system/courses/theCourse
# $Global::feedbackAddress = 'apizer@math.rochester.edu,gage@math.rochester.edu';
$Global::feedbackAddress = 'blake@math.wustl.edu,slxiao@math.wustl.edu';
# $Global::smtpSender = 'apizer@math.rochester.edu';
$Global::smtpSender = 'blake@math.wustl.edu';
#$PG_environment{'PRINT_FILE_NAMES_FOR'} = ['leeza','apizer','gage'];
# (all admins should be listed here)
$PG_environment{'PRINT_FILE_NAMES_FOR'} = ['blake'];
I just clean up the class name and erase the login stuff for practice users and erase the webwork link.
chmod g+ws `find /usr/local/webwork/courses/theCourse/* -type d` chmod -R g+w /usr/local/webwork/courses/theCourse/*
The group is very important and more than once I've been stung by editing files to have the group change (oops! -- making things not work.). So, anytime a file is edited and changed, you might want to check group permissions (such as when you edit webworkCourse.ph).
WeBWorK_roll.pl --empty theCourse.lst
WeBWorK_roll.pl --convert theCourse.txt theCourse.lst(Some people seem to claim that it is best to add students via the web.)
WeBWorK_roll.pl --empty -add theCourse.lst
Move the newly created .lst file into the templates directory.
import_classlist-database.pl theCourse theCourse.lst
setProfPermissions.pl theCourse loginName