![]() |
#1 |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 80
Karma: 20837
Join Date: Aug 2011
Device: prs 505, pocketbook 903, onyx boox m92
|
Python on pocketbook
Using Lonetechs qemu image (thanks soo much for that) I played a bit around - compiling python. Strangely enough copying the results to the pocketbook showed first signs of success (using the greatly useful rsh from review, thx):
Code:
joerg@mint:~$ nc -l 9999 /bin/sh: can't access tty; job control turned off ~ ~ BusyBox v1.16.1 (2010-10-11 18:29:44 EEST) built-in shell (ash) Enter 'help' for a list of built-in commands. ~ $ cd /mnt/ext1/applications/python $ ls bin include lib share $ echo "print 'hello world!'" > test.py $ cat test.py print 'hello world!' $ ./bin/python test.py hello world! $ echo 'print 1+1' > test2.py $ ./bin/python test2.py 2 $ I used "./configure --prefix=/mnt/ext1/applications/python --disable-shared" to compile it. Later on I will try to compile a new version with readline, sqlite etc. I hope that this thing really works :-). Edit: a very quick test shows that a webserver on the pocketbook works as well: testserver.py: Code:
import SimpleHTTPServer import SocketServer PORT = 8000 Handler = SimpleHTTPServer.SimpleHTTPRequestHandler httpd = SocketServer.TCPServer(("", PORT), Handler) print "serving at port", PORT httpd.serve_forever() Btw, I am using 2.1.2 rc6 Last edited by jbaach; 12-15-2011 at 01:03 PM. Reason: added firmware version; testserver |
![]() |
![]() |
![]() |
#2 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,042
Karma: 18821071
Join Date: Oct 2010
Location: Sudbury, ON, Canada
Device: PRS-505, PB 902, PRS-T1, PB 623, PB 840, PB 633
|
Nice work! This can really open up the field of applications on the devices. Karma for you.
![]() (oops! the karma will have to wait. "You must spread some Reputation around before giving it to jbaach again") :P Last edited by rkomar; 12-15-2011 at 06:09 PM. |
![]() |
![]() |
Advert | |
|
![]() |
#3 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,042
Karma: 18821071
Join Date: Oct 2010
Location: Sudbury, ON, Canada
Device: PRS-505, PB 902, PRS-T1, PB 623, PB 840, PB 633
|
|
![]() |
![]() |
![]() |
#4 | |
Connoisseur
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 80
Karma: 20837
Join Date: Aug 2011
Device: prs 505, pocketbook 903, onyx boox m92
|
Quote:
One doesn't need root. The whole python setup runs from a directory in /mnt/ext1/applications/python, under the 'user' user. |
|
![]() |
![]() |
![]() |
#5 |
Wizard
![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() ![]() Posts: 3,042
Karma: 18821071
Join Date: Oct 2010
Location: Sudbury, ON, Canada
Device: PRS-505, PB 902, PRS-T1, PB 623, PB 840, PB 633
|
Sorry, I was getting mixed up between the "rsh.app" and "get_root/telnet" methods of getting a shell on the device, and thought that maybe the latest firmware versions were rootable again. I see now that "rsh.app" doesn't give you root privileges.
|
![]() |
![]() |
Advert | |
|
![]() |
|
![]() |
||||
Thread | Thread Starter | Forum | Replies | Last Post |
What is python | The Terminator | General Discussions | 20 | 01-21-2011 12:58 PM |
Python 2.7 | DiapDealer | Calibre | 4 | 12-17-2010 11:19 AM |
Python error! | didiyy | Calibre | 6 | 09-24-2010 02:05 AM |
using python with windows xp | tuufbiz1 | Kindle Formats | 10 | 05-05-2009 11:53 PM |
Python 2.5 or 2.6? | itimpi | Calibre | 5 | 01-19-2009 12:48 PM |