wiki:InstallationGuidelines/VirtualMachine/Maintenance

Version 4 (modified by Fran Boon, 11 years ago) ( diff )

Break out aliases

Virtual Machine Maintenance Docs

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

update_all

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='cd /home/sahana/Desktop/web2py/applications/eden && bzr pull'
alias update_w2p='cd /home/sahana/Desktop/web2py && bzr up'
alias update_all='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.