Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Kobo Reader > Kobo Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 06-30-2015, 02:50 PM   #1
frostschutz
Linux User
frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.
 
frostschutz's Avatar
 
Posts: 2,279
Karma: 6123806
Join Date: Sep 2010
Location: Heidelberg, Germany
Device: none
Kobo WebPortal / Notes / ServiceMenu

This used to be a mod for the iriver Story HD.
Old threads for sake of history:Story HD Mod: WebPortal ; Story HD Mod: Notes ; Story HD Mod: ServiceMenu.

The Kobo Web Portal is a local webserver, running on your Kobo. It has a HTML landing page with links to several sites. It can also run CGI scripts and thus provide you with browser-based apps.

To install, copy KoboRoot-WebPortal.tgz » .kobo/KoboRoot.tgz

After installation it can be reached via http://webportal/ and you can choose to "Set Page as Home" in Kobo's webbrowser settings.

Unfortunately it won't work if no wifi network is available, since the Kobo refuses to start the webbrowser. But it does come with a small hack that allows intranet wifi networks (without real internet connectivity).

To enable this hack, see .addons/webportal/vhosts.conf

After the installation you will find the following files:
  • .addons/webportal/cgi-bin/notes (sample CGI script, see below)
  • .addons/webportal/cgi-bin/servicemenu (sample CGI script, see blow)
  • .addons/webportal/httpd.conf (webserver configuration file)
  • .addons/webportal/index.html (WebPortal landing page, edit to your liking)
  • .addons/webportal/ncsi.txt (part of the intranet wifi hack)
  • .addons/webportal/vhosts.conf (vhosts configuration file, also part of the intranet wifi hack)

Note: These files will be overwritten any time you install this mod. If you customize these files, make backups! Alternatively set a different home directory in httpd.conf and make your customizations in that directory.

To uninstall, create .addons/webportal/uninstall and reboot the device. It will be renamed to .addons/webportal/uninstall-date-time and you can remove the .webportal directory yourself.

Notes


