2016年2月21日日曜日

[Debian Linux]アメーバピグの文字化けを治す!

PC版アメーバピグのチャットでなぜか☒☒☒☒☒と表示されてしまう
スマホ版をPCのブラウザで表示させたときは文字化けしないのだが...なぜだ
✱この画像は拾い画です^^; 知恵袋から

解決策

まずは、fonts-takao-gothicをインストールしよう

Debian以外の人はパッケージ名が若干違うかもしれない


次に下記のコマンドを上から順番に実行する
# apt-get update
# apt-get install fonts-arphic-uming
# fc-cache -fv
# cd /usr/share/fonts/truetype/arphic
# cp -p ../takao-gothic/TakaoPGothic.ttf uming.ttc

Debian以外の人は、TakaoPGothic.ttf と uming.ttc の場所が違うかもしれないので、違う場合はファイルバスを書き換えて実行して

以上でPCを再起動してピグを開いたら文字化けが治った!


因みに動作確認をしたブラウザはChromium と google-chrome の64bit版


こういう姑息な改悪というか妨害は、仕方なくWindowsを買わせるための工作なんだろうねぇw

参考サイト:http://ameblo.jp/magi-alphard/entry-11635128445.html
http://ameblo.jp/magi-alphard/entry-11883672631.html
https://forums.ubuntulinux.jp/viewtopic.php?id=16476
https://sites.google.com/site/tetsuroweb/home/software/ubuntu/tips/flash-char-garbled

jessie

2016年2月8日月曜日

[debian linux ] Nvidiaドライバの代わりに nouveau ドライバでディユアルモニターにした

ずっとNvidiaグラボ使っているわけだが、最近アップデートするとデスクトップが立ち上がらなくなり、原因究明とか面倒くさくなったので最初から入ってるnouveauドライバでいくことにした。

nouveau(ヌーヴォー)とは、フリーのNvidiaドライバである

まずは、認識してるモニターを調べる
$ xrandr -q | grep "connected"
DVI-I-1 connected 1440x900+0+0 (normal left inverted right x axis y axis) 442mm x 249mm
VGA-1 connected 1440x900+1440+0 (normal left inverted right x axis y axis) 410mm x 256mm

ポイントは解像度と各モニタに接続してるDVI と VGA のところ


次に、設定ファイルのxorg.confがないので新たに作る

/etc/X11/xorg.conf

xorg.confの中身
Section "ServerLayout"
    identifier "Layout"
    screen     0 "screen0" 0 0
Endsection

Section "Monitor"
    Identifier "Monitor0"
    Option     "PreferredMode" "1440x900"
    Option     "Primary" "True"
EndSection

Section "Monitor"
    Identifier "Monitor1"
    Option     "PreferredMode" "1440x900"
    Option     "RightOf" "Monitor0"
    Option     "Primary" "False"
EndSection

Section "Device"
    Identifier "Device0"
    Driver     "nouveau"
    Option     "monitor-DVI-I-1" "Monitor0"
    Option     "monitor-VGA-1"   "Monitor1"
EndSection

Section "Screen"
    Identifier   "screen0"
    Device       "Device0"
    Monitor      "Monitor0"
    DefaultDepth 24

    SubSection "Display"
        Depth   24
        Modes   "1440x900"
    EndSubSection
EndSection


以上で再起動で反映した

参考サイト:http://blog.tekito.org/2010/11/20/nouveau%E3%81%A7%E3%83%87%E3%83%A5%E3%82%A2%E3%83%AB%E3%83%A2%E3%83%8B%E3%82%BF%E3%81%AE%E8%A8%AD%E5%AE%9A%E3%82%92%E3%81%97%E3%81%A6%E3%81%BF%E3%81%9F/

jessie