<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0">
   <channel>
      <title>自宅サーバー構築日記</title>
      <link>http://server.submit-all.jp/</link>
      <description>自宅サーバー構築を思い立ち、独自ドメインによるサイト運営に至るまでの経緯や覚え書きを日記風にまとめています。</description>
      <language>ja</language>
      <copyright>Copyright 2012</copyright>
      <lastBuildDate>Sun, 15 Apr 2012 15:55:38 +0900</lastBuildDate>
      <generator>http://www.sixapart.com/movabletype/</generator>
      <docs>http://blogs.law.harvard.edu/tech/rss</docs> 

            <item>
         <title>実機転送の手順（おさらい）</title>
         <description><![CDATA[・<a href="http://blog.syuhari.jp/archives/973" target="_blank">http://blog.syuhari.jp/archives/973</a>
の「自作アプリの App ID を取得」からスタート。
(Dev CenterでApp IDs→New App ID。Provisioning→Development→New Profile。プロビジョニングファイルは、ダウンロードしたらダブルクリックしてXcodeにインストールすること。)
・Ti Studioでtiapp.xmlの編集、およびProvisioning Profilesの登録をする。
<a href="http://zaru.tofu-kun.org/2011/08/09/taitanium-studioでiphone実機転送をする方法/" target="_blank">http://zaru.tofu-kun.org/2011/08/09/taitanium-studioでiphone実機転送をする方法/</a>
・上記「Provisioning Profilesの登録」で自動的にiTunesが立ち上がる。（時間がかかる）
・上記でSYNCしてくれるので実機に転送される。

]]></description>
         <link>http://server.submit-all.jp/2012/04/post_13.html</link>
         <guid>http://server.submit-all.jp/2012/04/post_13.html</guid>
                  <category domain="http://www.sixapart.com/ns/types#category">300Titanium MobileでApp作成</category>
        
                  <category domain="http://www.sixapart.com/ns/types#tag">titanium</category>
        
         <pubDate>Sun, 15 Apr 2012 15:55:38 +0900</pubDate>
      </item>
            <item>
         <title>Titanium Studio用に、既存のMySQLデータベースからSQLiteデータベースを作成する方法</title>
         <description>iPhoneアプリ用にSQLiteデータベースを作成する必要があった。
DBはもともとMySQLのデータベース。
</description>
         <link>http://server.submit-all.jp/2012/01/titanium_studiomysqlsqlite.html</link>
         <guid>http://server.submit-all.jp/2012/01/titanium_studiomysqlsqlite.html</guid>
                  <category domain="http://www.sixapart.com/ns/types#category">400アップル関連</category>
        
        
         <pubDate>Sun, 08 Jan 2012 23:10:02 +0900</pubDate>
      </item>
            <item>
         <title>itunes このwindowsインストーラパッケージには問題があります</title>
         <description>iTunesをアップデートする際に、
