Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > PocketBook

Notices

Reply
 
Thread Tools Search this Thread
Old 12-15-2011, 12:45 PM   #1
jbaach
Connoisseur
jbaach can self-interpret dreams as they happen.jbaach can self-interpret dreams as they happen.jbaach can self-interpret dreams as they happen.jbaach can self-interpret dreams as they happen.jbaach can self-interpret dreams as they happen.jbaach can self-interpret dreams as they happen.jbaach can self-interpret dreams as they happen.jbaach can self-interpret dreams as they happen.jbaach can self-interpret dreams as they happen.jbaach can self-interpret dreams as they happen.jbaach can self-interpret dreams as they happen.
 
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
$
The python.tgz needs to be unpacked, and the contained python folder should be moved to /mnt/ext1/applications.

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()
Oh, I am getting quite exited, given that the qemu image (did I mention that I am really grateful for that?) allows us to compile lots of nice libraries (e.g. poppler) :-))

Btw, I am using 2.1.2 rc6

Last edited by jbaach; 12-15-2011 at 01:03 PM. Reason: added firmware version; testserver
jbaach is offline   Reply With Quote
Old 12-15-2011, 06:06 PM   #2
rkomar
Wizard
rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.
 
Posts: 2,992
Karma: 18346231
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.
rkomar is offline   Reply With Quote
Advert
Old 12-15-2011, 06:10 PM   #3
rkomar
Wizard
rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.
 
Posts: 2,992
Karma: 18346231
Join Date: Oct 2010
Location: Sudbury, ON, Canada
Device: PRS-505, PB 902, PRS-T1, PB 623, PB 840, PB 633
Quote:
Originally Posted by jbaach View Post
Btw, I am using 2.1.2 rc6
Does that mean that you can get root access with the latest firmware release?
rkomar is offline   Reply With Quote
Old 12-15-2011, 07:57 PM   #4
jbaach
Connoisseur
jbaach can self-interpret dreams as they happen.jbaach can self-interpret dreams as they happen.jbaach can self-interpret dreams as they happen.jbaach can self-interpret dreams as they happen.jbaach can self-interpret dreams as they happen.jbaach can self-interpret dreams as they happen.jbaach can self-interpret dreams as they happen.jbaach can self-interpret dreams as they happen.jbaach can self-interpret dreams as they happen.jbaach can self-interpret dreams as they happen.jbaach can self-interpret dreams as they happen.
 
Posts: 80
Karma: 20837
Join Date: Aug 2011
Device: prs 505, pocketbook 903, onyx boox m92
Quote:
Originally Posted by rkomar View Post
Nice work! This can really open up the field of applications on the devices
I agree - thats why I am exited. Also, I just had to test it - python runs also on the boox m92 (see https://www.mobileread.com/forums/sho...11&postcount=1). Cross platform on device scripting (and web interfaces), here I/we come.

Quote:
Originally Posted by rkomar View Post
Does that mean that you can get root access with the latest firmware release?
One doesn't need root. The whole python setup runs from a directory in /mnt/ext1/applications/python, under the 'user' user.
jbaach is offline   Reply With Quote
Old 12-15-2011, 08:12 PM   #5
rkomar
Wizard
rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.rkomar ought to be getting tired of karma fortunes by now.
 
Posts: 2,992
Karma: 18346231
Join Date: Oct 2010
Location: Sudbury, ON, Canada
Device: PRS-505, PB 902, PRS-T1, PB 623, PB 840, PB 633
Quote:
Originally Posted by jbaach View Post
One doesn't need root. The whole python setup runs from a directory in /mnt/ext1/applications/python, under the 'user' user.
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.
rkomar is offline   Reply With Quote
Advert
Reply


Forum Jump

Similar Threads
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


All times are GMT -4. The time now is 06:04 AM.


MobileRead.com is a privately owned, operated and funded community.