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 12-26-2011, 06:10 PM   #16
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,977
Karma: 18343081
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 apos View Post
...Short question: is this version binary compatible? It seams to be, because a log-file is created, so the daemon seams to be running:
Code:
/mnt/ext1/applications/pb_sshd/usr/sbin/sshd: /lib/libcrypto.so.0.9.8: no version information available (required by /mnt/ext1/applications/pb_sshd/usr/sbin/sshd)
Any clues?

THX in advance
Axel
Try editing sshd_start.app (it's a shell script) and replace "-q" with "-d" in the sshd command. You should get much more information in the log file as to why the login failed. Note that this puts sshd into debug mode, which means it runs only once per session and isn't backgrounded.

As to whether the files are binary compatible, I don't know but I hope so. It's strange that poterm won't work for you either. Did you get a recent version? Check out the rsh application for getting shell access if this doesn't work. It doesn't require anything but a shell script, and should work as long as nc is available on the 912. Look in the sticky section of the forum for paola's collection of links for the Pro series of devices.

I hope you can get this going. I've been doing some development recently for my 902, and scp has been so much better than using the USB cable for uploading new app versions and test books.
rkomar is offline   Reply With Quote
Old 12-27-2011, 09:09 AM   #17
apos
Zealot
apos solves Fermat’s last theorem while doing the crossword.apos solves Fermat’s last theorem while doing the crossword.apos solves Fermat’s last theorem while doing the crossword.apos solves Fermat’s last theorem while doing the crossword.apos solves Fermat’s last theorem while doing the crossword.apos solves Fermat’s last theorem while doing the crossword.apos solves Fermat’s last theorem while doing the crossword.apos solves Fermat’s last theorem while doing the crossword.apos solves Fermat’s last theorem while doing the crossword.apos solves Fermat’s last theorem while doing the crossword.apos solves Fermat’s last theorem while doing the crossword.
 
apos's Avatar
 
Posts: 126
Karma: 28670
Join Date: Dec 2011
Location: Ludwigshafen, Germany
Device: 623 Touch Lux, 912 Pro (selled), Surfpad 4 L, Waiting for CAD-Reader !
Thank you rKomar for the answer,

after my post I managed to get the rsh connection to the device working.

However: the server is running - and therefore binary compatible.

When I will succeed - and I will - I'll post it here.

Greets.
apos is offline   Reply With Quote
Advert
Old 12-27-2011, 09:39 AM   #18
apos
Zealot
apos solves Fermat’s last theorem while doing the crossword.apos solves Fermat’s last theorem while doing the crossword.apos solves Fermat’s last theorem while doing the crossword.apos solves Fermat’s last theorem while doing the crossword.apos solves Fermat’s last theorem while doing the crossword.apos solves Fermat’s last theorem while doing the crossword.apos solves Fermat’s last theorem while doing the crossword.apos solves Fermat’s last theorem while doing the crossword.apos solves Fermat’s last theorem while doing the crossword.apos solves Fermat’s last theorem while doing the crossword.apos solves Fermat’s last theorem while doing the crossword.
 
apos's Avatar
 
Posts: 126
Karma: 28670
Join Date: Dec 2011
Location: Ludwigshafen, Germany
Device: 623 Touch Lux, 912 Pro (selled), Surfpad 4 L, Waiting for CAD-Reader !
Now I got things working for the first time (to be updated) under Ubuntu 11.10. So this works with the PB 912 Pro.

Every information was contained in the README.txt of rKomars app. But my first approach was to copy the content of the keys into the authorized_keys2 file. That did not work. Probably I made a mistake somewhere ...

1. Edit the rsh-app and add the corresponding IP of your PC.
2. Copy the rsh-app you edited (filled in the IP from your PC) and the sshd-app to the applications directory of the pocketbook
3. Unmount Pocketbook
4. Start a terminal on your PC and start
Code:
nc -l 9999
5. Start the rsh-app on the pocketbook. Then on the PC the nc-command shows the login to the PB.
6. On the terminal at PC:
Code:
cd /mnt/ext1/applications/pb_sshd
./make-keys.sh
exit
7. Reconnect the device via USB
8. Move (not copy !!!) the id_rsa and id_rsa.pub from the directory pb_sshd to your ~/.ssh/-directory on the PC. This is not that good, because it could overwrite your local rsa-keys. But this is no problem, because you should normally use the more secure dsa-keys for all other connections, which are name id_dsa and id_dsa_pub
9. Unmount Pocketbook
10. Alter the permissions of the private key on your PC(!):
Code:
chmod 600 ~/.ssh/id_rsa
10. Start the sshd-app
11. Connect from the PC-terminal with:
Code:
ssh -p 1124 reader@IP_OF_POCKETBOOK "sh"
(it is very important to add the "sh" at the end since you will get an error "PTY allocation request failed on channel 0", if you do not specify a shell.

Thats a quick solution. I'll post, when I will make more efforts enhancing this Thanks rKomar for the app.

This enabled me to create a shortcut for the nautilus file-manager (should work on all unix-systems) - see attachment. On windows you could use Win-SCP. To be able to use "pocketbook" for the client name, you have to add a line in your "/etc/hosts" (for windows, this is the lmhosts-file, somewhere under the c:\windows\system\...\etc-directory ):
Code:
IP_OF_YOUR_POCKETBOOK pocketbook
Performance:
I tested with Bart-Stuff (under Wine). You can easily access mounted filesystems under Gnome - either within the filemanager nautilus or you create a symbolic link to the hidden directory ~/.gvfs:
Code:
ln -s .gvfs GVFS
Now you can choose the mounted pocketbook directory within Bart-Stuff to test the speed

Write: 426 KB/s
Read: 708 KB/s
Tested with a PocketBook 912 Pro, Lenovo T61 g-Wifi-Card (54 Mbit/s), and a Cisco N-Router

This is much much more than with bluetooth!

Further troubleshooting:
You can start the connection to the pocketbook e.g. with:
Code:
ssh -vv -i ~/.ssh/id_rsa -p 1124 reader@pocketbook "sh"
which will give you a plenty lot of debug informations

Greets
Axel
Attached Thumbnails
Click image for larger version

Name:	SSH to Pocketbook.png
Views:	825
Size:	25.6 KB
ID:	80441  

Last edited by apos; 05-15-2016 at 03:25 PM.
apos is offline   Reply With Quote
Old 12-27-2011, 10:42 AM   #19
apos
Zealot
apos solves Fermat’s last theorem while doing the crossword.apos solves Fermat’s last theorem while doing the crossword.apos solves Fermat’s last theorem while doing the crossword.apos solves Fermat’s last theorem while doing the crossword.apos solves Fermat’s last theorem while doing the crossword.apos solves Fermat’s last theorem while doing the crossword.apos solves Fermat’s last theorem while doing the crossword.apos solves Fermat’s last theorem while doing the crossword.apos solves Fermat’s last theorem while doing the crossword.apos solves Fermat’s last theorem while doing the crossword.apos solves Fermat’s last theorem while doing the crossword.
 
apos's Avatar
 
Posts: 126
Karma: 28670
Join Date: Dec 2011
Location: Ludwigshafen, Germany
Device: 623 Touch Lux, 912 Pro (selled), Surfpad 4 L, Waiting for CAD-Reader !
@rKomar

It might be handy - especially for people with no shell skills - to automatically run the make-keys.sh skript in the sshd_start.app! So they are able to move the resulting key-files without "shell-trouble" to their ~/.ssh-folder.

Code:
[...]
./server-keygen.sh
./make-keys.sh
[...]
A user could put a file into the pb_sshd-dir, e.g. named "create-keys", which triggers the creation:

Code:
[...]
./server-keygen.sh
[ -f create-keys ] && ./make-keys.sh
rm -f create-keys
[...]
Greets
Axel

Last edited by apos; 12-27-2011 at 11:08 AM.
apos is offline   Reply With Quote
Old 12-27-2011, 03:45 PM   #20
apos
Zealot
apos solves Fermat’s last theorem while doing the crossword.apos solves Fermat’s last theorem while doing the crossword.apos solves Fermat’s last theorem while doing the crossword.apos solves Fermat’s last theorem while doing the crossword.apos solves Fermat’s last theorem while doing the crossword.apos solves Fermat’s last theorem while doing the crossword.apos solves Fermat’s last theorem while doing the crossword.apos solves Fermat’s last theorem while doing the crossword.apos solves Fermat’s last theorem while doing the crossword.apos solves Fermat’s last theorem while doing the crossword.apos solves Fermat’s last theorem while doing the crossword.
 
apos's Avatar
 
Posts: 126
Karma: 28670
Join Date: Dec 2011
Location: Ludwigshafen, Germany
Device: 623 Touch Lux, 912 Pro (selled), Surfpad 4 L, Waiting for CAD-Reader !
With 912 Pro functional PoTerm Version found (at the bottom of the site). Unfortunately no luck with getting root access.
apos is offline   Reply With Quote
Advert
Old 12-27-2011, 04:16 PM   #21
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,977
Karma: 18343081
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 apos View Post
A user could put a file into the pb_sshd-dir, e.g. named "create-keys", which triggers the creation:

Code:
[...]
./server-keygen.sh
[ -f create-keys ] && ./make-keys.sh
rm -f create-keys
[...]
I think this is a good idea. I'll add this later today, once I figure out if I can refresh previously uploaded files on this forum, or if I have to make new links.

Edit: I updated the uploaded files in the first message in this thread to include this feature.

Last edited by rkomar; 12-28-2011 at 01:01 AM.
rkomar is offline   Reply With Quote
Old 12-27-2011, 04:19 PM   #22
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,977
Karma: 18343081
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 apos View Post
With 912 Pro functional PoTerm Version found (at the bottom of the site). Unfortunately no luck with getting root access.
Which firmware version are you running? I think 2.0.6 and earlier could be rooted using get_root.app. The latest versions are still unrooted, as far as I can tell.
rkomar is offline   Reply With Quote
Old 12-28-2011, 09:37 AM   #23
apos
Zealot
apos solves Fermat’s last theorem while doing the crossword.apos solves Fermat’s last theorem while doing the crossword.apos solves Fermat’s last theorem while doing the crossword.apos solves Fermat’s last theorem while doing the crossword.apos solves Fermat’s last theorem while doing the crossword.apos solves Fermat’s last theorem while doing the crossword.apos solves Fermat’s last theorem while doing the crossword.apos solves Fermat’s last theorem while doing the crossword.apos solves Fermat’s last theorem while doing the crossword.apos solves Fermat’s last theorem while doing the crossword.apos solves Fermat’s last theorem while doing the crossword.
 
apos's Avatar
 
Posts: 126
Karma: 28670
Join Date: Dec 2011
Location: Ludwigshafen, Germany
Device: 623 Touch Lux, 912 Pro (selled), Surfpad 4 L, Waiting for CAD-Reader !
Quote:
Originally Posted by rkomar View Post
Which firmware version are you running? I think 2.0.6 and earlier could be rooted using get_root.app. The latest versions are still unrooted, as far as I can tell.
Ha! - this could be the reason: 2.1.2 - RC6. THX. Tried the get_root.app, but did not succed (also tried everything from commandline). I read about that problem and therefore didn't try furthermore. The RC6-Version speeds up the display really a lot! It is stable, as I can say after 3 days with it. The only thing: the Mp3-Player (which I never use) is not working any more.

... and a personal greeting: greets to Vancouver, visited this city some years ago and also hiked around Vancouver Island. It's one of my favourite lovely places out there - beside my own city, certainly

Last edited by apos; 12-28-2011 at 09:42 AM.
apos is offline   Reply With Quote
Old 12-28-2011, 09:02 PM   #24
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,977
Karma: 18343081
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 apos View Post
Ha! - this could be the reason: 2.1.2 - RC6. THX. Tried the get_root.app, but did not succed (also tried everything from commandline). I read about that problem and therefore didn't try furthermore. The RC6-Version speeds up the display really a lot! It is stable, as I can say after 3 days with it. The only thing: the Mp3-Player (which I never use) is not working any more.

... and a personal greeting: greets to Vancouver, visited this city some years ago and also hiked around Vancouver Island. It's one of my favourite lovely places out there - beside my own city, certainly
I rooted mine (2.0.4) and fixed it so that ssh can get a proper pty. I haven't used root since; these devices are nicely modifiable as is, and it is only the occasional setup bug that needs root to fix it. If I could get a proper pty for ssh/screen/terminal emulator,... I would upgrade to the latest firmware in a second. However, most of the recent improvements are for the touchscreen models, and there isn't a compelling reason for me to upgrade and lose my fix.

The root exploit in the older firmwares takes advantage of an obvious security hole; the netagent program was owned by root and had the suid bits set. Easy-peasy to use, and I guess also easy to fix in later firmware versions.

And greetings to you. I've never been to the island myself, but as you said, it's pretty nice around Vancouver, as well. I've also never been to Europe, so I'll take your word for it that your city is nicer. I'm sure that it is drier.
rkomar is offline   Reply With Quote
Old 01-20-2012, 02:23 PM   #25
abijah
Enthusiast
abijah plays well with othersabijah plays well with othersabijah plays well with othersabijah plays well with othersabijah plays well with othersabijah plays well with othersabijah plays well with othersabijah plays well with othersabijah plays well with othersabijah plays well with othersabijah plays well with others
 
Posts: 28
Karma: 2692
Join Date: Jul 2011
Device: kobo aura h2o
For people using windows, this tool becomes even more handy with filezilla ftp client.

After getting the pair of keys, one can import the private key to the software. And then, one just need to type ftp address, port and user name "reader". From now on, you can enjoy all the convenience.

Now I like this even more than komar's recent file downloader because I need to update files to read every now and then.
abijah is offline   Reply With Quote
Old 01-20-2012, 04:11 PM   #26
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,824
Karma: 5843878
Join Date: Oct 2010
Location: UK
Device: Pocketbook Pro 903, (beloved Pocketbook 360 RIP), Kobo Mini, Kobo Aura
abijah, if you gave me step by step instructions, I'll be forever grateful, as so far I've not been able to make it work (I've created the keys with Putty, but I cannot connect my laptop to the device remotely)
paola is offline   Reply With Quote
Old 01-20-2012, 06:39 PM   #27
abijah
Enthusiast
abijah plays well with othersabijah plays well with othersabijah plays well with othersabijah plays well with othersabijah plays well with othersabijah plays well with othersabijah plays well with othersabijah plays well with othersabijah plays well with othersabijah plays well with othersabijah plays well with others
 
Posts: 28
Karma: 2692
Join Date: Jul 2011
Device: kobo aura h2o
Quote:
if you gave me step by step instructions
Of course, Paola.

1).follow komar's instruction on how to get keys on your device:[If you don't have "poterm", connect the reader up via USB and create
a file called "create-keys" in the "pb_sshd" directory. It doesn't
matter what it contains. The next time "sshd_start.app" is run, it
will automatically run the "pb_sshd/make-keys.sh" script (and then
delete the "create-keys" file). Then you can move the "id_rsa" and
"id_rsa.pub" files from "pb_sshd" to your computer.]

2).open your Filezilla, then in the 'settings', select 'connection' and then 'sftp'. On the selected page, you can add "id_rsa" to filezilla.

