Thursday, January 10, 2008

VZ Add More Diskspace

To view the current diskspace status, you can enter command
vzquota stat 123 (where 123 is the vz id number)

To increase the diskspace by the current space with factor of 2, command is
vzctl set 123 --diskspace $(( 1048576*2 )):$(( 1153434*2 )) --save

To increase the diskspace by the amount, command is
vzctl set 123 --diskspace $(( 1548576 )):$(( 1753434 )) --save

To increase the diskspace by the inode with factor of 3, command is
vzctl set 123 --diskinodes $(( 200000*3 )):$(( 220000*3 )) --save

Sunday, January 6, 2008

How to set default course

When you create a new course, how do you make it so it comes up as your default setup?
Easy, by editing your moodle/course/edit_form.php file.
You can make changes here.

For example, if you want to make the format to show as topics, then you edit line 98
where it says $mform->setDefault('format', 'weeks'); and change it to
$mform->setDefault('format', 'topics');