<?xml version="1.0" encoding="UTF-8" ?><rdf:RDF 
  xmlns="http://purl.org/rss/1.0/"
  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  xmlns:atom="http://www.w3.org/2005/Atom"
  xmlns:dc="http://purl.org/dc/elements/1.1/"
  xml:lang="ja">
  <channel rdf:about="http://w.atwiki.jp/hayao/">
    <title>hayao @ ウィキ</title>
    <link>http://w.atwiki.jp/hayao/</link>
    <atom:link href="https://w.atwiki.jp/hayao/rss10.xml" rel="self" type="application/rss+xml" />
    <atom:link rel="hub" href="https://pubsubhubbub.appspot.com" />
    <description>hayao @ ウィキ</description>

    <dc:language>ja</dc:language>
    <dc:date>2008-05-03T01:08:40+09:00</dc:date>
    <utime>1209744520</utime>

    <items>
      <rdf:Seq>
                <rdf:li rdf:resource="https://w.atwiki.jp/hayao/pages/24.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/hayao/pages/23.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/hayao/pages/22.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/hayao/pages/21.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/hayao/pages/20.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/hayao/pages/19.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/hayao/pages/18.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/hayao/pages/17.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/hayao/pages/16.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/hayao/pages/15.html" />
              </rdf:Seq>
    </items>
	
		
    
  </channel>
    <item rdf:about="https://w.atwiki.jp/hayao/pages/24.html">
    <title>Xubuntu</title>
    <link>https://w.atwiki.jp/hayao/pages/24.html</link>
    <description>
      Ubuntuの派生ディストリビューションであるXubuntu 8.04 をインストールする。
Xubuntu は Ubuntu のデスクトップ環境を Xfce に置き換えたもの。
#contents()
*** インストール
VMWare Server 1.0.5 に仮想でインストール。
ISOイメージは torrent で取得。さすがに早い。
仮想マシンの作成では、Linux に Ubuntu があるので、それを指定して Typical で作成する。
仮想マシン作成して、ISOイメージを指定して、仮想マシンを起動するのだが非常に遅い。ハングしているのかと思うほど。今回導入のHWは、X61でVTをオンにしているのだが、それが原因か？ただ一度起動してしまえば、それ以降は特に遅いとは感じないのだが．．．
*** IPアドレスの変更
Xubuntuではインストール時に、DHCPサーバーがある環境では自動的に、それでIPアドレスを取得し設定されてしまう。（インストール中にたずねられない。）
それだとまずいので、設定ファイルを編集する。/etc/network/interfaces を編集
 auto lo
 iface lo inet loopback
 auto eth0
 iface eth0 inet static
     address 192.168.1.18
     netmask 255.255.255.0
     network 192.168.1.0
     broadcast 192.168.1.255
     gateway 192.168.1.1
DNSは /etc/resolv.conf を編集
 nameserver 218.176.253.97
 nameserver 218.176.253.65
編集を完了したら、ネットワークの設定を有効にする
 /etc/init.d/networking restart
*** サービスを確認する
sysv-rc-conf というコマンドだが、初期状態では未インストールなので apt-get install sysv-rc-conf でインストール。
*** sshのインストール
デフォルトではインストールされていないので、apt-get     </description>
    <dc:date>2008-05-03T01:08:40+09:00</dc:date>
    <utime>1209744520</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/hayao/pages/23.html">
    <title>Dovecot</title>
    <link>https://w.atwiki.jp/hayao/pages/23.html</link>
    <description>
      CentOSにデフォルトでインストールされているPOPサーバーである Dovecot を設定して、使用できるようにします。
/etc/dovecot.conf を編集します。
 protocols = imap imaps pop3 pop3s    &lt;== 使用するプロトコル
 mail_location = maildir:~/Maildir    &lt;== 明示的に mailbox を指定する。[[Postfix]] の Maildir形式なので、それを指定。
自動起動を確認して、設定する。
 # chkconfig --list dovecot
 dovecot         0:off   1:off   2:off   3:off   4:off   5:off   6:off
 # chkconfig --level 2345 dovecot on    &lt;== ランレベル 2,3,4,5 で ON
 # chkconfig --list dovecot
 dovecot         0:off   1:off   2:on    3:on    4:on    5:on    6:off
 # service dovecot start    &lt;== ついでに起動しておく
 Dovecot Imap を起動中:                                     [  OK  ]    </description>
    <dc:date>2008-01-20T22:45:47+09:00</dc:date>
    <utime>1200836747</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/hayao/pages/22.html">
    <title>Xming</title>
    <link>https://w.atwiki.jp/hayao/pages/22.html</link>
    <description>
      Windowsで使えるフリーのXserverである Xming で CentOS に接続する。
- CentOS側の設定
-- 起動時のランレベルを変更する
Xming でつなぐためには、起動時のランレベルをグラフィカル(ランレベル 5)にする必要がある。
/etc/inittab を以下のように修正する。
 id:5:initdefault:    &lt;== 修正前は id:3:initdefault:
