2005-12-27 (Tue)

_ [vdr] 10:40-18:30 停止

ルータ異常で接続できなくなっていました。

_ [comp] 続・Encoding name `Shift-JIS' not supported

そもそも「Shift-JIS」は間違いで「Shift_JIS」が正しいようだ。ついでに「EUC_JP」は間違いで「EUC-JP」が正しい。 当該の exe をバイナリエディタで

-S^@h^@i^@f^@t^@-^@J^@I^@S^@
+S^@h^@i^@f^@t^@_^@J^@I^@S^@
  • を _ に置換してやったら動かすことができた。といってもエンコーディング部分をパスできただけで結局動かなかったけど。

_ [comp] NFS のポート固定

SecuringNFS - Debian Wiki を見つつ設定。 rpc.statd のポートを固定するには /etc/default/nfs-common で

-STATDOPTS=
+STATDOPTS="--port 32765 --outgoing-port 32766"

rpc.mountd のポートを固定するには /etc/default/nfs-kernel-server で

-RPCMOUNTDOPTS=
+RPCMOUNTDOPTS="-p 32767"

lockd のポートを固定するには /etc/modprobe.d/options.local に

options lockd nlm_udpport=32768 nlm_tcpport=32768

として reboot。ところが、

lockd_up: makesock failed, error=-98
lockd_up: no pid, 2 users??
lockd_up: no pid, 3 users??
lockd_up: no pid, 4 users??
lockd_up: no pid, 5 users??
lockd_up: no pid, 6 users??
lockd_up: no pid, 7 users??
lockd_up: no pid, 8 users??

となって lockd 動かず。調べてみると ファイアウォール(Firewall)を越えてNFSマウントしたい というページを発見。lockd に 32768 を割り当てたけど、既に使われているらしい。そこで /etc/modprobe.d/options.local を

options lockd nlm_udpport=32764 nlm_tcpport=32764

と変更して reboot。こんどはうまく動作した。

_ [comp] ルータを越えて DCC SEND

SEND という名称だけど、実際には相手に送りつけるのではなく、相手に持っていってもらう、という動作をするようだ。なので、SEND する側のルータの壁に穴を開けてやらなければならない。

  1. xchat の場合、設定→ネットワーク→ファイル転送で「DCC IPアドレス」を適切に設定するか「IRCサーバから自分のIPアドレスを取得する」にチェック。「DCC 送信ポート」をここでは例として 16667 とする。
  2. ルータで 16667/tcp への接続を xchat を実行しているクライアントに転送するように設定する。

_ [debian] zsh 4.3.0-dev-2-1

zsh 用 euc-jp patch がなくてもいい感じに動くようになった。zsh 4.2.6-2vd1 を削除。

2005-12-26 (Mon)

_ [debian] zsh 4.2.6-2vd1

zsh 用 euc-jp patch を当てて作成。

_ [debian] mana 0.1.6-0vd1, manadic 0.1.4-0vd1

uim-mana を試してみるのに作成。

_ [debian] uim 1:1.0.1-1vd1

uim-mana を有効にして作成。

_ [debian] sylpheed 2.1.999+2.2.0beta2-0vd1

作成。

_ [debian] audacious 0.1.2+svn369-0vd1,2

SVN から引っ張ってきて 1 作成。 送付した festalongbsplaysexyspcxymmsGame_Music_Emu で実装したからということで没った模様。もうちょっとそれぞれの優位性を説明したほうがよかったかな。 sexypsf は取り込まれた。 やはり festalongbsplaysexyspcxymms を当て、Game_Music_Emu を無効にして 2 作成。

_ [comp] smbmount

メモ

# smbmount //Windowsのホスト名/共有名 マウントポイント -o username=ユーザー名,ip=WindowsのIPaddr
# smbumount マウントポイント

_ [comp] Encoding name `Shift-JIS’ not supported

ある exe を wine で動かそうとしたら、

% wine XXXXXXXX.exe
fixme:advapi:RegisterEventSourceA ((null),".NET Runtime"): stub
fixme:advapi:RegisterEventSourceW (L"",L".NET Runtime"): stub
fixme:advapi:ReportEventW (0xcafe4242,0x0001,0x0000,0x00000000,(nil),0x0001,0x00000000,0x4083f8a8,(nil)): stub
err:eventlog:ReportEventW L".NET Runtime version 1.0.3705.0- .NET Framework Initialization Error: Please set registry key HKLM\Software\Microsoft\.NETFramework\InstallRoot to point \nto the .NET Framework install location"
fixme:advapi:DeregisterEventSource (0xcafe4242) stub
Wine exited with a successful status

となったので久々に Mono の出番。mono-jit を install。

% mono XXXXXXXX.exe
Unhandled Exception: System.TypeInitializationException: An exception was thrown by the type initializer for System.Windows.Forms.ThemeEngine ---> System.TypeInitializationException: An exception was thrown by the type initializer for System.Drawing.GDIPlus ---> System.DllNotFoundException: gdiplus.dll
in (wrapper managed-to-native) System.Drawing.GDIPlus:GdiplusStartup (ulong&,System.Drawing.GdiplusStartupInput&,System.Drawing.GdiplusStartupOutput&)
in <0x000fa> System.Drawing.GDIPlus:.cctor ()--- End of inner exception stack trace ---

libgdiplus を入れるのを忘れていた。

% mono XXXXXXXX.exe
Mono System.Windows.Forms Assembly [Revision: 51965; built: 2005/10/20 3:34:45]
Keyboard: United States keyboard layout (phantom key version)
Gtk colorscheme read
Unhandled Exception: System.NotSupportedException: Encoding name `Shift-JIS' not supported

ここで手詰まり。

using System.Text;
using System;

class Test {
  static public void Main() {
    Console.WriteLine( Encoding.GetEncoding( "Shift-JIS" ) );
  }
}

テスト用プログラム。

2005-12-25 (Sun)

_ [debian] firefox 1.5.dfsg-3vd1

以上を当てて作成。