Mobileread
Native A KUAL extension. Linux Deploy: chrooted GNU/Linux for modern Kindle
#1  zaoqi 07-16-2019, 05:05 AM
I have only tested it on KPW4, KT3.

README

This extension depends on kterm.
Download

image »
Reply 

#2  zaoqi 07-16-2019, 12:30 PM
CHANGELOG v0.1.3 ~ v0.2.0



Add sudo-enabled user support
Add Ubuntu 19.04
Update e2fsprogs
fix bugs
Reply 

#3  zaoqi 08-17-2019, 09:04 AM
CHANGELOG v0.2.0 ~ 0.2.0-2


fix /tmp's permission
Add swap file support
fix for KT3
Reply 

#4  knc1 08-17-2019, 11:16 AM
Quote zaoqi
I have only tested it on KPW4.

README

This extension depends on kterm.
Download
Read the "Guidelines" at:
https://www.mobileread.com/forums/fa...ing_guidelines
Section 9, "Images"
Reply 

#5  zaoqi 08-18-2019, 05:26 AM
Quote knc1
Read the "Guidelines" at:
https://www.mobileread.com/forums/fa...ing_guidelines
Section 9, "Images"
Done.
Reply 

#6  zaoqi 08-26-2019, 06:06 AM
CHANGELOG v0.2.0 ~ 0.3.0

add xfce4
Reply 

#7  schuhumi 09-02-2019, 05:49 PM
Hi zaoqi,

that's a nice tool! And I certainly recognize some things I found a small problem, in line seven of the script to start XFCE https://github.com/zaoqi/kual-linuxdeploy-armhf/blob/master/chroot.de.xfce4.user.sh#L7

In this command to find the window size:
Code
SIZE=$(xwininfo -root -display :0 | egrep "geometry" | cut -d " " -f4)
I run this from within the chroot, as the Kindle OS doesn't have egrep (at least mine, "chroot.xfce4.user.sh: line 7: egrep: not found"). Xephyr then gets confused with its arguments and chokes on the color depth:
Code
Fatal server error:
(EE) Unrecognized option: 4
Also I found out that the loop devices don't get disassociated automatically when umounting, you can check like this:
Code
[root@kindle kual-linuxdeploy-armhf]# cat /sys/block/loop*/loop/backing_file
/dev/mmcblk0p4
/mnt/us/extensions/kual-linuxdeploy-armhf/rootfs.img (deleted)
/mnt/us/extensions/kual-linuxdeploy-armhf/rootfs.img
/usr/share/X11/xkb.sqsh
/usr/java/lib/fonts.sqsh
/etc/kdb.src.sqsh
/usr/lib/locale.sqsh
/usr/share/keyboard.sqsh
/opt/var/local.sqsh
/mnt/us/extensions/kual-linuxdeploy-armhf/rootfs.img (deleted)
/mnt/us/extensions/kual-linuxdeploy-armhf/rootfs.img (deleted)
That for me leads to a) running out of loop devices at one point (max 16) b) storage doesn't get freed when deleting the umounted image (df -h). Thus I disassociate it manually:
Code
LOOPDEV="$(mount | grep loop | grep /tmp/alpine | cut -d" " -f1)"
... umounts ...
losetup -d $LOOPDEV
And a small thing: In my dotfiles I archive dconf dumps now as well. These have to be read in upon initialization as well though, e.g. like this
Code
dconf load /org/onboard/ < ~/.config/org_onboard.dconf.dump
Just because I saw you install onboard too.. I switchted to Mate now, but currently the XFCE config is also still in the repo, so you can update the version you clone if you want.

Nice work! And your scripts look way more elegant than mine
Reply 

#8  JJYYPPCC 09-04-2019, 10:48 AM
Quote zaoqi
I have only tested it on KPW4, KT3.
README
This extension depends on kterm.
Download
image »
A stupid question:Could it afford normally use Chrome?Or because of the poor performance it is just a funny dream?
Reply 

#9  zaoqi 09-06-2019, 08:19 AM
Quote JJYYPPCC
A stupid question:Could it afford normally use Chrome?Or because of the poor performance it is just a funny dream?
Someone successfully ran Chrome on the Kindle. This tool may work, but I have not tested it.
Reply 

#10  fezzzza 11-16-2019, 10:18 AM
Works nicely except for xfce. My KT hangs at random points through the xfce install, perhaps due to lower system RAM - my KT has 256MB RAM whereas your KT3 has 512MB, I think. However, even installing a 1GB swap file does not seem to help, so for now I am left with linux only running in text mode.

Any ideas?
Reply 

Today's Posts | Search this Thread | Login | Register