
Prerequisites:
1) install apache2
2) install php5

Steps:
1) put all the files in www directory into /var/www
2) put vnetlab directory to /var/vnetlab
3) compile and copy group-admin into /var/vnetlab/
4) change the permission of /var/vnetlab/group-admin. i.e.: chmod 4750 group-admin
5) change the permission of /var/vnetlab. 
	i.e.: chown www-data.www-data /var/vnetlab. 
	      chmod 700 /var/vnetlab. (prevent other user to read)
6) done

Data file Usage:
*) all the php files in /var/www is for the web interface, while files in /var/vnetlab contains registration information. The following is the detail:

*) /var/vnetlab/password: stores temporary password for user to login (plain text)
*) /var/vnetlab/courses: stores all the course IDs
*) /var/vnetlab/555.txt: registered users. Format: name:SUNYID

Scripts Usage:
*) /var/vnetlab/background_courseMgr.pl: add a course and a TA ( a new UNIX group) to V-Netlab
*) /var/vnetlab/foreground_courseMgr.pl: add a course ID for user to register from the web.
*) /var/vnetlab/registerUsers.pl: add all users in a course into V-NetLab.
*) /var/vnetlab/internal_regiseterUsers.pl: internal script invoked by registerUsers.pl.
