Author Topic: Installing Debian With Japanese Display/input  (Read 3298 times)

ShiroiKuma

  • Hero Member
  • *****
  • Posts: 900
    • View Profile
Installing Debian With Japanese Display/input
« on: August 03, 2005, 05:33:37 am »
Hi:

I've fiddled with Meanie's Jumbo XQt package 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 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 install:
xqtclip_0.0.1_arm.ipk
I'll explain the need for this below.

From Chuckster's site or from Meanie's site download zaurus-debian-jumbo-v18-b01.tar.gz.

Format your SD card to ext2 in the Zaurus by:
Code: [Select]
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:
Code: [Select]
su
chown -R zaurus /mnt/card
chmod -R 775 /mnt/card
exit

Unpack the debian files to debroot on the card:
Code: [Select]
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:
Code: [Select]
rxvt &
blackbox
with
Code: [Select]
xqtclip &
rxvt

Then chown the home dir, otherwis XQt will throw errors on start and will take forever to run
Code: [Select]
su
chown zaurus /home/zaurus

Start X/Qt2 by tapping on the XQt icon.

Once in X/Qt2 in rxvt run
Code: [Select]
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:
Code: [Select]
dpkg-reconfigure localesThis 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, run
Code: [Select]
dpkg --configure -a.

Setup Japanese environment:
Code: [Select]
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:
Code: [Select]
/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...
« Last Edit: August 03, 2005, 05:39:04 am by rehorrericha »
[span style=\'font-size:8pt;line-height:100%\']Das ganze tschechische Volk ist eine Simulantenbande.[/font][/span]
Militäroberarzt Bautze