Register Guidelines E-Books Today's Posts Search

Go Back   MobileRead Forums > E-Book Readers > Amazon Kindle > Kindle Developer's Corner

Notices

Reply
 
Thread Tools Search this Thread
Old 08-26-2017, 03:01 AM   #1
zaoqi
github.com/zaoqi
zaoqi does all things with Zen-like beautyzaoqi does all things with Zen-like beautyzaoqi does all things with Zen-like beautyzaoqi does all things with Zen-like beautyzaoqi does all things with Zen-like beautyzaoqi does all things with Zen-like beautyzaoqi does all things with Zen-like beautyzaoqi does all things with Zen-like beautyzaoqi does all things with Zen-like beautyzaoqi does all things with Zen-like beautyzaoqi does all things with Zen-like beauty
 
Posts: 87
Karma: 32020
Join Date: Mar 2017
Location: - Zhejiang China
Device: Boox c67ml,Note S,Max2,KT3,KPW4,Kobo AurdHD,Touch N905C
Ubuntu on KT3 without *.ext3

STEP 1:
Copy get.sh, inst.x.*.sh, chroot.sh to Kindle
STEP 2
STEP 3:
Code:
/mnt/us/get.sh
/mnt/us/inst.x.*.sh
STEP 4: Chroot into ubuntu
Code:
/mnt/us/chroot.sh
get.sh
Code:
#!/bin/sh
root=/mnt/base-us/root
mkdir -p $root
wget -O - "http://cdimage.ubuntu.com/ubuntu-base/releases/17.04/release/ubuntu-base-17.04-base-armhf.tar.gz" | tar -xzvf - -C $root
inst.x.xfce4.zh.CN.sh
Code:
#!/bin/sh
root=/mnt/base-us/root
cat > $root/root/inst.sh << 'EOF'
apt update
apt install -f -y
apt full-upgrade -y
apt install -y locales
sed -i '/zh_CN.UTF-8/s/^#//' /etc/locale.gen
locale-gen zh_CN.UTF-8
apt install -y xserver-xephyr xfce4 onboard xfce4-terminal fonts-wqy-microhei fcitx-googlepinyin
EOF
#APT::Install-Recommends "0";
#APT::Install-Suggests "0";
cat >> $root/etc/apt/apt.conf << 'EOF'
APT::Sandbox::User root;
EOF
cat > $root/usr/local/bin/start-x-flip << 'EOF'
#!/bin/bash
export DISPLAY=:0
Xephyr :1 -title "L:A_N:application_ID:xephyr_O:R_PC:N" -screen 800x600 -cc 4 -dpi 167 -nocursor &
sleep 3
export DISPLAY=:1
startxfce4
EOF
mkdir -p $root/usr/share/applications/
cat > $root/usr/share/applications/stopx.desktop << 'EOF'
[Desktop Entry]
Categories=Network;InstantMessaging;GTK;GNOME;
Name=Stop X
Version=1.0
Exec=killall Xephyr xfce4-session
Terminal=false
Type=Application
EOF

chmod +x $root/root/inst.sh
chmod +x $root/usr/local/bin/start-x-flip

/mnt/us/chroot.sh /root/inst.sh

rm $root/root/inst.sh
chroot.sh
Code:
#!/bin/sh
root=/mnt/base-us/root
for d in dev dev/pts proc sys ;do
	mount -o bind /$d $root/$d || exit
done
temp="$(mktemp -d)"
mount -o bind "$temp" $root/tmp || exit
cp /etc/hostname /etc/hosts /etc/resolv.conf $root/etc/
shell=/bin/sh
if [ -f $root/bin/bash ] ;then
	shell=/bin/bash
fi
if [ -n "$1" ] ;then
	shell="$1"
fi
HOME=/root chroot $root $shell
for d in dev/pts dev proc sys tmp ;do
	umount $root/$d
done
rm -fr "$temp"
zaoqi is offline   Reply With Quote
Old 09-02-2017, 02:30 AM   #2
Jiang Yuhan
Connoisseur
Jiang Yuhan began at the beginning.
 
