06-26-2018, 09:46 AM | #16 | |
Linux User
Posts: 2,279
Karma: 6123806
Join Date: Sep 2010
Location: Heidelberg, Germany
Device: none
|
Quote:
This WebPortal mod already does that local network hack (refered to as intranet wifi in posts above), but it's still set to the old URL. You can edit it yourself, add www.kobo.com to vhosts.conf and put that buildinfo.xml file into the webportal dir next to ncsi.txt that was used before. If they're not checking anything else, the same trick should still work. (Change of vhosts.conf might require a reboot.) Last edited by frostschutz; 06-26-2018 at 09:52 AM. |
|
06-26-2018, 10:09 AM | #17 | |
Grand Sorcerer
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
|
Quote:
|
|
Advert | |
|
06-26-2018, 12:20 PM | #18 |
Linux User
Posts: 2,279
Karma: 6123806
Join Date: Sep 2010
Location: Heidelberg, Germany
Device: none
|
It would be a problem if they checked HTTP response headers or something. Or if they use HTTPS instead of regular HTTP and expect a valid certificate. At some point you just have to patch.
|
10-23-2018, 05:48 AM | #19 |
Enthusiast
Posts: 34
Karma: 10
Join Date: Oct 2018
Device: kobo aura h2o
|
Application node ref on kobo h20
Hello i installation webportal on a kobo H20 for make a wifi dysplay for marine application openplotter if i want to see a web page on intranet créatif with m'y raspberry pi node red serveur i have blank page do you know if it s possible to make this Can you hello me thinks a lot
|
04-30-2019, 11:52 AM | #20 |
Member
Posts: 12
Karma: 10
Join Date: Apr 2019
Device: Kobo Aura second edition
|
I tried running on the latest firmware version of Kobo Aura second gen, the script starts but i could not get anything to show on http://webportal/
Uninstallation worked as intended. Will maybe try again later and then instead of going to http://webportal/ i will try 127.0.0.1, did not try that (not shure if its suposed to work that way). |
Advert | |
|
04-30-2019, 12:02 PM | #21 |
Member
Posts: 12
Karma: 10
Join Date: Apr 2019
Device: Kobo Aura second edition
|
On what firmware version is this suposed to work? (specifically for Kobo Aura second gen)
|
04-30-2019, 02:17 PM | #22 |
Linux User
Posts: 2,279
Karma: 6123806
Join Date: Sep 2010
Location: Heidelberg, Germany
Device: none
|
It still works on my Aura H2O running 4.8 firmware. It should work in both older and newer firmwares.
However, it is a very old mod ( ported over from my iriver Story HD which I haven't used in ages ). It does not have some of the resiliency of my other mods, for example, when booting, it blindly waits 10 seconds for /mnt/onboard to appear, otherwise it fails. But if that was your problem then uninstallation would not have worked either. |
05-03-2019, 01:17 AM | #23 |
Member
Posts: 12
Karma: 10
Join Date: Apr 2019
Device: Kobo Aura second edition
|
I'm using KFMon, maybe that is conflicting somehow?
If I wanted to start the service manually either by typing the commands or using a script with KFMon, what would I need to do? I am guessing that there is a file that routes the service to http://webportal would it be possible to just access it on localhost? |
05-03-2019, 01:20 AM | #24 |
Member
Posts: 12
Karma: 10
Join Date: Apr 2019
Device: Kobo Aura second edition
|
BTW, is it possible to store cookies in the browser? All cookies I write are lost if I restart the browser
|
05-06-2019, 04:25 PM | #25 | |
Linux User
Posts: 2,279
Karma: 6123806
Join Date: Sep 2010
Location: Heidelberg, Germany
Device: none
|
well, if there was another mod that ran a webserver on port 80, that would conflict (but you'd know cause you'd get a reply of that other webserver then, yes?). unfortunately there
currently is no setting to make webportal run on a different port instead. Quote:
you can just use http://127.0.0.1 (on the kobo) or http//ip.of.the.kobo (as shown in settings) although you'll have to edit .addons/webportal/httpd.conf to allow http access over wifi/LAN and reboot ... |
|
05-06-2019, 04:26 PM | #26 |
Linux User
Posts: 2,279
Karma: 6123806
Join Date: Sep 2010
Location: Heidelberg, Germany
Device: none
|
|
02-11-2024, 07:29 AM | #27 | |
Junior Member
Posts: 1
Karma: 10
Join Date: Feb 2024
Device: Kobo Forma
|
Hi how do i acces it from my pc?
Quote:
Code:
# busybox httpd.conf # Documentation: http://git.busybox.net/busybox/tree/networking/httpd.c # webportal home (you may use a different location for customizations) H:/mnt/onboard/.addons/webportal # allow localhost (the Kobo browser) A:127.0.0.0/8 # allow LAN (to access from PC - only enable in networks you trust) A:10.0.0.0/8 A:172.16.0.0/12 A:192.168.0.0/24 |
|
03-02-2024, 04:04 AM | #28 |
Junior Member
Posts: 8
Karma: 10000
Join Date: Nov 2022
Device: kobo nia
|
Hi, I have successfully installed it, but the intranet WiFi is not working. I have already uncommented a line in .webportal/vhosts.conf, but nothing has changed. Am I doing something wrong, or is it no longer functional?
|
03-05-2024, 04:29 PM | #29 |
Groupie
Posts: 185
Karma: 146236
Join Date: Oct 2022
Device: Kobo Clara HD
|
***
I guess frostschutz is no longer supporting it. I did manage to get uploads working if it is of help to anyone. Uploads gave me a "seg error" so I tried rebuilding httpd_preload.so and multipart_pipe in /usr/local/WebPortal/ . $ source ~/koxtoolchain/refs/x-compile.sh kobo env bare (e.g. see https://www.mobileread.com/forums/sh...16&postcount=4) iafonov/multipart-parser-c https://github.com/iafonov/multipart-parser-c $ wget https://github.com/iafonov/multipart...ads/master.zip $ mv master.zip multipart-parser-c-master.zip $ unzip multipart-parser-c-master.zip $ cd multipart-parser-c-master/ $ nano -l Makefile Code:
1 CFLAGS?=-std=c89 -ansi -pedantic -O4 -Wall -fPIC 2 CC = arm-kobo-linux-gnueabihf-gcc 3 AR = arm-kobo-linux-gnueabihf-ar 4 default: multipart_parser.o 5 6 multipart_parser.o: multipart_parser.c multipart_parser.h 7 8 solib: multipart_parser.o 9 $(CC) -shared -Wl,-soname,libmultipart.so -o libmultipart.so multipart_parser.o 10 11 static: multipart_parser.o 12 $(AR) rcs libmultipart_parser.a multipart_parser.o 13 14 clean: 15 rm -f *.o *.so *.a $ ls -l -rw-r--r-- 13258 libmultipart_parser.a -rw-r--r-- 1353 multipart_parser.h cd .. *** $ source ~/koxtoolchain/refs/x-compile.sh kobo env bare frostschutz/Kobo https://github.com/frostschutz/Kobo $ wget https://github.com/frostschutz/Kobo/...ads/master.zip $ mv master.zip frostschutz-master.zip $ unzip frostschutz-master.zip $ cd Kobo-master/WebPortal/ $ cd usr/local/WebPortal/ $ cp ../../../../../multipart-parser-c-master/libmultipart_parser.a . $ cp ../../../../../multipart-parser-c-master/multipart_parser.h . $ arm-kobo-linux-gnueabihf-gcc -Wall -O2 -s -fPIC -shared -ldl httpd_preload.c -o httpd_preload.so $ arm-kobo-linux-gnueabihf-gcc -Wall -O2 -s -o multipart_pipe multipart_pipe.c libmultipart_parser.a $ ls -l -rwxr-xr-x 5392 httpd_preload.so -rwxr-xr-x 9672 multipart_pipe On your kobo, replace the httpd_preload.so multipart_pipe and in /usr/local/WebPortal/ with the above versions. Edit /mnt/onboard/.addons/webportal/httpd.conf to allow access to your cellphone, e.g.: # allow LAN (to access from PC - only enable in networks you trust) A:192.168.43.1/24 If that doesn't work, try commenting out the line (insecure): # disallow everyone else # D:* (Have to restart the server,and wait a few seconds.) From a ssh shelll to the kobo run: # LD_PRELOAD="/usr/local/WebPortal/httpd_preload.so" httpd -f -c /mnt/onboard/.addons/w ebportal/httpd.conf From your cellphone, browse to the kobo webportal, e.g. http://192.168.43.5/ Downloads (by clicking on the kobo file) and Uploads (by browsing to the cellphone file) should work from the File Manager. Append a nice gif animation to the welcome page: $ nano -l /mnt/onboard/.addons/webportal/index.html Code:
... <p><img SRC="sample.gif" ALT="sample"></p> ... A gif animation appears on the welcome page: *** I commented out /etc/udev/rules.d/webportal.rules # KERNEL=="loop0", RUN+="/usr/local/WebPortal/webportal.sh" because it isn't guaranteed to start at boot, and may not even be secure to always start anyway, if you are using relaxed access rules like in httpd.conf above. So I just made a NickelMenu entry like: menu_item :main :WebPortal :cmd_spawn :quiet:/usr/local/WebPortal/webportal.sh chain_success :dbg_toast :Started WebPortal chain_failure :dbg_toast :Error menu_item :main :Stop WebPortal :cmd_spawn :quiet:usr/bin/pkill httpd && /bin/rm -R /tmp/WebPortal/ && /bin/rm /tmp/webportal_hosts chain_success :dbg_toast :Stopped WebPortal chain_failure :dbg_toast :Error (You have to wait a few seconds for it to start.) * To run the portal directly from NickelMenu you can add this entry: menu_item :main :Run WebPortal :nickel_browser :modal :http://webportal/ (As the README states, it "won't work if no wifi network is available, since the Kobo refuses to start the webbrowser". However, if just WiFi is on. without even connecting to a hotspot, elinks in an fbpad terminal will still run WebPortal - just have to hit Ctrl-R on the fbkeyboard/oskansi keyboard to refresh the note.) *** A few mods... Set permissions: $ nano /mnt/onboard/.addons/webportal/httpd.conf Code:
... # allow USB and cell connection A:192.168.2.1 A:192.168.43. # disallow everyone else D:* ... Remove 10-second delay if you decide to start only from NickelMenu: $ nano -l /usr/local/WebPortal/webportal.sh Code:
... 13 # sleep 10 ... Correct mobileread link and add link to a gif: $ nano /mnt/onboard/.addons/webportal/index.html Code:
<!DOCTYPE html PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN"> <html> <head> <title>Kobo Web Portal Mod</title> <meta http-equiv="content-type" content="text/html; charset=utf-8"> </head> <body style="font-size: 2em; -webkit-text-size-adjust: none; text-align: center; align: center;" onload="showOriginalLocation();"> <h1>Web Portal</h1> <p><a style="text-decoration: none;" href="http://www.google.com">Google Search</a></p> <p><a style="text-decoration: none;" href="http://en.m.wikipedia.org">Wikipedia</a></p> <p><a style="text-decoration: none;" href="http://pda.leo.org">LEO Dictionary</a></p> <p><a style="text-decoration: none;" href="https://www.mobileread.com/forums/forumdisplay.php?f=247">Mobileread</a></p> <p><a href="cgi-bin/notes">Notes</a></p> <p><a href="cgi-bin/servicemenu">Service Menu</a></p> <p><a href="cgi-bin/filemanager">File Manager</a></p> <p><a href="anim.html">anim.gif</a></p> </body> </html> Code:
<html> <img SRC="anim.gif" ALT="anim"> </html> Correct error "notes: line 1: syntax error: unterminated quoted string": $ nano -l /mnt/onboard/.addons/webportal/cgi-bin/notes Code:
... 35 value="`echo "$FIELD" | cut -s -d '=' -f 2-`" ... Correct error "servicemenu: line 1: syntax error: unterminated quoted string": $ nano -l /mnt/onboard/.addons/webportal/cgi-bin/servicemenu Code:
... 53 value="`echo "$FIELD" | cut -s -d '=' -f 2-`" ... *** Last edited by elinkser; 03-09-2024 at 07:52 AM. Reason: mods,elinks |
|
Similar Threads | ||||
Thread | Thread Starter | Forum | Replies | Last Post |
Touch End notes and Kobo Touch | AlexBell | Kobo Reader | 3 | 05-19-2014 05:27 AM |
Story HD Mod: WebPortal | frostschutz | iRiver Story | 31 | 05-31-2013 07:25 AM |
Webportal Mod not running | asklepios | iRiver Story | 15 | 05-12-2013 07:22 AM |
Touch Notes on the Kobo Touch | Trisman | Kobo Reader | 4 | 10-03-2011 04:34 PM |
Kobo Firmware Release Notes? | Beethoven | Kobo Reader | 3 | 11-05-2010 10:38 AM |