| | 1 | = Virtual Machine Maintenance Docs = |
| | 2 | NB It is best if the VM is maintained using the original !VirtualBox image & then re-exported to OVF |
| | 3 | {{{ |
| | 4 | sudo su - |
| | 5 | apt-get update |
| | 6 | apt-get upgrade |
| | 7 | rm /var/cache/apt/archives/* |
| | 8 | exit |
| | 9 | cd Desktop/web2py |
| | 10 | bzr up |
| | 11 | cd applications/eden |
| | 12 | bzr pull |
| | 13 | }}} |
| | 14 | |
| | 15 | After removing any unwanted packages, purge the filesystem using: |
| | 16 | {{{ |
| | 17 | COLUMNS=200 dpkg -l | grep ^rc | awk '{print $2} ' | xargs dpkg -P |
| | 18 | rm -f /var/log/* |
| | 19 | }}} |
| | 20 | |
| | 21 | The next 2 steps are unnecessary if exporting to OVF? |
| | 22 | |
| | 23 | Overwrite the freespace with zeroes: |
| | 24 | * http://techthrob.com/2009/03/02/howto-delete-files-permanently-and-securely-in-linux/ |
| | 25 | {{{ |
| | 26 | apt-get install secure-delete |
| | 27 | sfill -fz / |
| | 28 | }}} |
| | 29 | |
| | 30 | Compress the VDI disk image: |
| | 31 | * http://www.mdl4.com/2010/04/virtualbox-compact-a-vdi-in-ubuntu/ |
| | 32 | {{{ |
| | 33 | C: |
| | 34 | cd "\Program Files\Oracle\VirtualBox" |
| | 35 | VBoxManage modifyhd c:\Users\%USERNAME%\.virtualbox\harddisks\Eden-Dev.vdi compact |
| | 36 | }}} |
| | 37 | ---- |
| | 38 | InstallationGuidelinesVirtualMachine |