Audio/video stream recording forums (http://stream-recorder.com/forum/index.php)
-   eBooks readers and book shops (http://stream-recorder.com/forum/forumdisplay.php?f=74)
-   -  

Stripping down "Duokan OS" to launch PDF reader from Kindle launchpad

(http://stream-recorder.com/forum/showthread.php?t=8665)

Stream Recorder 03-22-2011 05:07 AM

Stripping down "Duokan OS" to launch PDF reader from Kindle launchpad


 
Duokan OS is clumsy. So let's strip it down to launch the PDF reader from Kindle launchpad. We will need to extract the Duokan atchive and then copy select files to the Kindle DX.

Prerequisites:
1. jailbreak
2. launchpad
  1. Create the following folders in the root folder of Kindle:
    Code:

    DK_Documents
    DK_Pictures
    DK_System

  2. Extract the Duokan archive
  3. Copy the following folders into the Kindle
    Code:

    DK_System/lib
    DK_System/system
    DK_System/Savers
    DK_System/bin/DKPrivateProfile
    DK_System/bin/doc2html
    DK_System/bin/ebook

  4. From the DK_System/DK_Update folder select the subfolder corresponding to your device (dx, dxg, k2, k3). Copy its contents to the DK_System on Kindle, except for the bin subfolder!

To delete this stripped down version of Duokan from your Kindle, just delete all folders DK_*.

kudos to Andy Wooden for creating this tutorial.

Stream Recorder 03-22-2011 05:08 AM

Re: Stripping down "Duokan OS" to launch PDF reader from Kindle launchpad


 
Sample: After unpacking Duokan_0_5_13_8734__2011_03_05_english.rar and copying select folders I got the following on my Kindle DX:
Code:

DK_System:
drwxr-xr-x    2 root    root        8192 Mar  8 16:22 PrintScreen
drwxr-xr-x    2 root    root        8192 Mar  8 16:17 Savers
drwxr-xr-x    2 root    root        8192 Mar  8 19:12 bin
-rwxr-xr-x    1 root    root        3012 Mar  8 19:04 config.ini
drwxr-xr-x    3 root    root        8192 Mar  8 16:08 lib
drwxr-xr-x  12 root    root        8192 Mar  8 16:22 system

DK_System/PrintScreen:

DK_System/Savers:
-rwxr-xr-x    1 root    root        74595 Mar  8 16:17 shui.jpg

DK_System/bin:
-rwxr-xr-x    1 root    root        6432 Mar  5 03:01 DKPrivateProfile
-rwxr-xr-x    1 root    root        5808 Mar  5 03:01 doc2html
-rwxr-xr-x    1 root    root      3606304 Mar  8 17:43 ebook

DK_System/lib:
-rwxr-xr-x    1 root    root      755444 Mar  5 03:01 libasound.so
-rwxr-xr-x    1 root    root        14604 Mar  5 03:01 libbdwk.so
-rwxr-xr-x    1 root    root      111640 Mar  5 03:01 libchardetect.so
-rwxr-xr-x    1 root    root      263312 Mar  5 03:01 libcurl.so.4
-rwxr-xr-x    1 root    root      975176 Mar  5 03:01 libcv.so.1
-rwxr-xr-x    1 root    root      718760 Mar  5 03:01 libcvaux.so.1
-rwxr-xr-x    1 root    root      172360 Mar  5 03:01 libcvhaartraining.a
-rwxr-xr-x    1 root    root      1324324 Mar  5 03:01 libcxcore.so.1
-rwxr-xr-x    1 root    root      2163248 Mar  5 03:01 libdjvulibre.so.21
-rwxr-xr-x    1 root    root        43244 Mar  5 03:01 libdk_epub.so
-rwxr-xr-x    1 root    root      143524 Mar  5 03:01 libdkchm.so
-rwxr-xr-x    1 root    root        27192 Mar  5 03:01 libdkdjvu.so
-rwxr-xr-x    1 root    root        7208 Mar  5 03:01 libdkdoc.so
-rwxr-xr-x    1 root    root      6586528 Mar  5 03:01 libdkdocument.so
-rwxr-xr-x    1 root    root      1842368 Mar  5 03:01 libdoc2html.so
-rwxr-xr-x    1 root    root        27820 Mar  5 03:01 libefence.a
-rwxr-xr-x    1 root    root      2475636 Mar  5 03:01 libfreeimage.so.3
-rwxr-xr-x    1 root    root      424752 Mar  5 03:01 libfreetype.so.6
-rwxr-xr-x    1 root    root      237432 Mar  5 03:01 libhighgui.so.1
-rwxr-xr-x    1 root    root      216116 Mar  5 03:01 libhtml.so
-rwxr-xr-x    1 root    root        19772 Mar  5 03:01 libhttp.so
-rwxr-xr-x    1 root    root      913260 Mar  5 03:01 libiconv.so.2
-rwxr-xr-x    1 root    root        25664 Mar  5 03:01 libiw.so.29
-rwxr-xr-x    1 root    root        65912 Mar  5 03:01 libjbig2dec.so.0
-rwxr-xr-x    1 root    root      126432 Mar  5 03:01 libjpeg.so
-rwxr-xr-x    1 root    root        24924 Mar  5 03:01 libjson.so.0
-rwxr-xr-x    1 root    root        76290 Mar  5 03:01 libktv.a
-rwxr-xr-x    1 root    root        5052 Mar  5 03:01 liblibdkzip.so
-rwxr-xr-x    1 root    root        86460 Mar  5 03:01 libmad.so.0
-rwxr-xr-x    1 root    root      272388 Mar  5 03:01 libml.so.1
-rwxr-xr-x    1 root    root        17360 Mar  5 03:01 libmobi.so
-rwxr-xr-x    1 root    root        11028 Mar  5 03:01 libopds.so
-rwxr-xr-x    1 root    root      119476 Mar  5 03:01 libopenjpeg.so.2
-rwxr-xr-x    1 root    root      100536 Mar  5 03:01 libpcre.so.0
-rwxr-xr-x    1 root    root        5776 Mar  5 03:01 libpcreposix.so.0
-rwxr-xr-x    1 root    root      187920 Mar  5 03:01 libpng12.so
-rwxr-xr-x    1 root    root      373794 Mar  5 03:01 libpy.a
-rwxr-xr-x    1 root    root      541484 Mar  5 03:01 libtiff.so.3
-rwxr-xr-x    1 root    root      635284 Mar  5 03:01 libtts.a
-rwxr-xr-x    1 root    root        21424 Mar  5 03:01 libxlds.so
-rwxr-xr-x    1 root    root      627892 Mar  5 03:01 libxml2.so.2
-rwxr-xr-x    1 root    root      115560 Mar  5 03:01 libzip.so.1
drwxr-xr-x    2 root    root        8192 Mar  8 16:08 sysfont

DK_System/lib/sysfont:
-rwxr-xr-x    1 root    root      9754932 Mar  5 03:01 fzlth.ttf
-rwxr-xr-x    1 root    root      2802500 Mar  5 03:01 input.ttf

DK_System/system:
-rwxr-xr-x    1 root    root        12691 Mar  8 16:17 Aliases
drwxr-xr-x    2 root    root        8192 Mar  8 16:17 MenuConfig
drwxr-xr-x    2 root    root        8192 Mar  8 16:17 Profiles
drwxr-xr-x    2 root    root        8192 Mar  8 16:22 dict
drwxr-xr-x    2 root    root        8192 Mar  8 17:06 dkuser
drwxr-xr-x    2 root    root        8192 Mar  8 16:22 font
drwxr-xr-x    2 root    root        8192 Mar  8 16:17 key
drwxr-xr-x    2 root    root        8192 Mar  8 16:17 loadingpicture
drwxr-xr-x    2 root    root        8192 Mar  8 16:09 pinyin
-rwxr-xr-x    1 root    root        17999 Mar  8 16:17 pymb.ini
drwxr-xr-x    2 root    root        8192 Mar  8 16:17 skin
drwxr-xr-x    2 root    root        8192 Mar  8 16:09 tts
-rwxr-xr-x    1 root    root        2584 Mar  8 16:17 websiteinfobak.dat
-rwxr-xr-x    1 root    root    19664896 Mar  5 03:01 word.tar

DK_System/system/MenuConfig:
-rwxr-xr-x    1 root    root        4369 Mar  8 16:17 PdfTopMenu.ini
-rwxr-xr-x    1 root    root        4369 Mar  8 16:17 PdfTopMenu_ft.ini
-rwxr-xr-x    1 root    root        4395 Mar  8 16:17 PdfTopMenu_yw.ini
-rwxr-xr-x    1 root    root        3809 Mar  8 16:17 PdfTxtTop.ini
-rwxr-xr-x    1 root    root        3809 Mar  8 16:17 PdfTxtTop_ft.ini
-rwxr-xr-x    1 root    root        3813 Mar  8 16:17 PdfTxtTop_yw.ini
-rwxr-xr-x    1 root    root        4371 Mar  8 16:17 PicTopMenu.ini
-rwxr-xr-x    1 root    root        4371 Mar  8 16:17 PicTopMenu_ft.ini
-rwxr-xr-x    1 root    root        4397 Mar  8 16:17 PicTopMenu_yw.ini
-rwxr-xr-x    1 root    root          668 Mar  8 16:17 TopMenuManHua.ini
-rwxr-xr-x    1 root    root        1244 Mar  8 16:17 TopMenuShuangLan.ini
-rwxr-xr-x    1 root    root          637 Mar  8 16:17 TopMenuSide.ini
-rwxr-xr-x    1 root    root        3809 Mar  8 16:17 TxtSheZhiTopMenu.ini
-rwxr-xr-x    1 root    root        3809 Mar  8 16:17 TxtSheZhiTopMenu_ft.ini
-rwxr-xr-x    1 root    root        3814 Mar  8 16:17 TxtSheZhiTopMenu_yw.ini

DK_System/system/Profiles:
-rwxr-xr-x    1 root    root        4923 Mar  8 16:17 FontInfo.dat
-rwxr-xr-x    1 root    root        4915 Mar  8 16:17 FontInfo_ft.dat
-rwxr-xr-x    1 root    root        5469 Mar  8 16:17 FontInfo_yw.dat
-rwxr-xr-x    1 root    root        11475 Mar  8 16:17 HelpDocument.txt
-rwxr-xr-x    1 root    root        3721 Mar  8 16:17 systemConfig.ini
-rwxr-xr-x    1 root    root        3721 Mar  8 16:17 systemConfig_ft.ini
-rwxr-xr-x    1 root    root        3884 Mar  8 16:17 systemConfig_yw.ini
-rwxr-xr-x    1 root    root      163836 Mar  8 16:17 viewright.pdf

DK_System/system/dict:
-rwxr-xr-x    1 root    root            0 Mar  8 16:22 New_word.data
-rwxr-xr-x    1 root    root            0 Mar  8 18:24 dict.dat

DK_System/system/dkuser:
-rwxr-xr-x    1 root    root          48 Mar  8 18:24 OperFun.dat
-rwxr-xr-x    1 root    root          808 Mar  8 19:04 readbook.dat

DK_System/system/font:
-rwxr-xr-x    1 root    root        14080 Mar  8 18:24 FontFileList.dat

DK_System/system/key:
-rwxr-xr-x    1 root    root          691 Mar  8 16:17 keymap.k

DK_System/system/loadingpicture:
-rwxr-xr-x    1 root    root        4280 Mar  8 16:17 batshortshutdown.gif
-rwxr-xr-x    1 root    root        9940 Mar  8 16:17 kaiji.gif
-rwxr-xr-x    1 root    root          450 Mar  8 16:17 kaijibg.gif
-rwxr-xr-x    1 root    root          528 Mar  8 16:17 kaijirate.gif
-rwxr-xr-x    1 root    root        11514 Mar  8 16:17 uninstall.gif
-rwxr-xr-x    1 root    root        11571 Mar  8 16:17 usbconnect.gif

DK_System/system/pinyin:
-rwxr-xr-x    1 root    root          44 Mar  5 03:01 AutoEng.dat
-rwxr-xr-x    1 root    root            4 Mar  5 03:01 FCITX_DICT_TEMP
-rwxr-xr-x    1 root    root        53956 Mar  5 03:01 cj.txt
-rwxr-xr-x    1 root    root        2101 Mar  5 03:01 config
-rwxr-xr-x    1 root    root        53557 Mar  5 03:01 db.txt
-rwxr-xr-x    1 root    root      783446 Mar  5 03:01 erbi.txt
-rwxr-xr-x    1 root    root      1235227 Mar  5 03:01 fcitx-dict.log
-rwxr-xr-x    1 root    root          58 Mar  5 03:01 fcitx.log
-rwxr-xr-x    1 root    root      196170 Mar  5 03:01 gbkpy.org
-rwxr-xr-x    1 root    root        47880 Mar  5 03:01 gbks2t.tab
-rwxr-xr-x    1 root    root          91 Mar  8 18:24 profile
-rwxr-xr-x    1 root    root          108 Mar  5 03:01 punc.mb
-rwxr-xr-x    1 root    root      4190817 Mar  5 03:01 pyPhrase.org
-rwxr-xr-x    1 root    root        2234 Mar  5 03:01 pySym.mb
-rwxr-xr-x    1 root    root      168658 Mar  5 03:01 pybase.mb
-rwxr-xr-x    1 root    root        52324 Mar  5 03:01 pyindex.dat
-rwxr-xr-x    1 root    root      3541562 Mar  5 03:01 pyphrase.mb
-rwxr-xr-x    1 root    root          56 Mar  5 03:01 pyusrphrase.mb
-rwxr-xr-x    1 root    root      204978 Mar  5 03:01 qxm.txt
-rwxr-xr-x    1 root    root        2344 Mar  5 03:01 sp.dat
-rwxr-xr-x    1 root    root        1174 Mar  5 03:01 tables.conf
-rwxr-xr-x    1 root    root        2156 Mar  5 03:01 vk.conf
-rwxr-xr-x    1 root    root      934110 Mar  5 03:01 wanfeng.txt
-rwxr-xr-x    1 root    root      4138031 Mar  5 03:01 wbpy.txt
-rwxr-xr-x    1 root    root      2287568 Mar  5 03:01 wbx.mb
-rwxr-xr-x    1 root    root      979913 Mar  5 03:01 wbx.txt
-rwxr-xr-x    1 root    root      1372744 Mar  5 03:01 zrm.mb
-rwxr-xr-x    1 root    root      602060 Mar  5 03:01 zrm.txt


Stream Recorder 03-22-2011 05:08 AM

Re: Stripping down "Duokan OS" to launch PDF reader from Kindle launchpad


 
Code:

DK_System/system/skin:
-rwxr-xr-x    1 root    root        1353 Mar  8 16:17 MenuItem.dat
-rwxr-xr-x    1 root    root        1408 Mar  8 16:17 MenuItem_ft.dat
-rwxr-xr-x    1 root    root        1393 Mar  8 16:17 MenuItem_yw.dat
-rwxr-xr-x    1 root    root    21029794 Mar  8 16:17 ebookk3.img

DK_System/system/tts:
-rwxr-xr-x    1 root    root      1481944 Mar  5 03:01 BCNPackage.dat
-rwxr-xr-x    1 root    root      1888220 Mar  5 03:01 BENPackage.dat
-rwxr-xr-x    1 root    root      1445584 Mar  5 03:01 GCNPackage.dat
-rwxr-xr-x    1 root    root      1894728 Mar  5 03:01 GENPackage.dat
-rwxr-xr-x    1 root    root      1421332 Mar  5 03:01 YCNPackage.dat
-rwxr-xr-x    1 root    root      1894728 Mar  5 03:01 YENPackage.dat


Stream Recorder 03-22-2011 05:11 AM

Re: Stripping down "Duokan OS" to launch PDF reader from Kindle launchpad


 
How to launch PDF reader from launchpad:

Create DK_System/startdk.sh file on your Kindle with the following content:
Code:

export LD_LIBRARY_PATH=/mnt/us/DK_System/lib/:${LD_LIBRARY_PATH}
chmod a+x  /mnt/us/DK_System/bin/ebook
/mnt/us/DK_System/bin/ebook >/dev/null 2>/dev/null
/etc/init.d/framework start

Create file launchpad/duokan.ini on your Kindle with the following content:
Code:

[Actions]
D S = !source /mnt/us/DK_System/startdk.sh &
D X = !killall ebook

Press Shift -> Shift -> Space to re-initialize the Kindle launchpad.

Now if you press Shift D S (duokan Start), the PDF reader will be launched. If you press Shift D X (duokan Exit), it will be closed.

any ANONYMOUS forum user 03-23-2011 05:43 AM

Re: Stripping down "Duokan OS" to launch PDF reader from Kindle launchpad


 
How much better is duokan with PDF's? Can it adjust, zoom and justify text? May give this a go if it can!

Stream Recorder 03-23-2011 08:23 AM

Re: Stripping down "Duokan OS" to launch PDF reader from Kindle launchpad


 
Quote:

Originally Posted by any ANONYMOUS forum user (Post 26403)
How much better is duokan with PDF's? Can it adjust, zoom and justify text? May give this a go if it can!

You can zoon, use PDF reflow,... Watch the following video. It is not in english, but should give you an idea what duokan is:


majidbhurgri 05-10-2011 10:28 PM

Re: Stripping down "Duokan OS" to launch PDF reader from Kindle launchpad


 
I had been using duokan on 3G Kindle 3 for a while. I really liked your approach which kind of lets one of the best features being accessed through kindle fw.

I installed jailbreak, launchpad and then followed your instructions. I already had duokan installed on my kindle3, so I changed the names of existing DK_xxx files and then proceeded to create the folders and move files as suggested by you. I am using latest version of duokan.

Now when I press Shift D S it reports that action is completed successfully but then nothing happens. The pdf files open as they used to in kindle. Duokan reader does not start. What am I not doing correctly. Will appreciate your help and guidance. Thanks.

Stream Recorder 05-10-2011 11:42 PM

Re: Stripping down "Duokan OS" to launch PDF reader from Kindle launchpad


 
Try to re-initialize launchpad shortcut database by pressing Shift -> Shift-> I on the Kindle keyboard.

majidbhurgri 05-11-2011 12:49 PM

Re: Stripping down "Duokan OS" to launch PDF reader from Kindle launchpad


 
It did not work so I started the whole process from the begining.

I am using April 22 version of duokan, btw

When I come to step 4 as outlined by you, I found that in DE_Update in k3 there is a subfolder called DK_System.

Am I supposed to move this subfolder to DK_System on kindle and then delete or remove the bin folder as contained in it?

Or, am I supposed to move the contents of this DK_System subfolder? That poses a problem because it contains a subfolder called system and we already have subfolder system in DK_System on Kindle.

When I look at your code, I see config.ini file. I see this file in DK_System within the update/ks subfolder. Can you help me overcome this confusion which may be caused by different versions of duokan or by my sheer stupidity, either.

Thanks.

majidbhurgri 05-11-2011 01:56 PM

Re: Stripping down "Duokan OS" to launch PDF reader from Kindle launchpad


 
I put the contents of update/k3 subfolder into the DK_System folder (except the bin folder).

Now when I pressed shift shift space it went ahead successful.

Then I pressed shift D S and that went successful too. Now at this point I am not clear as to what is supposed to happen. Does duokan run or what?

However, nothing seemed to happen.

Then I pressed shift D X and it failed.

Then I pressed shift shift I as suggested by you, that too failed.

I really like duokan and I am very keen to access its pdf capability from within kindle but so far all my attempts have failed. I hope you can guide me through this. Thanks a bunch.


All times are GMT -6. The time now is 02:45 PM.