wiki:InstallationGuidelines/VirtualMachine/Maintenance

Version 3 (modified by Fran Boon, 14 years ago) ( diff )

--

Virtual Machine Maintenance Docs

NB It is best if the VM is maintained using the original VirtualBox image & then re-exported to OVF

update

Test Sahana Eden.

clean

The following aliases have been setup:

alias w2p='cd /home/sahana/Desktop/web2py && python web2py.py -S eden -M'
alias update='sudo apt-get update;sudo apt-get upgrade -y;cd /home/sahana/Desktop/web2py && bzr up;cd /home/sahana/Desktop/web2py/applications/eden && bzr pull'
alias clean="rm ~/.bash_history;cd ~/Desktop/web2py/applications/eden && rm -f databases/* && rm -rf cache/* && rm -f sessions/*;sudo rm -f /var/log/*;sudo rm -f /var/cache/apt/archives/*;COLUMNS=200 sudo dpkg -l | grep ^rc | awk '{print $2} ' | xargs sudo dpkg -P"

The next 2 steps are unnecessary if exporting to OVF?

Overwrite the freespace with zeroes:

Compress the VDI disk image:


InstallationGuidelinesVirtualMachine

Note: See TracWiki for help on using the wiki.