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 06-30-2012, 09:03 PM   #1
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,707
Karma: 4340374
Join Date: Oct 2010
Location: Vancouver, BC, Canada
Device: PRS-505, PB 902, PRS-T1, PB 623
utelnetd - yet another remote shell application

It bothers me that I can't get a nice shell using ssh anymore under the newest firmware versions. So I looked around, and found that @reader42 already ported the utelnetd telnet server to PocketBook devices. Very nice! Using his source code, I packaged up versions for the older 3XX and the newer Pro/360+ devices. I've also included a copy of bash in each package. Pick the right zip file for your device, and unzip the contents in /mnt/ext1/.

Instead of using the Inkview application that @reader42 provided for controlling the daemon, I used a couple of shell scripts instead (utelnetd_start.app and utelnetd_stop.app). I did this because they are smaller, platform-independent, and, most importantly, run in the background. Thus, you can do other stuff on the device while logged in via telnet (which makes it nice for debugging).

Within the Applications tab, click on utelnetd_start to start the server in the background and connect to the net, and click on utelnetd_stop to disconnect from the net and kill the server. While the server is running, you can telnet to the device via port 10000:

Code:
telnet <IP-address> 10000
You get a prompt, command history and editting, and even vi behaves nicely.

You can change the port number by editting the applications/utelnetd_start.app script. If you want to put bash somewhere else than /mnt/ext1/system/bin, then you need to rebuild utelnetd for that. Get the sources from: http://sourceforge.net/apps/mediawik...for_PocketBook. I've also uploaded the updated Makefile I used to build utelnetd. You need to change the Makefile if you want to put bash somewhere other than /mnt/ext1/system/bin/.

Thanks @reader42

Edit: I should point out that when you exit the telnet session on the PC, the terminal seems to hang until the server is killed on the device. I don't know how to fix that, so please pipe up anyone that does.

Edit1: Added /mnt/ext1/system/bin automatically to the PATH for the shell.

Edit2: Added pop up dialog that states what IP address and port it is listening to. You have to install sh_ivtool.app (found in the Developer section) and uncomment the line in applications/utelnetd_start.app that starts with "#SH_IVTOOLS=" to see the dialog.
Attached Files
File Type: zip Makefile.zip (849 Bytes, 102 views)
File Type: zip utelnetd-Pro.zip (585.7 KB, 23 views)
File Type: zip utelnetd-3XX.zip (537.1 KB, 22 views)

Last edited by rkomar; 06-05-2014 at 03:26 PM.
rkomar is offline   Reply With Quote
Old 11-01-2012, 03:56 PM   #2
readMax
Enthusiast
readMax began at the beginning.
 
Posts: 26
Karma: 10
Join Date: Oct 2012
Location: Germany
Device: Pro612
Thank you very much you guys (reader42, rkomar) - it works great!

If I had the find command available for my Pro612 now too, it would be totally awesome.

Greetings
Max
readMax is offline   Reply With Quote
Old 11-01-2012, 04:12 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: 1,707
Karma: 4340374
Join Date: Oct 2010
Location: Vancouver, BC, Canada
Device: PRS-505, PB 902, PRS-T1, PB 623
Actually, most of the utility programs in the Debian Lenny armel distribution are compatible with the recent PocketBook devices. You can pretty much copy them to the device and use them in the terminal. Some of the more complex programs may not have all of the libraries available on the device, but even in those cases you can copy the libraries over and play with LD_LIBRARY_PATH to run them. I know that find works, because that was one of the first programs I copied over myself.
rkomar is offline   Reply With Quote
Old 11-01-2012, 08:05 PM   #4
readMax
Enthusiast
readMax began at the beginning.
 
Posts: 26
Karma: 10
Join Date: Oct 2012
Location: Germany
Device: Pro612
You are absolutely right - thanks again
You just made my day.

readMax is offline   Reply With Quote
Old 06-04-2014, 07:38 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: 1,707
Karma: 4340374
Join Date: Oct 2010
Location: Vancouver, BC, Canada
Device: PRS-505, PB 902, PRS-T1, PB 623
I updated the utelnetd daemon to automatically add "/mnt/ext1/system/bin" to the PATH environmental variable.
rkomar is offline   Reply With Quote
Old 06-05-2014, 03:37 PM   #6
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,707
Karma: 4340374
Join Date: Oct 2010
Location: Vancouver, BC, Canada
Device: PRS-505, PB 902, PRS-T1, PB 623
I added a pop-up dialog that states what the IP address and port are that the daemon is listening to. For this to work, you have to install the sh_ivtool.app program to /mnt/ext1/system/bin, and uncomment the line in the applications/utelnetd_start.app script that starts with "#SH_IVTOOL=...". (uncommenting means removing the "#" character at the start of the line). The sh_ivtool program is available in a thread in the Developers section.
rkomar 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 access on 90x,60x review PocketBook 8 04-19-2012 12:15 PM
Application remote debugging X19 Kindle Developer's Corner 11 12-29-2011 03:46 AM
Application update: application not installed error Merischino Kindle Fire 4 12-01-2011 10:30 PM
Remote shell auf 60x/90x wongdong PocketBook 7 01-12-2011 12:25 PM
Accessories Remote Kumabjorn Amazon Kindle 20 07-19-2010 04:30 PM


All times are GMT -4. The time now is 02:49 PM.


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