web2py working on my iPad! :vD

176 views
Skip to first unread message

kgingeri

unread,
Feb 5, 2011, 12:39:40 AM2/5/11
to web2py-users
I have renewed interest in using web2py for simple Google gadgets and
CRUD updates to a web database, and in exploring it, wondered if I
could load and use it on my iPad. Well, sure enough, I got it going!
Very impressive!!

Procedure is:
a) jailbreak your iPad & install Cydia (a bit involved, but there's
lots of howto's on the web)
b) set your type as "developer" in Cydia (your prompted initially, -
or you may not be able to find Python, to install it
c) install unix commands - OpenSSH, wget, unzip, (vim) - via Cydia
d) install iphone/python (2.5)
e) install pTerm via iPad appstore
f) using pTerm, login to root@localhost (default pswd is "alpine" -
change it using "passwd"!!)
g) at sys prompt, use "wget http:/web2py/examples/static/
web2py_src.zip"
h) then "unzip web2py_src.zip"
i) then "cd web2py"
j) then "./web2py" ... enter a password (no gui but not prob)
k) use pTerm browser (via tapping the [...] button at upper right) to
browse to localhost:8000
l) your there, with sqlite and all! Even the editor works with the
iPad (most don't)!!

So just in case anyone else out there is a little crazy like me, this
is how it is done:

Notes:
1) Jailbreaking your iPad:
At the moment, it's still a Mac only, 'tethered' jailbreak,
meaning; to enable the jailbreak mode you have to boot
the device connected to your Mac, using redsn0w utility,
and selecting the "just boot tethered' mode - otherwise the
it will boot with jailbreaking disabled

2) pTerm does not go into background properly, so it will
kill web2py if you try to use an iPad browser instead
of the built in one - hopefully this is updated soon.

Here's some screenshots on picasa -> https://picasaweb.google.com/kgingeri/Wep2pyOnIpad?feat=directlink

Martín Mulone

unread,
Feb 5, 2011, 6:16:50 AM2/5/11
to web...@googlegroups.com
Great. 

Have to jailbreak to install python? omg, this why I hate apple things.

2011/2/5 kgingeri <kgin...@gmail.com>



--
Pablo Martín Mulone (mar...@tecnodoc.com.ar)
Paraná, Entre Ríos, Argentina (CP 3100).

My blog: http://martin.tecnodoc.com.ar
Expert4Solution Profile: http://www.experts4solutions.com/e4s/default/expert/6


Kgingeri

unread,
Feb 5, 2011, 11:25:47 AM2/5/11
to web2py-users
Yeah, afraid so Martin.

Just another update. If you use SSH Term Pro, instead of pTerm, SSH
Term Pro does support multitasking so you can start web2py and return
to another iPad browser and call up the web interface just fine. If
you turn off the iPad, you loose the ssh session.

Karl

On Feb 5, 6:16 am, Martín Mulone <mulone.mar...@gmail.com> wrote:
> Great.
>
> Have to jailbreak to install python? omg, this why I hate apple things.
>
> 2011/2/5 kgingeri <kging...@gmail.com>
> Pablo Martín Mulone (mar...@tecnodoc.com.ar)http://www.tecnodoc.com.ar/

Massimo Di Pierro

unread,
Feb 5, 2011, 11:47:59 AM2/5/11
to web2py-users

Noah McIlraith

unread,
Feb 5, 2011, 11:48:26 AM2/5/11
to web...@googlegroups.com
Wow, all that for something that can't even run in the background? It was easier installing Debian on Android to achieve the same thing (sans the cant-work-in-background-mode).

Massimo Di Pierro

unread,
Feb 5, 2011, 11:48:39 AM2/5/11
to web2py-users
Wong link...

Sorry I could not resist:

http://www.reddit.com/r/Python/comments/ffu1x/hey_apparently_web2py_runs_on_ipad/

On Feb 5, 10:25 am, Kgingeri <ging...@iteams.org> wrote:

Kgingeri

unread,
Feb 5, 2011, 12:50:57 PM2/5/11
to web2py-users
Actually it does! I created a script...

#!/bin/sh
# start--- web2py startup for background
#
web2py/web2py.py <your-admin-password.txt &

"your-admin-password.txt" is a file created to with what it says - of
course.

This puts web2py in background and even exiting the ssh terminal does
not kill it.

:v)

Christopher Steel

unread,
Feb 6, 2011, 1:49:12 AM2/6/11
to web2py-users
lol!

On Feb 5, 11:48 am, Massimo Di Pierro <massimo.dipie...@gmail.com>
wrote:
> Wong link...
>
> Sorry I could not resist:
>
> http://www.reddit.com/r/Python/comments/ffu1x/hey_apparently_web2py_r...

Jason Brower

unread,
Feb 5, 2011, 5:50:23 AM2/5/11
to web...@googlegroups.com
It is always fun to get web2py running on a small environment like a
phone or tablet.
Congrats,
Jason Brower

On 02/05/2011 07:39 AM, kgingeri wrote:
> I have renewed interest in using web2py for simple Google gadgets and
> CRUD updates to a web database, and in exploring it, wondered if I
> could load and use it on my iPad. Well, sure enough, I got it going!
> Very impressive!!
>
> Procedure is:

> a) jailbreak your iPad& install Cydia (a bit involved, but there's

Reply all
Reply to author
Forward
0 new messages