240 | | You can now ssh into the hosts allocated to you and do what you need to do to get your experiment working. For example, you can install and run software. If needed, you can use the {{sudo}} command to do things that require root privileges. |
241 | | |
242 | | In the case of our experiment, the software needed (iperf) was installed by our startup script. Our startup script put the output of iperf in a file accessible from a web browser. Since our iperf client ran on node {{{pc101}}} (the node labeled 'left' in the request spec), we can use a browser to view the output of this client. Start up Firefox in a terminal on the GENI-in-a-Box virtual machine and enter the url {{{http://pc101.geni-in-a-box.net/iperf-client.log}}}. The iperf client output should appear in your browser window. |
243 | | |
244 | | You can also ssh into the node pc102 to view this file. GENI-in-a-Box comes with a user account 'alice' with private and public keys for alice installed in it. When experimenter nodes are created an account is created for alice on these nodes and alice's public key installed in the .ssh directory inside alice's home directory. You can create your own user accounts; see [wiki:GiB-tips this page] for instructions. |
245 | | |
246 | | You can ssh into node {{{pc101}}} as alice type {{{ssh -lalice pc101.geni-in-a-box.net}}} or just {{{ssh -lalice pc101}}}. The terminal session below shows the ssh'ing into {{{pc101}}}, going to the directory with the iperf log file, and viewing that file. The password for alice can be found in {{{~/.gcf/passwords}}}. |
247 | | {{{ |
248 | | $ ssh -lalice pc101 |
| 240 | You can now ssh into the hosts allocated to you and do what you need to do to get your experiment working. For example, you can install and run software. If needed, you can use the {{{sudo}}} command to do things that require root privileges. |
| 241 | |
| 242 | In the case of our experiment, the software needed (iperf) was installed by our startup script. Our startup script put the output of iperf in a file accessible from a web browser. Since our iperf server ran on node {{{pc101}}} (the node labeled 'left' in the request spec), we can use a browser to view the output of this client. Start up Firefox in a terminal on the GENI-in-a-Box virtual machine and enter the url {{{http://pc101.geni-in-a-box.net/iperf-server.log}}}. The iperf server output should appear in your browser window. You can view the iperf client output at {{{http://pc102.geni-in-a-box.net/iperf-client.log}}}. |
| 243 | |
| 244 | You can also ssh into the node pc101 or pc102 to view these log files. Your username on GENI-in-a-Box (gibuser) is given an account on the nodes allocated to your experiment and the public key for this user ({{{~/.gcf/gibuser.pub}}} is copied into gibuser's {{{.ssh}}} directory in each of these nodes. The private key for gibuser is in {{{~/.ssh/gibuser}}} and must be provided to the {{{ssh}}} command. |
| 245 | {{{ |
| 246 | $ ssh -i ~/.ssh/gibuser pc101 |