`
cloudhe
  • 浏览: 108613 次
  • 性别: Icon_minigender_1
  • 来自: 北京
社区版块
存档分类
最新评论

Easy PyMaemo developping on PC using SSH/SCP

阅读更多

Wanna develop Maemo programs in Linux without Maemo SDK? Or even in Windows?

 

Nothing is impossible if you know Python! Working on PyMaemo, all we need are:

1. N800 with python2.5-runtime.

2. A pc with wireless card (laptop), running Ubuntu or Windows.

(Using a desktop PC without wireless card will be discussed at last)

 

Case One - Using Ubuntu:

Step 1 (Setting up Ubuntu): Establish a wireless network (either AP or Ad-hoc mode). Use a static IP as you like.

 

Step 2 (Setting up N800): Access the created network from N800 and give N800 a static IP (# ifconfig wlan0 ip) within the same domain as PC's. Use ping to check whether they're successfully connected.

 

Step 3: Install python2.5 runtime on Ubuntu:

# sudo apt-get install python2.5*

 

Step 4: Start whatever an IDE (e.g., Eric) or code editor (e.g., GEditor) to write your code (python script), save it in your PC.

 

 

Step 5: Start GFTP, use "root" as username, "SCP" as protocol (password is your N800 admin password, which is "maemo" by default) to logon to N800. Then you can explore N800 as a FTP server! Copy your code from PC to N800.

 

Step 6: Run this in Ubuntu terminal to open a login terminal:

$ ssh root@N800IP

 

It will make us able to input N800 commands from pc keyboard. Commonly, we just use it to start our application on N800 quickly (use script "run-standalone.sh") instead of click the tiny screen.

 

  

Case Two - Using Windows:

Step 1 & 2: Same to case one.

Step 3: Download python2.5 runtime (sure you can get the pure Python runtime from Python official site if you do not need those GTK supports as me) from

http://www.bonifazi.eu/appunti/pygtk_windows_installer.exe

It includes: Python2.5.2, IDLE, GTK+, PyGTK, PyGObject, etc.

 

Step 4: IDLE is the ealist Python IDE around the world, which is made by the author of Python. But you may use whatever IDE as you like to write Python code in Windows. 

 

Step 5: Download WinSCP from: http://jlbc.skycn.com/down/winscp407setup.zip

It's an amazing tool with FTP-like GUI that makes N800 act as a FTP server.

Start WinSCP, input root@n800ip as host name, default "maemo" as password, and change the file protocol into "SCP". After that, "login".

WinSCP works as GFTP, but it can synchronize directories and files between N800 and PC.

 

Step 6: Download PuTTy - SSH in Windows:

http://mhsin.org/putty/files/putty.exe

Input root@n800ip as host name too, and select "SSH". Then "open".

 

All works done! Now we can write Maemo programs or run N800 tereminal commands on the PC, using no SDK any longer.

 (However, making .deb package still needs SDK.)

 

What a great language - Python!

  

 ---------------------------------------------------------------------------------------------------------------------------------

What if I got no laptop or no wireless card for my desktop? There is also a way to connect N800 to PC (only tested in Ubuntu so far):

 

Step 1 (On N800): Run following commands to turn N800 into ethernet mode (pay attention that "insmod ..." needs to be runned twice)

$ sudo gainroot
# insmod /mnt/initfs/lib/modules/2.6.21-omap1/g_ether.ko
# insmod /mnt/initfs/lib/modules/2.6.21-omap1/g_ether.ko

 

Step 2: Connect N800 to PC with usb cable, and then N800 will appear as "usb0' interface in Ubuntu. Use "ifconfig" to set ip of eth0 and usb0, which should also be in a same domain.

 

Step 3~6: Same as case one.

 

 ---------------------------------------------------------------------------------------------------------------------------------

See more about Python-Win32 all-in-one installer:

http://www.bonifazi.eu/appunti/2008/04/pygtk-all-in-one-installer.html

 

See more about WinScp:

http://www.skycn.com/soft/735.html

http://winscp.net/eng/docs/lang:chs

 

See more about PuTTy:

http://mhsin.org/putty/

分享到:
评论

相关推荐

    Game Hacking Developing Autonomous Bots for Online Games PDF下载

    完整版PDF,带自制书签,纯文字版,非扫描版,纯英文版,截至目前无翻译版。下载后直接解压,无任何密码。 Game Hacking Developing Autonomous Bots for Online Games.PDF

    developping Enterprise with pattens

    developping Enterprise with pattens

    Game Hacking Developing Autonomous Bots for Online Games 无水印pdf

    Game Hacking Developing Autonomous Bots for Online Games 英文无水印pdf pdf所有页面使用FoxitReader和PDF-XChangeViewer测试都可以打开 本资源转载自网络,如有侵权,请联系上传者或csdn删除 本资源转载自...

    GPS-data for Developping

    GPS Developping data

    Developping-Data-Product-Coursera-Project

    Coursera课程项目此应用程序已创建为开发数据产品课程的首次运行(2014 年 6 月 2 日至 7 月 1 日)的课程项目。 原始版本被标记为支持演示可以查看。 当前版本的演示可以在找到。 如果您想了解有关数据集的更多信息...

    Android代码-AndroidKTX

    Some very useful kotlin extensions for android developping! 一系列非常有用的Kotlin扩展,目标提高Android开发速度和替换所有的工具类!注意这个不是官方的AndroidKTX,部分内容借鉴了AndroidUtilCode的代码! ...

    kmeanimage.rar_K means matlab

    good code for developping appl

    grid-search

    产品概述模拟器该项目模拟给定的电子商务... npm install && npm run dev # to compile the app npm run watch # to compile the app and have an instant feedback while developping npm run hot # to allow for hot

    WTL类,用于使用WTL开发OpenGL程序

    "A-WTL-class-for-developping-OpenGL-programs-using.pdf"这个文档很可能包含了如何在WTL项目中集成OpenGL的详细教程。通常,这会涉及以下步骤: 1. **设置项目**: 首先,你需要创建一个WTL应用程序项目,确保选择...

    JDBC学习资料

    详解JDBC,如何与数据库交互数据。 1 What is JDBC? 2 The most important ...4 The step of developping a JDBC app. 5 How to handle resultset? 6 Statement ******************************************************

    shopping:模拟购物网站!

    the shopping is developping for java language! the dao implement of mybatis 、springJdbcTemplate、hibernate and jfinal ! building in maven or gradle ! cache in jedis(redis client for java)

    VF高校职工管理系统

    This aim is indispensable in for everybody pro-vide a service for more loosenning from this designing aim at throwing brick leading jade, passing developping a student of simplification score ...

Global site tag (gtag.js) - Google Analytics