View Single Post
Old 12-14-2019, 05:19 PM   #116
pghaworth
Fervent Pleasure Seeker
pghaworth ought to be getting tired of karma fortunes by now.pghaworth ought to be getting tired of karma fortunes by now.pghaworth ought to be getting tired of karma fortunes by now.pghaworth ought to be getting tired of karma fortunes by now.pghaworth ought to be getting tired of karma fortunes by now.pghaworth ought to be getting tired of karma fortunes by now.pghaworth ought to be getting tired of karma fortunes by now.pghaworth ought to be getting tired of karma fortunes by now.pghaworth ought to be getting tired of karma fortunes by now.pghaworth ought to be getting tired of karma fortunes by now.pghaworth ought to be getting tired of karma fortunes by now.
 
pghaworth's Avatar
 
Posts: 1,224
Karma: 712073
Join Date: Feb 2009
Location: The Windmills of My Mind
Device: Clara HD
Quote:
Originally Posted by rtiangha View Post
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.
thanks. I am very sure I am not ready for all of this. keeping it for later.
pghaworth is offline   Reply With Quote