VMwarePlayerでCentOSを動かす 3

VMwarePlayerでCentOSを動かす 3


 さて、CentOSインストールが出来たのはいいが、この時点ではCentOSは日本語対応していない。
 とりあえず、先ほど作ったアカウントでログインしよう。インストール時に指定したアカウント名が表示されているので、こいつをクリックしてパスワードを入力するのだ。

 しばらくして、デスクトップ画面が表示される。まだ英語表示だ。
 画面の何もないところで右クリックし、Open In Terminalを選択。

 Terminalが開くので、以下のコマンドを実行。(入力するのは赤文字部分)

 


[kabuki@localhost Desktop]$ su
Password:  パスワードを入力
[root@localhost Desktop]#

[root@localhost yum.repos.d]# yum -y groupinstall "Japanese Support"
Loaded plugins: fastestmirror, refresh-packagekit, security

Loading mirror speeds from cached hostfile

 * base: ftp.riken.jp

 * extras: ftp.riken.jp

 * updates: ftp.riken.jp

dvd                                                      | 4.0 kB     00:00 ...

dvd/primary_db                                           | 3.5 MB     00:00 ...

Setting up Group Process

Checking for new repos for mirrors

base/group_gz                                            | 197 kB     00:02    

dvd/group_gz                                             | 197 kB     00:00 ...

Package vlgothic-fonts-20091202-2.el6.noarch already installed and latest version

Package poppler-data-0.4.0-1.el6.noarch already installed and latest version

Resolving Dependencies

--> Running transaction check

---> Package ibus-anthy.i686 0:1.2.1-3.el6 will be installed

--> Processing Dependency: ibus >= 1.2.0.20100111 for package: ibus-anthy-1.2.1-3.el6.i686

--> Processing Dependency: anthy for package: ibus-anthy-1.2.1-3.el6.i686

--> Processing Dependency: libanthydic.so.0 for package: ibus-anthy-1.2.1-3.el6.i686

--> Processing Dependency: kasumi for package: ibus-anthy-1.2.1-3.el6.i686

--> Processing Dependency: libanthy.so.0 for package: ibus-anthy-1.2.1-3.el6.i686

---> Package ipa-gothic-fonts.noarch 0:003.02-4.2.el6 will be installed

---> Package ipa-mincho-fonts.noarch 0:003.02-3.1.el6 will be installed

---> Package ipa-pgothic-fonts.noarch 0:003.02-4.1.el6 will be installed

---> Package ipa-pmincho-fonts.noarch 0:003.02-3.1.el6 will be installed

---> Package man-pages-ja.noarch 0:20100115-5.el6 will be installed

---> Package vlgothic-p-fonts.noarch 0:20091202-2.el6 will be installed

--> Running transaction check

---> Package anthy.i686 0:9100h-10.1.el6 will be installed

---> Package ibus.i686 0:1.3.4-6.el6 will be installed

--> Processing Dependency: ibus-libs = 1.3.4-6.el6 for package: ibus-1.3.4-6.el6.i686

--> Processing Dependency: ibus-gtk = 1.3.4-6.el6 for package: ibus-1.3.4-6.el6.i686

--> Processing Dependency: im-chooser >= 1.2.5 for package: ibus-1.3.4-6.el6.i686

--> Processing Dependency: libibus.so.2 for package: ibus-1.3.4-6.el6.i686

--> Processing Dependency: notify-python for package: ibus-1.3.4-6.el6.i686

--> Processing Dependency: pyxdg for package: ibus-1.3.4-6.el6.i686

---> Package kasumi.i686 0:2.5-1.1.el6 will be installed

--> Running transaction check

---> Package ibus-gtk.i686 0:1.3.4-6.el6 will be installed

---> Package ibus-libs.i686 0:1.3.4-6.el6 will be installed

---> Package im-chooser.i686 0:1.3.1-3.el6 will be installed

--> Processing Dependency: imsettings >= 0.106.0 for package: im-chooser-1.3.1-3.el6.i686

--> Processing Dependency: libimsettings.so.4 for package: im-chooser-1.3.1-3.el6.i686

---> Package notify-python.i686 0:0.1.1-10.el6 will be installed

---> Package pyxdg.noarch 0:0.18-1.el6 will be installed

--> Running transaction check

---> Package imsettings.i686 0:0.108.0-3.5.el6 will be installed

--> Processing Dependency: libgxim.so.2 for package: imsettings-0.108.0-3.5.el6.i686

