08-22-2008, 01:24 AM | #16 | |||||
GuteBook/Mobi2IMP Creator
Posts: 2,958
Karma: 2530691
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
|
Quote:
Quote:
Quote:
I also noticed that the reader's 'bookshelf page' was very weak in it's support of html pages so I would probably rule that out to serve up static html to its 'bookshelf' requests. Quote:
Quote:
Last edited by nrapallo; 08-22-2008 at 01:29 AM. |
|||||
08-22-2008, 10:21 AM | #17 | |
Connoisseur
Posts: 81
Karma: 480
Join Date: Dec 2004
|
Quote:
Yes, for Librarian I meant the proxy server + local HTTP server. If you already served static HTML files to the reader and it rendered it ok, then you've done all I did before. If a link in that file pointing to google doesn't work from your reader, I'd say it has something to do with your proxy settings or Linux box (I've worked on XP) or some kind of network related issue (DNS, URL redirection, etc). Try using direct links with full IP addresses (that don't require DNS requests). |
|
Advert | |
|
08-22-2008, 12:28 PM | #18 | |
GuteBook/Mobi2IMP Creator
Posts: 2,958
Karma: 2530691
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
|
Quote:
I think there could be one or more of the following working against me getting this to work: - ETI may have 'fixed/blocked' that ability to surf the net from 2005 to now with recent firmware updates - your java code actually 'processed' the requests by manipulating the info sent whereas the Linreb program merely responds with the requested data. No .asp code is being executed by Linreb when the HTTP requests come in from the reader. - the ability to 'surf the net' is there and I'm too 'blind' to see it. I will continue experimenting with the Linreb code... |
|
08-22-2008, 05:13 PM | #19 |
Connoisseur
Posts: 81
Karma: 480
Join Date: Dec 2004
|
From the moment you can use Linreb with your reader, the ability to surf the net is there. You have to remember that what Linreb does is redirect all traffic to ebooktechnologies servers to the local server listening on localhost. In tech terms: it puts an entry in your HOSTS file on your windows machine that translates the ebooktechonologies.com to 127.0.0.1 and runs a web server listening on localhost.
My java code did nothing magic or on the fly, just serve a static html file. You say you can do the same, so you have pretty much everything done. Am I correct? The reader shows your custom static html files, rigth? |
08-22-2008, 06:40 PM | #20 | ||
GuteBook/Mobi2IMP Creator
Posts: 2,958
Karma: 2530691
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
|
Quote:
Quote:
The Linreb program doesn't do anything but "serve up" static html pages in the 'content' directory. No external html pages are fetched from the internet and placed there. No HOSTS file is 'changed', but all HTTP requests from the reader are RESPONDED to by the proxy program, not the ETI servers. Again, there is no 'processing' done by the Linreb program other than 'give up' what it sees in the local directories. Have you tried running the program? It does work with the EBW1150 conntected via the usb cable and with the HTTP Proxy server set up according to the GEBLibrarian-way. Presumably you know this already i.e. 192.168.0.X where X is your machine's IP last octal. I think the Linreb program doesn't use the 127.0.0.1 method directly, but instead relies on the EBW1150 reader to have the HTTP proxy set in Settings as well as use the usb for proxy HTTP. Maybe this is the difference in making it work and not? Last edited by nrapallo; 08-22-2008 at 06:43 PM. |
||
Advert | |
|
08-25-2008, 12:35 PM | #21 |
Connoisseur
Posts: 81
Karma: 480
Join Date: Dec 2004
|
OK, I've downloaded and run LinReb (nice software)
I think I now know what your problem is: It's Linreb's lack of proxy feature. This happens because the reader is set to use an HTTP proxy (which should run in a local IP). In this case, ALL HTTP requests are handled by Linreb which runs in that specific IPort. So, if the requests are made to those known ETI servers (hardcoded in the readers), Linreb responds. If they are made to different domains (e.g. google.com) Linreb doesn't do anything because it's coded in that way; and because it's also not coded to act as a proxy, it doesn't even forward those requests to the required server onn the internet. There are two "workarounds for this" 1- Use an HTTP proxy in the reader that points to a separate proxy server that handles web requests AND forwards the ones to ETI server to LINREB. 2- Don't set use proxy settings on the reader, run Linreb in port 80, and change the HOSTS files to forward ETI domain to Linreb in local IP. This is the approach that I coded before (By the way... I've found one old version of it). Does this help you clear all out? Good luck! |
08-25-2008, 01:30 PM | #22 | |
GuteBook/Mobi2IMP Creator
Posts: 2,958
Karma: 2530691
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
|
Quote:
After I got that 'surf the internet' feature "activated", I then wanted to modify Linreb to "get" .imp ebooks from our uploaded ebooks forum here directly ala the Mobipocket Download Guide. You have given me a great headstart with your findings and hopefully this can evolve into something useful. I am going to try this new (and hopefully correct) way as soon as possible. Thanks again; you have been most helpful! |
|
08-25-2008, 08:05 PM | #23 |
Connoisseur
Posts: 81
Karma: 480
Join Date: Dec 2004
|
I think you don't really need my code but if you want it you can get it from here
That program runs a webserver listening on port 80. When it is run, it loads the HOSTS file in memory and adds some entries. It listens for requests and serves the files (sample.html should be named index.html). When you close it, it puts the HOSTS files back to original state. That's not the approach used by Linreb since it doesn't run on port 80 (which needs some privileges). What you really need is to add some code in Linreb to let it handle requests for domains other than ebooksystem.net and forward the responses back to the reader. In other words, always act as a proxy except when trying to connect to ETI servers. If you don't want to add code to Linreb (maybe for maintenance reasons) you should run a separate proxy that directs all traffic to ebooksystem.net to Linreb's port. (I tried to do that but I could find a way to do a port redirection.) One last thing: I think It'll be a lot of work parsing all the Uploaded book forum section and presenting them to the reader. |
08-25-2008, 08:36 PM | #24 | |
Sir Penguin of Edinburgh
Posts: 12,375
Karma: 23555235
Join Date: Apr 2007
Location: DC Metro area
Device: Shake a stick plus 1
|
Quote:
But it's not worth Alex's time to make one for the Ebw-1150 until we know that it will work. Also, he will need two things. What is the largest file size that the 1150 can handle comfortably? Is there a Linux command line tool for generating IMP ebooks? (got a link?) |
|
08-25-2008, 08:54 PM | #25 | |||||
GuteBook/Mobi2IMP Creator
Posts: 2,958
Karma: 2530691
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
|
Quote:
BTW, quick (stupid) question, did you get it to work on the EBW1150 as you remembered it? Quote:
Quote:
Quote:
Quote:
Time will tell how successful this becomes but for me it is enough to be a catalyst to make this happen. You have been a great part so far as was the original author of Linreb. Besides I like tweaking/hacking (and maintaining) programs written by others; that's what I do! In the spirit of sharing, I do want to see this come to fruition. Anybody else want to help out? Please? Ok, pretty please! Speak now or forever (you know the drill) ..... |
|||||
08-25-2008, 09:17 PM | #26 | ||
GuteBook/Mobi2IMP Creator
Posts: 2,958
Karma: 2530691
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
|
Quote:
I mentioned this in my previous post, without seeing your repsonse here. Good to see you are 'already in the know'. We know we need this 'proof-of-concept' first, and we are working on it. Quote:
The EBW1150 maxes out its internal memory when many links/styles/images/etc. exist in the ebook. Size and complexity seem to go hand-in-hand. I'll guess that that size limit is under 10 MB, but over 5MB. The REB1200 can surpass that by a lot. It may max out at 30MB and can surely handle most ebooks over 10MB. It has more available memory onboard and its all available for data. Why do you need to generate those .imp in linux? They already have been uploaded to the IMP ebooks upload forum (and actually are already in that 'mobi' directory used by the Mobipocket Download Guide ). If you want to generate .imp ebooks 'on-the-fly' from .html files, then my perl scripts for manipulating .imp ebooks will do the trick in linux. It's a sticky in the Fictionwise forum. Whatever you need most definitely is available here already; one way or another I've made sure of that!. Ask me for anything you need to do. My original idea was to use an 'IMP Download Guide' that Alex could format in html for our use and then 'wget' or 'get in perl using LWP' the requested file using Linreb. For a great reference, see Web Basics with LWP - Sample Recipes for Common Tasks by Sean M. Burke - author of Perl & LWP (August 20, 2002). This should be easy enough to set up, but requires Alex's help formatting the listing and the EBW1150 in sending out those HTTP requests to the proxy server. We seem to be close, but are not there yet! Stay tuned... Last edited by nrapallo; 08-25-2008 at 11:50 PM. Reason: added link to great web reference by Sean M. Burke |
||
08-25-2008, 09:50 PM | #27 |
Sir Penguin of Edinburgh
Posts: 12,375
Karma: 23555235
Join Date: Apr 2007
Location: DC Metro area
Device: Shake a stick plus 1
|
I was under the impression that the download guide itself would need to be in IMP to be on the 1150.
The best way to make the guide is to automate the process. You click on a link, a script runs and you are offered a file to download. This is how the Mobipocket Download Guide is set up. And in order to execute the script we would first need the command line tool. BTW, the Mobi Download Guide is still under 2MB, so the new guide has no worries about size problems. |
08-25-2008, 10:56 PM | #28 | ||
GuteBook/Mobi2IMP Creator
Posts: 2,958
Karma: 2530691
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
|
Quote:
Quote:
I was thinking that Alex could prepare a html listing that could be displayed on the EBW1150 with Linreb and then have the Linreb program intercept the requested .imp ebook, download it "on the fly" and present it back to the EBW1150 by "serving up" the .imp in the local directory. This would be a two-step process. GEBLibrarian does something similar when it allows Categories to be changed by the EBW1150. If the .imp ebook is the 'IMP Download Guide', then it would be Huge and require the hardware reader to "do the surfing". That's just not possible (I think) and therefore differs slightly to your 'Mobipocket Download Guide' implementation. Do you see it working better differently? Any insights would be appreciated. Call it brainstorming across reader platforms! Mind you, you almost cover them all, by yourself... Last edited by nrapallo; 08-27-2008 at 02:28 AM. |
||
08-26-2008, 12:22 AM | #29 |
Sir Penguin of Edinburgh
Posts: 12,375
Karma: 23555235
Join Date: Apr 2007
Location: DC Metro area
Device: Shake a stick plus 1
|
I think you should go try the Mobi Download Guide. Then you'll understand why I want to do something similar with the 1150 (if it is technically possible).
I did understand that Linreb was required. It's just that I just got By Schism Rent Asunder so you're not getting my full attention. |
08-26-2008, 12:49 AM | #30 | |
GuteBook/Mobi2IMP Creator
Posts: 2,958
Karma: 2530691
Join Date: Dec 2007
Location: Toronto, Canada
Device: REB1200 EBW1150 Device: T1 NSTG iLiad_v2 NC Device: Asus_TF Next1 WPDN
|
Quote:
I think instead I would use the html file that was used to create the Mobipocket Download Guide. So BEFORE converting it to .prc (or .imp) Linreb would get from here that html file (with descriptions and links to all .imp ebooks) and send the html file to be displayed on the EBW1150. Then the user would navigate the pages on the reader and when they saw an ebook of interest, they would just click the link in that html file. That would request the .imp file from the internet but as the ETI servers don't accomodate such requests, the Linreb program would do so; but in a sneaky way. It would intercept that requested .imp file and then go out and get it and place it in the 'shelf' directory on the local machine. There would then be a message displayed on the EBW1150 that should ask the user to request a new Bookshelf (by pressing the Online Bookshelf icon). The Linreb program would then look at the 'shelf' directory and see that newly downloaded ebook and send the updated booklist to the EBW1150. Once the user sees that requested .imp in the Online Bookshelf, they would click it again and have it transferred in. And repeat! A lot of these terms are specific to the EBW1150 way of transferring ebooks and may not yet be intuitive for you. It's Ok if you're not 100% involved in this project, since we all get distracted with other issues every so often... Thanks for helping me 'crystalize' what is needed here to make this work! You're a great sound board to bounce (written) thoughts off of! |
|
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Putting stuff on my EBW-1150 | Bleumoon_Selene | Fictionwise eBookwise | 3 | 02-14-2010 09:54 AM |
Can anyone suggest a hard case for the eBw 1150? | the7gerbers | Fictionwise eBookwise | 8 | 02-19-2009 06:31 PM |
clock hack for EBW 1150??? | the7gerbers | Fictionwise eBookwise | 1 | 02-18-2009 11:32 AM |
New Ebw-1150 - looking for suggestions on utilities patches etc etc | askyn | Fictionwise eBookwise | 8 | 09-14-2008 10:29 AM |
New USB driver for ebw 1150 | kgian | Fictionwise eBookwise | 0 | 12-06-2007 01:32 PM |