Register Guidelines E-Books Search Today's Posts Mark Forums Read

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

Notices

Reply
 
Thread Tools Search this Thread
Old 08-26-2017, 04: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: 50
Karma: 32020
Join Date: Mar 2017
Location: Hangzhou Zhejiang China
Device: KT3,Kobo Aurd HD
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
Advert
Old 09-02-2017, 03:30 AM   #2
Jiang Yuhan
Enthusiast
Jiang Yuhan began at the beginning.
 
Posts: 41
Karma: 12
Join Date: Jul 2017
Device: New Kindle(558)
zaoqi.
放几张图
Jiang Yuhan is offline   Reply With Quote
Old 09-02-2017, 09:19 AM   #3
knc1
Analog Forever!
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: 15,432
Karma: 17000319
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, 10:57 AM   #4
Jiang Yuhan
Enthusiast
Jiang Yuhan began at the beginning.
 
Posts: 41
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 12:06 PM.
Jiang Yuhan is offline   Reply With Quote
Old 09-02-2017, 01:23 PM   #5
encol
Addict
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: 348
Karma: 743844
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
Advert
Old 09-03-2017, 06: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: 10
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, 09:40 AM   #7
knc1
Analog Forever!
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: 15,432
Karma: 17000319
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, 11:14 AM   #8
Jiang Yuhan
Enthusiast
Jiang Yuhan began at the beginning.
 
Posts: 41
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, 01: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: 10
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, 01: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: 10
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, 11:27 AM   #11
Jiang Yuhan
Enthusiast
Jiang Yuhan began at the beginning.
 
Posts: 41
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 11:32 AM.
Jiang Yuhan is offline   Reply With Quote
Reply

Thread Tools Search this Thread
Search this Thread:

Advanced Search

Forum Jump

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


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


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