<?xml version="1.0" encoding="UTF-8"?>
<feed xmlns="http://www.w3.org/2005/Atom">
   <title>自宅サーバー構築日記</title>
   <link rel="alternate" type="text/html" href="http://server.submit-all.jp/" />
   <link rel="self" type="application/atom+xml" href="http://server.submit-all.jp/atom.xml" />
   <id>tag:server.submit-all.jp,2012://2</id>
   <updated>2012-01-08T14:21:47Z</updated>
   <subtitle>自宅サーバー構築を思い立ち、独自ドメインによるサイト運営に至るまでの経緯や覚え書きを日記風にまとめています。</subtitle>
   <generator uri="http://www.sixapart.com/movabletype/">Movable Type 3.33-ja</generator>

<entry>
   <title>Titanium Studio用に、既存のMySQLデータベースからSQLiteデータベースを作成する方法</title>
   <link rel="alternate" type="text/html" href="http://server.submit-all.jp/2012/01/titanium_studiomysqlsqlite.html" />
   <id>tag:server.submit-all.jp,2012://2.242</id>
   
   <published>2012-01-08T14:10:02Z</published>
   <updated>2012-01-08T14:21:47Z</updated>
   
   <summary>iPhoneアプリ用にSQLiteデータベースを作成する必要があった。 DBはも...</summary>
   <author>
      <name></name>
      
   </author>
         <category term="400アップル関連" scheme="http://www.sixapart.com/ns/types#category" />
   
   
   <content type="html" xml:lang="ja" xml:base="http://server.submit-all.jp/">
      iPhoneアプリ用にSQLiteデータベースを作成する必要があった。
DBはもともとMySQLのデータベース。

      <![CDATA[phpMyAdminで「Export」-「CSV」で「Go」。このとき、「Put fields names in the first row」にチェック、「Save as file」にチェック。

できたファイルをSQLite Database Browserにて「File」-「Import」-「Table from CSV file」する。このとき、「Extract fields names from first line」にチェック。

あとは、<a href="http://mobile.tutsplus.com/tutorials/appcelerator/titanium-mobile-database-driven-tables-with-sqlite/" target="_blank">http://mobile.tutsplus.com/tutorials/appcelerator/titanium-mobile-database-driven-tables-with-sqlite/</a>を参考にする。
]]>
   </content>
</entry>
<entry>
   <title>itunes このwindowsインストーラパッケージには問題があります</title>
   <link rel="alternate" type="text/html" href="http://server.submit-all.jp/2012/01/itunes_windows.html" />
   <id>tag:server.submit-all.jp,2012://2.241</id>
   
   <published>2012-01-07T03:25:28Z</published>
   <updated>2012-01-07T03:34:41Z</updated>
   
   <summary>iTunesをアップデートする際に、 『このwindowsインストーラパッケージ...</summary>
   <author>
      <name></name>
      
   </author>
         <category term="400アップル関連" scheme="http://www.sixapart.com/ns/types#category" />
   
   <category term="12" label="iPod" scheme="http://www.sixapart.com/ns/types#tag" />
   <category term="14" label="iTunes" scheme="http://www.sixapart.com/ns/types#tag" />
   
   <content type="html" xml:lang="ja" xml:base="http://server.submit-all.jp/">
      iTunesをアップデートする際に、
『このwindowsインストーラパッケージには問題があります』
と出た場合の対処方法。

      ある日、iPodをPCに接続すると、iTunesのバージョンが古すぎるとのこと。
仕方がないのでAppleサイトでインストーラをダウンロードしてデスクトップに保存した。
ところがインストールを始めると、
『このwindowsインストーラパッケージには問題があります』
とのエラーが・・・。
ググってみると、Windows側の不具合でうまくいかないらしい。
いろいろ試し、
「プログラムの追加と削除」で
「Apple SoftWare Update」の削除で上記エラーが出ることが判明。
「サポート情報を参照するには、ここをクリックしてください」をクリック、
「修復」をクリックした上で
「Apple SoftWare Update」を削除することができ、Apple関連のアプリを全部削除したら、
インストールすることができました。
あ～良かった。

   </content>
