[[TOC]] = Virtual Machine = This virtual machine has been built to allow Developers to get operational quickly (1 Gb compressed): * http://eden.sahanafoundation.org/Eden-VM.zip (UK) * http://sahanafoundation.org/Eden-VM.zip (US) It is in the Open Virtual Machine format for use in either [http://virtualbox.org VirtualBox] or [http://vmware.com VMWare]. It is currently running the Ubuntu 10.04 OS with Web2Py-r2717, Eden-r1560 & Eclipse 3.6 == Usage Notes == === Introduction === The dev env virtual machines for Virtualbox and VMware are based on a [http://eden.sahanafoundation.org/wiki/BluePrintlivecdinstaller blueprint] and are configured to use have about 512MB of RAM. The virtual disk is configured to expand to 20GB. The virtual machine is built on [http://www.turnkeylinux.org/core TurnKey Linux's Core], which in turn is based on Ubuntu 10.04 (Lucid -- the most recent long-term support release). The machines run [http://code.google.com/p/shellinabox/ Shellinabox], [http://www.webmin.com/ Webmin], and SSH/sftp as services from startup. The development environment is configured to launch [http://lxde.org LXDE], a lightweight desktop environment after the first boot. === Credentials === Web2py administration password is set during the debugging process with either of the following commands and arguments, both of which would set the admin password to "admin": {{{ /home/dev/web2py.py -a admin -i 127.0.0.1 -p 80 /home/dev/web2py.py --password admin -i 127.0.0.1 -p 80 }}} ==== Root User ==== Username: root Password: to be determined ==== Dev User ==== Username: dev Password: to be determined === Filesystem === Web2py is located in /home/web2py. Eden is located in /home/web2py/applications/eden. Eclipse and PyDev are preconfigured with this information. === Scripts === /usr/local/bin contains three helpful scripts. To run them, start LXTerminal (in the accessories menu) and simply enter the commands as demonstrated below. They are in all users' paths, so may be executed from any working directory. ==== Update web2py ==== Enter the command with or without a revision number, as demonstrated below: {{{ update_web2py 2717 #updates web2py to rev 2717 update_web2py #updates web2py to recent revision }}} ==== Import Eden ==== {{{ update_eden 1560 #updates Eden to rev 1560 update_eden #updates Eden to recent revision }}} ==== Update Eden ==== Imports Eden to Web2py {{{ import #updates Eden to rev 1560 }}} == Legacy Usage Guidelines == New usage notes are available [http://eden.sahanafoundation.org/wiki/DevEnvUsageNotes here] and are in the process of being migrated to this page. 1. The ubuntu user and the admin account of web2py have the password set to: eden 2. The web2py directory on the desktop contains the web2py release and a bzr branch of Eden Trunk located in {{{ ~/Desktop/web2py/applications/eden }}} 3. [DeveloperGuidelinesEclipse Eclipse] is preconfigured with the above directory. * The normal way to launch Web2Py in this environment is to launch Eclipse & start up the Debugger. * You can view the filesystem by clicking on the '!PyDev' button in the top-right. 4. Firefox is pre-populated with Eden bookmarks. 5. Run code and OS updates Note: If you get a ticket when running the application for the 1st time with a message like "!OperationalError: Cannot add a UNIQUE column" then you need to stop the debugger, delete the contents of the databases folder & then start debugging again (there was an old database accidentally left on the system which cannot be auto-migrated - a new image without this issue has been uploaded): {{{ rm -rf ~/Desktop/web2py/applications/eden/databases/* }}} If you get an error like "!AttributeError: SQLCustomType instance has no attribute 'startswith'" then: {{{ cd ~/Desktop/web2py/gluon rm sql.py wget http://eden.sahanafoundation.org/sql.py }}} Then can proceed as above: Stop Eclipse, empty databases folder & restart Eclipse A new image without this issue has now been uploaded. == Installation == 1. Download the Image 2. Uncompress the image To run the image, you need to install either !VirtualBox or VMWare: === !VirtualBox Installation === 3. Download [http://download.virtualbox.org/virtualbox/vboxdownload.html VirtualBox] 4. Install !VirtualBox 5. Import the Virtual Appliance: * File menu | Import Appliance * Choose the uncompressed image (the .ovf file) * Next * Accept the default appliance options unless you have a reason to make a specific change * Start the Virtual Appliance by double-clicking the icon on the left. '''Login to Ubuntu as''': '''UID:''' Sahana-Eden '''PW:''' eden === VMWare Installation === To import the download VM into VMware (e.g. Fusion), use the following steps. 3. File > New 4. Click Continue without disc 5. Select Use an existing virtual disk 6. Select Eden-VM.vmdk 7. Select Make a separate copy of the virtual disk 8. Click Choose 9. Click Continue 10. OS=Linux and Version=Ubuntu should be selected, click Continue, Click Finish 11 Enter name for new VMware image e.g. Eden in the Virtual Machines directory 12. Click Save Remember to install the Linux VMware Tools after starting up the Eden machine using Virtual Machine > Install VMware Tools {{{ sudo su - ./vmware-install.pl }}} And accept all the default options ---- InstallationGuidelinesVirtualMachineMaintenance InstallationGuidelinesDeveloper InstallationGuidelines