IBM DeveloperWorks Japan
Information Management
http://www.ibm.com/developerworks/jp/data/
2010/04/14
2010/04/13
Samba ドメイン参加エラー
Windows7クライアントでドメインに参加する場合のエラー回避方法.

regedit でレジストリ編集.
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\Tcpip\Parameters
NV Domain に任意のドメイン名を設定すればいいらしい.
参考)Windows 7 で Samba ドメインに参加
http://www.natzworks.com/digital/entries/2010/000256.html

regedit でレジストリ編集.
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\services\Tcpip\Parameters
NV Domain に任意のドメイン名を設定すればいいらしい.
参考)Windows 7 で Samba ドメインに参加
http://www.natzworks.com/digital/entries/2010/000256.html
Windows7用 PDC for Samba
調べたサイトをとりあえずメモ.
http://ja.528p.com/linux/centos/SP001-samba.html
http://blog.livedoor.jp/brb35350/
http://blog.livedoor.jp/brb35350/archives/51297361.html
http://damedame.monyo.com/?date=20091011
http://shigekun.blog.so-net.ne.jp/2008-04-05
http://o-mita.cocolog-nifty.com/blog/2007/11/samba_6601.html
http://ja.528p.com/linux/centos/SP001-samba.html
http://blog.livedoor.jp/brb35350/
http://blog.livedoor.jp/brb35350/archives/51297361.html
http://damedame.monyo.com/?date=20091011
http://shigekun.blog.so-net.ne.jp/2008-04-05
http://o-mita.cocolog-nifty.com/blog/2007/11/samba_6601.html
sshfs アンマウント
sshfs でマウントしたディレクトリをアンマウントする方法.
root では umount でアンマウント可能だが,一般ユーザでは
umount自体が実行できないため,fusermount を使う.
fusermount -u /home/hoge
参考)sshで他マシンのファイルシステムをマウントするには
http://www.atmarkit.co.jp/flinux/rensai/linuxtips/948sshfs.html
root では umount でアンマウント可能だが,一般ユーザでは
umount自体が実行できないため,fusermount を使う.
fusermount -u /home/hoge
参考)sshで他マシンのファイルシステムをマウントするには
http://www.atmarkit.co.jp/flinux/rensai/linuxtips/948sshfs.html
sshfs の実行権限
root 以外で sshfs を実行するための設定.
/etc/group の fuse グループにユーザを追加する.
参考)sshで他マシンのファイルシステムをマウントするには
http://www.atmarkit.co.jp/flinux/rensai/linuxtips/948sshfs.html
/etc/group の fuse グループにユーザを追加する.
参考)sshで他マシンのファイルシステムをマウントするには
http://www.atmarkit.co.jp/flinux/rensai/linuxtips/948sshfs.html
Mecab
MeCab: Yet Another Part-of-Speech and Morphological Analyzer
http://mecab.sourceforge.net/
MeCabメーリングリスト
http://sourceforge.jp/projects/mecab/
簡単な使い方.
MeCabコマンド単独での実行.
http://mecab.sourceforge.net/#parse
% cd mecab-perl-0.98
% perl Makefile.PL
Checking if your kit is complete...
Looks good
Writing Makefile for MeCab
% make
cp MeCab.pm blib/lib/MeCab.pm
g++ -c -I/usr/local/include -D_REENTRANT -D_GNU_SOURCE -DDEBUGGING -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g -pipe -m64 -DVERSION=¥"0.98¥" -DXS_VERSION=¥"0.98¥" -fPIC "-I/usr/lib64/perl5/5.8.5/x86_64-linux-thread-multi/CORE" MeCab_wrap.cxx
Running Mkbootstrap for MeCab ()
chmod 644 MeCab.bs
rm -f blib/arch/auto/MeCab/MeCab.so
g++ -shared MeCab_wrap.o -o blib/arch/auto/MeCab/MeCab.so -L/usr/local/lib -lmecab -lstdc++
chmod 755 blib/arch/auto/MeCab/MeCab.so
cp MeCab.bs blib/arch/auto/MeCab/MeCab.bs
chmod 644 blib/arch/auto/MeCab/MeCab.bs
% make test
# make install
Installing /usr/lib64/perl5/site_perl/5.8.5/x86_64-linux-thread-multi/auto/MeCab/MeCab.so
Installing /usr/lib64/perl5/site_perl/5.8.5/x86_64-linux-thread-multi/auto/MeCab/MeCab.bs
Files found in blib/arch: installing files in blib/lib into architecture dependent library tree
Writing /usr/lib64/perl5/site_perl/5.8.5/x86_64-linux-thread-multi/auto/MeCab/.packlist
Appending installation info to /usr/lib64/perl5/5.8.5/x86_64-linux-thread-multi/perllocal.pod
参考)MeCab 0.98 のインストール方法
http://www.asahi-net.or.jp/~YW3T-TRNS/namazu/mecab/index.htm
参考)サンプルプログラムなど.
[Perl] MeCab.pm 入ったー!
http://d.hatena.ne.jp/likk/20070428/1177781039
http://mecab.sourceforge.net/
MeCabメーリングリスト
http://sourceforge.jp/projects/mecab/
簡単な使い方.
MeCabコマンド単独での実行.
http://mecab.sourceforge.net/#parse
% cd mecab-perl-0.98
% perl Makefile.PL
Checking if your kit is complete...
Looks good
Writing Makefile for MeCab
% make
cp MeCab.pm blib/lib/MeCab.pm
g++ -c -I/usr/local/include -D_REENTRANT -D_GNU_SOURCE -DDEBUGGING -fno-strict-aliasing -pipe -I/usr/local/include -D_LARGEFILE_SOURCE -D_FILE_OFFSET_BITS=64 -I/usr/include/gdbm -O2 -g -pipe -m64 -DVERSION=¥"0.98¥" -DXS_VERSION=¥"0.98¥" -fPIC "-I/usr/lib64/perl5/5.8.5/x86_64-linux-thread-multi/CORE" MeCab_wrap.cxx
Running Mkbootstrap for MeCab ()
chmod 644 MeCab.bs
rm -f blib/arch/auto/MeCab/MeCab.so
g++ -shared MeCab_wrap.o -o blib/arch/auto/MeCab/MeCab.so -L/usr/local/lib -lmecab -lstdc++
chmod 755 blib/arch/auto/MeCab/MeCab.so
cp MeCab.bs blib/arch/auto/MeCab/MeCab.bs
chmod 644 blib/arch/auto/MeCab/MeCab.bs
% make test
# make install
Installing /usr/lib64/perl5/site_perl/5.8.5/x86_64-linux-thread-multi/auto/MeCab/MeCab.so
Installing /usr/lib64/perl5/site_perl/5.8.5/x86_64-linux-thread-multi/auto/MeCab/MeCab.bs
Files found in blib/arch: installing files in blib/lib into architecture dependent library tree
Writing /usr/lib64/perl5/site_perl/5.8.5/x86_64-linux-thread-multi/auto/MeCab/.packlist
Appending installation info to /usr/lib64/perl5/5.8.5/x86_64-linux-thread-multi/perllocal.pod
参考)MeCab 0.98 のインストール方法
http://www.asahi-net.or.jp/~YW3T-TRNS/namazu/mecab/index.htm
参考)サンプルプログラムなど.
[Perl] MeCab.pm 入ったー!
http://d.hatena.ne.jp/likk/20070428/1177781039
Lingua-JA-Summarize-0.08
Perlモジュール Lingua-JA-Summarize-0.08 のインストール.
必要なPerlモジュールをCPANでインストール.
% perl -MCPAN -e shell
cpan> install Class::Accessor::Fast
cpan> install Class::ErrorHandler
cpan> install Lingua::JA::Summarize
% tar zxvf Lingua-JA-Summarize-0.08
% cd Lingua-JA-Summarize-0.08
% perl Makefile.PL
Checking if your kit is complete...
Looks good
Writing Makefile for Lingua::JA::Summarize
% make
cp lib/Lingua/JA/Summarize.pm blib/lib/Lingua/JA/Summarize.pm
cp lib/Lingua/JA/Summarize/Mecab.pm blib/lib/Lingua/JA/Summarize/Mecab.pm
Manifying blib/man3/Lingua::JA::Summarize.3pm
Manifying blib/man3/Lingua::JA::Summarize::Mecab.3pm
% make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00-util.......ok
t/01-new........ok
t/02-keyword....ok
All tests successful.
Files=3, Tests=41, 3 wallclock secs ( 3.50 cusr + 0.08 csys = 3.58 CPU)
# make install
Writing /usr/lib64/perl5/site_perl/5.8.5/x86_64-linux-thread-multi/auto/Lingua/JA/Summarize/.packlist
Appending installation info to /usr/lib64/perl5/5.8.5/x86_64-linux-thread-multi/perllocal.pod
参考)CPANモジュールのmake testエラー.
http://q.hatena.ne.jp/mobile/1164216751
必要なPerlモジュールをCPANでインストール.
% perl -MCPAN -e shell
cpan> install Class::Accessor::Fast
cpan> install Class::ErrorHandler
cpan> install Lingua::JA::Summarize
% tar zxvf Lingua-JA-Summarize-0.08
% cd Lingua-JA-Summarize-0.08
% perl Makefile.PL
Checking if your kit is complete...
Looks good
Writing Makefile for Lingua::JA::Summarize
% make
cp lib/Lingua/JA/Summarize.pm blib/lib/Lingua/JA/Summarize.pm
cp lib/Lingua/JA/Summarize/Mecab.pm blib/lib/Lingua/JA/Summarize/Mecab.pm
Manifying blib/man3/Lingua::JA::Summarize.3pm
Manifying blib/man3/Lingua::JA::Summarize::Mecab.3pm
% make test
PERL_DL_NONLAZY=1 /usr/bin/perl "-MExtUtils::Command::MM" "-e" "test_harness(0, 'blib/lib', 'blib/arch')" t/*.t
t/00-util.......ok
t/01-new........ok
t/02-keyword....ok
All tests successful.
Files=3, Tests=41, 3 wallclock secs ( 3.50 cusr + 0.08 csys = 3.58 CPU)
# make install
Writing /usr/lib64/perl5/site_perl/5.8.5/x86_64-linux-thread-multi/auto/Lingua/JA/Summarize/.packlist
Appending installation info to /usr/lib64/perl5/5.8.5/x86_64-linux-thread-multi/perllocal.pod
参考)CPANモジュールのmake testエラー.
http://q.hatena.ne.jp/mobile/1164216751
2010/04/12
Samba 起動エラー
# /usr/local/samba-3.4.5/sbin/smbd -D
/usr/local/samba-3.4.5/sbin/smbd: error while loading shared libraries: libtalloc.so.1: cannot open shared object file: No such file or directory
# cd /etc/ld.so.conf.d
# cat smb.conf
/usr/local/samba/lib
# ldconfig
参考)
Sambaインストール
http://d.hatena.ne.jp/clmind/20080709
/usr/local/samba-3.4.5/sbin/smbd: error while loading shared libraries: libtalloc.so.1: cannot open shared object file: No such file or directory
# cd /etc/ld.so.conf.d
# cat smb.conf
/usr/local/samba/lib
# ldconfig
参考)
Sambaインストール
http://d.hatena.ne.jp/clmind/20080709
Samba 3.4.5 インストール
CentOS5.4 マシンにインストール
% ./configure --prefix=/usr/local/samba-3.4.5
% make
% make instlal
..
..
==============================================================
MO files for pam_winbind are installed.
==============================================================
==============================================================
All MO files for Samba are installed. You can use "make uninstall"
or "make uninstallmo" to remove them.
==============================================================
正常にmakeできた.
% ./configure --prefix=/usr/local/samba-3.4.5
% make
% make instlal
..
..
==============================================================
MO files for pam_winbind are installed.
==============================================================
==============================================================
All MO files for Samba are installed. You can use "make uninstall"
or "make uninstallmo" to remove them.
==============================================================
正常にmakeできた.
Samba 3.5.2 インストール
CentOS5.4 マシンにインストール
% ./configure --prefix=/usr/local/samba-3.5.2
% make
...
...
Compiling client/client.c
Compiling client/clitar.c
Compiling client/dnsbrowse.c
Compiling lib/readline.c
Compiling ../libcli/security/display_sec.c
Linking bin/smbclient
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libreadline.so: undefined reference to `PC'
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libreadline.so: undefined reference to `tgetflag'
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libreadline.so: undefined reference to `tgetent'
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libreadline.so: undefined reference to `UP'
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libreadline.so: undefined reference to `tputs'
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libreadline.so: undefined reference to `tgoto'
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libreadline.so: undefined reference to `tgetnum'
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libreadline.so: undefined reference to `BC'
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libreadline.so: undefined reference to `tgetstr'
collect2: ld はステータス 1 で終了しました
make: *** [bin/smbclient] エラー 1
3.5だから?
% ./configure --prefix=/usr/local/samba-3.5.2
% make
...
...
Compiling client/client.c
Compiling client/clitar.c
Compiling client/dnsbrowse.c
Compiling lib/readline.c
Compiling ../libcli/security/display_sec.c
Linking bin/smbclient
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libreadline.so: undefined reference to `PC'
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libreadline.so: undefined reference to `tgetflag'
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libreadline.so: undefined reference to `tgetent'
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libreadline.so: undefined reference to `UP'
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libreadline.so: undefined reference to `tputs'
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libreadline.so: undefined reference to `tgoto'
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libreadline.so: undefined reference to `tgetnum'
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libreadline.so: undefined reference to `BC'
/usr/lib/gcc/i386-redhat-linux/4.1.2/../../../libreadline.so: undefined reference to `tgetstr'
collect2: ld はステータス 1 で終了しました
make: *** [bin/smbclient] エラー 1
3.5だから?
sshfs マウントポイントの共有
特定のユーザが sshfs でマウントしたマウントポイントは
rootを含め他のユーザがアクセスすることはできないが,
sshfs に以下のオプションを付けることで可能になる.
-o allow_other (rootを含む他のユーザ)
-o allow_root
何も設定しないで実行すると以下のようなエラーが出る.
% sshfs -o allow_root 192.168.1.1:/home/test /home/test
hoge@192.168.1.1's password:
fusermount: option allow_other only allowed if 'user_allow_other' is set in /etc/fuse.conf
sshfsの設定を行う.CentOS5.4の場合は新規作成.
# echo 'user_allow_other' >> /etc/fuse.conf
これで,
% sshfs -o allow_root 192.168.1.1:/home/test /home/test
とすることで,root でもアクセスできるようになる.
参考) SSHFSとは
http://wiki.mmj.jp/index.php?Fedora5%2FFUSE-sshfs
rootを含め他のユーザがアクセスすることはできないが,
sshfs に以下のオプションを付けることで可能になる.
-o allow_other (rootを含む他のユーザ)
-o allow_root
何も設定しないで実行すると以下のようなエラーが出る.
% sshfs -o allow_root 192.168.1.1:/home/test /home/test
hoge@192.168.1.1's password:
fusermount: option allow_other only allowed if 'user_allow_other' is set in /etc/fuse.conf
sshfsの設定を行う.CentOS5.4の場合は新規作成.
# echo 'user_allow_other' >> /etc/fuse.conf
これで,
% sshfs -o allow_root 192.168.1.1:/home/test /home/test
とすることで,root でもアクセスできるようになる.
参考) SSHFSとは
http://wiki.mmj.jp/index.php?Fedora5%2FFUSE-sshfs
DELL Latitude D600 ドライバー
DELL Latitude D600 ドライバー
http://supportapj.dell.com/support/downloads/driverslist.aspx?c=jp&l=ja&s=gen&ServiceTag=&SystemID=LAT_PNT_PM_D600&os=WW1&osl=jp&catid=&impid=
http://support.dell.com/support/downloads/driverslist.aspx?c=us&l=en&s=gen&catid=32&hidlang=AR&hidos=WW1&impid=-1&os=WW1&osl=DU&servicetag=6F6191J&SystemID=LAT_PNT_PM_D600&TabIndex=
http://supportapj.dell.com/support/downloads/driverslist.aspx?c=jp&l=ja&s=gen&ServiceTag=&SystemID=LAT_PNT_PM_D600&os=WW1&osl=jp&catid=&impid=
http://support.dell.com/support/downloads/driverslist.aspx?c=us&l=en&s=gen&catid=32&hidlang=AR&hidos=WW1&impid=-1&os=WW1&osl=DU&servicetag=6F6191J&SystemID=LAT_PNT_PM_D600&TabIndex=
2010/04/11
Solaris10 on Hyper-V
【Hyper-V】Solaris10
http://mklabo.jp/blog/doctor-k/2008/10/hyper-vsolaris10.html
仮想NICをレガシーで構築すれば動くらしい.
http://mklabo.jp/blog/doctor-k/2008/10/hyper-vsolaris10.html
仮想NICをレガシーで構築すれば動くらしい.
2010/04/10
Remote App
ターミナル サービス RemoteApp (TS RemoteApp)
http://technet.microsoft.com/ja-jp/library/cc753844%28WS.10%29.aspx
Virtual PC にインストールしたWindowsXPやWindowsVista上の
アプリケーションをWindows7から起動する場合に必要.
XPModeには最初からインストールされている.
RetemoApp for WindowsXP SP3用
http://www.microsoft.com/downloads/details.aspx?familyid=E5433D88-685F-4036-B435-570FF53598CD&displaylang=ja
RemoteApp for WindowsVista SP1以降用
http://www.microsoft.com/downloads/details.aspx?FamilyID=26a2de17-8355-4e8d-8f33-9211e48651fb&displaylang=ja
http://technet.microsoft.com/ja-jp/library/cc753844%28WS.10%29.aspx
Virtual PC にインストールしたWindowsXPやWindowsVista上の
アプリケーションをWindows7から起動する場合に必要.
XPModeには最初からインストールされている.
RetemoApp for WindowsXP SP3用
http://www.microsoft.com/downloads/details.aspx?familyid=E5433D88-685F-4036-B435-570FF53598CD&displaylang=ja
RemoteApp for WindowsVista SP1以降用
http://www.microsoft.com/downloads/details.aspx?FamilyID=26a2de17-8355-4e8d-8f33-9211e48651fb&displaylang=ja
Microsoft Web 開発 ガイドライン
Microsoft Web 開発 ガイドライン
~ ASP.NET プログラミング エッセンシャル ~
http://msdn.microsoft.com/ja-jp/asp.net/ff602016.aspx
~ ASP.NET プログラミング エッセンシャル ~
http://msdn.microsoft.com/ja-jp/asp.net/ff602016.aspx
MySQLデータバックアップ
MySQL全データのバックアップ.
# mysqldump --all-databases -u root --password="xxx" > /tmp/mysqlbak.sql
# mysqldump --all-databases -u root --password="xxx" > /tmp/mysqlbak.sql
登録:
投稿 (Atom)