OESF Portables Forum
Everything Else => Zaurus - Everything Development => Distros, Development, and Model Specific Forums => Archived Forums => X/Qt => Topic started by: ShiroiKuma on August 03, 2005, 05:33:37 am
-
Hi:
I've fiddled with Meanie's Jumbo XQt package (https://www.oesf.org/forums/index.php?showtopic=13011) but couldn't get it to work correctly for my purposes, i.e. having the locale and environment set to Japanese and displaying Japanese correctly in the console and facilitating Japanese input.
So this is what I've done to get it working.
I've determined the minimum packages needed just to get XQt running enabling you to chroot to debian then; and what you have to do get Japanese fine.
From X/Qt2 feed (http://xqt.sourceforge.jp/feed-testing/) install:
expat_1.95.8-1_arm.ipk
fontconfig-etc_2.2.1-1_all.ipk
fontconfig_2.2.1-1_arm.ipk
freetype_2.1.5-1_arm.ipk
glibc-gconv-ja_2.2.2-1_arm.ipk
glibc-locale-ja-eucjp_2.2.2-1_arm.ipk
rxvt_2.6.4-1_arm.ipk
xbase-clients_4.3.0-3_arm.ipk
xbase-etc_4.3.0-3_all.ipk
xlibs_4.3.0-3_arm.ipk
xqt-fonts-75dpi-iso8859-1_4.3.0-3_all.ipk
xqt-fonts-misc_4.3.0-3_all.ipk
xqt-server_1.9.0_arm.ipk
xqt-startup-scripts_0.0.3_all.ipk
Also from X/Qt feed (http://xqt.sourceforge.jp/feed/) install:
xqtclip_0.0.1_arm.ipk
I'll explain the need for this below.
From Chuckster's site (http://www.chuckster.org/zaurus/) or from Meanie's site (http://www.users.on.net/~hluc/myZaurus) download zaurus-debian-jumbo-v18-b01.tar.gz.
Format your SD card to ext2 in the Zaurus by:su
umount /mnt/card
mkfs.ext2 /dev/mmcda1
exit
Then eject and insert it again, the Zaurus will mount it as ext2 now.
Make the card's root zaurus owned:su
chown -R zaurus /mnt/card
chmod -R 775 /mnt/card
exit
Unpack the debian files to debroot on the card:mkdir /mnt/card/debroot
su
gnu-tar -C /mnt/card/debroot xzvpf zaurus-debian-jumbo-v18-b01.tar.gz
exit
Edit /home/zaurus/.xinitrc
replace the two lines reading:
rxvt &
blackbox
with
xqtclip &
rxvt
Then chown the home dir, otherwis XQt will throw errors on start and will take forever to run
su
chown zaurus /home/zaurus
Start X/Qt2 by tapping on the XQt icon.
Once in X/Qt2 in rxvt run
su
chroot /mnt/card/debroot
export DISPLAY=0:0
apt-get install locales ttf-kochi-gothic ttf-kochi-mincho language-env
This should after install launch the locales setup.
If locales setup doesn't begin automatically, run:
dpkg-reconfigure locales
This will generate the locales, this allways seems to fill up memory, even if you have a 128MB swap. The way I get around this, is before running this, start about 8 apps in Qtopia, run the command in debian, then switch to any app in Qtopia, leaving the locale generation running in the background. It will tell you then after a while that the memory is full, and you need to close an app. Close one of the Qtopia apps. This you'll have to do about 6 or so times, but it will generate the locales in the meantime without an error.
In this generating install, you should install ja_JP.eucJP and ja_JP.UTF-8, select ja_JP.eucJP for default locale.
When finished, rundpkg --configure -a
.
Setup Japanese environment:
adduser nis
su - nis
set-language-env japanese
And you're all set. Now debian will display Japanese properly in all apps, even in rxvt and you can run IceWM by:
/usr/bin/icewm-session
Japanese input works under debian but it's painstakingly slow. That's why we installed the xqtclip, since it enables sharing the clipboard between X/Qt and Qtopia.
So you should basically do all the typing in a notepad or editor app in Qtopia, then just Ctrl-C copy everything, switch to the debian app and Ctrl-V paste everything or vice versa. It works...