---> Package imsettings-libs.i686 0:0.108.0-3.5.el6 will be installed

--> Running transaction check

---> Package libgxim.i686 0:0.3.3-3.1.el6 will be installed

--> Finished Dependency Resolution

 


Dependencies Resolved

 


================================================================================

 Package                 Arch         Version                  Repository  Size

================================================================================

Installing:

 ibus-anthy              i686         1.2.1-3.el6              base       133 k

 ipa-gothic-fonts        noarch       003.02-4.2.el6           base       3.6 M

 ipa-mincho-fonts        noarch       003.02-3.1.el6           base       5.0 M

 ipa-pgothic-fonts       noarch       003.02-4.1.el6           base       3.6 M

 ipa-pmincho-fonts       noarch       003.02-3.1.el6           base       5.0 M

 man-pages-ja            noarch       20100115-5.el6           base       5.5 M

 vlgothic-p-fonts        noarch       20091202-2.el6           base       2.2 M

Installing for dependencies:

 anthy                   i686         9100h-10.1.el6           base       6.0 M

 ibus                    i686         1.3.4-6.el6              base       334 k

 ibus-gtk                i686         1.3.4-6.el6              base        25 k

 ibus-libs               i686         1.3.4-6.el6              base        96 k

 im-chooser              i686         1.3.1-3.el6              base       144 k

 imsettings              i686         0.108.0-3.5.el6          base       189 k

 imsettings-libs         i686         0.108.0-3.5.el6          base       101 k

 kasumi                  i686         2.5-1.1.el6              base        72 k

 libgxim                 i686         0.3.3-3.1.el6            base       122 k

 notify-python           i686         0.1.1-10.el6             base        25 k

 pyxdg                   noarch       0.18-1.el6               base        79 k

 


Transaction Summary

================================================================================

Install      18 Package(s)

 


Total download size: 32 M

Installed size: 66 M

Downloading Packages:

(1/18): anthy-9100h-10.1.el6.i686.rpm                    | 6.0 MB     00:12    

(2/18): ibus-1.3.4-6.el6.i686.rpm                        | 334 kB     00:00    

(3/18): ibus-anthy-1.2.1-3.el6.i686.rpm                  | 133 kB     00:00    

(4/18): ibus-gtk-1.3.4-6.el6.i686.rpm                    |  25 kB     00:00    

(5/18): ibus-libs-1.3.4-6.el6.i686.rpm                   |  96 kB     00:00    

(6/18): im-chooser-1.3.1-3.el6.i686.rpm                  | 144 kB     00:00    

(7/18): imsettings-0.108.0-3.5.el6.i686.rpm              | 189 kB     00:00    

(8/18): imsettings-libs-0.108.0-3.5.el6.i686.rpm         | 101 kB     00:00    

(9/18): ipa-gothic-fonts-003.02-4.2.el6.noarch.rpm       | 3.6 MB     00:29    

(10/18): ipa-mincho-fonts-003.02-3.1.el6.noarch.rpm      | 5.0 MB     00:16    

(11/18): ipa-pgothic-fonts-003.02-4.1.el6.noarch.rpm     | 3.6 MB     00:14    

(12/18): ipa-pmincho-fonts-003.02-3.1.el6.noarch.rpm     | 5.0 MB     00:11    

(13/18): kasumi-2.5-1.1.el6.i686.rpm                     |  72 kB     00:00    

(14/18): libgxim-0.3.3-3.1.el6.i686.rpm                  | 122 kB     00:00    

(15/18): man-pages-ja-20100115-5.el6.noarch.rpm          | 5.5 MB     00:12    

(16/18): notify-python-0.1.1-10.el6.i686.rpm             |  25 kB     00:00    

(17/18): pyxdg-0.18-1.el6.noarch.rpm                     |  79 kB     00:00    

(18/18): vlgothic-p-fonts-20091202-2.el6.noarch.rpm      | 2.2 MB     00:04    

--------------------------------------------------------------------------------

Total                                           309 kB/s |  32 MB     01:46    

warning: rpmts_HdrFromFdno: Header V3 RSA/SHA256 Signature, key ID c105b9de: NOKEY

Retrieving key from file:///etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

Importing GPG key 0xC105B9DE:

 Userid : CentOS-6 Key (CentOS 6 Official Signing Key) <centos-6-key@centos.org>

 Package: centos-release-6-2.el6.centos.7.i686 (@anaconda-CentOS-201112130233.i386/6.2)

 From   : /etc/pki/rpm-gpg/RPM-GPG-KEY-CentOS-6