Read, write and edit notes as plain text files in your webbrowser. They will be stored in /notes/file.txt. May be useful for shopping lists or something. (From the way it looks you can tell it was originally made for another device. I've yet to learn Kobo browser oddities. Clicking the 'save' button only seems to work while the keyboard is open.)

ServiceMenu


Displays system info. Checks internal and external memory for read errors. Also has an option to format the external card. (On the iriver Story HD, this mod could also format the internal card, and delete the book database, but I've disabled it here).

FileManager


Lets you browse the Kobo's files, as well as download individual files or entire folders (as TAR). Also lets you upload files, and upload&install TAR/TGZ. In order to use this you must allow machines in your local network to access the web portal, by editing .webportal/httpd.conf. The Kobo's IP can be seen in Settings->Device Information (while Wifi is enabled).
Attached Thumbnails
Click image for larger version

Name:	webportal.jpg
Views:	2135
Size:	57.3 KB
ID:	139851   Click image for larger version

Name:	servicemenu.jpg
Views:	1772
Size:	63.5 KB
ID:	139852   Click image for larger version

Name:	notes.jpg
Views:	1725
Size:	90.0 KB
ID:	139968   Click image for larger version

Name:	filemanager.png
Views:	1742
Size:	24.4 KB
ID:	140422  
Attached Files
File Type: zip KoboRoot-WebPortal-20150910.zip (15.6 KB, 1002 views)

Last edited by frostschutz; 09-10-2015 at 05:01 PM.
frostschutz is offline   Reply With Quote
Old 07-01-2015, 03:28 AM   #2
Vauxdvihl
Junior Member
Vauxdvihl began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Jun 2015
Device: Kobo Auro H2O
Quote:
Originally Posted by frostschutz View Post
To install, copy KoboRoot-WebPortal.tgz » .kobo/KoboRoot.tgz
Many many thanks to this.
Sorry but i am a newie in modding kobo devices.
I have stored the file into the folder, but i do not know how to install.

Can you please help me

Thanks a lot
Vauxdvihl is offline   Reply With Quote
Advert
Old 07-01-2015, 05:40 AM   #3
frostschutz
Linux User
frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.
 
frostschutz's Avatar
 
Posts: 2,279
Karma: 6123806
Join Date: Sep 2010
Location: Heidelberg, Germany
Device: none
Quote:
Originally Posted by Vauxdvihl View Post
I have stored the file into the folder, but i do not know how to install.
KoboRoot-WebPortal.tgz » .kobo/KoboRoot.tgz

Unzipping the KoboRoot-WebPortal.zip gives you KoboRoot-WebPortal.tgz and you rename that to KoboRoot.tgz and copy it into the .kobo directory on the reader (same dir that also has the KoboReader.sqlite which is the database of all your books and reading progress).

The reader should install it and reboot automatically. If it was installed successfully you should see a .webportal directory which contains the files listed above.

If you got this far it should work. If it does not, it needs more than just the www.msftncsi.com/ncsi.txt ...

Unfortunately my WIFI Router only lets me block WWW access for testing; it does not block DNS queries so it may behave differently in that case. I'll see if I can set up tethering on my ancient smartphone to test with another wifi network...

EDIT: Just tested with tethering, and no real internet connection whatsoever, and it worked so I hope it will work for you as well.

Last edited by frostschutz; 07-01-2015 at 05:59 AM.
frostschutz is offline   Reply With Quote
Old 07-01-2015, 06:27 AM   #4
Vauxdvihl
Junior Member
Vauxdvihl began at the beginning.
 
Posts: 9
Karma: 10
Join Date: Jun 2015
Device: Kobo Auro H2O


It works

Really, thanks a lot
Vauxdvihl is offline   Reply With Quote
Old 07-06-2015, 08:06 PM   #5
frostschutz
Linux User
frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.
 
frostschutz's Avatar
 
Posts: 2,279
Karma: 6123806
Join Date: Sep 2010
Location: Heidelberg, Germany
Device: none
File Manager is a WebPortal CGI script that lets you browse the Kobo's filesystem in a web browser and download books and other files from it. In particular it also lets you download an image of the internal SD card if you navigate to /dev/mmcblk0 and download that [no guarantees on filesystem consistency though].

I also want to add an upload function, both for individual files and tar packages, so you can use it to install mods; as well as rename / delete / edit / ... it's not finished yet and thus not included in the package above, but you can get it from GitHub if you really want to.
Attached Thumbnails
Click image for larger version

Name:	filemanager.png
Views:	971
Size:	30.3 KB
ID:	140056  

Last edited by frostschutz; 07-06-2015 at 08:13 PM.
frostschutz is offline   Reply With Quote
Advert
Old 07-21-2015, 07:18 AM   #6
frostschutz
Linux User
frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.
 
frostschutz's Avatar
 
Posts: 2,279
Karma: 6123806
Join Date: Sep 2010
Location: Heidelberg, Germany
Device: none
Updated the package, the File Manager is now included. It supports download and upload (including TAR support so you can upload&install KoboRoot-tgz), but not yet rename/delete. Turns out upload forms (multipart/form-data) is not easy to parse in a shell script so there is a helper program written in C for that.
frostschutz is offline   Reply With Quote
Old 08-10-2015, 09:10 AM   #7
frostschutz
Linux User
frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.
 
frostschutz's Avatar
 
Posts: 2,279
Karma: 6123806
Join Date: Sep 2010
Location: Heidelberg, Germany
Device: none
Updated it to fix two bugs:

- setting a custom home dir in httpd.conf didn't actually work
- the webserver running off /mnt/onboard caused problems with USB connectivity

Also the included "intranet wifi" hack is now disabled by default and you have to uncomment a line in .webportal/vhosts.conf to enable it. It was too intrusive for readers that do not need this modification.

Last edited by frostschutz; 08-10-2015 at 11:10 AM.
frostschutz is offline   Reply With Quote
Old 01-25-2017, 02:41 PM   #8
Bob Brunius
Connoisseur
Bob Brunius began at the beginning.
 
Posts: 68
Karma: 10
Join Date: Nov 2014
Location: Orcas, WA
Device: Kindle PW & Kobo H2O
Works great, thank you.
Bob Brunius is offline   Reply With Quote
Old 01-25-2017, 02:44 PM   #9
Bob Brunius
Connoisseur
Bob Brunius began at the beginning.
 
Posts: 68
Karma: 10
Join Date: Nov 2014
Location: Orcas, WA
Device: Kindle PW & Kobo H2O
What will happen with a post to the server?
Bob Brunius is offline   Reply With Quote
Old 01-25-2017, 03:58 PM   #10
frostschutz
Linux User
frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.frostschutz ought to be getting tired of karma fortunes by now.
 
frostschutz's Avatar
 
Posts: 2,279
Karma: 6123806
Join Date: Sep 2010
Location: Heidelberg, Germany
Device: none
Not sure what you mean exactly, but nothing happens unless you make something happen yourself. If you're coming from PHP or something, no such magic here.

As an example, cgi-bin/notes takes regular form posts, cgi-bin/filemanager takes multiple file upload posts ( using a helper to handle multipart_pipe data ).
frostschutz is offline   Reply With Quote
Old 06-25-2018, 02:36 AM   #11
Vwow
Member
Vwow began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Jun 2017
Device: Kobo Aura H2O
Many Thanks from kobo owners in the new great wall.We can't connect wifi and the pocket can't work any more after the firmware 4.7.10413, until a internet user named sirwu found you postings.We can watch the sky again.
Vwow is offline   Reply With Quote
Old 06-25-2018, 03:59 AM   #12
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by Vwow View Post
Many Thanks from kobo owners in the new great wall.We can't connect wifi and the pocket can't work any more after the firmware 4.7.10413, until a internet user named sirwu found you postings.We can watch the sky again.
I have to say I am curious. I didn't have any problems at all with firmware 4.7.10413 with WiFi or Pocket or any other thing requiring the net. So, I'm curious about what this thread has told you that or this "sirwu" person discovered here. The only thing I can think of is the URL used by the firmware to check it can go online, but that had been in use for several years. Add that firmware 4.7.10413 has been out for six months makes me very curious about why you haven't asked about the problem before.

Can you tell me what it was?
davidfor is offline   Reply With Quote
Old 06-25-2018, 04:21 AM   #13
tshering
Wizard
tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.tshering ought to be getting tired of karma fortunes by now.
 
Posts: 3,489
Karma: 2914715
Join Date: Jun 2012
Device: kobo touch
Quote:
Originally Posted by davidfor View Post
I have to say I am curious. I didn't have any problems at all with firmware 4.7.10413 with WiFi or Pocket or any other thing requiring the net. So, I'm curious about what this thread has told you that or this "sirwu" person discovered here. The only thing I can think of is the URL used by the firmware to check it can go online, but that had been in use for several years. Add that firmware 4.7.10413 has been out for six months makes me very curious about why you haven't asked about the problem before.

Can you tell me what it was?
I think the reason why you do not see the problem is that you do not live behind the great wall. But I am also curious about the details.
tshering is offline   Reply With Quote
Old 06-26-2018, 03:19 AM   #14
Vwow
Member
Vwow began at the beginning.
 
Posts: 10
Karma: 10
Join Date: Jun 2017
Device: Kobo Aura H2O
Quote:
Originally Posted by davidfor View Post
I have to say I am curious. I didn't have any problems at all with firmware 4.7.10413 with WiFi or Pocket or any other thing requiring the net. So, I'm curious about what this thread has told you that or this "sirwu" person discovered here. The only thing I can think of is the URL used by the firmware to check it can go online, but that had been in use for several years. Add that firmware 4.7.10413 has been out for six months makes me very curious about why you haven't asked about the problem before.

Can you tell me what it was?
Your say is right,4.7.10413 is ok,but the later 4.8 firmwares can't connet wifi frequently.So we had to use 4.7.10413 or earlier firmwares. It was said that he URL used by the firmware after 4.7.10413 has changed from microsoft to kobo which is forbided by the soft great wall.

你猜的是对的。4.7.10413固件连接WiFi网络正常,但是4.8以后的固件经常不能连接WiFi网 络,并伴随假死重启现象。据说是因为4.7.10413之后的固件改变了WiFi连接安全验证的策略,验证 地址也从微软的改到了Kobo,而这个验证地址恰巧在瓷器国防火墙的名单之内。因此我们只能委曲求全使用4 .7.10413或之前更早的固件,以确保Pocet能够正常使用。
Vwow is offline   Reply With Quote
Old 06-26-2018, 04:13 AM   #15
davidfor
Grand Sorcerer
davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.davidfor ought to be getting tired of karma fortunes by now.
 
Posts: 24,907
Karma: 47303748
Join Date: Jul 2011
Location: Sydney, Australia
Device: Kobo:Touch,Glo, AuraH2O, GloHD,AuraONE, ClaraHD, Libra H2O; tolinoepos
Quote:
Originally Posted by Vwow View Post
Your say is right,4.7.10413 is ok,but the later 4.8 firmwares can't connet wifi frequently.So we had to use 4.7.10413 or earlier firmwares. It was said that he URL used by the firmware after 4.7.10413 has changed from microsoft to kobo which is forbided by the soft great wall.
OK, that makes sense. If the kobo.com domain is being blocked then most of the on-line function of the device is also being blocked and is useless.

The URL for the check is now http://www.kobo.com/buildinfo.xml. The was a discussion about how to get around this recently. It was someone doing something on a local network to return the appropriate results. That would allow you to use later firmware. But, for your situation, a patch to disable the check would probably be better. I can't remember if there is one or not.
davidfor is offline   Reply With Quote
Reply


Forum Jump

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


All times are GMT -4. The time now is 04:17 PM.


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