Changes between Initial Version and Version 1 of InstallationGuidelines/VirtualMachine/Maintenance


Ignore:
Timestamp:
09/05/10 09:12:19 (14 years ago)
Author:
Fran Boon
Comment:

--

Legend:

Unmodified
Added
Removed
Modified
  • InstallationGuidelines/VirtualMachine/Maintenance

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