戻る|次をみる。??

インストール 第二段階 debian 3.0 woody

インストール後半 その2

では 日本語関連 を インストール

nyantarou:~# apt-get install locales localeconf language-env\
 kterm kinput2-canna canna canna-utils vim jvim-canna egg jless file \
ja-trans manpages-ja xemacs21-mule-canna-wnn jnethack tsch-kanji \
nvi-m17n-canna

ほんで もって

E: Couldn't find package tsch-kanji

ごめんなさい

nyantarou:~# apt-get install locales localeconf language-env kterm \
kinput2-canna canna canna-utils vim  jvim-canna egg jless file \
ja-trans manpages-ja xemacs21-mule-canna-wnn jnethack tcsh-kanji \
nvi-m17n-cann

そうすると 次の ような 文字列が 画面に 出てくる

The following extra packages will be installed:
  emacs20 emacsen-common kinput2-common libcanna1g libcompfaceg1 libglib1.2
  libgpmg1 libgtk1.2 libgtk1.2-common libjpeg62 libpng2 libtiff3g libxaw6
  ncurses-term nvi-m17n-common perl perl-modules xemacs21 xemacs21-basesupport
  xemacs21-bin xemacs21-mulesupport xemacs21-support 
The following NEW packages will be installed:
  canna canna-utils egg emacs20 emacsen-common file ja-trans jless jnethack
  jvim-canna kinput2-canna kinput2-common kterm language-env libcanna1g
  libcompfaceg1 libglib1.2 libgpmg1 libgtk1.2 libgtk1.2-common libjpeg62
  libpng2 libtiff3g libxaw6 localeconf locales manpages-ja ncurses-term
  nvi-m17n-canna nvi-m17n-common perl perl-modules tcsh-kanji vim xemacs21
  xemacs21-basesupport xemacs21-bin xemacs21-mule-canna-wnn
  xemacs21-mulesupport xemacs21-support 
0 packages upgraded, 40 newly installed, 0 to remove and 0  not upgraded.
Need to get 52.4MB of archives. After unpacking 172MB will be used.
Do you want to continue? [Y/n] y

進めましょう

やってきました

Debian Configuration
Configuring Locales
You can choose locales to be generated by selecting locales you want.
Selected locales will be saved to `/etc/locale.gen' file. You can also
manually edit this file. You need to run `locale-gen' after edit the file.

US JP 関連の 4個 選択 しておけば 良いでしょう また default ga 解からなければC 選んで 脱出 で 処理しておきましょう

重要なのは ユーザーの 環境にて 日本語 環境を 設定 しましょう

nyan@nyantarou:~$ set-language-env 
Setting up users' native language environment 
by modifying their dot-files. 
Type "set-language-env -h" for help. 
 