Posts: 61
Karma: 12
Join Date: Jul 2017
Device: New Kindle(558)
zaoqi.
放几张图
Jiang Yuhan is offline   Reply With Quote
Old 09-02-2017, 08:19 AM   #3
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Quote:
Originally Posted by Jiang Yuhan View Post
zaoqi.
放几张图
Pictures will not help when he does not know how to ask a question.
He is only wasting our time, wanting to see his name near the top of the index page.
Please do not encourage his non-sense.
knc1 is offline   Reply With Quote
Old 09-02-2017, 09:57 AM   #4
Jiang Yuhan
Connoisseur
Jiang Yuhan began at the beginning.
 
Posts: 61
Karma: 12
Join Date: Jul 2017
Device: New Kindle(558)
emmmmm.
zaoqi,shall we have a talk in private?
Can you give me your e-mail or QQ account?

Last edited by Jiang Yuhan; 09-02-2017 at 11:06 AM.
Jiang Yuhan is offline   Reply With Quote
Old 09-02-2017, 12:23 PM   #5
encol
Evangelist
encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.
 
Posts: 415
Karma: 750442
Join Date: Apr 2016
Location: Italy
Device: Kindle PW3 5.8.5.0.1
Quote:
Originally Posted by Jiang Yuhan View Post
emmmmm.
zaoqi,shall we have a talk in private?
Can you give me your e-mail or QQ account?
You can send a private message to him.
You don't need a public post for this
encol is offline   Reply With Quote
Old 09-03-2017, 05:08 AM   #6
liim
Member
liim can extract oil from cheeseliim can extract oil from cheeseliim can extract oil from cheeseliim can extract oil from cheeseliim can extract oil from cheeseliim can extract oil from cheeseliim can extract oil from cheeseliim can extract oil from cheese
 
Posts: 14
Karma: 1000
Join Date: Mar 2017
Device: pw3
Quote:
Originally Posted by knc1 View Post
Pictures will not help when he does not know how to ask a question.
He is only wasting our time, wanting to see his name near the top of the index page.
Please do not encourage his non-sense.
逑个圖片怎麼就non-sense了。幹癟癟的一堆代碼誰想看啊。有圖至少螚知道弄出萊是啥樣。簡単來說:沒圖片你說個 XX
liim is offline   Reply With Quote
Old 09-03-2017, 08:40 AM   #7
knc1
Going Viral
knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.knc1 ought to be getting tired of karma fortunes by now.
 
knc1's Avatar
 
Posts: 17,212
Karma: 18210809
Join Date: Feb 2012
Location: Central Texas
Device: No K1, PW2, KV, KOA
Code without written context is a waste of time.
This is not a site for the exchange of code snippets by those attempting to learn basic programming.
That is not what we do here. This is the wrong site for that purpose.
knc1 is offline   Reply With Quote
Old 09-03-2017, 10:14 AM   #8
Jiang Yuhan
Connoisseur
Jiang Yuhan began at the beginning.
 
Posts: 61
Karma: 12
Join Date: Jul 2017
Device: New Kindle(558)
Quote:
Originally Posted by liim View Post
逑个圖片怎麼就non-sense了。幹癟癟的一堆代碼誰想看啊。有圖至少螚知道弄出萊是啥樣。簡単來說:沒圖片你說個 XX
liim,我想你理解错了,他说的应该是zaoqi nonsense.然而,我也不知道zaoqi和knc1之间发生了啥。。。。。。
Jiang Yuhan is offline   Reply With Quote
Old 09-04-2017, 12:17 AM   #9
liim
Member
liim can extract oil from cheeseliim can extract oil from cheeseliim can extract oil from cheeseliim can extract oil from cheeseliim can extract oil from cheeseliim can extract oil from cheeseliim can extract oil from cheeseliim can extract oil from cheese
 
Posts: 14
Karma: 1000
Join Date: Mar 2017
Device: pw3
Quote:
Originally Posted by Jiang Yuhan View Post
liim,我想你理解错了,他说的应该是zaoqi nonsense.然而,我也不知道zaoqi和knc1之间发生了啥。。。。。。
才怪了,莪肯定彵说啲是你。這人总一副很汈啲樣子,很了芣起似啲。不信伱去翻以前啲萜子。
liim is offline   Reply With Quote
Old 09-04-2017, 12:22 AM   #10
liim
Member
liim can extract oil from cheeseliim can extract oil from cheeseliim can extract oil from cheeseliim can extract oil from cheeseliim can extract oil from cheeseliim can extract oil from cheeseliim can extract oil from cheeseliim can extract oil from cheese
 