Running rpm_check_debug

Running Transaction Test

Transaction Test Succeeded

Running Transaction

  Installing : anthy-9100h-10.1.el6.i686                                   1/18

  Installing : ibus-libs-1.3.4-6.el6.i686                                  2/18

  Installing : libgxim-0.3.3-3.1.el6.i686                                  3/18

  Installing : pyxdg-0.18-1.el6.noarch                                     4/18

  Installing : vlgothic-p-fonts-20091202-2.el6.noarch                      5/18

  Installing : ipa-pgothic-fonts-003.02-4.1.el6.noarch                     6/18

  Installing : man-pages-ja-20100115-5.el6.noarch                          7/18

  Installing : ipa-mincho-fonts-003.02-3.1.el6.noarch                      8/18

  Installing : ipa-gothic-fonts-003.02-4.2.el6.noarch                      9/18

  Installing : ipa-pmincho-fonts-003.02-3.1.el6.noarch                    10/18

  Installing : imsettings-libs-0.108.0-3.5.el6.i686                       11/18

  Installing : imsettings-0.108.0-3.5.el6.i686                            12/18

  Installing : im-chooser-1.3.1-3.el6.i686                                13/18

  Installing : kasumi-2.5-1.1.el6.i686                                    14/18

  Installing : notify-python-0.1.1-10.el6.i686                            15/18

  Installing : ibus-gtk-1.3.4-6.el6.i686                                  16/18

  Installing : ibus-1.3.4-6.el6.i686                                      17/18

  Installing : ibus-anthy-1.2.1-3.el6.i686                                18/18

 


Installed:

  ibus-anthy.i686 0:1.2.1-3.el6                                                

  ipa-gothic-fonts.noarch 0:003.02-4.2.el6                                     

  ipa-mincho-fonts.noarch 0:003.02-3.1.el6                                     

  ipa-pgothic-fonts.noarch 0:003.02-4.1.el6                                    

  ipa-pmincho-fonts.noarch 0:003.02-3.1.el6                                    

  man-pages-ja.noarch 0:20100115-5.el6                                         

  vlgothic-p-fonts.noarch 0:20091202-2.el6                                     

 


Dependency Installed:

  anthy.i686 0:9100h-10.1.el6               ibus.i686 0:1.3.4-6.el6            

  ibus-gtk.i686 0:1.3.4-6.el6               ibus-libs.i686 0:1.3.4-6.el6       

  im-chooser.i686 0:1.3.1-3.el6             imsettings.i686 0:0.108.0-3.5.el6  

  imsettings-libs.i686 0:0.108.0-3.5.el6    kasumi.i686 0:2.5-1.1.el6          

  libgxim.i686 0:0.3.3-3.1.el6              notify-python.i686 0:0.1.1-10.el6  

  pyxdg.noarch 0:0.18-1.el6               

 


Complete!


 これで、日本語環境を使う準備が整った。実際に日本語環境への切り替え(i18nファイル編集)するとともに、キーボードを日本語キーボードモードに切り替え(keyboardファイル編集)しよう。


 以下のファイルを編集する。

 


[root@localhost Desktop]# vi /etc/sysconfig/i18n
[root@localhost Desktop]#

[root@localhost Desktop]# cat /etc/sysconfig/i18n

LANG="ja_JP.UTF-8"
[root@localhost Desktop]# vi /etc/sysconfig/keyboard
[root@localhost Desktop]# cat /etc/sysconfig/keyboard

KEYTABLE="jp106"
[root@localhost Desktop]#


 なお、英語キーボードモードでは、「:」(コロン)の入力はShift+「;」セミコロンで入力する。


 再起動する。


 ログインすると、日本語でメニューなどが表示されている。


 「標準フォルダの名前を現在の言語に合わせて更新しますか?」は、「古い名前のままにする」にしておこう。 



 これは要するに、「アンタの個人用フォルダの名前をわかりやすいように日本語にしてやるよ。うれしいだろ?」ということを言ってきているのだが、linuxのファイル名やフォルダ名を日本語にすると、デメリットの方が多いのでお断りするわけだ。いいや、俺は日本語の方が便利だから変更してもらいたいね!という人は好きにすればいいと思う。


 これで日本語が表示できるようになった。めでたしめでたし。残すはネットワークの設定だけだが、今日はこのへんで覚書を終わる。