| 65 | | Note: There is no practical reason to log in in as ''root''. |
| 66 | | If one needs root privileges, ''dev'' has sudo privileges. In a terminal window, to execute one command or a pipeline of commands with root privileges: |
| 67 | | {{{ |
| 68 | | sudo command-to-execute-as-root |
| 69 | | }}} |
| 70 | | This will prompt for a password if sudo hasn't been run recently -- it is asking for the current user's password -- here, that's the ''dev'' password. |
| 71 | | |
| 72 | | To change passwords after first boot, log in as ''dev'', start a terminal window, and enter the following commands: |
| 73 | | {{{ |
| 74 | | sudo passwd root #change root password |
| 75 | | passwd #change dev password |
| 76 | | }}} |
| 77 | | |
| 78 | | Try starting Web2py from the command line: |
| 79 | | {{{ |
| 80 | | python /home/web2py/web2py.py |
| 81 | | }}} |
| 82 | | That will bring up a window in which you can enter an administration password for Web2py. |
| 83 | | (When Web2py is started from Eclipse, it uses a command that is set when Eclipse is configured -- that will be covered later.) |
| 84 | | |
| 85 | | === File locations === |
| 86 | | Web2py is located in /home/web2py. Eden is located in /home/web2py/applications/eden. Eclipse and PyDev are preconfigured with this information. |
| 139 | | Procedure for making a new virtual machine image: |
| | 113 | The development environment is configured to launch [http://lxde.org LXDE], a lightweight desktop environment after the first boot. |
| | 114 | |
| | 115 | === Tools === |
| | 116 | |
| | 117 | Several useful tools installed: |
| | 118 | * Bazaar (bzr) -- revision control system used on Launchpad, where Sahana eden sources are hosted. |
| | 119 | * Firefox with Firebug for examining what is sent to the browser, and viewing HTTP messages sent to and from the browser. |
| | 120 | * Eclipse with PyDev for editing and debugging Python code. |
| | 121 | * Scripts for updating the Eden code and other tools. |
| | 122 | * iPython -- a fancier Python command line than the standard. |
| | 123 | * irssi |
| | 124 | |
| | 125 | == Notes on using Linux (mainly for non-Linux users) == |
| | 126 | |
| | 127 | |
| | 128 | === File locations === |
| | 129 | Web2py is located in /home/web2py. Eden is located in /home/web2py/applications/eden. Eclipse and PyDev are preconfigured with this information. |
| | 130 | |
| | 131 | === The root account === |
| | 132 | |
| | 133 | The ''root'' account is the privileged user on Linux, but you don't need to log in as root to perform privileged tasks like installing software. You can act as root without knowing the root password with the {{{sudo}}} command -- the ''dev'' account has the privilege to |
| | 134 | use {{{sudo}}}. |
| | 135 | In a terminal window, to execute a command with root privileges: |
| | 136 | {{{ |
| | 137 | sudo command-to-execute-as-root |
| | 138 | }}} |
| | 139 | This will prompt for a password if {{{sudo}}} hasn't been run recently -- it is asking for the current user's password -- here, that's the ''dev'' password. |
| | 140 | |
| | 141 | To change passwords after first boot, log in as ''dev'', start a terminal window, and enter the following commands: |
| | 142 | {{{ |
| | 143 | sudo passwd root #change root password |
| | 144 | passwd #change dev password |
| | 145 | }}} |
| | 146 | |
| | 147 | |
| | 148 | |
| | 149 | ----- |
| | 150 | |
| | 151 | == Procedure for making a new virtual machine image == |
| | 152 | |