| | 1 | = Android Development On ORBIT = |
| | 2 | |
| | 3 | == 1. Setup computer == |
| | 4 | |
| | 5 | The ssh connection will use [http://help.unc.edu/830 X11 forwarding] to display programs on your computer that are running on a remote serve (in this case, an ORBIT node.) |
| | 6 | |
| | 7 | If you are using Linux, ssh and the X window manager are included, so you can skip this section. |
| | 8 | |
| | 9 | If you are using Windows, install [http://sourceforge.net/projects/xming/files/Xming/6.9.0.31/ Xming] and download [http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html PuTTY]. |
| | 10 | |
| | 11 | == 2. Reserve timeslot == |
| | 12 | |
| | 13 | Go to the [https://www.orbit-lab.org/schedule/ scheduler] and reserve a timeslot |
| | 14 | |
| | 15 | == 3. SSH to console == |
| | 16 | |
| | 17 | If you are using Linux, connect using ssh with the X11 forwarding flag |
| | 18 | {{{ |
| | 19 | ssh -X [username]@console.[grid].orbit-lab.org |
| | 20 | }}} |
| | 21 | |
| | 22 | If you are using Windows, first start the Xming window system. |
| | 23 | Open PuTTY and turn on X11 Forwarding in Connection > SSH > X11 |
| | 24 | Now connect to console.[grid].orbit-lab.org through PuTTY. |
| | 25 | |
| | 26 | == 4. Load android image == |
| | 27 | |
| | 28 | Now you need to load the android development image on a node to work on. You can use |
| | 29 | {{{ |
| | 30 | omf stat |
| | 31 | }}} |
| | 32 | to see which nodes are available. To turn a node on or off, use |
| | 33 | {{{ |
| | 34 | omf tell command [x,y] |
| | 35 | }}} |
| | 36 | where command is on, offh (hard power), or offs (soft power) and [x,y] is the node. |
| | 37 | |
| | 38 | Choose a node to image, preferably a quad core node that can handle Eclipse remotely, and load android2.ndz onto it. |
| | 39 | {{{ |
| | 40 | omf load [x,y] android2.ndz |
| | 41 | }}} |
| | 42 | where [x,y] is the node. |
| | 43 | |
| | 44 | It will take several minutes, and omf will turn the node off when it is complete. |
| | 45 | |
| | 46 | Turn the node back on and ssh into it with X11 forwarding |
| | 47 | {{{ |
| | 48 | ssh -X root@nodex-y |
| | 49 | }}} |
| | 50 | Now you are in the android development image! |
| | 51 | |
| | 52 | == 5. Start Working == |
| | 53 | |
| | 54 | You can start eclipse from the command line using |
| | 55 | {{{ |
| | 56 | eclipse & |
| | 57 | }}} |
| | 58 | A new Eclipse window that is running on the node should be on your screen! |
| | 59 | |
| | 60 | The & lets you continue to use the same terminal for more commands. Otherwise you would have to close Eclipse to do anything else. |
| | 61 | The image has Java 6, Eclipse, Android SDK, and an ARM cross-compiler. |