Changes between Version 4 and Version 5 of InstallationGuidelines/VirtualMachine
- Timestamp:
- 11/06/11 14:31:13 (13 years ago)
Legend:
- Unmodified
- Added
- Removed
- Modified
-
InstallationGuidelines/VirtualMachine
v4 v5 50 50 51 51 === Security and accounts === 52 ''root'' password is set through a dialog box on first boot.52 The ''root'' password is set through a dialog box on first boot. 53 53 54 The user named ''dev'' should have it's password set from the command line, when first boot is complete, withthe command:54 The development environment is owned by the ''dev'' account. When first boot is complete, change its password too: Start a terminal window (from the accessories menu), and enter the command: 55 55 {{{ 56 56 passwd dev 57 57 }}} 58 58 59 You should then reboot & use the GUI to login as the user 'dev'.59 Then reboot and use the GUI to log in as user ''dev''. 60 60 61 Note: There is no practical reason to log in in as ''root''.62 If one needs root privileges, ''dev'' has sudo privileges. In a terminal window, to execute one command or a pipeline of commands as root:61 Note: There is no practical reason to log in in as ''root''. 62 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: 63 63 {{{ 64 64 sudo command-to-execute-as-root 65 65 }}} 66 This will prompt for a password if sudo hasn't been run recently -- it is asking for the ''dev'' password.66 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. 67 67 68 To change passwords after first boot :log in as ''dev'', start a terminal window, and enter the following commands:68 To change passwords after first boot, log in as ''dev'', start a terminal window, and enter the following commands: 69 69 {{{ 70 70 sudo passwd root #change root password … … 74 74 The Web2py administration password is set when Web2py is started. For starting Web2py from the command line: 75 75 {{{ 76 /home/dev/web2py.py -a xxx-i 127.0.0.1 -p 8076 /home/dev/web2py.py -a admin -i 127.0.0.1 -p 80 77 77 }}} 78 Replace {{{xxx}}} with the password you want.78 That will set the administration password to "admin". When Web2py is started from Eclipse, it uses a command that is set when Eclipse is configured -- that will be covered later. 79 79 80 80 Although it's usually good to get security updates for the operating system and applications, updating may lead to incompatibilities with other software, and has been known to render the system unusable. So do the following only if you know there is a security issue, and not when you're in the middle of something critical.[[br]] … … 89 89 90 90 === Scripts === 91 /usr/local/bin contains three helpful scripts. To run them, start LXTerminal (in the accessories menu) and simply enter the commands as demonstratedbelow. They are in all users' paths, so may be executed from any working directory.91 /usr/local/bin contains three helpful scripts. To run them, start a terminal window and enter the commands below. They are in all users' paths, so may be executed from any working directory. 92 92 ==== Update web2py ==== 93 93 Enter the command with or without a revision number, as demonstrated below: