Changes between Version 27 and Version 28 of InstallationGuidelines/VirtualMachine
- Timestamp:
- 11/11/11 10:04:39 (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
InstallationGuidelines/VirtualMachine
v27 v28 64 64 * Under that, for "Name", select the appropriate network interface, e.g. wireless if that's what you're using. (Keep this setting in mind -- you may need to change it if you sometimes use a wired network, and sometimes wireless.) 65 65 66 == Install the "guest additions" ==67 68 The "guest additions" kit makes sharing the mouse and keyboard between host and guest more natural, and allows a larger screen size for the guest.69 70 * On the VM window menu: Devices -> Install Guest Additions... (This inserts a virtual CD-ROM with the guest additions installer in the virtual drive.)71 * Inside the VM window, start a terminal (double-click the LXTerminal icon). The following commands use "sudo" to execute privileged commands. The first use will ask you to enter your password -- that's the ''dev'' account password. Type:[[br]]72 {{{sudo mkdir /mnt/cdrom73 sudo mount -t iso9660 -r /dev/cdrom /mnt/cdrom74 cd /mnt/cdrom75 sudo ./VBoxLinuxAdditions.run}}}76 77 66 == Configure the guest system == 78 67 … … 91 80 and use the GUI to log in as user ''dev''. 92 81 82 === Updating Web2py, Eden, and the operating system === 93 83 94 === Updating Web2py, Eden, and the operating system === 95 /usr/local/bin contains three helpful scripts. To run them, start a terminal window and enter the commands below. They are in the path, so may be executed from any working directory. 84 '''''GHC Codeathon participants, take note! You don't need to update anything -- skip this.''''' 85 86 The Eden code is updated (much) more frequently than is the VM image, so the Eden branch supplied in the image will be out of date. So, too, will be Web2py and the Linux distribution, but those will typically not need frequent updating. We recommend only updating Eden unless you know that new versions of the others are needed. 96 87 97 88 ==== Update web2py ==== … … 99 90 To update Web2py to the latest revision: 100 91 {{{ 101 update_web2py 92 cd /home/web2py 93 bzr update 102 94 }}} 103 95 To update to a specific revision, do the following with nnnn replaced by the revision you want. 104 96 {{{ 105 update_web2py nnnn 97 cd /home/web2py 98 bzr update -r nnnn 106 99 }}} 107 100 … … 109 102 You will almost certainly want the latest revision of Eden. 110 103 {{{ 111 update_eden # updates Eden to current revision 104 cd /home/web2py/applications/eden 105 bzr pull 112 106 }}} 113 107 If, for some reason, you need a specific revision, do the following with nnnn replaced by the revision you want: 114 108 {{{ 115 update_eden nnnn # updates Eden to revision nnnn 109 cd /home/web2py/applications/eden 110 bzr pull -r nnn 116 111 }}} 117 112 … … 123 118 sudo apt-get upgrade 124 119 }}} 125 126 === Web2Py shell ===127 One can get a Python command line with the Web2py and Eden environments loaded with this script (apologies for the odd name):128 {{{129 import_eden130 }}}131 This executes the {{{python web2py.py ...}}} command shown previously.132 120 133 121 === Eclipse === … … 147 135 === Tools === 148 136 149 Several useful tools installed:137 Several useful tools have been installed: 150 138 * Bazaar (bzr) -- revision control system used on Launchpad, where Sahana eden sources are hosted. 151 139 * Firefox with Firebug for examining what is sent to the browser, and viewing HTTP messages sent to and from the browser. 152 140 * Eclipse with PyDev for editing and debugging Python code. 153 141 * Scripts for updating the Eden code and other tools. 154 * iPython -- a fancier Python command line than the standard. 142 * iPython -- a fancier Python command line than the standard. (Note not everyone prefers this.) 155 143 * irssi 156 144 157 145 == Notes on using Linux (mainly for non-Linux users) == 158 159 146 160 147 === File locations === … … 177 164 }}} 178 165 179 180 181 166 ----- 182 167