1 : be  (Bielaruskaja,Belarusian) 
2 : bg  (Bulgarian) 
3 : da  (Dansk,Danish) 
4 : de  (Deutsch,German) 
5 : es  (Espanol,Spanish) 
6 : fr  (Francais,French) 
7 : ja  (Nihongo,Japanese) 
8 : ko  (Hangul,Korean) 
9 : mk  (Makedonski,Macedonian) 
10 : pl  (Polski,Polish) 
11 : ru  (Russkii,Russian) 
12 : sr  (Srpski,Serbian) 
13 : th  (Thai) 
14 : uk  (Ukrajins'ka,Ukrainian) 
Input number > 7 
この文字が読めますか? /* この時点では 読めません */
UE NO BUNSYOU (KANJI) GA YOMEMASUKA? [y/N] n 
package ICHIRAN WO SYUTOKU SHITE IMASU... 
Canna server GA UGOITE IMASU. 
Wnn server GA UGOITE IMASEN. 
network NO DOKOKA BETSUNO computer DE Wnn server GA UGOITE IMASUKA [y/N] n 
SKK server GA UGOITE IMASEN. 
network NO DOKOKA BETSUNO computer DE SKK server GA UGOITE IMASUKA [y/N] n 
NIHONGO NIHA KANKEINO NAI SAMAZAMANA SETTEIWO OKONAI MASUKA [Y/n] y 
 
------- /home/mm/.Xresources -------- 
X Window System DE UGOKU program NO SETTEI DESU. 
 
SETTEI WO OKONAI MASUKA  [Y/n] y 
SETTEI SHIMASU ... 
ATARASHII file "/home/mm/.Xresources" WO TSUKURIMASU... 
 
------- /home/mm/.bash_profile -------- 
bash SHIYOU JI NI, login JI NI JIKKOU SAREMASU. 
TAN-NI, .bashrc WO JIKKOU SURU DAKENO NAIYOU DESU. 
 
SETTEI WO OKONAI MASUKA  [Y/n] y 
SETTEI SHIMASU ... 
 
------- /home/mm/.bashrc -------- 
bash GA KIDOU SURU TOKI NI JIKKOU SAREMASU. 
SAMAZAMA NA SETTEI WO SHITEIRU NODE, MEWO TOOSHITE OITE KUDASAI. 
 
SETTEI WO OKONAI MASUKA  [Y/n] y 
SETTEI SHIMASU ... 
 
------- /home/mm/.canna -------- 
Canna NO SETTEI DESU. 
 
SETTEI WO OKONAI MASUKA  [Y/n] y 
SETTEI SHIMASU ... 
ATARASHII file "/home/mm/.canna" WO TSUKURIMASU... 
 
------- /home/mm/.cshrc -------- 
csh NO KIDOU JI NI JIKKOU SAREMASU. 
SAMAZAMA NA SETTEI WO SHITEIRU NODE, MEWO TOOSHITE OITE KUDASAI. 
 
SETTEI WO OKONAI MASUKA  [Y/n] y 
SETTEI SHIMASU ... 
ATARASHII file "/home/mm/.cshrc" WO TSUKURIMASU... 
 
------- /home/mm/.emacs -------- 
emacs NO SETTEI DESU. 
emacs20, emacs21 NI TAIOU SHITE IMASU. 
xemacs21 HA, .xemacs/init.el DE SETTEI SIMASU. 
 
SETTEI WO OKONAI MASUKA  [Y/n] y 
SETTEI SHIMASU ... 
Canna NO JOUTAI: local 
Wnn NO JOUTAI: TSUKAEMASEN. 
SKK NO JOUTAI: TSUKAEMASEN. 
emacs DEHA, KANJI HENKAN NIHA DORE WO TSUKAI MASUKA? \
1=Canna 2=Wnn 3=SKK 4=none  (1..4, [Enter]=1) 1 
ATARASHII file "/home/mm/.emacs" WO TSUKURIMASU... 
 
------- /home/mm/.inputrc -------- 
bash NADO, readline library WO MOCHIITA program NO SETTEI DESU. 
 
SETTEI WO OKONAI MASUKA  [Y/n] y 
SETTEI SHIMASU ... 
ATARASHII file "/home/mm/.inputrc" WO TSUKURIMASU... 
 
------- /home/mm/.nexrc -------- 
nvi NO SETTEI DESU. 
.bashrc/.cshrc NI KAKARETA vi NO SETTEI TO KUMIAWASETE TSUKAIMASU. 
nvi-m17n, nvi-m17n-canna WO TSUKAU TOKI HA, SETTEI SHITE KUDASAI. 
 
SETTEI WO OKONAI MASUKA  [Y/n] y 
SETTEI SHIMASU ... 
ATARASHII file "/home/mm/.nexrc" WO TSUKURIMASU... 
 
------- /home/mm/.nexrc-m17n -------- 
nvi-m17n NO SETTEI DESU. 
.bashrc/.cshrc NI KAKARETA vi NO SETTEI TO KUMIAWASETE TSUKAIMASU. 
 
SETTEI WO OKONAI MASUKA  [Y/n] y 
SETTEI SHIMASU ... 
ATARASHII file "/home/mm/.nexrc-m17n" WO TSUKURIMASU... 
 
------- /home/mm/.nexrc-m17n-canna -------- 
nvi-m17n-canna NO SETTEI DESU. 
.bashrc/.cshrc NI KAKARETA vi NO SETTEI TO KUMIAWASETE TSUKAIMASU. 
Canna WO KIDOU SURU key WO, Ctrl-Space NI SHITE ARIMASU. 
 
SETTEI WO OKONAI MASUKA  [Y/n] y 
SETTEI SHIMASU ... 
ATARASHII file "/home/mm/.nexrc-m17n-canna" WO TSUKURIMASU... 
 
------- /home/mm/.xsession -------- 
xdm WO TSUKATTE X Window System NI login SHITA TOKI NI JIKKOU SAREMASU. 
MATA, startx YA xinit WO TSUKATTE X WO KIDOU SHITA TOKI NIMO JIKKOU SAREMASU. 
 
SETTEI WO OKONAI MASUKA  [Y/n] y 
SETTEI SHIMASU ... 
ATARASHII file "/home/mm/.xsession" WO TSUKURIMASU... 
 
------- /home/mm/.xemacs/init.el -------- 
xemacs21 NO SETTEI DESU. 
 
SETTEI WO OKONAI MASUKA  [Y/n] y 
SETTEI SHIMASU ... 
Canna NO JOUTAI: local 
Wnn NO JOUTAI: TSUKAEMASEN. 
SKK NO JOUTAI: TSUKAEMASEN. 
emacs DEHA, KANJI HENKAN NIHA DORE WO TSUKAI MASUKA?\
 1=Canna 2=Wnn 3=SKK 4=none  (1..4, [Enter]=1) 1 
ATARASHII file "/home/mm/.xemacs/init.el" WO TSUKURIMASU... 
-------------------- 
   SETTEI GA SYUURYOU SHIMASHIA. SETTEI WO YUUKOU NI 
SURUNIHA, ICHIDO logout SHITEKARA, FUTATABI login SHITE 
KUDASAI. 
   SOREZORE NO dotfile WO YONDE, DONOYOUNI HENKOU SARETAKA, 
KAKUNIN SHITE KUDASAI. KINI IRANAI SETTEI HA, CHOKUSETSU 
HENKOU SURUKA, 'language-env end' IKOU NO GYOU NI SAI-SETTEI 
WO KAKI-KUWAETE KUDASAI. 
   KUWASIKUHA, /usr/share/doc/language-env/README.ja.eucJP.gz WO 
 SANSYOU SHITE KUDASAI. 
 
IKA NO locale WO install SHITE KUDASAI. 
(/etc/locale.gen WO HENSYUU SHITE, locale-gen WO JIKKOU SURU.) 
ja_JP.eucJP ("ja_JP.EUC-JP EUC-JP" in /etc/locale.gen) 
 
[Enter] key WO OSUTO KONO set-language-env HA SYUURYOU SHIMASU. 

何かいわれているので 後処理が 必要

nyan@nyantarou:~$ su - 
Password:  
nyantarou:~# echo "ja_JP.EUC-JP EUC-JP" >>/etc/locale.gen  
nyantarou:~# sed /^#/d /etc/locale.gen  
  ja_JP.EUC-JP EUC-JP 
==============================
nyantarou:~# locale-gen 
Generating locales... 
  ja_JP.EUC-JP... done 
Generation complete. 
~~~~~~~~~~~~~~~~~~~~~~~~~~

へてから emacs で 日本語 を いれてみまひょう!おかしいな?連絡出来な いようです、canna さんに お伺いをたてましょう

nyan@nyantarou:~$ su -
Password: 
nyantarou:~# ps ax | grep canna
 1567 ?        S      0:00 /usr/sbin/cannaserver -u canna
 2043 tty1     S      0:00 kinput2 -canna
 2077 ttyp1    S      0:00 grep canna

動いてるで なんで なんで ???

ネットワークの 世界では 有名な 事柄の 様です。

nyantarou:~# cd /etc/init.d/
nyantarou:/etc/init.d# sed /^#/d canna |head
PATH=/bin:/u
sr/bin:/sbin:/usr/sbin
CANNASERVER=/usr/sbin/cannaserver
CANNAKILL=/usr/bin/cannakill
CANNA_SERVER_OPT="-u canna"

FLAGS="defaults 98"

test -f $CANNASERVER || exit 0
test -f $CANNAKILL || exit 0
nyantarou:/etc/init.d# vi canna 
nyantarou:/etc/init.d# sed /^#/d canna |head

PATH=/bin:/usr/bin:/sbin:/usr/sbin
CANNASERVER=/usr/sbin/cannaserver
CANNAKILL=/usr/bin/cannakill
CANNA_SERVER_OPT="-u canna -inet"

FLAGS="defaults 98"

test -f $CANNASERVER || exit 0
test -f $CANNAKILL || exit 0
nyantarou:/etc/init.d# cd /etc/
nyantarou:/etc# cat hosts.canna 
unix
nyantarou:/etc# vi hosts.canna
nyantarou:/etc# cat hosts.canna 
localhost
unix

さて 一服しましょう 再起動

nyantarou:~# ps ax | grep canna
  160 ?        S      0:00 /usr/sbin/cannaserver -u canna -inet

これで 日本語は 扱える 様になりました。


戻る|次をみる。??


debian 3.0 に ついて に戻る

Copyright © 2004.-2007. nyantarou All Rights Reserved.