Register Guidelines E-Books Search Today's Posts Mark Forums Read

Go Back   MobileRead Forums > E-Book Readers > PocketBook

Notices

Reply
 
Thread Tools Search this Thread
Old 01-13-2011, 02:45 PM   #1
review
Addict
review got an A in P-Chem.review got an A in P-Chem.review got an A in P-Chem.review got an A in P-Chem.review got an A in P-Chem.review got an A in P-Chem.review got an A in P-Chem.review got an A in P-Chem.review got an A in P-Chem.review got an A in P-Chem.review got an A in P-Chem.
 
Posts: 315
Karma: 6448
Join Date: Nov 2010
Device: 903
remote shell access on 90x,60x

In order to write and test some scripts I wanted a remote shell access on the device. Poterm is great but it takes quite some time to type in the commands. Additionally there is no pipe etc. which makes it a bit inconvenient for serious work.

So I wrote my own script which makes use of the tools ready available on the device in order to access from the PC the pocketbook. Since there seems to be a firewall running on the pocketbook needs to initiate the connection. Accordingly the script needs to know the IP address of the computer from which you want to connect from.

Yesterday I've uploaded the app in the german forum but thought that in the non-german community there might be an interest in this app as well.

Installation procedure:
1) unzip attached file
2) edit script and replace in the line "myip=192.168.0.101" the IP address with the one you want to connect from
3) copy the modified script onto the device

Running:
1) shutdown firewall of PC (or better open port 9999 of incoming connections)
2) run on PC in a terminal: nc -l 9999
3) execute the app rsh on the device.

Enjoy!
Attached Files
File Type: zip rsh.zip (463 Bytes, 623 views)
review is offline   Reply With Quote
Old 01-13-2011, 05:47 PM   #2
paola
Wizard
paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.
 
paola's Avatar
 
Posts: 2,778
Karma: 5324790
Join Date: Oct 2010
Location: UK
Device: Pocketbook Pro 903, (beloved Pocketbook 360 RIP), Kobo Mini, Kobo Aura
Quote:
Originally Posted by review View Post
In order to write and test some scripts I wanted a remote shell access on the device. Poterm is great but it takes quite some time to type in the commands. Additionally there is no pipe etc. which makes it a bit inconvenient for serious work.
Hi review, this is obviously beyond me, but just to see whtehr there is any hope that I can folow what you ar doing: this software you have uploaded means that you can run a command line on your computer, which is executed on the Pocketbook?
paola is offline   Reply With Quote
Old 01-13-2011, 06:52 PM   #3
review
Addict
review got an A in P-Chem.review got an A in P-Chem.review got an A in P-Chem.review got an A in P-Chem.review got an A in P-Chem.review got an A in P-Chem.review got an A in P-Chem.review got an A in P-Chem.review got an A in P-Chem.review got an A in P-Chem.review got an A in P-Chem.
 
Posts: 315
Karma: 6448
Join Date: Nov 2010
Device: 903
Quote:
Originally Posted by paolamanzini View Post
Hi review, this is obviously beyond me, but just to see whtehr there is any hope that I can folow what you ar doing: this software you have uploaded means that you can run a command line on your computer, which is executed on the Pocketbook?
Exactly.

and since there is a busyboy (a linux version) on the pocketbook, many commands from the linux world will directly work. E.g. df will give you the space available of each partition. Or you can download files from the internet with just typing wget http://www.google.com When I develop scripts I always run them on a remote shell in order to see if there are some deviations on busybox compared to my PC linux.
review is offline   Reply With Quote
Old 01-13-2011, 08:49 PM   #4
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: 1,743
Karma: 4368476
Join Date: Oct 2010
Location: Vancouver, BC, Canada
Device: PRS-505, PB 902, PRS-T1, PB 623
Quote:
Originally Posted by review View Post
In order to write and test some scripts I wanted a remote shell access on the device. Poterm is great but it takes quite some time to type in the commands. Additionally there is no pipe etc. which makes it a bit inconvenient for serious work.
I like poterm, but am also annoyed by the lack of important unix shell characters in the keyboard. I may have to finally buy myself a wifi capable DSL router to take advantage of this.
rkomar is offline   Reply With Quote
Old 01-14-2011, 03:58 AM   #5
LoneTech
Zealot
LoneTech knows the square root of minus one.LoneTech knows the square root of minus one.LoneTech knows the square root of minus one.LoneTech knows the square root of minus one.LoneTech knows the square root of minus one.LoneTech knows the square root of minus one.LoneTech knows the square root of minus one.LoneTech knows the square root of minus one.LoneTech knows the square root of minus one.LoneTech knows the square root of minus one.LoneTech knows the square root of minus one.
 