Posts: 14
Karma: 1000
Join Date: Mar 2017
Device: pw3
Quote:
Originally Posted by knc1 View Post
Code without written context is a waste of time.
This is not a site for the exchange of code snippets by those attempting to learn basic programming.
That is not what we do here. This is the wrong site for that purpose.
哦,伱好叼喔。跟伱仳其彵人都是苩痴。
liim is offline   Reply With Quote
Old 09-08-2017, 10:27 AM   #11
Jiang Yuhan
Connoisseur
Jiang Yuhan began at the beginning.
 
Posts: 61
Karma: 12
Join Date: Jul 2017
Device: New Kindle(558)
Quote:
Originally Posted by liim View Post
哦,伱好叼喔。跟伱仳其彵人都是苩痴。
这个我知道,我看过他以前的贴子。咱们年轻人让让老年人。

Last edited by Jiang Yuhan; 09-08-2017 at 10:32 AM.
Jiang Yuhan is offline   Reply With Quote
Old 02-26-2018, 06:51 PM   #12
philip_goule
Enthusiast
philip_goule began at the beginning.
 
Posts: 30
Karma: 10
Join Date: Dec 2016
Device: kindle paperwhite2
where can I get the inst.x.*.sh?plz
philip_goule is offline   Reply With Quote
Old 02-27-2018, 03:01 AM   #13
encol
Evangelist
encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.encol ought to be getting tired of karma fortunes by now.
 
Posts: 415
Karma: 750442
Join Date: Apr 2016
Location: Italy
Device: Kindle PW3 5.8.5.0.1
in the first post, under code section
encol is offline   Reply With Quote
Old 03-02-2018, 11:29 PM   #14
zaoqi
github.com/zaoqi
zaoqi does all things with Zen-like beautyzaoqi does all things with Zen-like beautyzaoqi does all things with Zen-like beautyzaoqi does all things with Zen-like beautyzaoqi does all things with Zen-like beautyzaoqi does all things with Zen-like beautyzaoqi does all things with Zen-like beautyzaoqi does all things with Zen-like beautyzaoqi does all things with Zen-like beautyzaoqi does all things with Zen-like beautyzaoqi does all things with Zen-like beauty
 
Posts: 87
Karma: 32020
Join Date: Mar 2017
Location: - Zhejiang China
Device: Boox c67ml,Note S,Max2,KT3,KPW4,Kobo AurdHD,Touch N905C
Quote:
Originally Posted by liim View Post
逑个圖片怎麼就non-sense了。幹癟癟的一堆代碼誰想看啊。有圖至少螚知道弄出萊是啥樣。簡単來說:沒圖片你說個 XX
和有*.ext3的一样
zaoqi is offline   Reply With Quote
Old 03-02-2018, 11:30 PM   #15
zaoqi
github.com/zaoqi
zaoqi does all things with Zen-like beautyzaoqi does all things with Zen-like beautyzaoqi does all things with Zen-like beautyzaoqi does all things with Zen-like beautyzaoqi does all things with Zen-like beautyzaoqi does all things with Zen-like beautyzaoqi does all things with Zen-like beautyzaoqi does all things with Zen-like beautyzaoqi does all things with Zen-like beautyzaoqi does all things with Zen-like beautyzaoqi does all things with Zen-like beauty
 
Posts: 87
Karma: 32020
Join Date: Mar 2017
Location: - Zhejiang China
Device: Boox c67ml,Note S,Max2,KT3,KPW4,Kobo AurdHD,Touch N905C
Quote:
Originally Posted by knc1 View Post
Code without written context is a waste of time.
This is not a site for the exchange of code snippets by those attempting to learn basic programming.
That is not what we do here. This is the wrong site for that purpose.
That isn't my purpose
zaoqi is offline   Reply With Quote
Reply


Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
mkfs.ext3 /dev/mmcblk0p4 zaoqi Kindle Developer's Corner 2 08-25-2017 10:58 AM
mkfs.ext3 /dev/mmcblk0p4 zaoqi Kindle Developer's Corner 3 08-21-2017 11:41 AM
Troubleshooting KPW2 EXT3-fs error Kyle2109 Amazon Kindle 3 01-18-2017 10:37 PM
PRS-T1 Partitioned (Fat32+ext3) SD not recognised Arche Sony Reader Dev Corner 7 01-12-2012 06:18 AM
Has anybody tried to mount an SD card with an ext3 filesystem? godel10 iRex 16 06-15-2009 10:06 AM


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


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