View Single Post
Old 12-14-2019, 05:12 PM   #115
rtiangha
Evangelist
rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.rtiangha ought to be getting tired of karma fortunes by now.
 
Posts: 495
Karma: 356531
Join Date: Jul 2016
Location: 'burta, Canada
Device: Kobo Glo HD
Quote:
Originally Posted by pghaworth View Post
the last week has been a bit of a blur, but was it you that gave me the hosts file info? and I can just take that file info and place it in the yaml? any particular section? thanks.
You'll want to append those entries into an existing hosts file as they alone aren't enough; for example, there's no localhost entry. That link I included links to other hosts files that block various things, so just copy/paste those Kobo entries into one of them after the localhost section and use the result.

Here's a portion (i.e. not the whole thing) of my Additional Files section that I stick at the bottom of kobopatch.yaml. In addition to the custom hosts file, I use frostschutz's miniclock and disable sickel mods, geek1011's ld_preload hack to prevent nickel from scanning .folders (there's now a Kobo Reader.conf setting that can do the same thing), tshering's Kobo Start Menu 09, JSWolf's updated hyphenation dictionaries, old Kobo fonts, among other things.

Spoiler:
Code:
# ADDITIONAL FILES #
# Uncomment the following to add additional files to the tgz (like init scripts or hyphen dicts)
# The files will be root-owned, and world readable, writable, and executable (0777)
files:

  src/root/disablesickel.sh: disablesickel.sh
  src/root/usr/local/geek1011/libhidedir_kobo.so: usr/local/geek1011/libhidedir_kobo.so
  src/root/usr/local/Kobo/hyphenDicts/hyph_en.dic: usr/local/Kobo/hyphenDicts/hyph_en.dic
  src/root/usr/local/Kobo/hyphenDicts/hyph_fr.dic: usr/local/Kobo/hyphenDicts/hyph_fr.dic
  src/root/usr/local/Kobo/hyphenDicts/hyph_hu.dic: usr/local/Kobo/hyphenDicts/hyph_hu.dic
  src/root/usr/local/Kobo/translations/trans_ja.qm: usr/local/Kobo/translations/trans_ja.qm
  src/root/usr/local/Kobo/udev/ac: usr/local/Kobo/udev/ac
  src/root/usr/local/Kobo/udev/plug: usr/local/Kobo/udev/plug
  src/root/usr/local/Kobo/udev/sd: usr/local/Kobo/udev/sd
  src/root/usr/local/Kobo/udev/usb: usr/local/Kobo/udev/usb
  src/root/usr/local/MiniClock/devinputeventdump: usr/local/MiniClock/devinputeventdump
  src/root/usr/local/MiniClock/fbink: usr/local/MiniClock/fbink
  src/root/usr/local/MiniClock/miniclock.sh: usr/local/MiniClock/miniclock.sh
  src/root/usr/local/Trolltech/QtEmbedded-4.6.2-arm/lib/fonts/Gothic MB101.otf: usr/local/Trolltech/QtEmbedded-4.6.2-arm/lib/fonts/Gothic MB101.otf
  src/root/usr/local/Trolltech/QtEmbedded-4.6.2-arm/lib/fonts/Ryumin.otf: usr/local/Trolltech/QtEmbedded-4.6.2-arm/lib/fonts/Ryumin.otf
  src/root/usr/local/Trolltech/QtEmbedded-4.6.2-arm/lib/fonts/Rockwell.ttf: usr/local/Trolltech/QtEmbedded-4.6.2-arm/lib/fonts/Rockwell.ttf
  src/root/usr/local/Trolltech/QtEmbedded-4.6.2-arm/lib/fonts/Rockwell-Bold.ttf: usr/local/Trolltech/QtEmbedded-4.6.2-arm/lib/fonts/Rockwell-Bold.ttf
  src/root/usr/local/Trolltech/QtEmbedded-4.6.2-arm/lib/fonts/Rockwell-BoldItalic.ttf: usr/local/Trolltech/QtEmbedded-4.6.2-arm/lib/fonts/Rockwell-BoldItalic.ttf
  src/root/usr/local/Trolltech/QtEmbedded-4.6.2-arm/lib/fonts/Rockwell-Italic.ttf: usr/local/Trolltech/QtEmbedded-4.6.2-arm/lib/fonts/Rockwell-Italic.ttf
  src/root/etc/ld.so.preload: etc/ld.so.preload
  src/root/etc/hosts: etc/hosts
  src/root/etc/init.d/rcS: etc/init.d/rcS
  src/root/etc/udev/rules.d/disablesickel.rules: etc/udev/rules.d/disablesickel.rules
  src/root/etc/udev/rules.d/miniclock.rules: etc/udev/rules.d/miniclock.rules
  src/root/etc/udhcpc.d/default.script: etc/udhcpc.d/default.script
  src/root/adds/kbmenu/ksm_ini: adds/kbmenu/ksm_ini


The format is place-on-your-local-file-system : place-on-the-kobo-file-system. For me, I stick everything in a folder called 'root' in kobopatch's src directory (i.e. kobopatch/src/root/) on my computer, but you can put it anywhere you want.

To make things simpler on me, I mimic the Kobo file structure locally, which is easy to do: just extract all those KoboRoot.tgz files from all the mods and merge them. That way, you can keep the same structure when writing the Kobo file paths. Then you type in one entry per file (i.e. the tedious part that you only need to do once) and run kobopatch which will bundle them all into one update file. If a mod gets updated, just extract it and copy it over your local file archive and run kobopatch again to generate a new update file to flash.

Last edited by rtiangha; 12-14-2019 at 05:17 PM.
rtiangha is offline   Reply With Quote