]
トップ 最新 追記

Yukiharu YABUKI の tDiary



このtDiaryを検索します。

2004-11-01 [長年日記]

_ [Debian] Eclipse 3.0 for woody

(http://hemswell.lincoln.ac.uk/~dnutter/eclipse-woody.php) をを.#すいません,前のURLはコピペ ミスです.

_ [OpenOffice.org] MLより

Wizardで,"GroupId > 255 chars" というメッセージがでる場合があるとのこと,(http://qa.openoffice.org/issues/show_bug.cgi?id=31314) 平野さんの投稿より.

apt-bittorrentapt-torrent

(http://sianka.free.fr/)

どっかで見たような気がするのだけど,覚えてない.orz. Nくん,ありがとう,そうです.kmutoさんのとこ(http://kmuto.jp/d/?date=20041030#p07)はぁ,すっきりした.

_ お昼

hnakamurさんと,インデアンカレー.私は,昨日本店でカレーを食べたので,ハヤシにしておく.

ジュンク堂書店(アバンザ)

食事後に本屋へ,すると他のgood-day社員にであう.刊行されている本や雑誌のチェックであろう

_ 和倉への振り込み

done.

_ 新札発行

上記のついでにお金を引出したが,新札じゃない:) 尋ねてみると両替機に入っているとのこと.

_ class mateといっしよに

ご挨拶へ5Fへいった.わざわざ待っていただきありがとうございます.Class mateの京ポンでcgiircへ接続.

_ 来年のKOFは

いろいろありて,10月28日(Fri) 29日(Sat)になりました.


2004-11-02 [長年日記]

_ 帰宅

帰ってきました [0:25]

_ 会食

焼肉.おもしろかった.

_ 天気

はれ

_ google desktopの入ったマシンにリモートから接続する

connect24hより(http://whzat.minidns.net/shoko2/GoogleDesktopSearchServer/)

_ [OpenOffice.org] OOo Basicのデバッガー 2.0

本家devより.
OpenOffice.org Basic Debugger 2.0 is available now.
http://www.nichoume.com/ooo/dev/OOoBasicDebugger/2.0/
 
 - Object viewer
 - Incremental filter
 - API specifications viewer
 - Basic data type viewer
 - Recursive view _ New!
 - Method invocation _ New!

_ (GnuPG) Key sign

いまからサインしていきます.今,見たら新部さんから,key serverを使おうという,ありがたいメールが来てました.

で,少し調査するとUNIX環境におけるOpenPGP準拠ソフト「GnuPG」での公開鍵サーバ使用法(http://openpksd.org/docs/report2002/client-howto/unix/unix.html)ここなどを参照するとよいと思った.

  • 公開鍵を探す.

    gpg --keyserver pgp.mit.edu --search-keys foo@bar

    複数ある場合は,適切な番号を選択する.公開鍵がimportされる.

  • finger printを検査する --- 会ったときにPhoto IDで本人を確認する,そのときに本人からfinger printをもらうこと

    gpg --edit-key "Name or email address"

    fpr

    確認する

  • サインする.--edit-keyでやる方法もあるけど,下記で.

    gpg --sign-key foo@bar

    鍵の確認と,どれぐらい注意して本人確認をしたか の確認をされます.最後に自分にパスフレーズを入力します.

  • 相手の鍵をサーバに送信します.(単純にどんどんマージしているので他人が送信しても大丈夫

    yab@hrestol:~$ gpg --keyserver pgp.mit.edu --send-key your name or email address

    gpg: `pgp.mit.edu'への送信に成功 (状態=200)

  • 自分の鍵も,上記にあわせて送信しておくのが良い.

  • 一度,登録したら,下記が楽かも.

    yab@hrestol:~$ gpg --keyserver pgp.mit.edu --refresh-keys


2004-11-04 [長年日記]

_ @it:新にわか管理者奮闘記(1):第1回 まさかわが社の顧客情報が漏えいするとは!

adminzで話題だったので新にわか管理者奮闘記(1):第1回 まさかわが社の顧客情報が漏えいするとは!(http://www.atmarkit.co.jp/fsecurity/rensai/beginner201/beginner01.html) 管理者として,というか会社にとって重い話です.

_ [DPiS] backupninja - A silent flower blossom death strike to lost data

バックアップ忍者!
Backupninja lets you drop config files in /etc/backup.d to coordinate system backup using a variety of tools, including rdiff-backup and any shell script. The main config file lives in /etc/backupninja.conf. The process is run from /etc/cron.d/backupninja.

_ [DPiS] gambas - The Gambas IDE , gambas-gb-debug - The debugger helper component for the Gambas IDE と gambas-doc - Free VB-like language

IDEということで.

Gambas is a free development environment based on a Basic interpreter with object extensions, like Visual Basic(tm) (but it is NOT a clone!). With Gambas, you can quickly design your program GUI, access MySQL or PostgreSQL databases, pilot KDE applications with DCOP, translate your program into many languages, and so on...

This package includes the Gambas Development Environment, with the database manager and install the help files and all the components.

_ [DPiS] lkcdutils - Utilities to capture and analyze kernel crash dumps

カーネルがクラッシュダンプする内容を取得および,解析するユーティリティ

The Linux Kernel Crash Dump (LKCD) project has created this set of utilities to go along with the kernel patches that allow for a kernel crash dump to be captured for analysis. Currently, when a kernel crashes it prints an Oops on the screen, and one has to manually write what the screen reads in order to have any hope of diagnosis. Using the LKCD kernel patches and utilities a crash dump can be captured, either on disk in a dump device (such as the swap partition), or over the network using a network dump device and then easily analyzed or provided to kernel developers to analyze.

The home page for lkcdutils is: http://lkcdutils.sourceforge.net

_ [DPiS] oprofile-modules-2.4.27-1-686 - OProfile modules for Linux (kernel 2.4.27-1-686).

Debianの2.4.27-686用(Debianで使っているLinuxカーネルバージョン2.4.27で686(Pentium)用のoprofileモジュール.他には386,k7やSMP用のやつもある.

This package contains the set of loadable kernel modules for the OProfile system-wide profiling tools.

This package contains the compiled kernel modules for 2.4.27-1-686

If you have compiled your own kernel, you will need to build your own oprofile-modules. The oprofile-source package has been provided for use with the Debian package 'kernel-package' to produce a version of oprofile-modules for your kernel.

_ [DPiS] sepol-utils - Security Enhanced Linux policy utility programs

セキュリティを向上させたLinuxのポリシー・ユーティリティ・プログラム.
This package provides a utility for a Security-enhanced Linux system to rewrite existing mandatory access control policy with different boolean setting, generating a new policy. Security-enhanced Linux is a patch of the Linux kernel and a number of utilities with enhanced security functionality designed to add mandatory access controls to Linux. This package provides utility programs to get and set process and file security contexts and to obtain security policy decisions.

_ [DPiS] hping3 - Active Network Smashing Tool

hping3 is a network tool able to send custom ICMP/UDP/TCP packets and to display target replies like ping does with ICMP replies. It handles fragmentation and arbitrary packet body and size, and can be used to transfer files under supported protocols. Using hping3, you can test firewall rules, perform (spoofed) port scanning, test network performance using different protocols, do path MTU discovery, perform traceroute-like actions under different protocols, fingerprint remote operating systems, audit TCP/IP stacks, etc. hping3 is scriptable using the TCL language.

Author: Salvatore Sanfilippo < antirez@invece.org > Homepage: http://wiki.hping.org/

_ [DPiS] mp3splt - Splits MP3 and Ogg Vorbis files without reencoding

再エンコードなしに,MP3とOgg Vorbisファイルの分割を行なう.

Mp3Splt is a command line utility to split MP3 (VBR supported) and Ogg Vorbis files into smaller files without decoding. Useful for splitting albums, either manually, using freedb.org data, or .cue files and for splitting based on length or on periods of silence in the file.

Can easily extract files created with Mp3Wrap (from the mp3wrap package) or the AlbumWrap format --

Homepage: http://mp3splt.sourceforge.net/

_ [大学院] 大村先生の中継

準備をおこなう.cleanerで DVTSで入ってきてencode後のファイルをsaveできるようなので,それにもチャレンジが.

_ お昼

銀杏祭へ買い食いに出かけるか? :) 軽音楽部のチャーハンとギョウザ.若者向きの味である.そのあと 揚げパン を購入する.ほどよく揚がっていた.

_ [大学院] ミーディング

論文の内容について,どこまで書きこむかの おはなし.

_ オフショア開発

liさんへ(http://blog.japan.cnet.com/umeda/archives/001770.html) それだけでなく,「新しい日本と古い日本」にも共感できた.

_ 梅田さんの記事

M&Aの増加はエンタープライズ市場構造変化の兆し(http://blog.japan.cnet.com/umeda/archives/001765.html) この中で「ベンチャーでも大企業でも働けるギーク」という部分がおもしろい.こんな部分でオープンソースの分析もさらっと載せている.私が「オープンソース」というキーワードに反応しているからであるが、オープンソースは既存のソフトウェアに対して影響を及ぼしているという視点でいつも書かれてある.

_ [OpenOffice.org] lsof

昨日のToraさんとの議論についてメモ.soffice.binがおおきいことは,すでにwell knownである.MS Officeなどでは,うまく見掛け上の時間短縮を行うことで対処している.それは,コードで調べたわけでなく,操作をおこなったとき動作で,あとからDLLなどを読んで,プログラムをメモリにロードいるとおぽしき動作をしている.

Unix(Linux?)のOpenOffice.orgの最初の起動については,*.soのpreloadという回避策があるが,十分ではない.もっとロードを早くするにはどうすればいいだろう.

一つはOpenOffice.orgが,あまりにおおきいので シンポル(nmで確認可能)をロードするスビードと検索するスピードが早くなれば良いというものでした.これはc++のオブジェクト・シンボルがあまりに長いからというものです.これはLinuxのローダーがobject nameをhash化して高速に扱えるがどうかの問題て,ここの高速化が可能がどうかは,調べれば判る.

つぎに,*.soや*.dllをdisk上に分散して配置してあり,読みこむのが遅くなるのではないか? ということは,動的リンクではなく静的リンクを行ない一括にメモリにロードすると,良いのではないか? というものである

ここで脇道に逸れる.私は,これまでstatic linkを行なうと,別のユーザーがメモリ上にプログラムをロードすると別々にメモリにロードされると考えていた.しかし,賢いシステムならi-node番号を見ておく,そしてリードオンリーでメモリにロードしておき,書きこみが発生したらフォルトを発生させて書き込みが起ったところにコピーをつくる.

本筋に戻す.soffice.binを静的リンクすると早くなるなら、とToraさんはバイナリを作成してみたことがあるそうです.結果はsoffice.binは,思ったほど大きくならなかった.つまり,明示的に*.soなどをロードする部分があり,すべてをstaticにlinkすることができなかったということである.これでも,連続で読み込みできるので早くはなるが,期待するほどではない.

共通の部分が大きい

lsofでOpenOffice.orgが,開いているファイルの数を調べよう.

yabuki@Malkion:~$ openoffice &

[1] 5874

yabuki@Malkion:~$ lsof -p 5874 | wc

112 1001 11006

まだ,多い.

yabuki@Malkion:~$ lsof -p 5874 | grep mem | grep \.so |wc

86 774 8610

これだけの*.so ファイルをロードしている.OpenOffice.orgだけで,ooWriter,ooCalc, ooImpressは,まだロードしていない.

つぎに OpenOffice.orgの中で「新規作成」→「文書ドキュメント」でooWriterのコンポーネントをロードする

yabuki@Malkion:~$ lsof -p 5874 | grep mem | grep \.so |wc

101 909 10053

皆さんでも追試ができるので確認して欲しい.一番大きいのは最初にロードされている部分てあることが,判った.

ということは,ここの部分を変更するということは,大きくプログラムの構造の変更が必要になる.ということで,すぐには手が付かない部分であろう (でも,提案しておかないとね,それと代替案か自分でなにかを実行)

_ [大学院] liさんへの文献リンク集

この日記の日付現在.2002年のOctに最終変更されているが,素晴しい内容である.

ここにあげるのは, 国際化プログラミングに関して参考になると考えられる

日本語, 英語で書かれた参考文献, 規格書, および URL をできるだけ広範囲に

集めたものである.

(http://www.geocities.co.jp/SiliconValley-PaloAlto/8090/info.html)

懇親会

杉本町の駅前 TokTokにて 大村先生って,見た目若いけど...

本日のツッコミ(全1件) [ツッコミを入れる]

_ li [URLありがとうございます。新しい日本と古い日本の共感がまた理解に至っていません。]


2004-11-05 [長年日記]

_ おはようございます.

天気ははれ.

_ kbysさんより

シーケンス図をもらう.

_ hnakamurさん

OSSについて議論する.

_ 明日

10:00より,2ビル5Fにて,論文のために御指導いただく予定.

_ 鍵署名

chuaさんの鍵に署名して,pgp.mit.edu に登録

_ お昼

お弁当.おにぎり,うめぼし,つけもの.つくってもらった残りの肉じゃが.

_ [DPiS] msmtp - light SMTP client with support for server profiles

msmtp is an SMTP client that can be used to send mails from Mutt and probably other MUAs (mail user agents). It forwards mails to an SMTP server (for example at a free mail provider), which takes care of the final delivery. Using profiles, it can be easily configured to use different SMTP servers with different configurations, which makes it ideal for mobile clients.

This package is compiled with GSASL and TLS support.

_ [DPiS] spew - An I/O performance measurement and load generation tool

Spew is used to measure I/O performance of character devices, block devices, and regular files. It can also be used to generate high I/O loads to stress systems while verifying data integrity.

Spew is easy to use and is flexible. No configuration files or complicated client/server configurations are needed. Spew also generates its own data patterns that are designed to make it easy to find and debug data integrity problems.

超訳

Spewは、キャラクターデバイス,ブロックデバイス,通常のファイルのI/Oパフォーマンスを測定するのに使われます.Spewはまた,データの完全性を検証ずるのに,高いI/O負荷をシステムに与えることもできます.

Spewは,簡単に使えて,柔軟性があります.設定ファイルや複雑なクライアント/サーバーの設定は不要です.Spewはデータの完全性の問題を発見およびデバッグするのに簡単なように設計されたデータパターンを自分で生成します.

_ コレーションとは

(http://www.a10-dev.com/fb-site/FBDoc-J-pub/FBCollations.html)

なせこれに悩むのか?

コレーションに悩まされるには、2つの理由がある:

1) 国際的なキャラクタ問題

2) 大文字・小文字を区別して比較操作するという問題 国際的なキャラクタ問題


2004-11-06 [長年日記]

_ 天気

はれ

_ [大学院] ミーティング

  • 発表の練習をする
  • 2005年の年明けには,Paperを提出
  • kさん,sさんと連携してooEditorのことを詰める.(IRCで日時相談もあり)
  • KOFのことも報告
  • オープンソース論のことも報告(PC室)

_ [大学院] Home Comming Day

本日,梅田にてHome Comming Dayがあり,参加して差し入れする.無事,終了.パチパチ

_ おひる

祭太鼓にて,八丁ミソカツ定食


2004-11-07 [長年日記]

_ おはようございます

天気:晴れ後,曇

_ 11月13日の資料作成開始

ooImpressを触りはじめる.

_ 発表へのアクセス

(http://www.kaibo.co.jp/access.htm)
■大阪から特急『サンダーバード号』利用、直通で…・…3時間31分
ということなので,(http://www.jr-odekake.net/)で検索
乗車日	2004年12月2日
所要時間	3時間45分 (220分) (乗継 0回)
合計金額	8,610円 (運賃 : 5,780円 料金 : 2,830円)
経路 	時刻 	所要 	駅名/路線・列車名 	運賃 	料金 	時刻表 	路線情報 	駅情報 	地図 	宿泊
発車駅 	12:42 	  	大阪 			出発時刻表 	駅路線情報 	駅情報・路線図 	地図表示 	宿泊予約
		156分 	
			特急サンダーバード21号
			本形式時刻表 	列車情報 	  	  	 
直通 	15:18
15:23 	  	金沢 	5780円 	指定席
2830円 	出発時刻表 	駅路線情報 	駅情報・路線図 	地図表示 	宿泊予約
		64分 	
			特急サンダーバード21号
			本形式時刻表 	列車情報 	  	  	 
到着駅 	16:27 	  	和倉温泉 			  	

_

二日酔いを防止する.--- ホルム・アルデヒドの分解を促進 柿+酢 がよいとのこと.飲みに行くまえに柿を摂取.ウコンも良い


2004-11-08 [長年日記]

_ 天気

はれ

_ DHCP

入れ替え

_ おひる

フライ定食 --- うーん,そろそろ学習せねば,いかん.私の年ではフライは良くない.たいてい後悔している

_ g-package

Yくん, 神とともに,プログラムを修正.がんがれ

_ Lurker

さて,みなさん(浜村 淳ふうに)Lurkerというプログラムは,自分の所に来たメールをDBみたいなのに入れて検索可能にするプログラムです.Debian Sidなら日本語パッケージもありますよ.(http://ikeda.homeip.net/lurker/)

_ 研修医を傷つける簡単な50の方法

Debian岩井さんの所より研修医を傷つける簡単な50の方法(http://f35.aaa.livedoor.jp/~medtoolz/sinjin/node4.html#SECTION00041000000000000000)こわ.洗脳Howtoみたいに見えます.

_

修正おわりみたい.ハアハア


2004-11-09 [長年日記]

_ 天気

はれ

_ ささのベーカリー

朝ごはんを購入.あさからきっちりと食べる.

_ お昼

2ビルのB1Fにて,シーフードカレーです. オフショア開発で日本に来たっぼいインド風の男女と管理職とおぼしき人,チーフプログラマー風の人,総務の切れモノ女性風な人 なかなか,おもしろい.

_ sxi

作った資料に御意見を頂いて更新した.

_ 夕方から

kさんのjun4javaを一緒に見る.

_

夕食.


2004-11-10 [長年日記]

_ 天気

はれ

_ 来客

東方より来客あり.楽しからずや.Debian mini Conf行きます.2/28-3/1

_ 外しすぎでした

火消しをしていただきました.

_ お昼

麺2にて,うどん


2004-11-11 [長年日記]

_ 天気

_ 大学院

rnくんに,いろいろ相談された.

_ おひる

ちょっと早目に食事をしたかった.Wisteriaにて,カレー.

_ [大学院] PostgreSQLのワークショップ

石井さんを迎えて,おこなわれた.


2004-11-12 [長年日記]

_ 天気

あめ

_ [DPiS] libhal-storage0 - Hardware Abstraction Layer - shared library for storage devices

HAL provides an abstract view on hardware.

This abstraction layer is simply an interface that makes it possible to add support for new devices and new ways of connecting devices to the computer, without modifying every application that uses the device. It maintains a list of devices that currently exist, and can provide information about those upon request.

This library provides an interface for handling storage devices.

_ [Debian] IPW2100

installed. /usr/share/doc/ipw2100-source/にあるドキュメントを読んだら判った.

_ [OpenOffice.org] cws-quickhowto-ja.html

(http://ooo.ximian.com/cws-quickhowto-ja.html) 翻訳しました.


2004-11-13 [長年日記]

_ 天気

はれ

_ あさごはんナド

CVS花の駅 にて サンドイッチ.オレンジ・ジュースを購入した.ついでに家の体脂肪計の電池も購入した.Good-dayにて,みなさんが来る前に,本日のOpenSource論の資料とアンケートを印刷した.

_ [DPiS] otrs-doc-en - Open Ticket Request System - English documentation

OTRS is an Open source Ticket Request System (also well known as trouble ticket system) with many features to manage customer telephone calls and e-mails. The system is built to allow your support, sales, pre-sales, billing, internal IT, helpdesk, etc. department to react quickly to inbound inquiries.

This package contains the documentation for otrs in English language.

OTRSは,顧客からの電話とe-mailを管理する多くの機能をもったオープンソースのチケット発行システムです.(これはまた,トラブル・チケット・システムとして良く知られています.) このシステムは,サポート,販売,プリ・セールス,請求書発行,内部のIT化,ヘルプディスクなどの可能とするために作られている. 到着する質問に素早く反応する部署です.

このパッケージは,OTRSの英語ドキュメントを含んている.

本日のツッコミ(全1件) [ツッコミを入れる]

_ テックインデックス鶴薗 [初めまして、テックインデックス鶴薗と申します。 OTRSを導入したいのですが、ローカライズや導入のための相談に答えて..]


2004-11-14 [長年日記]

_ 天気

はれ

_ 移動

神戸へ

_ お昼

パスタ

_ MK Taxi

乗ってみた. なかなか良い.

_

昨日の議論で刺激を受けて, プログラミングのために入門Perl・Tk(ナンシー ウォルシュ/Nancy Walsh/石曽根 信/西中 芳幸) を買った.ついでに, 気になったので健康太極拳―レッスンDVDつき(楊 慧/楊 名時) も買ってしまった.

_ tDiaryにコメントSPAM

また来ている. .htaccessで弾くしかない!? アクセスログをみつつ Deny from xxx.xxx.xxx.xxx/?? を設定. POSTコマンドが送られてきているのをチェックすると比較的楽か.


2004-11-15 [長年日記]

_ 天気

_ HP200LX

電源が入らなくなった.うう....

_ ミーティング

なんとか終了.直後から動かないと,ということで電話した.

_ [OpenOffice.org] cws-quickhowto-ja.html

中本さんより,御意見を頂いたので反映する予定した.ありがたや.

_ お昼

郵便局に寄って,定期代を引き出す.その後,近くの「いわむら」にてカキフライ.定期を買いにいって,12月15日までの一箇月定期を購入する.

_ たまにutf-8を触る人のemacs

.emacs じゃなくて,'ctrl+x ctrl+m f'でencodeを決める.

_ オープンソースのソースコード検索エンジン

(http://www.ipa.go.jp/jinzai/esp/2004mito1/gaiyou/2-23.html)

_ 夜ごはん

きざみ うどん.ふう,おいし.

本日のツッコミ(全2件) [ツッコミを入れる]

_ tsunose [ソースコード検索エンジンはこんなのがありますね http://www.koders.com/]

_ yabuki [をを、ありがとう. オープンソースを活用するにあたって、必要な技術の1つです.]


2004-11-16 [長年日記]

_ 天気

はれ

_ 問合せ

あり.

_ Department of Manufacturing, Engineering and Management Technical University of Denmark

Ph.D. Thesis By Kasper Edwards

Technological Innovation in Software Industry --- Open Source Software Development(http://www.halibut.dk/re-write/afhandling/0001.html)

_ Dual Head

(http://homepage2.nifty.com/Catra/diary/200110.html#102401) このへんの話しはまだ,かわりはないのだろうか.LinuxでDual Headって便利ぼい?!

_ libtk-ruby1.8

Debian sid(or Sarge)での sample code は /usr/share/doc/libtk-ruby1.8/exsample/demos-ja/ を参照.Demoを動かすには, gzのファイルを伸長する必要がある.(判っているとおもうけど,ruby1.6の場合は, libtk-ruby1.6だからね)

コレコレ,このサンプルが見たかったんだ.

_ rubytk memo

libtk-rubyを扱うときに,Tcl/Tk GUI Programming 応用編(http://www.geocities.jp/m_hiroi/tcl_tk_doc/tcltk204.html) text widget markとtag を参考にした.

で,texttag.add( 開始ポイント(1.0など), "終了ポイント(x.y) char" )とすると,「開始ポイントから終了ポイントまでtexttag属性とする」ように見える./usr/share/doc/libtk-ruby1.8/example/demos-ja/search.rb にあるやつ.

マークとタグ,もうちょっと理解してみよう... ほー,マウスで選択したのは selで取れるのね.

ほうほう... $txt.insert('1.0', "\n\n\n")してからでないと$txt.insert('2.0', "hoge")$txt.insert('3.0', "fuga")とすると,後ろに追加されるだけなのね.


2004-11-17 [長年日記]

_ 天気

はれ

_ libtk-ruby1.8 つづき

/usr/share/doc/libtk-ruby1.8/exsamples/images/にあるface.xbm.gzやteapot.ppm.gzも伸長しておくこと.demos-ja

_ librexml

yab@hrestol:~$ apt-cache search rexml

librexml-ruby1.6 - Ruby だけに依存する non-validating な Namespace と XPath

librexml-ruby - pure Ruby non-validating XML parser supporting Namespaces, XPath

librexml-ruby1.8 - pure Ruby non-validating XML parser supporting Namespaces, XPath

とオンラインチュートリアルREXMLチュートリアル(http://www.baykit.org/~makotos/cgi-bin/wiliki.cgi?REXML%a5%c1%a5%e5%a1%bc%a5%c8%a5%ea%a5%a2%a5%eb&l=jp) チュートリアル 手を動かしてチェックをしていくと,root.detect {|node| node.kind_of? Element and node.attributes["name"] == "food" }の部分で
hoge.rb:37: uninitialized constant Element (NameError)
        from hoge.rb:37:in `detect'
        from hoge.rb:37:in `each'
        from /usr/lib/ruby/1.8/rexml/parent.rb:40:in `each'
        from hgoe.rb:37:in `detect'
        from hoge.rb:37
などと,エラーになるが取り敢えず先に進むことにする./usr/lib/ruby/1.8/rexml/をちょっと見ただけではよく解らなかった.そのうち解るだろう.

_ 上記わかりました.

include REXMLが,たりないんじゃないのとircにてkazu氏に指摘され,思いあたる.

_ おひるごはん

2ビル地下2Fのちゃんぽん.ここは,まだまだ野菜が多い.おいしかった.

_ [OpenOffice.org] 2.0 には -deb flagが...

webに出たらlinkの予定.dev [at] ja.openoffice.org に,流れたが

> No need. OOo 2.0 *will* be available in deb. The Debian team has already

> finished the proper modifications to the OOo make script (just a couple of

> weeks ago). Now it takes a -rpm and -deb flag. And the installation team

> is talking about a third -tgz distribution for non-deb, non-rpm systems

> (like Slackware and Gentoo).

ということ,らしい.

_ [Ruby] rexmlチュートリアル つづき

irbで試している

three = doc.elements["a/three"]

doc.root.insert_after three, Element.new "four"

のコードは

doc.root.insert_after three, Element.new("four")

でないと insert_after のメソッドのあとには,argumentが二つなので()をつけないとargumentが3つだとしてしまうようだ.

_ [OpenOffice.org] XML形式でサイズを最適化する について.

OpenOffice.org 1.1.2で確認. [ツール]->[オプション]->別ウィンドウが開く.[読み込みと保存]->[全般]->XML形式でサイズを最適化する(Pretty Printing なし)(D) のチェックを外す.そうするとXMLでインデントがついて読みやすくなる.

_ [OpenOffice.org] content.xml

(http://books.evc-cit.info/ch02.php)

Not that none of these files is actually necessary; if you create only a content.xml file that contains word processor elements and zip it up, OpenOffice.org will open it successfully. The result will be a plain text only document with no styles. You won’t have any of the meta-information about who created the file or when it was last edited, and the printer settings, view area, and zoom factor will be set to the OpenOffice.org defaults.

ということで,今の所,content.xmlをzipするだけでもファイルとしては成立する.

_ Ruby de XML

script のDLは,(http://ssl.ohmsha.co.jp/cgi-bin/menu.cgi?ISBN=4-274-06500-6)より,おこなう.

_ 3D CG

(http://slashdot.jp/journal.pl?op=display&uid=4&id=264438)Oliver氏のエントリーを見てびっくりする.すごいのね.

_ Emacs::cvs

ESC u --- cvs up

_ 小腹が空いたので,夕食

かけうどん, おにぎり(シャケ) ... マルチビタミンで帳尻をあわせる

_ Apache 祭

開催中 .... 終了


2004-11-18 [長年日記]

_ 天気

あめ

_ あさごはん

ベーカリーささの のサンドイッチ

_ 4th generation ipod + My machine

大学の事務にアルバイトに来ている人で 第4世代iPodをおもちの方がいた. 頼み込んで,usbでlinuxに接続するとどうなるか試させてもらった.以下dmsg
usb 1-1: new high speed USB device using address 5
ub: sizeof ub_scsi_cmd 60 ub_dev 924
uba: device 5 capacity nsec 50 bsize 512
uba: made changed
uba: device 5 capacity nsec 50 bsize 512
uba: device 5 capacity nsec 50 bsize 512
 /dev/ub/a:end_request: I/O error, dev uba, sector 0
Buffer I/O error on device uba, logical block 0
end_request: I/O error, dev uba, sector 2
Buffer I/O error on device uba, logical block 1
end_request: I/O error, dev uba, sector 4
Buffer I/O error on device uba, logical block 2
end_request: I/O error, dev uba, sector 6
Buffer I/O error on device uba, logical block 3
end_request: I/O error, dev uba, sector 6
Buffer I/O error on device uba, logical block 3
end_request: I/O error, dev uba, sector 4
Buffer I/O error on device uba, logical block 2
end_request: I/O error, dev uba, sector 2
Buffer I/O error on device uba, logical block 1
end_request: I/O error, dev uba, sector 0
Buffer I/O error on device uba, logical block 0
 unable to read partition table
 /dev/ub/a:end_request: I/O error, dev uba, sector 2
Buffer I/O error on device uba, logical block 1
end_request: I/O error, dev uba, sector 4
Buffer I/O error on device uba, logical block 2
end_request: I/O error, dev uba, sector 6
Buffer I/O error on device uba, logical block 3
end_request: I/O error, dev uba, sector 0
Buffer I/O error on device uba, logical block 0
 unable to read partition table
usbcore: registered new driver ub
usb 1-1: USB disconnect, address 5
usb 2-1: new full speed USB device using address 6
usb 2-1: device not accepting address 6, error -71
usb 2-1: new full speed USB device using address 7
usb 2-1: device not accepting address 7, error -71
usb 1-1: new high speed USB device using address 7
uba: device 7 capacity nsec 50 bsize 512
uba: made changed
uba: device 7 capacity nsec 29297520 bsize 512
uba: device 7 capacity nsec 29297520 bsize 512
 /dev/ub/a: [mac] p1 p2 p3
 /dev/ub/a: [mac] p1 p2 p3
devfs_mk_dev: could not append to parent for ub/a/part1
kobject_register failed for uba1 (-17)
 [] kobject_register+0x5b/0x60
 [] add_partition+0x119/0x150
 [] register_disk+0x186/0x1c0
 [] add_disk+0x4c/0x60
 [] exact_match+0x0/0x10
 [] exact_lock+0x0/0x20
 [] ub_probe+0x292/0x310 [ub]
 [] usb_probe_interface+0x6b/0x80 [usbcore]
 [] bus_match+0x3f/0x70
 [] device_attach+0x3f/0xa0
 [] kobject_get+0x1a/0x30
 [] bus_add_device+0x5b/0xb0
 [] device_add+0xa1/0x130
 [] usb_set_configuration+0x303/0x470 [usbcore]
 [] usb_new_device+0xb2/0x170 [usbcore]
 [] hub_port_connect_change+0x20e/0x400 [usbcore]
 [] hub_events+0x271/0x3c0 [usbcore]
 [] hub_thread+0x35/0x120 [usbcore]
 [] autoremove_wake_function+0x0/0x60
 [] ret_from_fork+0x6/0x14
 [] autoremove_wake_function+0x0/0x60
 [] hub_thread+0x0/0x120 [usbcore]
 [] kernel_thread_helper+0x5/0x18
devfs_mk_dev: could not append to parent for ub/a/part2

_ [Debian] gnomemeeting

gnomemeetingが動いたのを実感した. openMCU on win32 に接続させてもらった.その人が

FreeBSDやLinuxのOpenMCUを試したがタメだった.http://www.openh323.orgから落とせる.


2004-11-19 [長年日記]

_ 天気

_ Agreementを読む

う. 概略しか,解らんです.

_ 色々さんへ

mail done

_ cgiirc日本語化(EUC-JP -> ISO 2022-JP)

ブラウザーの設定? ペケの場合はUTF8を吐いているぼい.具体例では「ほげ」は %u307B%u3052 になる

  • ぺけ:Windows mozilla ,Debian Firefox, debian mozilla, debian kazehakase, XPのIEなど多数
  • まる:京ボン, win2k firebird,Netscape 7.2/Mac OS9 ブラウザ?/win XP mozilla Firefox, SHARP ZaurusのWeb Browser

_ なんやかんやで16:00におひる

インデアンカレーで,ハヤシライス.

_ JPUG 関西支部のミーティング

ありました.


2004-11-20 [長年日記]

_ 天気

はれ

_ 会社

ToDoを整理.オープンソース論の資料を印刷.あとゴソゴソと.

_ おひるのついでに

難しいクリーニングだったので、大阪駅近くの白洋舎にもちこんだ.talbyの展示用模型を見て、もどってきた. あまり食べたい気分ではなく、おひるはけっきょく かけうどん.

_ 梅田サテライト 114号室

オープンソース論の打ち合わせなど

ベルクソン

という哲学者がいたそうです.(http://www2s.biglobe.ne.jp/~sug/)

_ オープンソース論

実習にむけて, 要準備

_ 晩御飯

中華料理


2004-11-21 [長年日記]

_ [大学院][OpenOffice.org] rexml

試行錯誤してしまった.rubyでrexmlを使って,OpenOffice.orgのcontent.xmlにアクセスするには,(手でunzipと,fileへのpathは適当に変えておいてね)
require "iconv"
require "rexml/document"
include REXML
 
file = File.new( "./xmldata/hoge/content.xml" )
doc = REXML::Document.new file
doc.elements.each("/office:document-content/office:font-decls/style:font-decl"){|e|
  at = Iconv.iconv("eucJP", "UTF-8", e.attributes["style:name"])
  print "style:name:"
  puts at
  print "font-family:" 
  at = Iconv.iconv("eucJP", "UTF-8", e.attributes["fo:font-family"])
  puts at
}
で,できた.実行結果は,
style:name:Tahoma1
font-family:Tahoma, Lucidasans, 'Lucida Sans', 'Arial Unicode MS'
style:name:MS P 明朝
font-family:'MS P 明朝'
style:name:Tahoma
font-family:Tahoma, Lucidasans, 'Lucida Sans', 'Arial Unicode MS'
style:name:Times New Roman
font-family:'Times New Roman'
となった.次は,要素を追加や削除をして,ファイルに書き出す所だな.

_ HouseKeeping

買物,掃除,服を捨てる.カジュアルな服はあまり着ることもないだろう.

_ [DPiS] libpam-umask - adjust users' default umask using PAM

This PAM module sets the umask for successfully authenticated sessions. The umask affects the permissions assigned to newly created files by default.

This package is useful to ensure that users' umasks are set consistently whether their session is initiated by login, SSH, a display manager for the X Window System, or some other means.

_ へえ

Asterisk is an Open Source PBX and telephony toolkit.

_ [DPiS] archway - GUI for GNU Arch

archって,バージョン管理システムだったよね.GUIのフロントエンドですね.ちなみにaxpってのがArch eXtended Plathomeという(PerlによるArchの拡張ともいう)あるそうな

ArchWay is a GNU Arch GUI. It follows the unix tradition of small tools doing their work well and cooperating nicely with each other.

Some tips: in a working tree, run "archelf" to operate on project files; run "archmag" to manage tree merges; run "archeye ." to view tree changes; run "archeye ,undo-1" to view any changeset; run "archrog" to manage registered archives; and so on.

Alternativelly, just run "archway" and choose the desired tools from there.

_ [DPiS] ksynaptics - A KDE application to configure Synaptics TouchPad

これで簡単に設定できるようになるか?! > タッチパッド

KSynaptics aims to help KDE users to configure their Synaptics TouchPad, that's commonly used in laptops, through the Synaptics TouchPad driver for XFree86 server. KSynaptics can be run in standalone mode or embedded into the KControl Center.

Homepage: http://qsynaptics.sourceforge.net

_ [DPiS] smilutils - DV command line utilities

大学院のDV(Digital Video)をやっている人にちょっと関係あるか.
Collection of various DV (Digital Video) command line utilities to convert from/to various formats for DV data

_ [DPiS] xbox-cromwell - Xbox BIOS image

Xboxか... すご

BIOS image for your Xbox with bootloader capabilities. Unlike Microsoft's propietary BIOS, this one allows for loading of unsigned custom kernels.

WARNING: Flashing the wrong image without a rescue modchip can turn your Xbox into a brick. See README.Debian for details.


2004-11-22 [長年日記]

_ 天気

はれ

_ あさごはん

ベーカリーささの の ツナサンド と クリームパン. 「小岩井ミルクとコーヒー」

_ [DPiS] patcher - perl script useful for managing patches

patcher is a patch manager that keeps track of which files you change. It then can generate patches from your changes, no need for you to handle the diff tool manually. The patches can be stacked in series, they define the order they have to be applied. Patcher keeps series information as well as information of which patches have been applied and which not. Homepage http://www.holgerschurig.de/patcher.html

_ [DPiS] pocketpc-gcc - The GNU C compiler for Pocket PC

This is the GNU C compiler for Pocket PC devices. It is used by developers of the Pocket PC platform. This package includes newlib 1.11.0 with patches for Pocket PC.

わたしはPoket PCもってないけど,こんなのもあるのか....

_ [DPiS] samba-dbg - Samba debugging symbols

The Samba software suite is a collection of programs that implements the SMB protocol for unix systems, allowing you to serve files and printers to Windows, NT, OS/2 and DOS clients. This protocol is sometimes also referred to as the LanManager or NetBIOS protocol.

This package contains debugging symbols for the programs included in the samba and smbclient packages.

ふつう,いらんけど gdbとかでおっかけるときに必要....

_ [DPiS] wacom-kernel-source - Source for the wacom binary modules

This package provides the source code for the wacom kernel and X11 modules. You will need a kernel headers package or properly configured source for your running kernel to create the binary module package.

ワコムってことは,タブレットかのう.

_ JPUGの事例セミナ

PHP-usersと,KOFでお世話になったところへ,投げてみた.あとは,今晩にネゴる予定.

_ Ryan

irc channelにも出できてない.

_ お昼

阪神の地下で、かきフライ定食

_ 夕方から

問い合わせをいただく、けっこう悩む.

_ Gettoh

いろいろ考えつつも, 晩御飯.


2004-11-23 [長年日記]

_ 夜中に起きる

3:00 に目が覚めて,風呂にはいる.昨日のデバッグのつづきを考えつつ 5:30頃にベッドにはいりました.

_ 一通のメール

6:00に,メールがやってきた.いろいろ確認して,京橋へ行くことにした.

_ 血糖値

下っていたので,会社に到着するまでにコーラを買った.一時的に血糖値をコークで上げておく.

_ e100

done. screen done.

_ 京橋より北新地へ

JRにて移動(J スルー) done.

_ おひる

ヒマラヤにて,バター・チキン・カレー.

_ 残作業

最終確認をして、done; 16:30 まで,もう一つの方をmailとwebでチェック; 一般のメールを捌く,

_ 帰りにヨドバシへ

寄る.talby を見たが,もうすでに機種変更はオレンジ色以外なかった.

_ 晩御飯

梅うどん.のこりものマフィン.ふとまき


2004-11-24 [長年日記]

_ 天気

はれ

_ あさごはん

ササノベーカリーにて,ツナサンド,クリームメロンパン

_ [OpenOffice.org] 中田さんのメールにて

JCAのステータスを確認すると(http://www.openoffice.org/copyright/copyrightapproved.html#xyz)にて,JCA にサインしているのを確認できた.

森沢くんに確認したところ,IssueZillaに,これがやりたいから ssh の鍵を登録して欲しいと投げるそうな

_ DELLの法人営業へ電話

おりかえし,かかってくる.

_ DELL

電話しまくり.見積もり...


2004-11-25 [長年日記]

_ 天気

はれ

_ 登校

Yシャツをクリーニングに出してから,ササノ ベーカリーにて 朝食を買う.

_ [大学院] 発表練習

15:00 より,学友と指導教官の前て発表練習.現在資料作成中.

_ おひる

田中記念館のメタセコイアにて.カキカレー 学友と先生と同伴.IRCを活用し,事前に注文をしてから,席へ到着.N先生,あざやかである.

_ [大学院] 発表の練習

最後の順番で発表 和倉では100分で4つ 1つ25分ほど 20分ぐらいお話して, 5分質疑応答のパターン. で、発表の練習をして、勉強をさせてもらいました. 次は火曜日に 先生の御指導をうけます.

_ [大学院] 梅田のワークショップへ

移動. エレベータでhide3に会う.

_ Good-day

所用をすませつつ、会社に寄る. 下(6F)に降ります.

_ USB memory stick

usbヘファイルを移すために、下記の設定を/etc/fstabに追加
/dev/sda1 /mnt vfat noauto,user,codepage=932,iocharset=euc-jp 0 0

2004-11-26 [長年日記]

_ 夜中に買い出し

スイスロール(ホワイト)とLipton Royal Milk tea.

_ 天気

はれ

_ 所用をこなしつつ会社へ

done.

_ 米Microsoft,Windows 2000 SP5を取りやめ,アップデート・ロールパックをリリースへ

ircより.米Microsoft,Windows 2000 SP5を取りやめ,アップデート・ロールパックをリリースへ(http://itpro.nikkeibp.co.jp/free/NT/NEWS/20041125/2/)

_ agreement

done

_ 冊子小包郵便物とクロネコメール便の料金

(http://tach.arege.net/d/20041123.html)ということで,わたしもクロネコメール便をつかってみよっと.

_ ご挨拶

こちらこそ,お世話になりました.山口に戻られても,奥様ともども,お元気で.

_ 実習用資料

画像はりまくりです.

_ 明日はuimカンファレンス

社内で,準備してました.明日はaさん,mくんが行くとのこと.

_ scim-anthy

カンファレンスがあるが,scim-anthyが気になっている.

_ 夜から

雨になりました.京大へ発表するみなさんに影響がなければいいのですが.


2004-11-27 [長年日記]

_ 天気

くもり

_ I got green talby

AUが発表した緑のtalbyを入手しました.

_ Unix User 総覧のページ

(http://www.unixuser.jp/magazine/)

_ [大学院]

京大で発表しているチームは,無事終わったとのこと.おつかれさまでした.

_ おひる

はがくれ にて 生じょうゆ うどん.いっぱい並んでたなー.

本日のツッコミ(全2件) [ツッコミを入れる]

_ ぽずお [はがくれ、は会社の人にも美味しいと紹介されました。 うどん食べたくなってきました^^)]

_ yabuki [ども, 特定の人には邪道なのかもしれないけど, 半熟卵の天麩羅などもあり, すばらしいとおもいます. お時間があると..]


2004-11-28 [長年日記]

_ [大学院] 停電

atでirc サーバをshutdownしておいたが.別のサーバーで,連絡用チャネルでおはなし中

_ ircより Windows XP SP2をあててもsambaでプリント

SAMBA経由でプリント(http://d.hatena.ne.jp/N0MURA/20041125#1101374106)

_ [大学院] irc サーバ

復電していただきました.復電後に,fsckが長いというので,ext3にしているのにfsckのチェックボイントを外しておいた.
tune2fs -c 0 -i 0 /dev/hdaX
本日のツッコミ(全2件) [ツッコミを入れる]

_ Henrich [MX500 を私も使っています。iPod付属のはどうも低音が強くて苦手です。 手元で音量調節ができるのも良いですね ..]

_ yabuki [ありがとうございます. ぼちぼち、検討していきます. 自分のなかで閾値を越えたら買ってしまうのでしょうが :)]


2004-11-29 [長年日記]

_ 天気

はれ

_ あさごはん

ササノ・ベーカリーにて,ツナサンド, クリームパン

_ scan

lab247.ee.auth.gr から.

_ xchatが

最近
yab@hrestol:~/plum$ The program 'xchat' received an X Window System error.
This probably reflects a bug in the program.
The error was 'BadRequest (invalid request code or no such operation)'.
  (Details: serial 15744916 error_code 1 request_code 0 minor_code 0)
  (Note to programmers: normally, X errors are reported asynchronously;
   that is, you will receive the error a while after causing it.
   To debug your program, run it with the --sync command line
   option to change this behavior. You can then get a meaningful
   backtrace from your debugger if you break on the gdk_x_error() function.)
といってたまに落ちるのでloquiを試してみる.

_ [Debian] quota

ikuya氏のribbon(Debian woody)にアカウントを作ってもらう.ooo-build(Debian Sarge)でメインの検証.

_ おひる

きょうも はがくれ でした. 天おろし うどん.私がかかえているアンビバレンツの心を叶えてくれる.

_ [Debian] qouta(2)

OOo-build:~# apt-get install quota quotatool 
Reading Package Lists... Done
Building Dependency Tree... Done
The following NEW packages will be installed:
  quota quotatool
0 upgraded, 2 newly installed, 0 to remove and 46 not upgraded.
Need to get 436kB of archives.
After unpacking 1204kB of additional disk space will be used.
Get:1 http://ggl.good-day.net sarge/main quota 3.12-3 [419kB]
Get:2 http://ggl.good-day.net sarge/main quotatool 1.4.4-1 [16.6kB]
Fetched 436kB in 0s (766kB/s)  
Preconfiguring packages ...
Selecting previously deselected package quota.
(Reading database ... 33877 files and directories currently installed.)
Unpacking quota (from .../archives/quota_3.12-3_i386.deb) ...
Selecting previously deselected package quotatool.
Unpacking quotatool (from .../quotatool_1.4.4-1_i386.deb) ...
Setting up quota (3.12-3) ...
 
Setting up quotatool (1.4.4-1) ...
OOo-build:~# 

_ quota(3)

AA
 +------------+                      +-----------------+
 |ooo-build   |                      |hrestol          |
 +------------+                      +-----------------+
 |Disk        |                      |                 |
 | quota [rpc.rquotad] -------------- [quotaコマンド]  |
 | NFS Server  ======================= NFS client      |
 +------------+                      +-----------------+

_ [Debian] rpc.rquotad

というのがある /etc/init.d/quotarpc から起動できる.設定前なので,こんな感じ
OOo-build:/usr/share/doc/quota# /etc/init.d/quotarpc start
+ PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
+ NAME=rpc.rquotad
+ DESC=quota service
+ DAEMON=/usr/sbin/rpc.rquotad
+ test -f /etc/exports
+ grep -q '^[^#]*quota' /etc/fstab
+ need_rquotad=0
+ test -f /usr/sbin/rpc.rquotad
+ test -f /etc/default/quota
+ . /etc/default/quota
++ run_warnquota=true
+ set -e
+ '[' -x /usr/sbin/rpc.rquotad ']'
+ '[' 0 = 1 ']'
+ exit 0
テスト機はこんな構成 cfdiskの出力なので単位はMBです.
 hda1 Primary Linux ext2       131.61         
 hda3 Primary Linux ext2      5996.23         
 hda4 Primary Linux ext2     53382.07         
 hda5 Logical Linux swap       509.97         
vi /etc/fstab
/dev/hda4       /home   ext2    defaults                        0       2
/dev/hda4       /home   ext2    defaults,usrquota,grpquota      0       2
上記の行を下記の行に変更した.で次のステップ
OOo-build:~# cd /home/
OOo-build:/home# ls
ikuya  lost+found  shutta  yabuki
OOo-build:/home# touch quota.user quota.group
OOo-build:/home# ls -la
total 36
drwxrwsr-x   6 ikuya  ikuya   4096 Nov 29 16:06 .
drwxr-xr-x  21 root   root    4096 Nov  5 13:13 ..
drwxr-xr-x  34 ikuya  ikuya   4096 Nov 29 13:20 ikuya
drwx------   2 ikuya  ikuya  16384 Feb 29  2004 lost+found
-rw-r--r--   1 root   ikuya      0 Nov 29 16:06 quota.group
-rw-r--r--   1 root   ikuya      0 Nov 29 16:06 quota.user
drwxr-xr-x   2 ikuya  ikuya   4096 Sep  7 18:31 shutta
drwxr-xr-x   2 yabuki yabuki  4096 Nov 29 13:21 yabuki
OOo-build:/home# chmod 600 quota.user quota.group
OOo-build:/home# quotacheck -avug
quotacheck: Can't find filesystem to check or filesystem not mounted with quota option.
OOo-build:/home# sync
OOo-build:/home# 
マウントをやりなおして,quotacheck -avug を実行.チェックが終了するのにコーヒーを飲む時間ぐらいかかった.
OOo-build:/home# sync
OOo-build:/home# mount /home/
mount: /dev/hda4 already mounted or /home busy
mount: according to mtab, /dev/hda4 is already mounted on /home
OOo-build:/home# mount -o remount  /home/
OOo-build:/home# quotacheck -avug
quotacheck: WARNING - Quotafile /home/quota.user was probably truncated. Can't save quota settings...
quotacheck: WARNING - Quotafile /home/quota.group was probably truncated. Can't save quota settings...
quotacheck: Scanning /dev/hda4 [/home] done
quotacheck: Checked 99957 directories and 1148885 files
OOo-build:/home# 
ということで,quotarpcデーモンを動かしてみる
OOo-build:/home# /etc/init.d/quotarpc start
+ PATH=/usr/local/sbin:/usr/local/bin:/sbin:/bin:/usr/sbin:/usr/bin
+ NAME=rpc.rquotad
+ DESC=quota service
+ DAEMON=/usr/sbin/rpc.rquotad
+ test -f /etc/exports
+ grep -q '^[^#]*quota' /etc/fstab
+ grep -q '^/' /etc/exports
+ need_rquotad=1
+ test -f /usr/sbin/rpc.rquotad
+ test -f /etc/default/quota
+ . /etc/default/quota
++ run_warnquota=true
+ set -e
+ '[' -x /usr/sbin/rpc.rquotad ']'
+ '[' 1 = 1 ']'
+ echo -n 'Starting quota service: '
Starting quota service: + start-stop-daemon --start --quiet --exec /usr/sbin/rpc.rquotad --
+ echo rpc.rquotad.
rpc.rquotad.
+ exit 0
OOo-build:/home# 
クライアントの方からも,反応が返るようになりました.設定前
yab@hrestol:~$ quota
quota: : error while getting quota from ooo-build.exsample.com:/home/ikuya for 1000: 接続を拒否されました
設定後
yab@hrestol:~$ quota
Disk quotas for user yab (uid 1000): none
yab@hrestol:~$ 
ここで,チョットだけ確認:わたしのhrestolでのuidは,
yab@hrestol:~$ id
uid=1000(yab) gid=1000(yab) 所属グループ=1000(yab),0(root),4(adm),6(disk),24(cdrom),25(floppy),29(audio),40(src),50(staff),100(users),109(uml-net)
です.これに対応するooo-buildでのuid=1000は,/etc/passwdで確認した所,yabukiでした.
yabuki@OOo-build:~$ id
uid=1000(yabuki) gid=1000(yabuki) groups=1000(yabuki)
だったが,テストの都合上 /etc/groupsを見て,vipwを実行してgroupをstaff(50)へ変更した.
edquota -u yabuki
ooo-build側は
Disk quotas for user yabuki (uid 1000):
  Filesystem                   blocks       soft       hard     inodes     soft     hard
  /dev/hda4                    531504          0          0       7025        0        0
Disk quotas for user yabuki (uid 1000):
  Filesystem                   blocks       soft       hard     inodes     soft     hard
  /dev/hda4                    531504          0          0       7025       20       25
としてみた.(わざと,超過させてみた)
yab@hrestol:~$ quota 
Disk quotas for user yab (uid 1000): 
     Filesystem  blocks   quota   limit   grace   files   quota   limit   grace ooo-build.exsample.com:/home/ikuya
                 531504       0       0            7025*     20      2
OOo-build:/home# repquota -a
*** Report for user quotas on device /dev/hda4
Block grace time: 7days; Inode grace time: 7days
                        Block limits                File limits
User            used    soft    hard  grace    used  soft  hard  grace
----------------------------------------------------------------------
ikuya     -- 23845752       0       0        1241814     0     0       
yabuki    -+  531504       0       0           7025    20    25  6days
次は直したもの
Disk quotas for user yabuki (uid 1000):
  Filesystem                   blocks       soft       hard     inodes     soft     hard
  /dev/hda4                    531504          0          0       7025     7035     7045
OOo-build:/home# repquota -a
*** Report for user quotas on device /dev/hda4
Block grace time: 7days; Inode grace time: 7days
                        Block limits                File limits
User            used    soft    hard  grace    used  soft  hard  grace
----------------------------------------------------------------------
ikuya     -- 23845752       0       0        1241814     0     0       
yabuki    --  531504       0       0           7025  7035  7045       
Userの次の -+が--になったり,graceにカウントダウンがなくなったりと気が付かれた人も多いと思う.

_ quota -t

default が,7days なので,極端な値として, quota -ug -t で1secondsを設定

_ 大切なことを忘れていた.

/etc/init.d/quota start

_ 21:15

天王寺


2004-11-30 [長年日記]

_ 天気

はれ

_ あさごはん

ササノ・ベーカリーにて,クリームパンとコーヒーを購入し,会社にて食事を取る.

_ ふう

12月3日の発表資料,一往復.hide3に,助けていただきました.

_ サプリメント

マルチビタミン,Coenzyme Q10

_ quota 昨日のつづき

結果から言うと,うまくいった.昨日からの変化のあった部分は,
  • rebootした.
  • cronが動いたcron.dailyのquotaを見た限りは変化点に入れないのがよさそう(下記のscript参照)
と考察できる. 操作記録から
Oo-build:/home/ikuya/tmp# repquota -a
*** Report for user quotas on device /dev/hda4
Block grace time: 00:00; Inode grace time: 00:00
                        Block limits                File limits
User            used    soft    hard  grace    used  soft  hard  grace
----------------------------------------------------------------------
root      --       8       0       0              1     0     0       
ikuya     -- 23845756       0       0        1241815     0     0       
yabuki    --  531504       0       0           7025  7035  7045       
とりあえず,quotaが動いているのをローカル(ooo-build)側で確認
OOo-build:/home/ikuya/tmp# su - yabuki
yabuki@OOo-build:~$ cd /home/ikuya/tmp/
yabuki@OOo-build:/home/ikuya/tmp$ ls   
yabuki@OOo-build:/home/ikuya/tmp$ touch 01 02 03 04 05 06 07 08 09 09
yabuki@OOo-build:/home/ikuya/tmp$ touch 10
yabuki@OOo-build:/home/ikuya/tmp$ touch 11
hda4: warning, user file quota exceeded.
yabuki@OOo-build:/home/ikuya/tmp$ ls
01  02  03  04  05  06  07  08  09  10  11
yabuki@OOo-build:/home/ikuya/tmp$ touch 12
hda4: write failed, user file quota exceeded too long.
touch: cannot touch `12': No space left on device
yabuki@OOo-build:/home/ikuya/tmp$ 
yabuki@OOo-build:/home/ikuya/tmp$ ls
01  02  03  04  05  06  07  08  09  10  11
yabuki@OOo-build:/home/ikuya/tmp$ exit
logout
リモート側(hrestol)で quota が,効くことを確認
yab@hrestol:/home/ikuya/tmp$ ls
01  02  03  04  05  06  07  08  09  10  11
yab@hrestol:/home/ikuya/tmp$ touch 12
touch: cannot touch `12': デバイスに空き領域がありません
yab@hrestol:/home/ikuya/tmp$ quota
Disk quotas for user yab (uid 1000): 
     Filesystem  blocks   quota   limit   grace   files   quota   limit   grace
ooo-build.exsample.com:/home/ikuya
                 531504       0       0            7036*   7035    7045    none
yab@hrestol:/home/ikuya/tmp$ 
確認
OOo-build:/home/ikuya/tmp# repquota -a
*** Report for user quotas on device /dev/hda4
Block grace time: 00:00; Inode grace time: 00:00
                        Block limits                File limits
User            used    soft    hard  grace    used  soft  hard  grace
----------------------------------------------------------------------
root      --       8       0       0              1     0     0       
ikuya     -- 23845756       0       0        1241815     0     0       
yabuki    -+  531504       0       0           7036  7035  7045   none
OOo-build:/home/ikuya/tmp# 

_ quota:crontab

warnquotaは,ファイルの所有者にメールが飛ぶ.warnquota man page(http://www.linux.or.jp/JM/html/quota/man8/warnquota.8.html)cron.dailyに登録されている.超過したままだとメールが飛びっぱなしだな.nfs+quotaの場合,所有者にメールするのが良いかどうかは要検討.
#! /bin/sh
 
# check if quota package is available
test -x /usr/sbin/warnquota || exit 0
 
# check if warnquota run is configured
test -f /etc/default/quota || exit 0
. /etc/default/quota
 
if [ "$run_warnquota" = "true" ]; then
        # check if quotas are enabled
        if grep -q '^[^#]*quota' /etc/fstab; then
                /usr/sbin/warnquota
        fi      
fi
 
exit 0
/etc/defaults/quotaは
# Configuration for quota scripts
# generated from debconf on Mon Nov 29 15:16:01 JST 2004
#
# Set to "true" if warnquota should be run in cron.daily
run_warnquota="true"

_ オープンソース・プロジェクト・マネージャー

ヒヤリング終了.

_ [Debian] apt-file

Package: apt-file
Priority: optional
Section: base
Installed-Size: 88
Maintainer: Sebastien J. Gross 
Architecture: all
Version: 2.0.3-3.1
Depends: perl, gzip (>= 1.2.4), libconfigfile-perl, libapt-pkg-perl
Recommends: wget
Suggests: ssh
Filename: pool/main/a/apt-file/apt-file_2.0.3-3.1_all.deb
Size: 11084
MD5sum: 844538a20a0f5f50eed51d27d965e356
Description: APT パッケージ検索ユーティリティ - コマンドラインインターフェイス
 apt-file は、APT パッケージングシステム用のパッケージを検索するための
 コマンドラインツールです。
 .
 apt-cache と異なり、あるファイルが含まれているパッケージを探したり、
 インストールや取得をせずにパッケージの中身を一覧表示したりできます。

_ [Debian] quota: Groupによる制限

これまでのUserによる制限に加えて, groupでの制限を加える.

下記のコマンドより,uid=1000(yabuki):gid=50(staff)の制限をuserの時より厳しくしてみる.(userの時にはsoft limitまで+10の余裕; groupの時にはsoft limitまでに +5 の余裕)

OOo-build:/home/ikuya/tmp# edquota -g staff
変更前
Disk quotas for group staff (gid 50):
  Filesystem                   blocks       soft       hard     inodes     soft     hard
  /dev/hda4                         0          0          0         11       0        0
変更後
Disk quotas for group staff (gid 50):
  Filesystem                   blocks       soft       hard     inodes     soft     hard
  /dev/hda4                         0          0          0         11       5       10
で現状の確認
OOo-build:/home/ikuya/tmp# id yabuki
uid=1000(yabuki) gid=50(staff) groups=50(staff)
OOo-build:/home/ikuya/tmp# repquota -aug
*** Report for user quotas on device /dev/hda4
Block grace time: 00:00; Inode grace time: 00:00
                        Block limits                File limits
User            used    soft    hard  grace    used  soft  hard  grace
----------------------------------------------------------------------
root      --       8       0       0              1     0     0       
ikuya     -- 23845756       0       0        1241815     0     0       
yabuki    -+  531504       0       0           7036  7035  7045   none
*** Report for group quotas on device /dev/hda4
Block grace time: 00:00; Inode grace time: 00:00
                        Block limits                File limits
Group           used    soft    hard  grace    used  soft  hard  grace
----------------------------------------------------------------------
staff     --       0       0       0             11     5    10       
ikuya     -- 23845756       0       0        1241815     0     0       
yabuki    --  531504       0       0           7025     0     0       
OOo-build:/home/ikuya/tmp# 
設定が反映されないので,少し悩んだ.結局/etc/init.d/quota restart;/etc/init.d/quotarpc restartをしてないだけ.すれば良い.あたりまえ.
yabuki@OOo-build:/home/ikuya/tmp$ quota -g
Disk quotas for group staff (gid 50): 
     Filesystem  blocks   quota   limit   grace   files   quota   limit   grace
      /dev/hda4       0       0       0               4       5      10        
yabuki@OOo-build:/home/ikuya/tmp$ ls
01  02  03  04
yabuki@OOo-build:/home/ikuya/tmp$ touch 05
yabuki@OOo-build:/home/ikuya/tmp$ touch 06
hda4: warning, group file quota exceeded.
yabuki@OOo-build:/home/ikuya/tmp$ touch 07
hda4: write failed, group file quota exceeded too long.
touch: cannot touch `07': No space left on device
yabuki@OOo-build:/home/ikuya/tmp$ quota -ug
Disk quotas for user yabuki (uid 1000): 
     Filesystem  blocks   quota   limit   grace   files   quota   limit   grace
      /dev/hda4  531504       0       0            7031    7035    7045        
Disk quotas for group staff (gid 50): 
     Filesystem  blocks   quota   limit   grace   files   quota   limit   grace
      /dev/hda4       0       0       0               6*      5      10    none
yabuki@OOo-build:/home/ikuya/tmp$ ls    
01  02  03  04  05  06
リモート(hrestol)から,
yab@hrestol:/home/ikuya/tmp$ quota -ug
Disk quotas for user yab (uid 1000): 
     Filesystem  blocks   quota   limit   grace   files   quota   limit   grace
ooo-build.exsample.com:/home/ikuya
                 531504       0       0            7031    7035    7045        
Disk quotas for group yab (gid 1000): none
Disk quotas for group root (gid 0): none
Disk quotas for group adm (gid 4): none
Disk quotas for group disk (gid 6): none
Disk quotas for group cdrom (gid 24): none
Disk quotas for group floppy (gid 25): none
Disk quotas for group audio (gid 29): none
Disk quotas for group src (gid 40): none
Disk quotas for group staff (gid 50): 
     Filesystem  blocks   quota   limit   grace   files   quota   limit   grace
ooo-build.exsample.com:/home/ikuya
                      0       0       0               6*      5      10    none
Disk quotas for group users (gid 100): none
Disk quotas for group uml-net (gid 109): none
yab@hrestol:/home/ikuya/tmp$ 

_ [Debian] quota 留意点

  • edquotaをしたら

    • /etc/init.d/quota restart
    • /etc/init.d/quotarcp restart

    でedquotaが変更した設定が読み直されるようです.

  • edquota のgraceの設定は user と group それぞれ行う必要がある

    • edquota -u -t
    • edquota -g -t

    edquota -u -t などで 1seconds を設定すると grace が none になるのは(?) まだ良く解りません.また別途調べて,テストが必要です.

  • /etc/fstabに,usrquotaやgroupquotaを設定してmount pointにquota.user,quota.groupを設定した場合,落さずに再マウントするには mount -o remount
  • といいつつも,reboot しても良い時に作業するのが良い

_ [OpenOffice.org] う,ooImpress

私の環境で, スライドショーの実行(F9)のサイズが 画面一杯にならない.1024x768 なのだが,800x600 程度の大きさである.なにが関係しているのだろう.ほかのooImpressだとまともだといことなので,私のマシンがダメらしい.orz

_ [Debian] quotatool

大量のユーザーや動いているときには,こっちの方が楽?試してみないとなんとも Webは,(http://quotatool.ekenberg.se/) です.
Usage
=====
   quotatool [options ... filesystem
   quotatool -u | -g  -t time -i | -r filesystem
 
The actual arguments accepted depends on your system.  Solaris,
for example, doesn't support group quotas, so the -g option is
useless.   If your getopt() doesn't support optional arguments,
then you always need to pass an argument to -u and -g.
 
 
Options
=======
   -b      set block limits
   -i      set inode limits
 
   -q n    set soft limit to n blocks/inodes
   -l n    set hard limit to n blocks/inodes
 
   quotatool accepts the units Mb, Kb, bytes and blocks
   to modify limit arguments. See examples below.
 
   -t      time set global grace period to time.
           The time parameter consists of an optional
           '+' or '-' modifier, a  number, and one of: 
           'sec', 'min', 'hour', 'day', 'week', and 
           'month'.  If a +/- modifier is present, the
           current quota will be increased/reduced by
           the amount specified
 
   -r      restart grace period for uid or gid
 
   -h      print a usage message
 
   -v      verbose mode -- print status messages during execution
           use this twice for even more information
 
   -n      do everything except set the quota.  useful with -v
           to see what is supposed to happen
  
   -V      show version
 
Examples
========
 
Set soft block limit to 15MB, hard block limit to 20MB for user mpg4 on /home:
 
   quotatool -u mpg4 -bq 15M -l "20 Mb" /home
 
Set hard inode limit to 2000 for user johan on /var:
 
   quotatool -u johan -i -l 2000 /var
 
Set the global block grace period to one week on /home:
 
   quotatool -u  -b -t "1 week" /home
   
Restart inode grace period for user johan on root filesystem:
 
   quotatool -u johan -i -r /
 
Platforms and Filesystems
=========================
 
quotatool currently builds and works well on:
-- Linux --
Both old and new quota formats. 
ext2, ext3, ReiserFS and XFS supported

_

(http://www.atmarkit.co.jp/flinux/rensai/linuxtips/076quota.html)
 quotaを運用する場合、定期的にディスクの使用状況を調べて、quotaのデータベースを更新しなければならない。その作業を行うのがquotacheckコマンドだ。quotacheckはシステム起動時に実行されるが、24時間運用されるサーバーの場合は、cronで定期的に実行する必要がある(cronについてはプログラムを定期的に実行するには参照)。その場合は、-aオプションを付けてquotacheckコマンドを実行する。
Debianの/etc/cron*(cron.d, cron.hourly, cron.daily, cron.weekly, cron.monthly)を確認したところ,上記のようなscriptはなかった.ちなみにquotaがonの状態ではcheckquota -aコマンドは,下記のような出力を出して実行されない.
OOo-build:/home/ikuya/tmp# quotacheck -a
quotacheck: Cannot remount filesystem mounted on /home read-only so counted values might not be right.
Please stop all programs writing to filesystem or use -m flag to force checking.
ちゅうことで,quotaoffしている状態でcheckquota -aを実行させる必要がある.が,そもそもquotaのデータベースって毎日更新せんといかんの? (lvmやパーティションを動かすソフトを使って)ディスク容量や(tune2fsで)i-nodeが増減したときで良いのではないかと疑問を持ってしまった.
yabuki@OOo-build:/home/ikuya/tmp$ touch 01
yabuki@OOo-build:/home/ikuya/tmp$ quota -ug
Disk quotas for user yabuki (uid 1000): 
     Filesystem  blocks   quota   limit   grace   files   quota   limit   grace
      /dev/hda4  531504       0       0            7026    7035    7045        
Disk quotas for group staff (gid 50): 
     Filesystem  blocks   quota   limit   grace   files   quota   limit   grace
      /dev/hda4       0       0       0               1       5      10        
yabuki@OOo-build:/home/ikuya/tmp$ rm 01
yabuki@OOo-build:/home/ikuya/tmp$ quota -ug
Disk quotas for user yabuki (uid 1000): 
     Filesystem  blocks   quota   limit   grace   files   quota   limit   grace
      /dev/hda4  531504       0       0            7025    7035    7045        
Disk quotas for group staff (gid 50): none
yabuki@OOo-build:/home/ikuya/tmp$ touch 01 02
yabuki@OOo-build:/home/ikuya/tmp$ quota -ug
Disk quotas for user yabuki (uid 1000): 
     Filesystem  blocks   quota   limit   grace   files   quota   limit   grace
      /dev/hda4  531504       0       0            7027    7035    7045        
Disk quotas for group staff (gid 50): 
     Filesystem  blocks   quota   limit   grace   files   quota   limit   grace
      /dev/hda4       0       0       0               2       5      10        
上記のようにファイルを生成や削除しても,追従しているように見える.下記のようにrootで削除しても,同様
OOo-build:/home/ikuya/tmp# repquota -ug -a
*** Report for user quotas on device /dev/hda4
Block grace time: 00:00; Inode grace time: 00:00
                        Block limits                File limits
User            used    soft    hard  grace    used  soft  hard  grace
----------------------------------------------------------------------
ikuya     -- 23845756       0       0        1241815     0     0       
yabuki    --  531504       0       0           7027  7035  7045       
*** Report for group quotas on device /dev/hda4
Block grace time: 00:00; Inode grace time: 00:00
                        Block limits                File limits
Group           used    soft    hard  grace    used  soft  hard  grace
----------------------------------------------------------------------
staff     --       0       0       0              2     5    10       
ikuya     -- 23845756       0       0        1241815     0     0       
yabuki    --  531504       0       0           7025     0     0       
OOo-build:/home/ikuya/tmp# ls
01  02
OOo-build:/home/ikuya/tmp# rm 02 01
OOo-build:/home/ikuya/tmp# repquota -ug -a
*** Report for user quotas on device /dev/hda4
Block grace time: 00:00; Inode grace time: 00:00
                        Block limits                File limits
User            used    soft    hard  grace    used  soft  hard  grace
----------------------------------------------------------------------
ikuya     -- 23845756       0       0        1241815     0     0       
yabuki    --  531504       0       0           7025  7035  7045       
*** Report for group quotas on device /dev/hda4
Block grace time: 00:00; Inode grace time: 00:00
                        Block limits                File limits
Group           used    soft    hard  grace    used  soft  hard  grace
----------------------------------------------------------------------
ikuya     -- 23845756       0       0        1241815     0     0       
yabuki    --  531504       0       0           7025     0     0       
OOo-build:/home/ikuya/tmp#