お知らせ

  • 利用規約を守って投稿してください。また、よくある質問および投稿の手引きも参照してください。
  • メッセージの投稿にはアカウントが必要です。未登録の方は、ユーザ登録ページからアカウントを作成することができます。

#1 2009-05-27 21:14:14

[email protected]
新しいメンバ
登録日: 2009-04-12

テキストモードで日本語が文字化けします

VirtualBoxにUbuntu9.04をインストールしていますが、テキストモード(具体的に言うと[Ctrl]+[Alt]+[F1]を押してテキストモードに移行する)
でログインすると日本語のディレクトリ名やファイル名、apt-getなどを実行すると日本語の部分がダイヤのような記号で表示されてしまいます。
テキストモードで日本語が正常に表示するにはどのようにしたら良いのでしょうか。お願いします。

オフライン

 

#2 2009-05-27 22:25:13

avidya
ゲスト

Re: テキストモードで日本語が文字化けします

 ちょっと時間がないのでさわりだけ。
 とりあえずは MIZUNO さんのページを参考にして fbterm を使うと幸せになれます。
 Ubuntu 9.04 Jaunty Jackalope からは自分でビルドしなくても、リポジトリのものがそのまま使えます。
 あと私が困っていた時の
https://forums.ubuntulinux.jp/viewtopic.php?id=4023
https://forums.ubuntulinux.jp/viewtopic.php?id=3475
あたりも参考になります。

 

#3 2009-05-28 14:20:27

[email protected]
新しいメンバ
登録日: 2009-04-12

Re: テキストモードで日本語が文字化けします

avidyaさん回答ありがとうございます。

返答遅れてすいません。
MIZUNOさんのページを参考にして
$ sudo apt-get install fbterm

$ sudo vi /etc/initramfs-tools/modules
# 以下の二行を追加
fbcon
vesafb

$ sudo vi /etc/modprobe.d/blacklist-framebuffer
(...snip...)
blacklist tridentfb
# blacklist vesafb # コメントアウト
blacklist vfb
というように編集したのですが

$ sudo vi /boot/grub/menu.lst
# defoptions=vga=791  # vga 云々なオプションを追記
というのがどういうように編集すればよいのかよくわかりません。

以下、/boot/grub/menu.lstの# defoptions=vga=791が書かれている行までです。


# menu.lst - See: grub(8), info grub, update-grub(8)
#            grub-install(8), grub-floppy(8),
#            grub-md5-crypt, /usr/share/doc/grub
#            and /usr/share/doc/grub-doc/.

## default num
# Set the default entry to the entry number NUM. Numbering starts from 0, and
# the entry number 0 is the default if the command is not used.
#
# You can specify 'saved' instead of a number. In this case, the default entry
# is the entry saved with the command 'savedefault'.
# WARNING: If you are using dmraid do not use 'savedefault' or your
# array will desync and will not let you boot your system.
default        0

## timeout sec
# Set a timeout, in SEC seconds, before automatically booting the default entry
# (normally the first entry defined).
timeout        3

## hiddenmenu
# Hides the menu by default (press ESC to see the menu)
#hiddenmenu

# Pretty colours
#color cyan/blue white/blue

## password ['--md5'] passwd
# If used in the first section of a menu file, disable all interactive editing
# control (menu entry editor and command-line)  and entries protected by the
# command 'lock'
# e.g. password topsecret
## password --md5 $1$gLhU0/$aW78kHK1QfV3P2b2znUoe/
# password topsecret

#
# examples
#
# title        Windows 95/98/NT/2000
# root        (hd0,0)
# makeactive
# chainloader    +1
#
# title        Linux
# root        (hd0,1)
# kernel    /vmlinuz root=/dev/hda2 ro
#

#
# Put static boot stanzas before and/or after AUTOMAGIC KERNEL LIST

### BEGIN AUTOMAGIC KERNELS LIST
## lines between the AUTOMAGIC KERNELS LIST markers will be modified
## by the debian update-grub script except for the default options below

## DO NOT UNCOMMENT THEM, Just edit them to your needs