Posts: 135
Karma: 7767
Join Date: Oct 2010
Device: PocketBook Pro 903
Busybox is not a Linux version (Linux is only the kernel), but an implementation of many of the basic commands. It's usually used where we have little space, to replace coreutils, util-linux, fileutils and so on, most of which comes from GNU. To my knowledge, all e-ink devices run Linux, but the userspace may vary a bit.

The shortcomings of the poterm keyboard come from inkview, and I believe poterm is also pretty useless for screen oriented things like curses (less, vi, top etc). The keyboard is defined in a config file (language/keyboard/EN.kbd) which may contain multiple layouts (although I suspect it's a fixed size), so we can probably add in the missing characters.

Edit: Almost forgot, great job! And by the way, I don't think there's a firewall but busybox' version of nc (netcat) doesn't have listen mode. Somewhere there's a telnetd we can build for the pocketbook.

Last edited by LoneTech; 01-14-2011 at 04:16 AM.
LoneTech is offline   Reply With Quote
Old 01-14-2011, 07:49 AM   #6
paola
Wizard
paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.paola ought to be getting tired of karma fortunes by now.
 
paola's Avatar
 
Posts: 2,778
Karma: 5324790
Join Date: Oct 2010
Location: UK
Device: Pocketbook Pro 903, (beloved Pocketbook 360 RIP), Kobo Mini, Kobo Aura
guys, many thanks for the explanations - I'll sit heare at the window looking out for your instructions when you have some apps - so grateful there are people like you on this great forum
paola is offline   Reply With Quote
Old 03-15-2011, 07:38 AM   #7
MartinZ
Zealot
MartinZ doesn't litterMartinZ doesn't litter
 
Posts: 110
Karma: 138
Join Date: Mar 2011
Device: PB903, PB603
Hi review,

This rsh is very nice!

For the Windows guys:

You can use Chris Wysopal's Windows-portation of netcat (nc) to connect to your PocketBook:

http://pintday.org/downloads/netcat/nc11nt.zip

To use it:

-extract "nc11nt.zip" in a folder you like
-start the Windows-Commandline (cmd.exe) with "run as Administrator"
-type nc -l -p9999

Start rsh.app on your PB

now you can type in BusyBox-Commands
MartinZ is offline   Reply With Quote
Old 03-19-2011, 01:55 PM   #8
reader42
Zealot
reader42 knows what time it isreader42 knows what time it isreader42 knows what time it isreader42 knows what time it isreader42 knows what time it isreader42 knows what time it isreader42 knows what time it isreader42 knows what time it isreader42 knows what time it isreader42 knows what time it isreader42 knows what time it is
 
Posts: 117
Karma: 2097
Join Date: Feb 2010
Device: none
Quote:
Originally Posted by LoneTech View Post
Somewhere there's a telnetd we can build for the pocketbook.
More information about the telnetd can be found here.
reader42 is offline   Reply With Quote
Old 04-19-2012, 01:15 PM   #9
Hr.stein
Member
Hr.stein began at the beginning.
 
Posts: 22
Karma: 10
Join Date: Apr 2012
Device: PB 611
for windows 7 + cygwin:
nc -l -p 9999
in case you get a ERR: “local listen fuxored: INVAL”.
Hr.stein is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
Remote shell auf 60x/90x wongdong PocketBook 7 01-12-2011 01:25 PM
Logo und Bluetooth (60x/90x) wongdong PocketBook 1 01-09-2011 07:37 AM
Fragen zum 60x/90x darthvader PocketBook 41 12-08-2010 11:03 AM
Can't get shell access MarkRPenn iRex 11 10-26-2007 07:58 PM
Shell Access ? grayfox iRex 6 10-14-2007 05:56 PM


All times are GMT -4. The time now is 12:21 AM.


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