Version 9 (modified by 11 years ago) ( diff ) | ,
---|
TurnkeyLinux Virtual Machine Maintenance Docs
In addition to the Developer Virtual Machine, there is a version based on a TurnkeyLinux Base Virtual Machine. This version is currently far out of date, and not in use.
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 && git 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/* && rm -f models/000_config.py && rm -f cron/crontab;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"
Resume Uploads
If the scp upload fails, then can resume it using:
rsync -Pe ssh Eden-VM.zip flavour@eden.sahanafoundation.org:.
Info only
The next 2 steps are unnecessary if exporting to OVF?
Overwrite the freespace with zeroes:
- http://techthrob.com/2009/03/02/howto-delete-files-permanently-and-securely-in-linux/
apt-get install secure-delete sfill -fz /
Compress the VDI disk image:
- http://www.mdl4.com/2010/04/virtualbox-compact-a-vdi-in-ubuntu/
C: cd "\Program Files\Oracle\VirtualBox" VBoxManage modifyhd c:\Users\%USERNAME%\.virtualbox\harddisks\Eden-Dev.vdi compact
Note:
See TracWiki
for help on using the wiki.