3).open the 'site manager' of filezilla, create a new site. there you type host and port, choose sftp as the protocol, select normal as logon type and the user name is 'reader'.

4). run "sshd_start" on your device and then click 'connect' of filezilla.

As a matter of fact, once you add the private key to filezilla, the rest is not very different from connecting a ftp site.

I wish I could upload a picture, so I don't need to explain anything at all.

Last edited by abijah; 01-20-2012 at 06:44 PM.
abijah is offline   Reply With Quote
Old 01-22-2012, 01:53 PM   #28
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,824
Karma: 5843878
Join Date: Oct 2010
Location: UK
Device: Pocketbook Pro 903, (beloved Pocketbook 360 RIP), Kobo Mini, Kobo Aura
thank you very much - I will try and report back!
paola is offline   Reply With Quote
Old 04-19-2012, 06:43 AM   #29
Hr.stein
Member
Hr.stein began at the beginning.
 
Posts: 22
Karma: 10
Join Date: Apr 2012
Device: PB 611
Hi Thanks rkomar and all,

I can now scp file to PB or scp file back to PC, but I cannot ssh login PB?
Messege is:
Connection to 192.168.1.100 closed by remote host.
Connection to 192.168.1.100 closed.
What's the problem?
----------------
PB611 + cygwin/win7
Hr.stein is offline   Reply With Quote
Old 04-19-2012, 08:50 AM   #30
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,977
Karma: 18343081
Join Date: Oct 2010
Location: Sudbury, ON, Canada
Device: PRS-505, PB 902, PRS-T1, PB 623, PB 840, PB 633
I'm not sure what the problem is. There is a log file in the pbsshd directory that may have more detailed information in it. You can also edit the startup app (it's a text shell script) and change the line near the end of the file that starts sshd so that it runs in debug mode. I believe I left a comment there describing how to do that. That will produce much more verbose output to the log file and it should be easier to figure out what the problem is. The problem with running in debug mode is that the daemon doesn't run in the background, so it doesn't return control to the application tab. It also stops running as soon as the first connection ends. So, that's why it isn't used by default.
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
Root / Shell / Term / SSH / editor on a Kindle 2? JDShaffer Kindle Developer's Corner 2 12-13-2010 06:11 PM
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
FTP access open to new developers Alexander Turcic Announcements 2 05-05-2007 11:02 AM


All times are GMT -4. The time now is 07:36 PM.


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