3 | | == Creating User Accounts == |
4 | | GENI-in-a-Box creates an account for user 'alice' on the virtual machines created for your slice. You can replace this account with one of your choosing or add additional accounts. The following steps show how you can add an account of user 'chris': |
5 | | 1. Make the following changes to the file {{{~/.gcf/omni_config}}}: |
6 | | 1. Look for the string {{{users =}}} in the file {{{~/.gcf/omni_config}}} and add Chris to the list of users: |
7 | | {{{ |
8 | | users = Alice, Chris |
9 | | }}} |
| 3 | == 1 Creating additional user accounts == |
| 4 | GENI-in-a-Box creates an account for user 'alice' on the virtual machines created for your slice. You can add additional accounts on these virtual machines; the following steps show how you can add an account for user 'chris': |
| 5 | 1. Create a public-private key-pair for Chris using the command {{{ssh-keygen -t rsa}}}. The public key created ({{{chris.pub}}}) must be moved to the directory {{{~/.gcf}}} and the private key to {{{~/.ssh}}}. In the example below we used an empty passphrase i.e. hit <return> on the prompt for a passphrase. |
| 6 | {{{ |
| 7 | $ ssh-keygen -t rsa |
| 8 | Generating public/private rsa key pair. |
| 9 | Enter file in which to save the key (/home/gibuser/.ssh/id_rsa): chris |
| 10 | Enter passphrase (empty for no passphrase): |
| 11 | Enter same passphrase again: |
| 12 | Your identification has been saved in pat. |
| 13 | Your public key has been saved in chris.pub. |
| 14 | The key fingerprint is: |
| 15 | 26:1a:48:91:bb:94:82:b3:83:ea:4e:e2:f7:95:00:08 gibuser@GiB |
| 16 | The key's randomart image is: |
| 17 | +--[ RSA 2048]----+ |
| 18 | |E .. | |
| 19 | |. o. | |
| 20 | |...+ | |
| 21 | |+.+.. | |
| 22 | |.=..... S | |
| 23 | |+ . o.o. | |
| 24 | |oo . o | |
| 25 | |= . . | |
| 26 | |o+. .. | |
| 27 | +-----------------+ |
| 28 | $ mv chris.pub ~/.gcf |
| 29 | $ mv chris ~/.ssh |
| 30 | $ |
| 31 | }}} |
11 | | 2. Look for the section that starts with {{{gib_ch}}}. Add to that section the lines: |
12 | | {{{ |
13 | | cert=~/.gcf/chris-cert.pem |
14 | | key=~/.gcf/chris-key.pem |
15 | | }}} |
16 | | |
17 | | 3. Look for the section {{{# Define users here.}}} and add the following lines to that section: |
18 | | {{{ |
19 | | [Chris] |
20 | | urn=urn:publicid:IDN+geni.net:gpo:gcf+user+chris |
21 | | keys=~/.gcf/chris.pub |
22 | | }}} |
23 | | |
24 | | 2. Make the following changes to the file {{{~/.gcf/gcf-config}}}:jj |
25 | | |
| 33 | 2. Make the following changes to the file {{{~/.gcf/omni_config}}}: |
| 34 | 1. Look for the string {{{users =}}} in the file {{{~/.gcf/omni_config}}} and add Chris to the list of users: |
| 35 | {{{ |
| 36 | users = Alice, Chris |
| 37 | }}} |
| 38 | 2. Look for the section {{{# Define users here.}}} and add the following lines to that section: |
| 39 | {{{ |
| 40 | [Chris] |
| 41 | urn=urn:publicid:IDN+geni.net:gpo:gcf+user+chris |
| 42 | keys=~/.gcf/chris.pub |
| 43 | }}} |
31 | | == Suspending the GENI-in-a-Box Virtual Machine == |
| 48 | == 2. Copying files to/from GENI-in-a-Box and your computer == |
| 49 | '''GENI-in-a-Box Ubuntu flavor''': You can use !VirtualBox shared folders to copy files to/from GENI-in-a-Box. See http://www.virtualbox.org/manual/ch04.html#sharedfolders for instructions. |
| 50 | |
| 51 | '''GENI-in-a-Box Fedora flavor''': At this time !VirtualBox shared folders do not work with GENI-in-a-Box. If you are running on Mac OS or Linux, you can scp from Geni-in-a-Box to your computer to copy files to and from GENI-in-a-Box and your computer. If you are on Windows you will need to install and run the ssh daemon on your computer before you can use scp to it from GENI-in-a-Box. |
| 52 | |
| 53 | == 3. Continuing your GENI-in-a-Box session across shutdowns of your computer == |
| 54 | To continue your GENI-in-a-Box session across shutdowns of your computer, you must ''hibernate'' your GENI-in-a-Box virtual machine before shutting down your computer. |
| 55 | |
| 56 | To hibernate a virtual machine running Fedora, |
| 57 | |