<?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/21.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/hayao/pages/2.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/20.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/hayao/pages/11.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: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 install ssh する。
*** 日本語ローカライズド版を取得する
/etc/apt/sources.list に追記する。
 deb http://archive.ubuntulinux.jp/ubuntu-ja hardy/
 deb http://archive.ubuntulinux.jp/ubuntu-ja hardy-ja/
その後で以下を実施する
 sudo apt-get update
 sudo apt-get install ubuntu-ja-keyring
 sudo apt-get update
 sudo apt-get install ubuntu-desktop-ja
 sudo apt-get upgrade
*** VMware Tools をインストールする
VMwareのメニューで VM -&gt; Install VMware Tools を実行する。
すると /media/cdrom0/ がマウントされる。
そこに rpm と tar.gz がある。
tar.gz をホームにコピーして、解凍します。
すると vmware-tools-distrib ができますので、そこにある vmware-install.pl を実行します。
 sudo ./vmware-install.pl
しかし途中で Unable to build the vmhgfs module. と怒られる。
ググってみたが、VMware Server 1.0.5 に対応した解決方法が見つからなかったので、そのまま進めた。
もし不具合があったら、 /usr/bin/vmware-uninstall-tools.pl で削除するつもり。
&amp;bold(){2008/5/2現在} うまくいかないので削除しました。
*** Xming
/etc/gdm/gdm.conf-custom を修正します。gdm.confではないので注意!!
 [security]
 空白のまま    &lt;== Xubuntu の場合、rootユーザーはいないので、このまま
 [xdmcp]
 Enable=true    &lt;== 使用できるように
修正したら、OSを再起動する。
次に[[Xming]]の設定をします。
Xmingをインストールする。フォントもインストールする。（フォントサーバーが不要になるので。）
インストールしたら XLaunch で環境ファイル(～.xlaunch)を作成します。 
 Select the display settings ・・・ One window
 Display number ・・・ 0
 Select how to start Xming ・・・ Open session via ＸDMCP
 Configure a remote ＸDMCP connection ・・・ 目的のホスト
 Specify parameter settings
 Clipboard ・・・ 使用する
 Remote font server ・・・ XmingのFontをインストールしていれば、指定しなくてOK。
 Additional parameters for Xming ・・・ -screen 0 1280x1024
作成されたxlaunchファイルをテキストエディタで見ると
 &lt;?xml version=&quot;1.0&quot;?&gt;
 &lt;XLaunch xmlns=&quot;http://www.straightrunning.com/XmingNotes&quot;
     xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot;
     xsi:schemaLocation=&quot;http://www.straightrunning.com/XmingNotes XLaunch.xsd&quot;
     WindowMode=&quot;Windowed&quot; ClientMode=&quot;XDMCP&quot; XDMCPHost=&quot;192.168.1.23&quot;
     Display=&quot;0&quot; Clipboard=&quot;true&quot; ExtraParams=&quot;-screen 0 1280x1024&quot;/&gt;
*** Firefoxの設定
IPv6がサポートされていることで遅くなっているので、それを無効にする。
/etc/modprove.d/aliases を編集する。
 編集前 alias net-pf-10 ipv6
 編集後 alias net-pf-10 off
次に Firefox に対して、
アドレス入力のところで、about:config　とし
network.dns.disableIPv6　の値を true　とする。    </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/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/2.html">
    <title>メニュー</title>
    <link>https://w.atwiki.jp/hayao/pages/2.html</link>
    <description>
      **メニュー
- [[Bugzilla]]
- [[Postfix]]
- [[Dovecot]]
- [[linuxコマンド]]
- [[Xming]]
- [[Xubuntu]]
----

**更新履歴
#recent(20)    </description>
    <dc:date>2008-04-22T23:26:24+09:00</dc:date>
    <utime>1208874384</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をインストールする。フォントもインストールする。（フォントサーバーが不要になるので。）
インストールしたら XLaunch で環境ファイル(～.xlaunch)を作成します。
 Select the display settings ・・・ One window
 Display number ・・・ 0
 Select how to start Xming ・・・ Open session via ＸDMCP
 Configure a remote ＸDMCP connection ・・・ 目的のホスト
 Specify parameter settings
 Clipboard ・・・ 使用する
 Remote font server ・・・ 目的のホスト
 Additional parameters for Xming ・・・ -screen 0 1024x768
作成されたファイルをテキストエディタで見るとこんな感じです。
 &lt;?xml version=&quot;1.0&quot;?&gt;
 &lt;XLaunch xmlns=&quot;http://www.straightrunning.com/XmingNotes&quot; xmlns:xsi=&quot;http://www.w3.org/2001/XMLSchema-instance&quot; xsi:schemaLocation=&quot;http://www.straightrunning.com/XmingNotes XLaunch.xsd&quot; WindowMode=&quot;Windowed&quot; ClientMode=&quot;XDMCP&quot; XDMCPHost=&quot;192.168.X.X&quot; Display=&quot;0&quot; Clipboard=&quot;true&quot; ExtraParams=&quot;-screen 0 1280x1024&quot;/&gt;    </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/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 は自ホストの所属しているサブネットです。
 relay_domains = $mydestination ・・・ リレーを許可するドメイン
 home_mailbox = Maildir/ ・・・ Maildir 形式を利用する
 sendmail_path = /usr/sbin/sendmail ・・・ sendmail互換プログラムのパス。いろいろな CGI などがこのパスを利用しているので、今までの sendmail と同じにする。あとで /usr/sbin/sendmail.postfix と入れ替える必要がある。これにより、CGI側は修正が不要になる。
- /usr/sbin/sendmail の修正
上述の main.cf の設定で行ったように、/usr/sbin/sendmail が Postfix の sendmail互換プログラムになるように修正が必要です。
 # mv /usr/sbin/sendmail /usr/sbin/sendmail.old ・・・ sendmail.old と名前を変更する。
 # ln -s /usr/sbin/sendmail.postfix /usr/sbin/sendmail ・・・ シンボリックリンクを張る
- 自動起動の設定
 # chkconfig --add postfix ・・・ 自動起動に追加する
 # chkconfig --list postfix ・・・ 自動起動のランレベルを確認する
 postfix         0:off   1:off   2:on    3:on    4:on    5:on    6:off
 # service postfix start ・・・ サービスを開始する
 postfix を起動中:                                          [  OK  ]    </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/11.html">
    <title>Bugzilla</title>
    <link>https://w.atwiki.jp/hayao/pages/11.html</link>
    <description>
      BTS(Bug Tracking System)でも重量級と言われるBugzillaをインストールしてみる。
+ [[CentOS5.1の準備&gt;Bugzilla/CentOS5.1の準備]]
+ [[MySQLの準備&gt;Bugzilla/MySQLの準備]]
+ [[Bugzilla-jaのインストール &gt;Bugzilla/Bugzilla-jaのインストール ]]
+ [[必要なperlモジュールのインストール&gt;Bugzilla/必要なperlモジュールのインストール]]
+ [[ローカル設定の編集&gt;Bugzilla/ローカル設定の編集]]
+ [[apacheの設定&gt;Bugzilla/apacheの設定]]
+ [[パラメータの変更 その1&gt;Bugzilla/パラメータの変更 その1]]
+ [[使用した感想&gt;Bugzilla/使用した感想]]    </description>
    <dc:date>2008-01-18T00:09:26+09:00</dc:date>
    <utime>1200582566</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>
  </rdf:RDF>
