2012-01-01から1ヶ月間の記事一覧

イントール中のRHEL6のシステムにsshでログインする

RHEL互換のCentOS, Scientific Linux でもOK。 http://docs.redhat.com/docs/ja-JP/Red_Hat_Enterprise_Linux/6/html/Installation_Guide/sn-ssh-installation.html http://docs.redhat.com/docs/ja-JP/Red_Hat_Enterprise_Linux/6/html/Installation_Guide/…

cobbler 利用時のdefault install modeをgraphicalにする

RHEL6からtextモードではパーティションをカスタマイズできなくなった関係の対策。/etc/cobbler/settings のkernel_options から"text: ~" を削除してcobber 再起動。defaultはtextのままで、graphicalにprofileにだけkernel optionsに"!text" を設定しても…

SL6.1で2.6.32-220.2.1 にあげたらkernelがwarningのtrace吐いてた

RHEL6 互換のOSで起きている現象? https://access.redhat.com/kb/docs/DOC-68014 https://bugzilla.redhat.com/show_bug.cgi?id=770228 https://www.centos.org/modules/newbb/viewtopic.php?topic_id=34872 # cat /etc/redhat-release Scientific Linux re…

RHEL6 系のLDAP認証 - clientの設定

CentOS, Scientifix Linuxも同じ。redhatのmanualをちょろっと読んで動かしている限り、認証したいclient側でnslcd を起動させておく必要がある? # yum install openldap-clients pam_ldap nss-pam-ldapd # authconfig --enableldap --enableldapauth --upd…

64bit RHEL5・CentOS5 で32bitのパッケージが標準でインストールされないようにする

http://docs.redhat.com/docs/ja-JP/Red_Hat_Enterprise_Linux/6/html/Migration_Planning_Guide/ch09s05.html http://www.redhat.com/archives/rhl-devel-list/2008-February/msg00168.html CentOS5のdefaultでは、例えばyum install subversion とすると以…

sphinx で日本語の全文検索対応

前まではパッチを当てて〜〜と色々対応しないとダメだった記憶があって放置してたんだけど、 公式を見てたら sphinx 1.1 から対応しているようす。 http://sphinx.pocoo.org/config.html?highlight=search#confval-language http://sphinx.pocoo.org/config.…

仮想MacアドレスのベンダーID

catalystのshow mac address-table をかき集めたもの(Net::Telnetとarp tableをかき集めたもの(Net::Ping, Net::Libdnet::Arp) から 半自動でswitchのportに接続してるhostのIPを引っ張ってくるperl書いてたんだけど、仮想マシンがあると同一Portに複数のMac…

sphinx make pdf でエラーになる件

python, sphinx のversion上げたらmake pdf でエラーになった $ make pdf sphinx-build -b pdf -d build/doctrees source build/pdf Running Sphinx v1.1.2 loading pickled environment... done building [pdf]: targets for 12 source files that are out …

sphinx 1.0.7以下で画像が重複してコピーされるbug

sourceディレクトリに直接画像を保存している場合は問題ない。 .. image:: hoge.jpg でも、sourceディレクトリにサブディレクトリを作ってその下に画像を保存していると .. image:: images/hoge.jpg このrstファイルを更新してmake htmlする度に、build/html…

rtmpdump/flvstreamer で rtmp(flash ストリーミング) のファイルを保存する

fmsの死活監視をしようとしてrtmp clientを(perlのKamaitachi等を使って)書こうとしたけど、そもそもrtmpが良くわからないし面倒になったので既製品使うことにした。それっぽい単語でぐぐるとrtmpdumpとflvstreamerというのが見つかった。flvstreamerはrtmpd…

linuxでバイナリダンプ

optionは適当(なくてもいい)。他にも有りそう。 xxd xxd -g 1 file od odは-t format で出力形式の指定が可能。 od -t x1z file od -t xCz file hexdump hexdump -C file

linuxでintel NIC driver e1000eを最新に更新する

intelの公式からとってくる。 http://downloadcenter.intel.com/SearchResult.aspx?lang=jpn&keyword=%22e1000e%22# linux - driver 2012/01/11時点で最新は1.9.5。 kernelのsourceが必要なので、なければinstallしておく。 # apt-get install linux-headers…

httpdがRangeリクエスト(bytes)に対応していないとiphoneから動画再生ができない

ということを知った。iphoneの仕様?iphoneからアクセスして、realサーバでは動画の再生が出来るけど、とあるキャッシュサーバでは動画の再生ができないことがあった。tcpdump/ngrepでpacket captureしてみるとキャッシュサーバのレスポンスヘッダから"Accep…