01-13-2011, 01:45 PM | #1 |
Addict
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! |
01-13-2011, 04:47 PM | #2 |
Wizard
Posts: 2,824
Karma: 5843878
Join Date: Oct 2010
Location: UK
Device: Pocketbook Pro 903, (beloved Pocketbook 360 RIP), Kobo Mini, Kobo Aura
|
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?
|
Advert | |
|
01-13-2011, 05:52 PM | #3 | |
Addict
Posts: 315
Karma: 6448
Join Date: Nov 2010
Device: 903
|
Quote:
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. |
|
01-13-2011, 07:49 PM | #4 |
Wizard
Posts: 2,986
Karma: 18343081
Join Date: Oct 2010
Location: Sudbury, ON, Canada
Device: PRS-505, PB 902, PRS-T1, PB 623, PB 840, PB 633
|
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.
|
01-14-2011, 02:58 AM | #5 |
Zealot
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 03:16 AM. |
Advert | |
|
01-14-2011, 06:49 AM | #6 |
Wizard
Posts: 2,824
Karma: 5843878
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
|
03-15-2011, 06:38 AM | #7 |
Zealot
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 |
04-19-2012, 12:15 PM | #9 |
Member
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”. |
08-08-2020, 09:56 AM | #10 |
Zealot
Posts: 142
Karma: 669192
Join Date: Nov 2013
Device: Kindle 4.1.1 no touch
|
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Remote shell auf 60x/90x | wongdong | PocketBook | 7 | 01-12-2011 12:25 PM |
Logo und Bluetooth (60x/90x) | wongdong | PocketBook | 1 | 01-09-2011 06:37 AM |
Fragen zum 60x/90x | darthvader | PocketBook | 41 | 12-08-2010 10:03 AM |
Can't get shell access | MarkRPenn | iRex | 11 | 10-26-2007 06:58 PM |
Shell Access ? | grayfox | iRex | 6 | 10-14-2007 04:56 PM |