Annotation of capa/capa51/UPGRADE.txt, revision 1.1

1.1     ! albertel    1: 	
        !             2: 	   		Upgrading to CAPA 5.1
        !             3: 
        !             4: 
        !             5: --------------------------------------------------------------------------------
        !             6: 
        !             7: READ ALL INSTRUCTIONS BEFORE PRECEDING WITH THE INSTALLATION.
        !             8: 
        !             9: Please go to http://capa.msu.edu/mailman and subscribe to the CAPA Announce 
        !            10: email list.  Anyone interested in receiving CAPA updates and announcements 
        !            11: can add himself or herself to the list.  Please notify all instructors and 
        !            12: technical staff that will work with CAPA about adding themselves to the list.
        !            13: 
        !            14: The following installation instructions assume that whoever is upgrading 
        !            15: the CAPA system already has some knowledge of their operating system and 
        !            16: is familiar with Unix commands such as the following: cd, chown, chmod and 
        !            17: setting permissions, compress/uncompress, cp, ln, lpr, ls, mkdir, pwd, rm, 
        !            18: su, tar, and the vi editor.  
        !            19: 
        !            20: In order to complete the installation, you will need to have Perl, 
        !            21: Ghostscript, TeTex, and a webserver (e.g. Apache) installed on your machine 
        !            22: (all of which can be obtained for free).  You should know where those 
        !            23: applications are located and where the web server's configuration files are 
        !            24: located (particularly srm.conf).  You should also be familiar with killing 
        !            25: and restarting your web daemon.
        !            26: 
        !            27: You will notice lists of files in these instructions to compare your
        !            28: permissions with.  Depending on your operating system, many of your file 
        !            29: sizes may differ with the ones given in these instructions.  Please do
        !            30: not be concerned by this.
        !            31: 
        !            32: --------------------------------------------------------------------------------
        !            33: 
        !            34: SETTING UP THE INSTRUCTOR INTERFACE AND OPTIONAL TELNET STUDENT INTERFACE
        !            35: 
        !            36: You have the option to install the telnet version of the CAPA interface.
        !            37: It responds much quicker than the web, especially with a slow modem.  If 
        !            38: you decide not to enable this feature then skip steps 5 and 6.
        !            39: 
        !            40: Please note that in the following instructions, it is assumed that the 
        !            41: teacher directory is in /home.  This may not be the case with your machine 
        !            42: (e.g. /usr/users, /home2, etc.).  You may want to make note of this as you 
        !            43: read through these instructions prior to installation.
        !            44: 
        !            45: 1.)  Become root and copy or move the DIST51 directory to the teacher home 
        !            46: directory.  Recursively change the ownership of the DIST51 directory to 
        !            47: teacher with group membership cai.
        !            48: 
        !            49: >chown -R teacher:cai DIST51  
        !            50: 
        !            51: 2.)  We first need to link up the binaries to use the instructor 
        !            52: interface of CAPA.  Login as root.  Change directory to /usr/local/bin 
        !            53: (or /usr/bin, or whatever will be the default in your users "path").
        !            54: Remove all the old links to the CAPA 5.0 binaries and then symbolically 
        !            55: link the 5.1 binaries contained with the distribution by entering the 
        !            56: following commands:
        !            57: 
        !            58: > cd /usr/local/bin
        !            59: > ln -s /home/teacher/DIST51/LinkToBin/quizzer .
        !            60: > ln -s /home/teacher/DIST51/LinkToBin/grader .
        !            61: > ln -s /home/teacher/DIST51/LinkToBin/manager .
        !            62: > ln -s /home/teacher/DIST51/LinkToBin/qzparse .
        !            63: > ln -s /home/teacher/DIST51/LinkToBin/allcapaid .
        !            64: > ln -s /home/teacher/DIST51/LinkToBin/answers .
        !            65: 
        !            66: 3.)  Check that all of the binaries in /home/teacher/DIST51/LinkToBin 
        !            67: have executable permissions as shown below:
        !            68: 
        !            69: >cd /home teacher/DIST51/LinkToBin
        !            70: >ls -l
        !            71: -rwxr-xr-x    1 teacher  cai        485095 Jul 17 14:35 allcapaid
        !            72: -rwxr-xr-x    1 teacher  cai        505454 Jul 17 14:35 answers
        !            73: -rwxr-xr-x    1 teacher  cai       2126685 Jul 17 14:35 grader
        !            74: -rwxr-xr-x    1 teacher  cai       2267429 Jul 17 14:35 manager
        !            75: -rwxr-xr-x    1 teacher  cai       2191991 Jul 17 14:35 quizzer
        !            76: -rwxr-xr-x    1 teacher  cai        488366 Jul 17 14:35 qzparse
        !            77: 
        !            78: 4.)  Now link up the demonstration library in the root directory.  To do this, 
        !            79: login as root, change to the root directory (cd /), remove the old demolibrary
        !            80: link (rm demolibrary), and enter: 
        !            81: 
        !            82: > ln -s /home/teacher/DIST51/demolibrary demolibrary
        !            83: 
        !            84: Check that the demolibrary in the DIST51 folder is owned by "teacher" and 
        !            85: has group membership "cai".
        !            86: 
        !            87: 5.)  *SKIP THIS STEP IF YOU ARE NOT ENABLING THE TELNET INTERFACE*
        !            88: Login as "teacher" and copy the file "capalogin" from the directory 
        !            89: DIST51/PutInCAPA51 into the directory /home/teacher/CAPA51.  Check 
        !            90: to make sure your permissions match the following: 
        !            91: 
        !            92: -rwsr-xr-x    1 teacher  cai        585097 Jul 17 15:03 capalogin
        !            93: 
        !            94: Make certain that capalogin is set UID mode (there is an "s" instead
        !            95: of an "x" in the user's permissions).  If not enter the following:
        !            96: 
        !            97: > chmod u+s capalogin
        !            98: 
        !            99: 6.)  *SKIP THIS STEP IF YOU ARE NOT ENABLING THE TELNET INTERFACE*
        !           100: For each class that telnet is enabled for, it is added as a user
        !           101: to the system without a password.  The security of the system is
        !           102: maintained by using capalogin as the login shell.  To set up the 
        !           103: demonstration class, become root then use the adduser utility to create the 
        !           104: user "nsc131s0".  Enter the group id the same as the instructor (cai), the
        !           105: parent directory to be /home/teacher/CAPA51, and the login shell 
        !           106: to be /home/teacher/CAPA51/capalogin.  When you are prompted to 
        !           107: enter an initial password, hit return.  You then need to edit the 
        !           108: /etc/passwd file to remove the "Nologin" field.  
        !           109: 
        !           110: For Linux systems, you will need to create the user, edit /etc/passwd 
        !           111: to remove the password field, change the group id number, change the home 
        !           112: directory and change the login shell.  You will not be prompted for these 
        !           113: within the utility.  Make certain the group id number is the same as the 
        !           114: instructor account.  Editing the passwd file is done by becoming root
        !           115: using the vipw command.  Finally, you must delete the directory created by
        !           116: the adduser utility, for example:
        !           117: 
        !           118: >rm -rf /home/nsc131s0 
        !           119: 
        !           120: Depending on your system, you may not be allowed to add a user without a 
        !           121: password using the adduser utility.  If this is the case, you will need
        !           122: to manually add the user with the vipw command.
        !           123: 
        !           124: Repeat the steps above for qns131s0 and xpc131s0 (do not add xns131s0 as
        !           125: a user).
        !           126: 
        !           127: The correct class entries in /etc/passwd are given below: (The paths to the 
        !           128: home directory and login shell may differ for your system.)
        !           129: 
        !           130: nsc131s0::1004:103:Demonstration Class - Homework:/home/teacher/CAPA51/nsc131s0:/home/teacher/CAPA51/capalogin
        !           131: qns131s0::1005:103:Demonstration Class - Quizzes:/home/teacher/CAPA51/qsc131s0:/home/teacher/CAPA51/capalogin
        !           132: xpc131s0::1006:103:Demonstration Class - Exam Partial Credit:/home/teacher/CAPA51/xpc131s0:/home/teacher/CAPA51/capalogin
        !           133: 
        !           134: 7.)  Login as teacher and create the class called nsc131s0 in teacher's
        !           135: CAPA51 directory by copying this directory from DIST51/PutInCAPA51
        !           136: 
        !           137: > cd CAPA51
        !           138: > cp -R /home/teacher/DIST51/PutInCAPA51/nsc131s0 nsc131s0
        !           139: 
        !           140: Then, check to be certain the owner of the nsc131s0 directory is "teacher" 
        !           141: with group membership "cai".
        !           142: 
        !           143: Repeat this step using the qns131s0, xns131s0, and xpc131s0 directories.
        !           144: 
        !           145: 8.)  Make certain a directory named "records" exists in each of the class 
        !           146: directories (e.g. /home/teacher/CAPA51/nsc131s0/records). Also, make certain the 
        !           147: ownership of all sub-directories and files is "teacher" with group membership 
        !           148: "cai".  It is a good idea to check your permission with the ones below.
        !           149:  
        !           150: > cd nsc131s0
        !           151: > ls -lag
        !           152: total 94
        !           153: drwxr-x--x    3 teacher  cai          1024 Jul 17 15:37 .
        !           154: drwxr-xr-x    9 teacher  cai          1024 Jul 17 15:37 ..
        !           155: -rw-r--r--    1 teacher  cai           969 Jul 17 15:37 HWTop
        !           156: -rw-r--r--    1 teacher  cai          1326 Jul 17 15:37 QuizTop
        !           157: -rw-r--r--    1 teacher  cai            15 Jul 17 15:37 TeXfooter
        !           158: -rw-r--r--    1 teacher  cai           777 Jul 17 15:37 TeXheader
        !           159: -rw-r--r--    1 teacher  cai         11418 Jul 17 15:37 capa.config
        !           160: -rw-r--r--    1 teacher  cai          1388 Jul 17 15:37 classl
        !           161: -rw-r--r--    1 teacher  cai            68 Jul 17 15:37 goodbye.msg
        !           162: -rw-r--r--    1 teacher  cai           720 Jul 17 15:37 help.msg
        !           163: -rw-r--r--    1 teacher  cai           447 Jul 17 15:37 mail.txt
        !           164: -rw-r--r--    1 teacher  cai          1529 Jul 17 15:37 managermail.txt
        !           165: drwxr-xr-x    2 teacher  cai          1024 Jul 17 15:37 records
        !           166: -rw-r--r--    1 teacher  cai           356 Jul 17 15:37 second-login.msg
        !           167: -rwxr--r--    1 teacher  cai          4870 Jul 17 15:37 set1.qz
        !           168: -rw-r--r--    1 teacher  cai          2808 Jul 17 15:37 set10.qz
        !           169: -rw-r--r--    1 teacher  cai          1933 Jul 17 15:37 set11.qz
        !           170: -rw-r--r--    1 teacher  cai          1824 Jul 17 15:37 set12.qz
        !           171: -rw-r--r--    1 teacher  cai         10114 Jul 17 15:37 set13.qz
        !           172: -rw-r--r--    1 teacher  cai          3969 Jul 17 15:37 set14.qz
        !           173: -rw-r--r--    1 teacher  cai          3684 Jul 17 15:37 set15.qz
        !           174: -rw-r--r--    1 teacher  cai          1935 Jul 17 15:37 set16.qz
        !           175: -rw-r--r--    1 teacher  cai          1454 Jul 17 15:37 set17.qz
        !           176: -rw-r--r--    1 teacher  cai          1551 Jul 17 15:37 set2.qz
        !           177: -rw-r--r--    1 teacher  cai          7138 Jul 17 15:37 set3.qz
        !           178: -rw-r--r--    1 teacher  cai          2561 Jul 17 15:37 set4.qz
        !           179: -rw-r--r--    1 teacher  cai          2106 Jul 17 15:37 set5.qz
        !           180: -rw-r--r--    1 teacher  cai          2826 Jul 17 15:37 set6.qz
        !           181: -rw-r--r--    1 teacher  cai          1617 Jul 17 15:37 set7.qz
        !           182: -rw-r--r--    1 teacher  cai          6197 Jul 17 15:37 set8.qz
        !           183: -rw-r--r--    1 teacher  cai          2751 Jul 17 15:37 11:05 set9.qz
        !           184: -rw-r--r--    1 teacher  cai           293 Jul 17 15:37 third-login.msg
        !           185: -rw-r--r--    1 teacher  cai           151 Jul 17 15:37 welcome.msg
        !           186: >cd records
        !           187: >ls -lag
        !           188: total 36
        !           189: drwxr-xr-x    2 teacher  cai          1024 Jul 17 15:37 .
        !           190: drwxr-x--x    3 teacher  cai          1024 Jul 17 15:37 ..
        !           191: -rw-r--r--    1 teacher  cai            74 Jul 17 15:37 date1.db
        !           192: -rw-r--r--    1 teacher  cai            74 Jul 17 15:37 date10.db
        !           193: -rw-r--r--    1 teacher  cai            74 Jul 17 15:37 date11.db
        !           194: -rw-r--r--    1 teacher  cai            74 Jul 17 15:37 date12.db
        !           195: -rw-r--r--    1 teacher  cai            74 Jul 17 15:37 date13.db
        !           196: -rw-r--r--    1 teacher  cai            74 Jul 17 15:37 date14.db
        !           197: -rw-r--r--    1 teacher  cai            74 Jul 17 15:37 date15.db
        !           198: -rw-r--r--    1 teacher  cai            74 Jul 17 15:37 date16.db
        !           199: -rw-r--r--    1 teacher  cai            74 Jul 17 15:37 date17.db
        !           200: -rw-r--r--    1 teacher  cai            74 Jul 17 15:37 date2.db
        !           201: -rw-r--r--    1 teacher  cai            74 Jul 17 15:37 date3.db
        !           202: -rw-r--r--    1 teacher  cai            74 Jul 17 15:37 date4.db
        !           203: -rw-r--r--    1 teacher  cai            74 Jul 17 15:37 date5.db
        !           204: -rw-r--r--    1 teacher  cai            74 Jul 17 15:37 date6.db
        !           205: -rw-r--r--    1 teacher  cai            74 Jul 17 15:37 date7.db
        !           206: -rw-r--r--    1 teacher  cai            74 Jul 17 15:37 date8.db
        !           207: -rw-r--r--    1 teacher  cai            74 Jul 17 15:37 date9.db
        !           208: -rw-r--r--    1 teacher  cai            51 Jul 17 15:37 set1.db
        !           209: -rw-r--r--    1 teacher  cai            25 Jul 17 15:37 set10.db
        !           210: -rw-r--r--    1 teacher  cai            14 Jul 17 15:37 set11.db
        !           211: -rw-r--r--    1 teacher  cai             8 Jul 17 15:37 set12.db
        !           212: -rw-r--r--    1 teacher  cai           119 Jul 17 15:37 set13.db
        !           213: -rw-r--r--    1 teacher  cai            39 Jul 17 15:37 set14.db
        !           214: -rw-r--r--    1 teacher  cai            39 Jul 17 15:37 set15.db
        !           215: -rw-r--r--    1 teacher  cai             8 Jul 17 15:37 set16.db
        !           216: -rw-r--r--    1 teacher  cai             6 Jul 17 15:37 set17.db
        !           217: -rw-r--r--    1 teacher  cai            10 Jul 17 15:37 set2.db
        !           218: -rw-r--r--    1 teacher  cai             6 Jul 17 15:37 set3.db
        !           219: -rw-r--r--    1 teacher  cai            12 Jul 17 15:37 set4.db
        !           220: -rw-r--r--    1 teacher  cai            16 Jul 17 15:37 set5.db
        !           221: -rw-r--r--    1 teacher  cai            22 Jul 17 15:37 set6.db
        !           222: -rw-r--r--    1 teacher  cai             8 Jul 17 15:37 set7.db
        !           223: -rw-r--r--    1 teacher  cai            77 Jul 17 15:37 set8.db
        !           224: -rw-r--r--    1 teacher  cai             8 Jul 17 15:37 set9.db
        !           225: 
        !           226: 9.)  The CAPA system needs to access the files just installed in the teacher
        !           227: home directory.  Make sure this directory has both group and world r-x
        !           228: privledges.
        !           229: 
        !           230: drwxr-xr-x    6 teacher  cai          1024 Jul 17 13:43 teacher
        !           231: 
        !           232: 
        !           233: 
        !           234: You will have similar files in the qns131s0, xns131s0, and xpc131s0 directories
        !           235: with the same permissions.  Check those also.
        !           236: 
        !           237: The utilities for running CAPA with telnet sessions are now completely  
        !           238: installed.  
        !           239: 
        !           240: --------------------------------------------------------------------------------
        !           241: SETTING UP THE WEB VERSION OF THE CAPA INTERFACE
        !           242: 
        !           243: 
        !           244: 1.)  It is recommended that you make a backup of the teacher/PublicWeb 
        !           245: directory and all of it's subdirectories and files before making the
        !           246: changes below.
        !           247: 
        !           248: 2.)  Login in as teacher.  Remember, it is assumed that the teacher 
        !           249: directory is in /home which may not be the case for your machine.
        !           250: 
        !           251: 3.)  Update your /home/teacher/PublicWeb/CAPA directory with the files from
        !           252: DIST51/CopyToPublicWeb/CAPA directory.
        !           253: 
        !           254: Go to /home/teacher/PublicWeb/CAPA and copy ExmPanel.class, ExpPanel.class, 
        !           255: GLabel.class, TScore.class, help.html from the distribution.  Make sure the old 
        !           256: files for Glabel.class and help.html are replaced (they will have today's date 
        !           257: when you check permissions).  Make sure all files in this directory are owned by 
        !           258: teacher and have group membership cai.
        !           259: 
        !           260: > cd /home/teacher/PublicWeb/CAPA
        !           261: > cp /home/teacher/DIST51/CopyToPublicWeb/CAPA/ExmPanel.class .
        !           262: > cp /home/teacher/DIST51/CopyToPublicWeb/CAPA/ExpPanel.class .
        !           263: > cp /home/teacher/DIST51/CopyToPublicWeb/CAPA/GLabel.class . 
        !           264: > cp /home/teacher/DIST51/CopyToPublicWeb/CAPA/TScore.class .
        !           265: > cp /home/teacher/DIST51/CopyToPublicWeb/CAPA/help.html . 
        !           266: 
        !           267: 4.)  Update your /home/teacher/PublicWeb/CAPA/capa-bin directory with the files 
        !           268: from DIST51/CopyToPublicWeb/CAPA/capa-bin directory.  Particularly, you will need
        !           269: to update web.settings, capadiscuss_html, capahtml, and webpage.
        !           270: 
        !           271: > cd capa-bin
        !           272: > cp /home/teacher/DIST51/CopyToPublicWeb/CAPA/capa-bin/web.settings .
        !           273: > cp /home/teacher/DIST51/CopyToPublicWeb/CAPA/capa-bin/capadiscuss_html .
        !           274: > cp /home/teacher/DIST51/CopyToPublicWeb/CAPA/capa-bin/capahtml .
        !           275: > cp /home/teacher/DIST51/CopyToPublicWeb/CAPA/capa-bin/webpage .
        !           276: 
        !           277: 5.)  Check permissions in the capa-bin directory.  Your permissions for the files 
        !           278: in PublicWeb/CAPA/capa-bin should like the following:
        !           279: 
        !           280: > cd capa-bin
        !           281: > ls -l
        !           282: -rw-r--r--    1 teacher  cai         33363 Jul 17 15:51 capadiscuss_html
        !           283: -rws--x--x    1 teacher  cai        519680 Jul 17 15:51 capahtml
        !           284: -rw-r--r--    1 teacher  cai           223 Jul 17 15:51 class.conf
        !           285: lrwxrwxrwx    1 teacher  cai             7 Jul 17 15:51 class.html -> webpage
        !           286: lrwxrwxrwx    1 teacher  cai             7 Jul 17 15:51 email.html -> webpage
        !           287: lrwxrwxrwx    1 teacher  cai             7 Jul 17 15:51 getid.html -> webpage
        !           288: drwxr-xr-x    2 teacher  cai          1024 Jul 17 15:51 teacher
        !           289: -rw-r--r--    1 teacher  cai          4460 Jul 17 15:51 web.settings
        !           290: -rwx--x--x    1 teacher  cai       1141535 Jul 17 15:51 webpage
        !           291: 
        !           292: If your permissions do not match the ones above, change them so they do.
        !           293: Read step #6 before changing your permissions for capahtml.  You may 
        !           294: also see files called web_access.log and ids.log in the capa-bin 
        !           295: directory.  These files are automatically generated by the CAPA software.
        !           296: 
        !           297: The system links to the webpage program should still be there from the
        !           298: previous CAPA installation.  If they do not exist, enter the following:
        !           299: 
        !           300: > ln -s webpage class.html
        !           301: > ln -s webpage emailid.html
        !           302: > ln -s webpage getid.html
        !           303: 
        !           304: 
        !           305: 6.)  If the user "teacher" does not own the webserver (for example, the
        !           306: webserver is owned by the user "www"), then you will need to make the
        !           307: capahtml file set UID.
        !           308: 
        !           309: > chmod u+s capahtml
        !           310: 
        !           311: If "teacher" owns the webserver, then leave capahtml in the default executable
        !           312: permissions as listed in step 4.
        !           313: 
        !           314: 7.)  Edit /home/teacher/PublicWeb/CAPA/capa-bin/web.settings
        !           315: Change the first line:
        !           316:       set machine capa2.nscl.msu.edu
        !           317: To read:
        !           318:       set machine your.machine.name
        !           319: 
        !           320: 8.)  Edit /home/teacher/PublicWeb/CAPA/capa-bin/class.conf by adding
        !           321: the following lines (note that you may have different paths than
        !           322: /home/teacher):
        !           323: 
        !           324: nsc131s0         /home/teacher/CAPA51       teacher {class emailid}
        !           325: qns131s0         /home/teacher/CAPA51       teacher {class}
        !           326: xpc131s0         /home/teacher/CAPA51       teacher {class}
        !           327: 
        !           328: 9.)  Update your /home/teacher/PublicWeb/CAPA/capa-bin/teacher directory with the 
        !           329: files from DIST51/CopyToPublicWeb/CAPA/capa-bin/teacher directory.  Copy the files
        !           330: capasbin and capadiscuss to this directory from distribution.
        !           331: 
        !           332: > cd teacher
        !           333: > cp /home/teacher/DIST51/CopyToPublicWeb/CAPA/capa-bin/teacher/capasbin .
        !           334: > cp /home/teacher/DIST51/CopyToPublicWeb/CAPA/capa-bin/teacher/capadiscuss .
        !           335: 
        !           336: Check that both these files are owned by teacher and have group membership cai.  
        !           337: These files should also have executable permission and capasbin should be set 
        !           338: UID (there is an "s" instead of an "x" in the owner's permissions).  If not, 
        !           339: enter the following:
        !           340: 
        !           341: > chmod u+s capasbin
        !           342: 
        !           343: 10.)  Make the changes that you made above for the teacher directory to all 
        !           344: other instructor directories.  Make sure they are owned by the appropriate
        !           345: instructor and have the appropriate group membership.
        !           346: 
        !           347: 11.)  Go to /home/teacher/Public/demolibrary and make sure Graphics and Links 
        !           348: point to /demolibrary/Graphics and /demolibrary/Links.  If they point to the old 
        !           349: demolibrary, make changes by removing the links and adding the new ones.
        !           350: 
        !           351: > ln -s /demolibrary/Graphics Graphics
        !           352: > ln -s /demolibrary/Links Links
        !           353: 
        !           354: 12.)  Restart your webserver.
        !           355: 
        !           356: 
        !           357: --------------------------------------------------------------------------------
        !           358: 
        !           359: FINAL INSTRUCTIONS
        !           360: 
        !           361: 1.)  Modify /demolibrary/Tools/StdMacros
        !           362: 
        !           363: Replace the line
        !           364: /LET machine_name="capa2.nscl.msu.edu"  // needed for labeling tools
        !           365: With
        !           366: /LET machine_name="your.machine.name"  // needed for labeling tools
        !           367: 
        !           368: 2.)  Double check to be certain the ownership and group membership 
        !           369: for each of the files and subdirectories under the teacher account 
        !           370: consistently have "teacher" as owner and "cai" as group.  Also double
        !           371: check that the demolibrary directory in /home/teacher/DIST51 is owned
        !           372: by "teacher" and has group membership "cai".  (Note that your instructor
        !           373: directories under PublicWeb/CAPA/capa-bin will be owned my the appropriate
        !           374: instructory).
        !           375: 
        !           376: 3.)  Make sure that the user teacher, the owner of the webserver, and
        !           377: root have the commands allcapaid, perl and gs (ghostscript command) in 
        !           378: their path.  You can check this by using the which command.  If it is
        !           379: in the user's path, you will then be shown where the directory for the
        !           380: command is located.  
        !           381: For example:
        !           382: 
        !           383: > which perl
        !           384: /usr/bin/perl
        !           385: 
        !           386: 4.)  If teacher is somewhere other than /home, then you need to edit the 
        !           387: capa.config files in the nsc131s0, qns131s0, xns131s0, and xpc131s0 directories.
        !           388: Change the following lines to refer to the correct path:
        !           389: 
        !           390: quiz_path       = /home/teacher/CAPA51/qns131s0
        !           391: exam_path       = /home/teacher/CAPA51/xns131s0
        !           392: supp_path       = /home/teacher/CAPA51/xpc131s0
        !           393: .
        !           394: .
        !           395: .
        !           396: correction_path = /home/teacher/CAPA51/xpc131s0
        !           397: 
        !           398: 5.)  In each of the capa.config files (DIST51/PutInCAPA51/nsc131s0/capa.config,
        !           399: ..., ...skeleton/capa.config, etc. and /home/teacher/CAPA51/nsc131s0, etc.) edit 
        !           400: the print commands to match the ones that you use from your server where CAPA is 
        !           401: installed.  The comments in the printing configuration section of the capa.config 
        !           402: file will direct you how to make these changes.
        !           403: 
        !           404: Also, edit the line:
        !           405: 
        !           406: capa_server = your.machine.name
        !           407: 
        !           408: In the "Extrapolate Scores Applet" section to read the name of your capa server
        !           409: in each of the capa.config files.
        !           410: 
        !           411: 6.)  Print the Manual.  
        !           412: 
        !           413: 7.)  Take a look at the sets in nsc131s0. In particular sets 3-17 (a
        !           414: detailed list of the templates).
        !           415: 
        !           416: 8.)  Read the READMEsecurity.txt file.
        !           417: 
        !           418: 
        !           419: --------------------------------------------------------------------------------
        !           420: --------------------------------------------------------------------------------
        !           421: --------------------------------------------------------------------------------
        !           422: 
        !           423: CONTACT INFORMATION
        !           424: 
        !           425: If you have any questions or problems with getting CAPA installed and  
        !           426: running, contact the following:
        !           427: 
        !           428: Felicia Berryman
        !           429: CAPA Coordinator
        !           430: Michigan State University
        !           431: capa@capa.msu.edu
        !           432: 
        !           433: --------------------------------------------------------------------------------
        !           434: --------------------------------------------------------------------------------
        !           435: --------------------------------------------------------------------------------
        !           436: 
        !           437: ADDING ADDITIONAL USERS
        !           438: 
        !           439: 1.)  Add the new user to your system with group membership cai.  If you are
        !           440: unsure about doing this, follow the same instructions outlined in the 
        !           441: "INITIAL SETUP" section of the README.txt file except use the new user's name 
        !           442: instead of "teacher" (and the new group's name if the new instructor to be added 
        !           443: to the CAPA system should be in a different group other than "cai").
        !           444: 
        !           445: 2.)  Login as root and add a directory to the capa-bin directory with the same 
        !           446: name as the new instructor's user name.  For example:
        !           447: > mkdir /home/teacher/PublicWeb/CAPA/capa-bin/instructor-name
        !           448: 
        !           449: 3.)  Copy the files capasbin and capadiscuss from 
        !           450: teacher/DIST51/CopyToPublicWeb/CAPA/capa-bin/teacher into the new
        !           451: instructor-name directory.  For example:
        !           452: 
        !           453: > cd /home/teacher/PublicWeb/CAPA/capa-bin/instructor-name
        !           454: > cp /home/DIST51/CopyToPublicWeb/CAPA/capa-bin/teacher/capasbin capasbin
        !           455: > cp /home/DIST51/CopyToPublicWeb/CAPA/capa-bin/teacher/capadiscuss capadiscuss
        !           456: 
        !           457: Make sure that the permissions for the the capasbin and capadiscuss files 
        !           458: are executable and that capasbin is set UID mode (there is an "s" instead 
        !           459: of an "x" in the user's permissions).  If not, enter the following:
        !           460: 
        !           461: > chmod 755 capasbin capadiscuss
        !           462: > chmod u+s capasbin
        !           463: > ls -l
        !           464: -rwxr-xr-x    1 instructor  cai         23453 Mar 16 11:15 capadiscuss
        !           465: -rwsr-xr-x    1 instructor  cai        843150 Mar 16 11:15 capasbin
        !           466: 
        !           467: 4.)  Change the ownership of the instructor-name directory and all of its 
        !           468: files to the appropriate user ("instructor-name") and group (i.e. "cai").
        !           469: > cd /home/teacher/PublicWeb/CAPA/capa-bin
        !           470: > chown -R instructor-name:cai instructor-name
        !           471: 
        !           472: 5.)  Finally, double check that the instructor owns his/her directory
        !           473: in the capa-bin directory and that the instructor's capasbin and capadiscuss
        !           474: have the correct ownership and permissions.
        !           475: 
        !           476: --------------------------------------------------------------------------------
        !           477: 
        !           478: ADDING ADDITIONAL CLASSES
        !           479: 
        !           480: Once an instructor account is created, you can add classes to the
        !           481: system as needed.  Below we call the owner of the class "instructor"
        !           482: and the class "classname".  Your class's name should be 8 characters
        !           483: max if you will be using the telnet interface.  We name our classes 
        !           484: names such as phy183s0 (physics 183, spring semester, 2000) and cem142f0 
        !           485: (chemistry 142, fall semester, 2000).
        !           486: 
        !           487: If you chose not to enable the telnet interface, then skip steps 
        !           488: 1 and 2 below.
        !           489: 
        !           490: 1.)  *SKIP THIS STEP IF YOU ARE NOT ENABLING THE TELNET INTERFACE*
        !           491: Use the adduser utility to create the user "classname".  For Digital 
        !           492: Unix and Solaris operating systems:
        !           493: 	a.) Login as root
        !           494: 	b.) Change directory to /usr/sbin
        !           495: 	c.) Type the command "adduser".  You will be prompted for information.
        !           496: 		-Make certain the user "classname" is a member of the same 
        !           497: 		group as the instructor.
        !           498:  		-Use /home/instructor/CAPA51 as the parent directory and
        !           499:  		/home/instructor/CAPA51/capalogin as the login shell. 
        !           500: 		-Do not add a password.
        !           501: 	d.) Remove the system created classname directory.  (Your absolute
        !           502: 	    path may differ from /home.)
        !           503: 		>rm -rf /home/instructor/CAPA51/classname
        !           504: 
        !           505: For Linux operating systems:
        !           506: 	a.) Login as root
        !           507: 	b.) change directory to /usr/sbin
        !           508: 	c.) Type the command "adduser classname".
        !           509: 	    (or "useradd classname" depending on your system)
        !           510: 	d.) If prompted for a password, do not add one.
        !           511: 	e.) Delete the directory created by the adduser utility. (Your absolute
        !           512: 	    path may differ from /home.)
        !           513: 		>rm -rf /home/classname
        !           514: 	NOTE:  Depending on your system, you may not be allowed to add a user 
        !           515: 	without a password.  In that case, you will have to add the user 
        !           516: 	manually using the vipw command.
        !           517: 	
        !           518: 2.)  *SKIP THIS STEP IF YOU ARE NOT ENABLING THE TELNET INTERFACE*
        !           519: Edit the password file.  For Digital Unix and Solaris operating systems:
        !           520: 	a.) Edit the entry for "classname" in the /etc/passwd file with the vipw
        !           521: 	    command.
        !           522: 		-remove the encrypted password field (or the field "NoLogin"). 
        !           523: 		-Check to be certain the home directory and login shell are 
        !           524: 		correct.  
        !           525: 	b.) A sample /etc/passwd entry is given below:
        !           526: 
        !           527: phy123s0::1007:103:Intro Physics I:/home/instructor/CAPA51/phy123s0:/home/instructor/CAPA51/capalogin
        !           528: 
        !           529: For Linux operating systems:
        !           530: 	a.) Edit the entry for "classname" in the /etc/passwd file.
        !           531: 	    	-Remove the encrypted password field (or the field "NoLogin"). 
        !           532: 		-Change the group id number to match the group id number in 
        !           533: 		the instructor's account
        !           534: 		-Change the home directory to 
        !           535: 		/home/instructor/CAPA51
        !           536: 		-Change the login shell to 
        !           537: 		/home/instructor/CAPA51/capalogin
        !           538: 	b.) A sample /etc/passwd entry is given below:
        !           539: 
        !           540: phy123s0::1007:103:Intro Physics I:/home/instructor/CAPA51/phy123s0:/home/instructor/CAPA51/capalogin
        !           541: 	
        !           542: 3.)  Make the classname directory.  Login as the "classname" owner, copy 
        !           543: the contents of /home/teacher/DIST51/PutInCAPA/skeleton into the new class 
        !           544: directory.  
        !           545: > cd /home/instructor/CAPA51
        !           546: > cp -R /home/teacher/DIST51/PutInCAPA51/skeleton classname
        !           547: 
        !           548: Make certain there is a classname/records directory present.  
        !           549: The following are a few files you might want to edit  to tailor to your 
        !           550: particular course:
        !           551: 
        !           552: welcome.msg and goodbye.msg (both for telnet), capa.config, HWTop, (QuizTop,
        !           553: ExamTop), and classl
        !           554: 
        !           555: Be certain to retain the exact character spacing in the classl file.
        !           556: 
        !           557: 4.) Check to be certain the owner of the /home/instructor/CAPA51/classname 
        !           558: directory, sub-directories and files is "instructor" with group membership 
        !           559: "cai" (or whatever the correct group is).
        !           560: 
        !           561: 5.)  Once you have created your problem sets, your course is ready for 
        !           562: telnet access.  That is, if you chose to enable the telnet interface.
        !           563: 
        !           564: 		  ------------------------------------------
        !           565: 
        !           566: Setting up WWW access for this same course:
        !           567: 
        !           568: 1.)  Edit /home/teacher/PublicWeb/CAPA/capa-bin/class.conf by 
        !           569: adding the new class.  Example:
        !           570: 
        !           571: classname  /home/instructor/CAPA51  instructor {class getid emailid}
        !           572: 
        !           573: 2.)  Make certain a copy of capa.config exists in the "classname"
        !           574: directory.  Also double check the ownership and group membership of
        !           575: the classname file and all of its sub-directories and files have the
        !           576: appropriate owner and group membership.
        !           577: 
        !           578: 3.)  The instructions above were for using CAPA for homework.  If you
        !           579: want to use CAPA for quizzes, exams, etc. then read the next section.
        !           580: 
        !           581: 4.)  Edit the paths and printing configuration section in the capa.config
        !           582: file.  Edit the dept_name, etc in the HWTop (QuizTop and ExamTop).  Also
        !           583: edit the classl file, making sure the instructor and TAs all belong to
        !           584: the admin_section(s) (see capa.config file and edit admin_section if 
        !           585: appropriate).
        !           586: 
        !           587: Your "classname" class is now ready to use for homework.
        !           588: 
        !           589: --------------------------------------------------------------------------------
        !           590: 
        !           591: ADDING ACCESS FOR QUIZZES, EXAMS, EXAM PARTIAL CREDIT, ETC.
        !           592: 
        !           593: 1.)  Quiz, exam, and other access are added as separate "classes".  
        !           594: You may choose to name them similar to the convention of the 
        !           595: demonstration "classes" nsc131s0 (homework), qns131s0 (quizzes),
        !           596: xns131s0 (exams), and xpc131s0 (exam partial credit).  
        !           597: 
        !           598: 2.)  To use CAPA for more than just homework, install your quiz,
        !           599: exam, etc. directories using the instructions above but use the
        !           600: appropriate skeleton directory (skeletonQuiz, skeletonExam).  For 
        !           601: supplementary course work, such as exam partial credit, then just 
        !           602: use the skeleton directory.  Follow the guidelines below when 
        !           603: setting up web access in the class.conf file.  
        !           604: 
        !           605: 2.)  Below are some guidelines assuming you are using the entirety
        !           606: of CAPA by adding quiz, exam, partial credit (supplemental), and other
        !           607: access for a physics class PHY 123:
        !           608: 
        !           609:      qph123s0:  Enable telnet if you do so and allow class.html
        !           610: 		access only.  This gives you the option of giving
        !           611: 		take-home quizzes, but the students cannot use
        !           612: 		emailid.html or getid.html, they must get their
        !           613: 		CAPA ID in class.  In the capa.config file, you
        !           614: 		would enter the following:
        !           615: 
        !           616: 		qph123s0  /home/instructor/CAPA51  instructor {class}
        !           617: 
        !           618:      xph123s0:  Do not enable access through telnet or web interface.
        !           619:  		If you do want telnet or web access, please be careful
        !           620: 		to protect you exams by setting the correct open and
        !           621: 		due dates and it is highly recommended that you do
        !           622: 		NOT allow the students to retrieve their ID for further
        !           623: 		protection.  Consult the Manual about due dates.
        !           624: 
        !           625:      xpc123s0:  You have the option in CAPA to allow students to take
        !           626: 		the exam again at home and apply those points to their
        !           627: 	        exam score as partial credit.  Set up similiar to quizzes
        !           628: 		and BE CAREFUL about open dates and due dates to protect
        !           629:   		your exam.
        !           630: 
        !           631:      oph123s0:  Use this for whatever you wish, such as supplemental homework.
        !           632: 
        !           633: 3.)  Edit the paths in the capa.config file in each of the classname 
        !           634: directories.  Edit the dept_name, etc. in the HWTop (QuizTop and ExamTop). 
        !           635: Also edit the classl file, making sure the instructor and TAs all belong to the 
        !           636: admin_section(s) (see capa.config file and edit admin_section if appropriate).
        !           637: 
        !           638: --------------------------------------------------------------------------------
        !           639: 
        !           640: 
        !           641: 
        !           642: 
        !           643: 
        !           644: 
        !           645: 
        !           646: 
        !           647: 

FreeBSD-CVSweb <freebsd-cvsweb@FreeBSD.org>