</entry>
<entry>
   <title>実機転送のチェックポイント</title>
   <link rel="alternate" type="text/html" href="http://server.submit-all.jp/2011/06/post_12.html" />
   <id>tag:server.submit-all.jp,2011://2.240</id>
   
   <published>2011-06-10T15:04:57Z</published>
   <updated>2011-06-10T15:09:37Z</updated>
   
   <summary>プロビジョニングファイルは、ダウンロードしたらダブルクリックしてXcodeにイン...</summary>
   <author>
      <name></name>
      
   </author>
         <category term="300Titanium MobileでApp作成" scheme="http://www.sixapart.com/ns/types#category" />
   
   <category term="10" label="titanium" scheme="http://www.sixapart.com/ns/types#tag" />
   
   <content type="html" xml:lang="ja" xml:base="http://server.submit-all.jp/">
      プロビジョニングファイルは、ダウンロードしたらダブルクリックしてXcodeにインストールすること。
      
   </content>
</entry>
<entry>
   <title>tmpディレクトリ内のファイル削除(tmpwatch)</title>
   <link rel="alternate" type="text/html" href="http://server.submit-all.jp/2010/04/tmptmpwatch.html" />
   <id>tag:server.submit-all.jp,2010://2.239</id>
   
   <published>2010-04-04T09:20:43Z</published>
   <updated>2010-09-16T13:08:53Z</updated>
   
   <summary>ウェブサービスのキャッシュ用ディレクトリ /var/tmp/内の定期的なファイル...</summary>
   <author>
      <name></name>
      
   </author>
         <category term="200作業【Linux編】" scheme="http://www.sixapart.com/ns/types#category" />
   
   <category term="9" label="ウェブサービス" scheme="http://www.sixapart.com/ns/types#tag" />
   
   <content type="html" xml:lang="ja" xml:base="http://server.submit-all.jp/">
      <![CDATA[ウェブサービスのキャッシュ用ディレクトリ /var/tmp/内の定期的なファイル削除CRON(tmpwatch)をいじって、下記の通り変更した。
元・<strong>30days</strong>アクセスのないファイルを毎日削除
↓
新・<strong>3days</strong>アクセスのないファイルを毎日削除

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


↓
いまいちなので、
<strong>キャッシュディレクトリに移動してから</strong>、
echo * |xargs rm -rf
とすれば、
とりあえずファイルおよびディレクトリは消せる
（ただし取り扱い注意）
]]>
      
   </content>
</entry>
<entry>
   <title>サーバーマシンを新調</title>
   <link rel="alternate" type="text/html" href="http://server.submit-all.jp/2009/09/post_11.html" />
   <id>tag:server.submit-all.jp,2009://2.238</id>
   
   <published>2009-09-21T09:30:45Z</published>
   <updated>2010-08-16T11:59:08Z</updated>
   
   <summary>サーバーマシンをDELLのStudio Desktopへ新調した。 ■MyDNS...</summary>
   <author>
      <name></name>
      
   </author>
         <category term="200作業【Linux編】" scheme="http://www.sixapart.com/ns/types#category" />
   
   <category term="8" label="DELL" scheme="http://www.sixapart.com/ns/types#tag" />
   
   <content type="html" xml:lang="ja" xml:base="http://server.submit-all.jp/">
      <![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をインストールした。


]]>
      
   </content>