-- Xディスプレイマネージャの変更
まず設定ファイルを確認します。
 # rpm -qc gdm
 /etc/gdm/Init/Default
 /etc/gdm/PostLogin/Default.sample
 /etc/gdm/PostSession/Default
 /etc/gdm/PreSession/Default
 /etc/gdm/XKeepsCrashing
 /etc/gdm/custom.conf    &lt;== これを修正します
 /etc/gdm/locale.alias
 /etc/gdm/modules/AccessDwellMouseEvents
 /etc/gdm/modules/AccessKeyMouseEvents
 /etc/gdm/modules/factory-AccessDwellMouseEvents
 /etc/gdm/modules/factory-AccessKeyMouseEvents
 /etc/gdm/securitytokens.conf
 /etc/pam.d/gdm
 /etc/pam.d/gdm-autologin
 /etc/pam.d/gdmsetup
 /etc/security/console.apps/gdmsetup
確認した /etc/gdm/custom.conf を修正します。
 [security]
 AllowRemoteRoot=true    &lt;== リモートからでも root で入れるように
 [xdmcp]
 Enable=true    &lt;== 使用できるように
修正後は OS を再起動する。
- Windows側の設定
Xmingをインストールする。フォントもインストールする。（フォントサーバーが不    </description>
    <dc:date>2008-01-20T22:13:09+09:00</dc:date>
    <utime>1200834789</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/hayao/pages/21.html">
    <title>linuxコマンド</title>
    <link>https://w.atwiki.jp/hayao/pages/21.html</link>
    <description>
      あくまで個人的な覚書です。
#contents()
* mail
** 送信するとき
 # mail hoge@localhost
 Subject: Test2
 This is a 2nd test mail.    &lt;== ここから本文です。
 Can you receive this too?
 .    &lt;== 本文を終了するときは、行頭にピリオド(.)です。
 Cc:    &lt;== Cc を聞かれますが、不要なら Enter
** 読むとき
mbox形式なら読めますが、Maildir形式では読めないようです。
~/Maildir/new/ を見れば、届いているかどうかぐらいは参照できます。
* tar
** 解凍
 tar -xzvf hoge.tar.gz          tar.gz形式のファイルを解凍と展開を一度に行います。
* uname
** カーネルのバージョンを確認
 uname -r    </description>
    <dc:date>2008-04-29T11:18:15+09:00</dc:date>
    <utime>1209435495</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/hayao/pages/20.html">
    <title>Postfix</title>
    <link>https://w.atwiki.jp/hayao/pages/20.html</link>
    <description>
      CentOS では SMTPサーバー は、デフォルトでは sendmail です。
しかしこの sendmail は設定が難しいので、sendmail互換である Postfix に移行させます。
Maildir 形式が利用しやすいのも、移行の目的の1つです。
- Postfix のインストール
 # yum install postfix
- sendmail の停止
とりあえず sendmail を停止させておく
 # service sendmail stop
 sm-client を停止中:                                        [  OK  ]
 sendmail を停止中:                                         [  OK  ]
ついでに sendmail の自動起動設定も調べておき、さらに自動起動リストから外す
 # chkconfig --list sendmail
 sendmail        0:off   1:off   2:on    3:on    4:on    5:on    6:off
 # chkconfig --del sendmail
- main.cf の設定
Postfix では /etc/postfix/main.cf を編集します。
以下はデフォルトに対して編集した箇所です。
 myhostname = myhost.mydomain
 mydomain = mydomain
 myorigin = $myhostname ・・・ このホストで出されたメールのドメイン部分（@より後ろの部分）。通常は $myhostname
 inet_interfaces = all ・・・ メールを受け取るネットワークインタフェースのアドレス範囲を指定する。
 mydestination = $myhostname, localhost.$mydomain, localhost ・・・ このSMTPサーバーが、最終目的地とみなす範囲。つまりこれ以外は別ホストに転送する。
 mynetworks_style = subnet ・・・ 信頼できるSMTPクライアントを指定する。subnnet は自ホストの所属して    </description>
    <dc:date>2008-01-20T20:55:04+09:00</dc:date>
    <utime>1200830104</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/hayao/pages/19.html">
    <title>Bugzilla/使用した感想</title>
    <link>https://w.atwiki.jp/hayao/pages/19.html</link>
    <description>
      以下は使用してみた感想です。
