tgif をリモート環境から起動する方法
[解析サーバ(anam*、anah*)]
自分の端末から anam* 等にリモートログインした後、以下のエラー
メッセージが出力されて、起動できない場合に試してください。
(エラーメッセージ)
Fatal Error in OpenFont(): Cannot open the Default(Msg)Font
'-*-courier-medium-r-normal-*-14-*-*-*-*-*-iso8859-1'.
Tgif aborted.
(対処方法)
A. クライアントに 75dpi ISO-8859-1 fonts をインストールする。
B. Ubuntu 11.*, 12.* 等の場合は下記の対応でも可。
1. ~/.Xresources を編集する。~/.Xresources が無い場合は、
% cp /etc/X11/ja_JP.eucJP/app-defaults/Tgif ~/.Xresources
で、準備する。
2. 上記の ~/.Xresouces の tgif の部分を下記のように修正する。
(コメントアウトを外す。下記はすでに外した状態)
! To get around font problems... If all you have are
! -*-fixed-medium-r-normal--%d-* fonts, you can set
! Tgif.HasAlternateDefaultFonts to "true" and use the following.
! This will all fonts with the -*-fixed-medium-r-normal--%d-* fonts.
! (You should probably set Tgif.DefFixedWidthFont and
! Tgif.DefFixedWidthRulerFont.)
!
Tgif.HasAlternateDefaultFonts: true
Tgif.Times-Roman: -*-fixed-medium-r-normal--%d-*
Tgif.Times-Bold: -*-fixed-bold-r-normal--%d-*
Tgif.Times-Italic: -*-fixed-medium-r-semicondensed--%d-*
Tgif.Times-BoldItalic: -*-fixed-bold-r-semicondensed--%d-*
Tgif.Courier: -*-fixed-medium-r-normal--%d-*
Tgif.Courier-Bold: -*-fixed-bold-r-normal--%d-*
Tgif.Courier-Oblique: -*-fixed-medium-r-semicondensed--%d-*
Tgif.Courier-BoldOblique: -*-fixed-bold-r-semicondensed--%d-*
Tgif.Helvetica: -*-fixed-medium-r-normal--%d-*
Tgif.Helvetica-Bold: -*-fixed-bold-r-normal--%d-*
Tgif.Helvetica-Oblique: -*-fixed-medium-r-semicondensed--%d-*
Tgif.Helvetica-BoldOblique: -*-fixed-bold-r-semicondensed--%d-*
Tgif.NewCenturySchlbk-Roman: -*-fixed-medium-r-normal--%d-*
Tgif.NewCenturySchlbk-Bold: -*-fixed-bold-r-normal--%d-*
Tgif.NewCenturySchlbk-Italic: -*-fixed-medium-r-semicondensed--%d-*
Tgif.NewCenturySchlbk-BoldItalic: -*-fixed-bold-r-semicondensed--%d-*
Tgif.Symbol: -*-fixed-medium-r-normal--%d-*
3. % xrdb -merge ~/.Xresources を実行した後に、anam* 等にログイン
した後、tgif は起動できるようになります。