meta data for this page
  •  

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

Both sides previous revision Previous revision
Next revision
Previous revision
maemo:getting_started [2011/08/17 12:18]
japskua
maemo:getting_started [2011/08/18 13:43] (current)
japskua [Esbox Explained]
Line 4: Line 4:
  
 ===== GETTING STARTED - FROM 0 to 100 ===== ===== GETTING STARTED - FROM 0 to 100 =====
- 
  
 ==== Creating a Python Project ==== ==== Creating a Python Project ====
Line 51: Line 50:
  
 And after some more magic, KAZING! You have the project visible (and if you're lucky, it's even a working one :-P) And after some more magic, KAZING! You have the project visible (and if you're lucky, it's even a working one :-P)
 +
 +==== Esbox Explained ====
 +This is self-explanatory. No need for explaining. Try and see for youself :-P
 +
 +
  
 ==== Running the Project in the Emulator ==== ==== Running the Project in the Emulator ====
  
 +When you start the application with Run As -> Pythom Maemo Local Application you probably get the following screen
 +
 +{{:maemo:emulator1.png|Launch Maemo Emulator?}}
 +
 +Just click yes and it should start your emulator. If you did have X86 selected as the exection environment, everything should go just fine and you should see the following result:
 +
 +{{:maemo:emulator2.png|Hello World on Emulator}}
 +
 +Unless you just got a blank screen, you are trying to run the project under ARMEL settings. Change the run configuration to X86 and try again.
 +
 +===== Running the Project in a Real Machine =====
 +
 +==== Doing the Preconfiguration (one-time only!) ====
 +
 +
 +Here are the instructions on how run your project  on the real physical n900. Note that before this, you have to have switched the project run settings to ARMEL in order to run the code on the device.
 +
 +{{:maemo:remote1.png|Starting SSH Shell}}
 +
 +Select the Remote Systems tab -> Maemo Device (USB) -> SSH shells and right click. Select Connect... from the right-click menu.
 +
 +{{:maemo:remote2.png|Password dialog}}
 +
 +After this you will be queried for the password and username. The details are the following:
 +  * Username: user
 +  * password: lut
 +And I suggest saving the info so you don't have to give it again.
 +
 +{{:maemo:remote3.png|RSA Keys}}
 +
 +If this is the first run, you will be asked to accept the RSA keys. Just choose yes here.
 +
 +{{:maemo:remote4.png|Password required - again}}
 +
 +And in this final screen just input the same information as in the previous password dialog. Remember settings and voilá! You should have SSH connection working.
 +
 +**After this just Run the project as a Remote Project and it should run in the real machine. Enjoy! ;-)**
 +
 +===== Changing Run Settings =====
 +
 +Here is the instructions on changing the Run Settings. This is needed to switch between Local Emulator and Remote Real Device.
 +
 +Right click your Project folder in Esbox and choose Preferences from the right-click menu. After this you should see the following picture
 +
 +{{:maemo:changing_run.png|Changing Running settings}}
 +
 +Here you need to double click the wanted Interpreter (either X86 or ARMEL). The wanted interpreter should change to bold font.
 +
 +ARMEL = Real Device
 +X86 = Virtual Device
 +
 +
 +==== Running the Project Remotely ====
 +
 +To run the project remotely, you need to first change to the correct interpreter from the project settings (ARMEL is for Remote). 
  
-{{:maemo:emulator1.png|}}+After this, right click the main python file you want to run and select Run As -> Maemo Remote Application. **If you don't see option for Remote Application, you have not changed the Interperter to ARMEL**.
  
-{{:maemo:emulator2.png|}}+Now, when running remotely, you should see the following:
  
-{{:maemo:esbox_explained.png|}}+{{:maemo:remote_exec1.png|Configuring Python Interpreter}}
  
 +Just click okay here and things should go just fine. Unless the great Cthulhu decides otherwise.
  
-==== Running the Project in a Real Machine ====+{{:maemo:remote_exec2.png|Download Methods to Use}}
  
 +Here you have to choose the Copy Program (SSH) options. The other one should not even work and just give you bunch of errors. So please, don't choose that :-D
 +Now click okay and you get the following dialog:
  
-{{:maemo:remote1.png|}}+{{:maemo:remote_exec3.png|Selecting the Target}}
  
-{{:maemo:remote2.png|}}+Choose the right remote connection you are using. The correct answer here might be USB. Or it might not be? Who knows, but you. However, if you ARE indeed use the usb cable, then USB is your best choice. However, feel free to try Bluetooth or a tin hat. As you like.
  
-{{:maemo:remote3.png|}}+{{:maemo:remote_exec4.png|Password required}}
  
-{{:maemo:remote4.png|}}+just put the same stuff as before hereuser & lut and your soul will be transferred to Nokia in a blink of an eye. Enjoy!