- わかりづらい。
Mantisと比較して、日本語化が十分でない。
また自分のタスクが一覧できるページがデフォルトで準備されていない。そのため何をすべきかがわかりづらい。
- ステータスに VERIFIED がある。
RESOLVEDする開発者とCLOSEDするプロジェクトリーダーの間に、VERIFIEDするテスターがいる場合に対応できる。
MantisだとRESOLVEDしたら次はFIXEDになるので、テスターが別の場合、対応が難しい。（このようなプロジェクトは稀だが）
- Mantisとどっちが？
使いやすさからMantisを選択します。
テスターがいた場合は、コメント追加などの運用でカバーできるのでは？
それよりも直感的に使いやすいMantisかな。    </description>
    <dc:date>2008-01-18T00:08:33+09:00</dc:date>
    <utime>1200582513</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/hayao/pages/18.html">
    <title>Bugzilla/パラメータの変更 その1</title>
    <link>https://w.atwiki.jp/hayao/pages/18.html</link>
    <description>
      インストール時に指定した administrator の e-mail address と password でログインする。
- Localization の設定
以下の2つを設定して、日本語表示できるようにします。
languages = ja
defaultlanguage = ja
- Required Settings の設定
最低限必要な箇所を設定する。
maintainer ・・・ administratorと同じにしておく
urlbase = http://サーバー/bugzilla/ ・・・トップページと同じになります    </description>
    <dc:date>2008-01-17T23:19:33+09:00</dc:date>
    <utime>1200579573</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/hayao/pages/17.html">
    <title>Bugzilla/apacheの設定</title>
    <link>https://w.atwiki.jp/hayao/pages/17.html</link>
    <description>
      - apacheの設定
httpd.confを修正する。
まず bugzilla のための Directory を設定する。
 &lt;Directory &quot;/var/www/html/bugzilla&quot;&gt;
    Options ExecCGI FollowSymLinks    &lt;== CGIが実行できるように
    AllowOverride Limit
    DirectoryIndex index.cgi    &lt;== index.cgi が welcomeファイルになる
 &lt;/Directory&gt;
CGIが使えるように、MIMEタイプを追加する。
 AddType application/x-httpd-cgi .cgi
 AddType application/x-httpd-cgi .pl
同じく AddHandler に cgi-script を追加します。
 AddHandler cgi-script .cgi .pl
- apacheの再起動
再起動します。
 # service httpd restart
 httpd を停止中:              [  OK  ]
 httpd を起動中:              [  OK  ]
ついでに自動起動するように設定します。
 # chkconfig --level 35 httpd on
 # chkconfig --list httpd
 httpd     0:off   1:off   2:off   3:on    4:off   5:on    6:off
- トップページの確認
以上でとりあえず動作するようになっているはずなので確認します。
http://ホスト/bugzilla/ にアクセスすると
#image(toppage_en.png)
無事表示されました。    </description>
    <dc:date>2008-01-16T23:39:07+09:00</dc:date>
    <utime>1200494347</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/hayao/pages/16.html">
    <title>Bugzilla/ローカル設定の編集</title>
    <link>https://w.atwiki.jp/hayao/pages/16.html</link>
    <description>
      - localconfig の編集
デフォルトから変更した箇所は
 $db_pass = &#039;****&#039;;    &lt;== ユーザー bugs のパスワード
- 編集後に再び checksetup.pl の実行
 Enter the e-mail address of the administrator: root@localhost.localdomain    &lt;== bugzilla の administrator の e-mail
 Enter the real name of the administrator: [[Bugzilla]] Administrator
 Enter a password for the administrator account:    &lt;== bugzilla の administrator の password
 Please retype the password to verify:    &lt;== bugzilla の administrator の password
これでデータベースなどの準備が完了した。    </description>
    <dc:date>2008-01-14T23:36:54+09:00</dc:date>
    <utime>1200321414</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/hayao/pages/15.html">
    <title>Bugzilla/必要なperlモジュールのインストール</title>
    <link>https://w.atwiki.jp/hayao/pages/15.html</link>
    <description>
      - CPANの環境を設定する
以下の抜粋のように設定しました。ほぼデフォルトの回答で OK です。
 # perl -MCPAN -e shell
 /usr/lib/perl5/5.8.8/CPAN/Config.pm initialized.
 Are you ready for manual configuration? [yes]
 CPAN build and cache directory? [/root/.cpan]
 Cache size for build directory (in MB)? [10]
 Perform cache scanning (atstart or never)? [atstart]
 Cache metadata (yes/no)? [yes]
 Your terminal expects ISO-8859-1 (yes/no)? [yes] no    &lt;== UTF-8をサポートしたターミナルなので
 File to save your history? [/root/.cpan/histfile]
 Number of lines to save? [100]
 Policy on building prerequisites (follow, ask or ignore)? [ask]
 Where is your gzip program? [/bin/gzip]
 Where is your tar program? [/bin/tar]
 Where is your unzip program? [/usr/bin/unzip]
 Where is your make program? [/usr/bin/make]
 Where is your links program? [/usr/bin/links]
 Where is your wget program? [/usr/bin/wget]
 Warning: ncftpget not found in PATH
 Where is your ncftpget program? []    &lt;== 未インストールなので
 Warning: ncftp not found in PATH
 Where is     </description>
    <dc:date>2008-01-14T23:18:49+09:00</dc:date>
    <utime>1200320329</utime>
  </item>
  </rdf:RDF>