『このwindowsインストーラパッケージには問題があります』
と出た場合の対処方法。
</description>
         <link>http://server.submit-all.jp/2012/01/itunes_windows.html</link>
         <guid>http://server.submit-all.jp/2012/01/itunes_windows.html</guid>
                  <category domain="http://www.sixapart.com/ns/types#category">400アップル関連</category>
        
                  <category domain="http://www.sixapart.com/ns/types#tag">iPod</category>
                  <category domain="http://www.sixapart.com/ns/types#tag">iTunes</category>
        
         <pubDate>Sat, 07 Jan 2012 12:25:28 +0900</pubDate>
      </item>
            <item>
         <title>実機転送のチェックポイント</title>
         <description>プロビジョニングファイルは、ダウンロードしたらダブルクリックしてXcodeにインストールすること。</description>
         <link>http://server.submit-all.jp/2011/06/post_12.html</link>
         <guid>http://server.submit-all.jp/2011/06/post_12.html</guid>
                  <category domain="http://www.sixapart.com/ns/types#category">300Titanium MobileでApp作成</category>
        
                  <category domain="http://www.sixapart.com/ns/types#tag">titanium</category>
        
         <pubDate>Sat, 11 Jun 2011 00:04:57 +0900</pubDate>
      </item>
            <item>
         <title>tmpディレクトリ内のファイル削除(tmpwatch)</title>
         <description><![CDATA[ウェブサービスのキャッシュ用ディレクトリ /var/tmp/内の定期的なファイル削除CRON(tmpwatch)をいじって、下記の通り変更した。
元・<strong>30days</strong>アクセスのないファイルを毎日削除
↓
新・<strong>3days</strong>アクセスのないファイルを毎日削除

（ウェブサービスを利用するCGIの動きが悪化したのは、/var/tmp内のファイル容量が多くなったため、と仮説を立てたことによる処置）


↓
いまいちなので、
<strong>キャッシュディレクトリに移動してから</strong>、
echo * |xargs rm -rf
とすれば、
とりあえずファイルおよびディレクトリは消せる
（ただし取り扱い注意）
]]></description>
         <link>http://server.submit-all.jp/2010/04/tmptmpwatch.html</link>
         <guid>http://server.submit-all.jp/2010/04/tmptmpwatch.html</guid>
                  <category domain="http://www.sixapart.com/ns/types#category">200作業【Linux編】</category>
        
                  <category domain="http://www.sixapart.com/ns/types#tag">ウェブサービス</category>
        
         <pubDate>Sun, 04 Apr 2010 18:20:43 +0900</pubDate>
      </item>
            <item>
         <title>サーバーマシンを新調</title>
         <description><![CDATA[サーバーマシンをDELLの<a href="http://click.linksynergy.com/fs-bin/click?id=cduDJXQOWJ8&offerid=39250.10001387&type=2&subid=0" >Studio Desktop</a><IMG border=0 width=1 height=1 src="http://ad.linksynergy.com/fs-bin/show?id=cduDJXQOWJ8&bids=39250.10001387&type=2&subid=0" >へ新調した。

■MyDNSのIPアドレス更新をPOPサーバー認証で行う
<a href="http://www.amazon.co.jp/gp/product/4881666959?ie=UTF8&tag=pocketnavi-22&linkCode=as2&camp=247&creative=7399&creativeASIN=4881666959">Fedora 11で作る最強の自宅サーバー (DVD-ROM1枚&CD-ROM2枚付)</a><img src="http://www.assoc-amazon.jp/e/ir?t=pocketnavi-22&l=as2&o=9&a=4881666959" width="1" height="1" border="0" alt="" style="border:none !important; margin:0px !important;" />の方法でIPアドレス更新する
↓
ルートで「.fetchmailrc」を編集（MyDNSのIDと、パスワードを書き込む）
↓
CRONを設定する「 */10 * * * * /usr/bin/fetchmail --all >/dev/null 2>&1」
（ドメインを追加したら.fetchmailrcを編集すること）

■ウェブカメラの利用
xawtvがエラー？（Error: Aborting: no fontset found）のため動かないので、<a href="http://oedipa.wiki.fc2.com/wiki/Web%E3%82%AB%E3%83%A1%E3%83%A9%E3%81%AE%E5%88%A9%E7%94%A8" target="_blank">http://oedipa.wiki.fc2.com/wiki/Web%E3%82%AB%E3%83%A1%E3%83%A9%E3%81%AE%E5%88%A9%E7%94%A8</a>を参考にしてcheeseをインストールしたら、あっさり起動確認できた。
WEBカメラは<a href="http://click.linksynergy.com/fs-bin/click?id=cduDJXQOWJ8&offerid=181659.10000029&type=3&subid=0" >ロジクール</a><IMG border=0 width=1 height=1 src="http://ad.linksynergy.com/fs-bin/show?id=cduDJXQOWJ8&bids=181659.10000029&type=3&subid=0" >の<a href="http://click.linksynergy.com/fs-bin/click?id=cduDJXQOWJ8&offerid=181659.12&type=2&subid=0" >Qcam Communicate STX</a><IMG border=0 width=1 height=1 src="http://ad.linksynergy.com/fs-bin/show?id=cduDJXQOWJ8&bids=181659.12&type=2&subid=0" >。
↓
後日、"yum install xorg-x11-fonts*" でフォントをインストールしたらxawtvも起動した
↓
～/.webcamrcで画像サイズやシャッター間隔や画像ファイル名等を設定して、webcam起動し、HTMLで自動リロード（＜META HTTP-EQUIV="Refresh" CONTENT="**"＞）にして、＜img src="***"＞で画像を張り付ければ、監視カメラのできあがり！

■mysqlデータベースの”まるごと引越し”
・<a href="http://blog1.haigo.info/blog/sakano1/2009/02/mysql_move_server1.html" target="_blank">http://blog1.haigo.info/blog/sakano1/2009/02/mysql_move_server1.html</a>
を参考にして、/var/lib/mysql/内のデータをまるごと引越し。
・ニューマシンでのMYSQL初期設定は、
<a href="http://fedorasrv.com/mysql.shtml" target="_blank">http://fedorasrv.com/mysql.shtml</a>
に従った。

■PHPのERROR_REPORTING設定の変更
php.iniで
error_reporting = E_ALL & ~E_NOTICE
とした。
NOTICEまで含めるとエラーログが膨れ上がったため(^^;)
↓
結局
error_reporting = E_ALL & ~E_NOTICE & ~E_WARNING
とした

■スパムとウィルスメール対策
最強の自宅サーバーのP.278以降を参照して対策を施した。
master.cfの書式（「-o」の前はタブを入れる、「smtpd_client・・」の行はスペースを入れない、等）でてこずった。
＋
後日
<a href="http://fedorasrv.com/clamav.shtml" target="_blank">http://fedorasrv.com/clamav.shtml</a>でエラーに対処した。


■PHP-PEARのインストール
<a href="http://voicetwo.selfip.com/yashikiba/aprk/?itemid=70" target="_blank">http://voicetwo.selfip.com/yashikiba/aprk/?itemid=70</a>に従い、PEARをインストールした。

■Services_Amazonのインストール
<a href="http://www.benexus.net/2009/54/" target="_blank">http://www.benexus.net/2009/54/</a>に従い、Services_Amazonをインストールした。


]]></description>
         <link>http://server.submit-all.jp/2009/09/post_11.html</link>
         <guid>http://server.submit-all.jp/2009/09/post_11.html</guid>
                  <category domain="http://www.sixapart.com/ns/types#category">200作業【Linux編】</category>
        
                  <category domain="http://www.sixapart.com/ns/types#tag">DELL</category>
        
         <pubDate>Mon, 21 Sep 2009 18:30:45 +0900</pubDate>
      </item>
            <item>
         <title>Linux Tips、役立つページ</title>
         <description><![CDATA[<a href="http://www.atmarkit.co.jp/flinux/rensai/linuxtips/435regetipadd.html" target="_blank">DHCPクライアントでIPアドレスを再取得するには</a>
DHCPでサーバからIPアドレスを自動的に取得している場合、ネットワークの不調などにより、IPアドレスを再取得する必要が生じることがある　･･･
suで
#IPアドレスを解放
dhclient -r [return]
#再取得
dhclient [return]

<a href="http://astro.sci.kagoshima-u.ac.jp/omodaka-nishio/linux/setup-linux.html" target="_blank">各種設定、コマンド等</a>
linuxってなかなか慣れるまで時間掛かるかも知れませんけどとりあえずこれくらい知っとけば、ネットワークに繋がって、ホスト名をお好みのものに変更できて、システムの自動アップデートができて、使わない常駐プログラムは止めることができて、計算機の時計も狂わないっていうふうにするための解説です　･･･

]]></description>
         <link>http://server.submit-all.jp/2009/09/linux_tips.html</link>
         <guid>http://server.submit-all.jp/2009/09/linux_tips.html</guid>
                  <category domain="http://www.sixapart.com/ns/types#category">200作業【Linux編】</category>
        
                  <category domain="http://www.sixapart.com/ns/types#tag">Linux</category>
                  <category domain="http://www.sixapart.com/ns/types#tag">Tips</category>
        
         <pubDate>Sun, 13 Sep 2009 11:30:25 +0900</pubDate>
      </item>
            <item>
         <title>ADSLからフレッツ光プレミアムへの回線引越し</title>
         <description><![CDATA[問題：GATEWAYアドレスが変わるのでサーバーのIPアドレスがかわること。

■サーバーマシンの/etc/resolv.confに新しいDNSサーバーのIPアドレスを記述する。
■サーバーマシンの/etc/sysconfig/network-scripts/ifcfg-eth0に新しいマシン自体ののIPアドレスを記述する。
■<a href="http://shikichi.ddo.jp/ntt_flets_set.html" target="_blank">http://shikichi.ddo.jp/ntt_flets_set.html</a>に従い、
　・DHCPサーバ機能設定（LAN側固定IP払い出し）
　・静的アドレス変換設定（ポート指定） 
　・ファイアウォール詳細設定
　を修正して、TOP-設定反映（必須）する。

■↓なぜかサーバー機からネットにつながらなくなったときにトライしたこと
suで
#IPアドレスを解放
dhclient -r [return]
#再取得
dhclient [return]

■MYSQLの引越し
/var/lib/mysql/内のデータをまるごとコピーして引越しする。
<a href="http://blog1.haigo.info/blog/sakano1/2009/02/mysql_move_server1.html" target="_blank">http://blog1.haigo.info/blog/sakano1/2009/02/mysql_move_server1.html</a>
]]></description>
         <link>http://server.submit-all.jp/2009/09/adsl.html</link>
         <guid>http://server.submit-all.jp/2009/09/adsl.html</guid>
                  <category domain="http://www.sixapart.com/ns/types#category">200作業【Linux編】</category>
        
        
         <pubDate>Sun, 06 Sep 2009 14:26:42 +0900</pubDate>
      </item>
            <item>
         <title>postfixのキュー削除</title>
         <description><![CDATA[<a href="http://www.yanbe.net/blog/archives/000006.html" target="_blank">postfixのキュー削除</a>


キューメールを削除する場合は
postsuper -d ALL
です。
]]></description>
         <link>http://server.submit-all.jp/2009/08/postfix_1.html</link>
         <guid>http://server.submit-all.jp/2009/08/postfix_1.html</guid>
                  <category domain="http://www.sixapart.com/ns/types#category">200作業【Linux編】</category>
        
        
         <pubDate>Thu, 13 Aug 2009 13:31:05 +0900</pubDate>
      </item>
            <item>
         <title>シェルスクリプト/制御文</title>
         <description><![CDATA[<a href="http://matsui.homeunix.com/index.php?Bash%A5%B7%A5%A7%A5%EB%A5%B9%A5%AF%A5%EA%A5%D7%A5%C8%2F%C0%A9%B8%E6%CA%B8" target="_blank">シェルスクリプト/制御文</a>

if文
while文
case文
for文


]]></description>
         <link>http://server.submit-all.jp/2009/08/post_10.html</link>
         <guid>http://server.submit-all.jp/2009/08/post_10.html</guid>
                  <category domain="http://www.sixapart.com/ns/types#category">200作業【Linux編】</category>
        
        
         <pubDate>Sat, 08 Aug 2009 16:27:23 +0900</pubDate>
      </item>
            <item>
         <title>hosts.denyでアクセス制限</title>
         <description><![CDATA[<a href="http://www.key-p.com/blog/staff/archives/94" target="_blank">http://www.key-p.com/blog/staff/archives/94</a>
一定間隔でログファイルをチェック、指定回数以上の攻撃を検知すると、hosts.denyファイルにて、該当IPからのSSH接続を拒否すると言う物です。
その他、メールによる報告機能も付いています。

ssh-check.sh]]></description>
         <link>http://server.submit-all.jp/2009/08/hostsdeny.html</link>
         <guid>http://server.submit-all.jp/2009/08/hostsdeny.html</guid>
                  <category domain="http://www.sixapart.com/ns/types#category">200作業【Linux編】</category>
        
        
         <pubDate>Sat, 08 Aug 2009 08:53:27 +0900</pubDate>
      </item>
            <item>
         <title>postfixとsendmail</title>
         <description><![CDATA[<a href="http://www.maruko2.com/mw/%E3%83%87%E3%83%95%E3%82%A9%E3%83%AB%E3%83%88_MTA_%E3%82%92%E5%A4%89%E6%9B%B4%E3%81%99%E3%82%8B" target="_blank">デフォルト MTA を変更する</a>



]]></description>
         <link>http://server.submit-all.jp/2009/08/postfixsendmail.html</link>
         <guid>http://server.submit-all.jp/2009/08/postfixsendmail.html</guid>
                  <category domain="http://www.sixapart.com/ns/types#category">200作業【Linux編】</category>
        
                  <category domain="http://www.sixapart.com/ns/types#tag">postfix</category>
        
         <pubDate>Sat, 01 Aug 2009 17:58:42 +0900</pubDate>
      </item>
            <item>
         <title>Fedora Core 6 Java 6 SDK のインストール</title>
         <description><![CDATA[<font size=+1><strong>・<a href="http://kajuhome.com/tomcat5.shtml" target="_blank">サーバサイドJAVAの導入(Tomcat5編)</a>
　→「■ tomcatの起動と停止」まで終了　</strong></font>

・JSP・サーブレットのURLパス、ディレクトリ設定は /etc/httpd/conf/workers2.properties で設定（[uri:・・・]）
・JSP、JAVAファイルのアップロード先は /usr/local/tomcat/webapps/ 以下

---

<a href="http://typea.dip.jp/tips/wiki.cgi?page=Fedora+Core+6+Java+6+SDK+%A4%CE%A5%A4%A5%F3%A5%B9%A5%C8%A1%BC%A5%EB" target="_blank">Fedora Core 6 Java 6 SDK のインストール</a>

・<a href="http://kajuhome.com/tomcat.shtml" target="_blank">http://kajuhome.com/tomcat.shtml</a>
・<a href="http://kajuhome.com/j2sdk.shtml" target="_blank">http://kajuhome.com/j2sdk.shtml</a>

・TOMCATのインストール・・・<a href="http://honana.com/tomcat/install.html" target="_blank">http://honana.com/tomcat/install.html</a>
・TOMCATの設定・・・<a href="http://kajuhome.com/tomcat.shtml" target="_blank">http://kajuhome.com/tomcat.shtml</a>

・<a href="http://www.mlexp.com/wiki/?Virtual%20PC%20%2B%20Fedora%20Core%205%20%2B%20Apache%20%2B%20Tomcat%20%A5%A4%A5%F3%A5%B9%A5%C8%A1%BC%A5%EB#re6cb9f3" target="_blank">Virtual PC + Fedora Core 5 + Apache + Tomcat インストール</a>


]]></description>
         <link>http://server.submit-all.jp/2008/10/fedora_core_6_java_6_sdk.html</link>
         <guid>http://server.submit-all.jp/2008/10/fedora_core_6_java_6_sdk.html</guid>
                  <category domain="http://www.sixapart.com/ns/types#category">200作業【Linux編】</category>
        
        
         <pubDate>Sun, 26 Oct 2008 12:49:49 +0900</pubDate>
      </item>
            <item>
         <title>XML_RPCを利用してWorldPressに投稿します</title>
         <description>内容
本日は晴天なり</description>
         <link>http://server.submit-all.jp/2008/07/xml_rpcworldpress_1.html</link>
         <guid>http://server.submit-all.jp/2008/07/xml_rpcworldpress_1.html</guid>
        
        
         <pubDate>Wed, 23 Jul 2008 17:15:24 +0900</pubDate>
      </item>
            <item>
         <title>XML_RPCを利用してWorldPressに投稿します</title>
         <description>内容
本日は晴天なり</description>
         <link>http://server.submit-all.jp/2008/07/xml_rpcworldpress.html</link>
         <guid>http://server.submit-all.jp/2008/07/xml_rpcworldpress.html</guid>
        
        
         <pubDate>Wed, 23 Jul 2008 17:09:01 +0900</pubDate>
      </item>
      
   </channel>
</rss>

