2008年6月4日水曜日

Windowsネットワーク共有で文字化け対応

■設定

sudo gedit /etc/samba/smb.conf

dos charset = CP932
unix charset = utf8
display charset = utf8

これで日本語化される

ファイル名をWindows用に変換する(面倒だな)

インストール
sudo apt-get install convmv

・変換
ubuntu→Windows
convmv -r -f utf8 -t sjis (ファイル名) --notest

Windows→ubuntu

convmv -r -f sjis -t utf8 (ファイル名) --notest

もっとお手軽にできればいいんだけど。