## ## Start Default Options ##
## default kernel options
## default kernel options for automagic boot options
## If you want special options for specific kernels use kopt_x_y_z
## where x.y.z is kernel version. Minor versions can be omitted.
## e.g. kopt=root=/dev/hda1 ro
##      kopt_2_6_8=root=/dev/hdc1 ro
##      kopt_2_6_8_2_686=root=/dev/hdc2 ro
# kopt=root=UUID=9e0e312d-9f16-4804-8c35-48f57257f79d ro

## default grub root device
## e.g. groot=(hd0,0)
# groot=9e0e312d-9f16-4804-8c35-48f57257f79d

## should update-grub create alternative automagic boot options
## e.g. alternative=true
##      alternative=false
# alternative=true

## should update-grub lock alternative automagic boot options
## e.g. lockalternative=true
##      lockalternative=false
# lockalternative=false

## additional options to use with the default boot option, but not with the
## alternatives
## e.g. defoptions=vga=791 resume=/dev/hda5
# defoptions=quiet splash

オフライン

 

#4 2009-05-29 08:37:12

avidya
ゲスト

Re: テキストモードで日本語が文字化けします

 私の場合の話になってしまうのですが、memu.lst の kernel 行のオプションを以下のように変更しています。環境は Ubuntu 9.04 Jaunty Jackalope です。Ubuntu のバージョンによって vga の設定値が異なりますので気をつけてください。

コード:

kernel        /boot/vmlinuz-2.6.28-11-generic root=UUID=e567d44d-9d31-49f4-9f0d-844667cb52df ro quiet nosplash [u]vga=0x399[/u]

・nosplash を指定することで boot の状況を見えるようにしています。そうすることでなんらかの障害があった場合や、vga のパラメータに誤った値を設定した時に正しい値を設定し直すことができます。
・vga=0x399 を指定することで画面解像度を 1280x1024 32bit にしています。

 

#5 2009-05-30 10:48:59

[email protected]
新しいメンバ
登録日: 2009-04-12

Re: テキストモードで日本語が文字化けします

avidyaさんありがとうございます。
grubの問題は無事に解決しました。
しかし、sudo fbtermと入力しなければ、fbtermを起動できません。
hogehoge@hoge-desktop:~$ fbtermと入力すると
can't open frambuffer device!というエラーメッセージが表示されてしまいます。

また、sudo fbtermで起動しても
http://2nd.geocities.jp/asu_112/Ubuntu.jpg
というように表示されてしまいます。

grubのvgaで他の解像度を指定しても同じように表示されるので、grubの問題ではないと思います。

オフライン

 

#6 2009-05-30 13:29:24

mizuno
管理者
From: Kyoto
登録日: 2007-02-28

Re: テキストモードで日本語が文字化けします

avidyaさんが最初に示されている
https://forums.ubuntulinux.jp/viewtopic.php?id=4023
は読まれましたか?
おそらくここに書かれていることと同様の現象ではないかと思います。

オフライン

 

#7 2009-05-31 00:26:55

[email protected]
新しいメンバ
登録日: 2009-04-12

Re: テキストモードで日本語が文字化けします

MIZUNOさん
返答ありがとうございます。
avidyaさんが書かれている
https://forums.ubuntulinux.jp/viewtopic.php?id=4023
を読み増して、[Ctrl]+[Alt]+[F1]で起動するのではなく sysv-rc-conf をインストールして、gdmを無効にして起動するようにしていますが、
他にも無効にするものがあるのでしょうか?

設定ファイルはまだ編集していないので、https://forums.ubuntulinux.jp/viewtopic.php?id=4023
参考にして編集してみようと思います。

オフライン

 

#8 2009-05-31 06:17:34

avidya
ゲスト

Re: テキストモードで日本語が文字化けします

mizunoさん による投稿:

おそらくここに書かれていることと同様の現象ではないかと思います。

 MIZUNO さん、ちょっと空いた時間を利用してテストしてみました。
 結果ですが、私の 9.04 環境でも 8.10 までの方法ではフレームバッファを有効にできませんでした。ひょっとすると 9.04 から微妙に環境が変わったのかもです。

# 時間が取れなくて追求できないのが申し訳ないです。

 

Board footer

Powered by FluxBB