View Single Post
Old 07-06-2016, 05:32 PM   #16
HerbD
Junior Member
HerbD began at the beginning.
 
Posts: 8
Karma: 10
Join Date: Jun 2014
Device: Kobo Glo
First Step: Install WebPortal mod

As a first step I installed the WebPortal mod as suggested by frostschutz. The installation and access from the Kobo locally worked just fine, but I had a lot of trouble to configure the mod for access from a PC.
When trying to call the Webportal from a PC I always got a HTTP/403 (forbidden) error message. I searched around a little bit in the mod and soon found the httpd.conf file in the mnt\onboard\.addons\webportal\ to be the reason of the problem. In this file only localhost (127.0.0.0) is granted access, no access from a remote host is allowed
The snippet in the httpd.conf file:
# 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
As you can see all A: sections are commented out, so even if you use one of those IP configs in your WLAN you will get the 403 error.
I first tried to change those settings directly on the Kobo by simply editing the files in the .addons/webportal directory, but this obviously would need a restart of the web portal.
My second try was to open the mod .tgz file with 7zip under windows (I don't have a linux machine at hand at the moment) and then reinstall it, but this seems to mess up the file permissions and with the modified .tgz file the mod did not work at all.
My third try was to edit the mod on my Mac. The tar tool is part of the system there and although I had to overcome some troubles here too (files and directories starting with a . are hidden on the Mac...) that finally worked.
The part of the httpd.conf file looks like that now:
# 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.1.0/24
Another point: I thought that I would have to enter the Kobo IP followed by /webportal (eg. http://192.168.1.19/webportal), but you have to omit the /webportal and simply use http://192.168.1.19
Ok, hopefully this description to configure the webportal mod is helpful for someone else.
My next step would be to build a cgi script that enables a page turn triggered from an external host. I neither have cgi nor linux event system knowledge, so this could be a tough one. Any suggestions or help appreciated.

Still a long way to go, but I'm quite optimistic to find a nice solution. But without the webportal of frostschutz the way would definitely be too long, so many thanks to him for his contributions and sharing his knowledge!
HerbD is offline   Reply With Quote