</entry>
<entry>
   <title>Linux Tips、役立つページ</title>
   <link rel="alternate" type="text/html" href="http://server.submit-all.jp/2009/09/linux_tips.html" />
   <id>tag:server.submit-all.jp,2009://2.237</id>
   
   <published>2009-09-13T02:30:25Z</published>
   <updated>2009-09-13T04:11:18Z</updated>
   
   <summary>DHCPクライアントでIPアドレスを再取得するには DHCPでサーバからIPアド...</summary>
   <author>
      <name></name>
      
   </author>
         <category term="200作業【Linux編】" scheme="http://www.sixapart.com/ns/types#category" />
   
   <category term="4" label="Linux" scheme="http://www.sixapart.com/ns/types#tag" />
   <category term="6" label="Tips" scheme="http://www.sixapart.com/ns/types#tag" />
   
   <content type="html" xml:lang="ja" xml:base="http://server.submit-all.jp/">
      <![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ってなかなか慣れるまで時間掛かるかも知れませんけどとりあえずこれくらい知っとけば、ネットワークに繋がって、ホスト名をお好みのものに変更できて、システムの自動アップデートができて、使わない常駐プログラムは止めることができて、計算機の時計も狂わないっていうふうにするための解説です　･･･

]]>
      
   </content>
</entry>
<entry>
   <title>ADSLからフレッツ光プレミアムへの回線引越し</title>
   <link rel="alternate" type="text/html" href="http://server.submit-all.jp/2009/09/adsl.html" />
   <id>tag:server.submit-all.jp,2009://2.236</id>
   
   <published>2009-09-06T05:26:42Z</published>
   <updated>2009-09-22T15:47:59Z</updated>
   
   <summary>問題：GATEWAYアドレスが変わるのでサーバーのIPアドレスがかわること。 ■...</summary>
   <author>
      <name></name>
      
   </author>
         <category term="200作業【Linux編】" scheme="http://www.sixapart.com/ns/types#category" />
   
   
   <content type="html" xml:lang="ja" xml:base="http://server.submit-all.jp/">
      <![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>
]]>
      
   </content>
</entry>
<entry>
   <title>postfixのキュー削除</title>
   <link rel="alternate" type="text/html" href="http://server.submit-all.jp/2009/08/postfix_1.html" />
   <id>tag:server.submit-all.jp,2009://2.235</id>
   
   <published>2009-08-13T04:31:05Z</published>
   <updated>2009-08-13T04:36:38Z</updated>
   
   <summary>postfixのキュー削除 キューメールを削除する場合は postsuper -...</summary>
   <author>
      <name></name>
      
   </author>
         <category term="200作業【Linux編】" scheme="http://www.sixapart.com/ns/types#category" />
   
   
   <content type="html" xml:lang="ja" xml:base="http://server.submit-all.jp/">
      <![CDATA[<a href="http://www.yanbe.net/blog/archives/000006.html" target="_blank">postfixのキュー削除</a>


キューメールを削除する場合は
postsuper -d ALL
です。
]]>
      
   </content>
</entry>
<entry>
   <title>シェルスクリプト/制御文</title>
   <link rel="alternate" type="text/html" href="http://server.submit-all.jp/2009/08/post_10.html" />
   <id>tag:server.submit-all.jp,2009://2.234</id>
   
   <published>2009-08-08T07:27:23Z</published>
   <updated>2009-08-08T07:28:32Z</updated>
   
   <summary>シェルスクリプト/制御文 if文 while文 case文 for文 ...</summary>
   <author>
      <name></name>
      
   </author>
         <category term="200作業【Linux編】" scheme="http://www.sixapart.com/ns/types#category" />
   
   
   <content type="html" xml:lang="ja" xml:base="http://server.submit-all.jp/">
      <![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文


]]>
      
   </content>
</entry>
<entry>
   <title>hosts.denyでアクセス制限</title>
   <link rel="alternate" type="text/html" href="http://server.submit-all.jp/2009/08/hostsdeny.html" />
   <id>tag:server.submit-all.jp,2009://2.233</id>
   
   <published>2009-08-07T23:53:27Z</published>
   <updated>2009-08-07T23:59:17Z</updated>
   
   <summary>http://www.key-p.com/blog/staff/archives...</summary>
   <author>
      <name></name>
      
   </author>
         <category term="200作業【Linux編】" scheme="http://www.sixapart.com/ns/types#category" />
   
   
   <content type="html" xml:lang="ja" xml:base="http://server.submit-all.jp/">
      <![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]]>
      
   </content>
