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-19-2012, 05:20 PM   #46
avg_user
Member
avg_user began at the beginning.
 
Posts: 22
Karma: 10
Join Date: Jan 2011
Device: Pocketbook 903
I'm not sure if I understand everything correctly but when I'll have some free time I'll definitely try this solution and will report back. It sounds cool, that's all I can say.
avg_user is offline   Reply With Quote
Old 06-23-2012, 06:10 PM   #47
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 thought I'd screw around with this today, and found out that running netagent to connect to the network always pops up a dialog. So, it's not a good way to do the connection for something that runs in the background and connects multiple times. Maybe some program written against the SDK might work better (unless the functions there that connect to the net also pop up a dialog each time).
rkomar is offline   Reply With Quote
Old 06-30-2012, 05:49 PM   #48
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
So, I finally decided to upgrade to the latest firmware (which was hard, since it means giving up root access). I now see that you can't even scp/sftp to the device. It seems that the account it tries to log in as has changed from reader to sreader. So, to get it working, you have to edit the file /mnt/ext1/applications/pb_sshd/etc/ssh/sshd_config and change the following line:

Code:
AllowUsers reader
to:

Code:
AllowUsers reader sreader
You also need to use sreader as the login name:

Code:
ssh -p 1124 sreader@<IP-address>
or

Code:
scp -P 1124 mypdf.txt sreader@<IP-address>:/mnt/ext2/
I'll update the README and config file in the uploaded package in a while. If you edit the file by hand, make sure your editor doesn't add any extra characters to the end (specifically, any carriage returns).

Edit: updated package available in the first message in this thread.

Last edited by rkomar; 06-30-2012 at 06:14 PM.
rkomar is offline   Reply With Quote
Old 08-03-2013, 05:27 PM   #49
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: 103
Karma: 28670
Join Date: Dec 2011
Location: Ludwigshafen, Germany
Device: PocketBook 623 Touch Lux, PocketBook 912 Pro (selled)
Confirm working on PB 623 (Touch Lux)

Hi again,

I can confirm that this works on PB623 (Lux Touch) - which is a really exciting device.

I used the newly created pb_sshd.zip of rkomar from the first thread!

I could then
  • create a ssh connection in nautilus with port 1124 and user "sreader" which gives me a secure and easy way to mount the device
  • in the shell I have to use the "-T" parameter to be able to "ssh" to the device thereby using user "sreader"

From commandline:
Code:
ssh -p 1124 -T sreader@ip_of_pocketbook "echo $(pwd);uname -r"
... if you don't add the "echo $(pwd);uname -r" you'll see "nothing" at the prompt ;-)

I am very happy, that everything is working.

Greets and many thanks
Axel

Last edited by apos; 01-16-2014 at 04:18 PM. Reason: added ssh commandline
apos is offline   Reply With Quote
Old 08-03-2013, 08:41 PM   #50
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
It's nice to hear that others are still finding the sshd stuff useful. I still use it for copying files to and from the device. I may use the ssh shell if the daemon is already running and I just need to do something quickly. Otherwise, I've been using the utelnetd daemon for login sessions because it has a much better behaved terminal. You get a prompt, command completion, history and editing, and even vi works nicely. It's much better if you need to do complicated things in the shell. At least that's true on my 902; I don't know if they've fixed the permissions on /dev/ptmx and added /dev/pts to /etc/fstab on the newest devices or not.
rkomar is offline   Reply With Quote
Old 10-14-2013, 12:55 PM   #51
KaiT
Junior Member
KaiT began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Oct 2013
Device: Pocketbook Touch Lux (623
Works great!!!

Hi

it works great on my Pocketbook Touck Lux too, thank you very much!!!

I didn't know anything about SSH and SFTP, but it works fine with the README. I use it under Windows with "Swish": therefore i had to convert the keys which i made with the device (create-keys) with puttygen and there was an warning, but it works anyway.

Edit: It would be really cool if the Application had a gui to switch the daemon on, viewing the daemons status and probably the ip address and the Port, but i think that's too much work

Greets and thanks
KaiT

PS: Sri vor mi bet english, i'm german

Last edited by KaiT; 10-14-2013 at 12:58 PM.
KaiT is offline   Reply With Quote
Old 10-14-2013, 05:41 PM   #52
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
Quote:
Originally Posted by KaiT View Post
Edit: It would be really cool if the Application had a gui to switch the daemon on, viewing the daemons status and probably the ip address and the Port, but i think that's too much work

...

PS: Sri vor mi bet english, i'm german
I'm not very keen on having something take over the display while the daemon is running, since I often use it to upload and test other programs while it's running. On my 902, the green LED always stays on when the daemon is running, so I use that as my indicator. I don't know if the new devices have a similar LED. It probably wouldn't be hard to provide such a script, though, using the sh_ivtool program. I'll look into it sometime this week.

And, I think your English is quite good. If you hadn't mentioned that you were German, I would never have guessed that you weren't a native English speaker.
rkomar is offline   Reply With Quote
Old 10-20-2013, 03:43 PM   #53
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
For those who want to see what IP address and port that sshd is listening to on the device, I modified the startup script to pop up a dialog showing that information. For this to work, you have to download and install the tool used for generating the pop up from here: http://www3.telus.net/rkomar/sh_ivtool/. It should be copied to the system/bin/ folder, so that it matches the location given in the script. Get the attached zip file as well, and unzip it in the applications/ folder to overwrite the current version of the sshd startup script.

I didn't do anything about displaying the status of the program. As I mentioned in my earlier post, I don't want to see something constantly being displayed while the program is running. It's also not something that I think I can easily do.

If this looks to be popular, I'll update the package in the first post with this new script.
Attached Files
File Type: zip sshd_start.zip (816 Bytes, 59 views)
rkomar is offline   Reply With Quote
Old 11-02-2013, 06:12 AM   #54
KaiT
Junior Member
KaiT began at the beginning.
 
Posts: 2
Karma: 10
Join Date: Oct 2013
Device: Pocketbook Touch Lux (623
Hi
thank you for your work rkomar.
I'm back from my holiday now and will test the new script in the next days.
Greets
KaiT

PS: thank you for the praise about my english
KaiT is offline   Reply With Quote
Old 06-06-2014, 02:06 AM   #55
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 uploaded the version with the pop up dialog that displays the IP address and port number when sshd is started. It is disabled by default. To get it to work, install the sh_ivtool.app utility to /mnt/ext1/system/bin/, and then uncomment the line in /mnt/ext1/applications/sshd_start.app that starts with "#SH_IVTOOL=..." (uncomment it by deleting the "#" character). sh_ivtool.app can be found in the thread in the PocketBook Developers forum.

Last edited by rkomar; 06-06-2014 at 03:50 AM.
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 02:15 PM.


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