</entry>
<entry>
   <title>postfixとsendmail</title>
   <link rel="alternate" type="text/html" href="http://server.submit-all.jp/2009/08/postfixsendmail.html" />
   <id>tag:server.submit-all.jp,2009://2.232</id>
   
   <published>2009-08-01T08:58:42Z</published>
   <updated>2009-08-01T09:04:09Z</updated>
   
   <summary>デフォルト MTA を変更する...</summary>
   <author>
      <name></name>
      
   </author>
         <category term="200作業【Linux編】" scheme="http://www.sixapart.com/ns/types#category" />
   
   <category term="2" label="postfix" scheme="http://www.sixapart.com/ns/types#tag" />
   
   <content type="html" xml:lang="ja" xml:base="http://server.submit-all.jp/">
      <![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>



]]>
      
   </content>
</entry>
<entry>
   <title>Fedora Core 6 Java 6 SDK のインストール</title>
   <link rel="alternate" type="text/html" href="http://server.submit-all.jp/2008/10/fedora_core_6_java_6_sdk.html" />
   <id>tag:server.submit-all.jp,2008://2.231</id>
   
   <published>2008-10-26T03:49:49Z</published>
   <updated>2008-10-26T15:29:21Z</updated>
   
   <summary>・サーバサイドJAVAの導入(Tomcat5編) 　→「■ tomcatの起動と...</summary>
   <author>
      <name></name>
      
   </author>
         <category term="200作業【Linux編】" scheme="http://www.sixapart.com/ns/types#category" />
   
   
   <content type="html" xml:lang="ja" xml:base="http://server.submit-all.jp/">
      <![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>


]]>
      
   </content>
</entry>
<entry>
   <title>XML_RPCを利用してWorldPressに投稿します</title>
   <link rel="alternate" type="text/html" href="http://server.submit-all.jp/2008/07/xml_rpcworldpress_1.html" />
   <id>tag:server.submit-all.jp,2008://2.210</id>
   
   <published>2008-07-23T08:15:24Z</published>
   <updated>2008-07-23T08:17:53Z</updated>
   
   <summary>内容 本日は晴天なり...</summary>
   <author>
      <name></name>
      
   </author>
   
   
   <content type="html" xml:lang="ja" xml:base="http://server.submit-all.jp/">
      内容
本日は晴天なり
      
   </content>
</entry>
<entry>
   <title>XML_RPCを利用してWorldPressに投稿します</title>
   <link rel="alternate" type="text/html" href="http://server.submit-all.jp/2008/07/xml_rpcworldpress.html" />
   <id>tag:server.submit-all.jp,2008://2.209</id>
   
   <published>2008-07-23T08:09:01Z</published>
   <updated>2008-07-23T08:11:25Z</updated>
   
   <summary>内容 本日は晴天なり...</summary>
   <author>
      <name></name>
      
   </author>
   
   
   <content type="html" xml:lang="ja" xml:base="http://server.submit-all.jp/">
      内容
本日は晴天なり
      
   </content>
</entry>
<entry>
   <title>PEAR XML-RPCパッケージのインストール</title>
   <link rel="alternate" type="text/html" href="http://server.submit-all.jp/2008/07/pear_xmlrpc.html" />
   <id>tag:server.submit-all.jp,2008://2.208</id>
   
   <published>2008-07-23T05:45:34Z</published>
   <updated>2008-07-23T05:48:47Z</updated>
   
   <summary>http://bloggers.ja.bz/sunouchi/archives/...</summary>
   <author>
      <name></name>
      
   </author>
         <category term="200作業【Linux編】" scheme="http://www.sixapart.com/ns/types#category" />
   
   
   <content type="html" xml:lang="ja" xml:base="http://server.submit-all.jp/">
      <![CDATA[<a href="http://bloggers.ja.bz/sunouchi/archives/2003/05/movabletype_xml_1.php" target="_blank">http://bloggers.ja.bz/sunouchi/archives/2003/05/movabletype_xml_1.php</a>
を参照した。
]]>
      
   </content>
</entry>

</feed>

