<?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://jhh-style.homelinux.com/dabun/" />
    <link rel="self" type="application/atom+xml" href="http://jhh-style.homelinux.com/dabun/atom.xml" />
    <id>tag:jhh-style.homelinux.com,2007-12-19:/dabun/3</id>
    <updated>2009-11-05T16:28:11Z</updated>
    <subtitle>Linux、ネットワーク管理を行っている情シス担当の技術メモ</subtitle>
    <generator uri="http://www.sixapart.com/movabletype/">Movable Type 4.14</generator>

<entry>
    <title>Fedora8のアップグレード→CentOSにw</title>
    <link rel="alternate" type="text/html" href="http://jhh-style.homelinux.com/dabun/2009/11/fedora8centosw.php" />
    <id>tag:jhh-style.homelinux.com,2009:/dabun//3.352</id>

    <published>2009-11-05T16:27:23Z</published>
    <updated>2009-11-05T16:28:11Z</updated>

    <summary>もうすぐFedora12がリリースされるみたい。 自宅のサーバOSは未だFedo...</summary>
    <author>
        <name>jun</name>
        
    </author>
    
        <category term="Linux" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="日記" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="ja" xml:base="http://jhh-style.homelinux.com/dabun/">
        <![CDATA[もうすぐFedora12がリリースされるみたい。<br />
<br />
自宅のサーバOSは未だFedora8だったので、11ぐらいにアップグレードしとくか。と思い立ってしまったのがそもそものミス。<br />
<br />
アルコール入ってたし、インストールディスクを作るのが面倒くさかったから、yumでのアップグレードを計画。<br />
<br />
Fedora11のrepoをいれて、yum updateを掛けると、わんさかと依存関係のエラーが表示された。<br />
<br />
5秒ぐらい考えて、なぜか依存関係のパッケージを消しちゃおう♪と判断。<br />
<br />
エラーが出たパッケージを手当たり次第に消す。<br />
<br />
一通り消し終わったあと、改めてyum updateを実効。<br />
<br />
ん？<br />
<br />
yumコマンドが無いとおっしゃっている？<br />
<br />
そんなワケないでしょw(*^▽^*)<br />
<br />
ところが、/usr/sbinを除いてもyumが無い！<br />
<br />
この辺で酔いが覚めてくる。<br />
<br />
ログを見ると、yumを消しちゃってるじゃん・・・orz<br />
<br />
yumのパッケージを持ってきて、インストールしても依存関係のエラーが出て入れられない。<br />
<br />
とりあえずブログデータをバックアップして、Fedora11のインストールディスクのisoを音し始めたが、せっかくなのでCentOSを入れてみようと思い、CentOS5.4のネットワークインストールディスクを作成。<br />
<br />
インストールして、Fedora8の時のpostgresやらphpやらをソースからインストール。<br />
<br />
ブログのデータをリストアして完了。<br />
<br />
一部の動作が動かない部分があるけど、ブログを書くのに問題は無いので、気づいたらちょろちょろ設定してみよう。<br />
  ]]>
        
    </content>
</entry>

<entry>
    <title>postfixのリレー先指定</title>
    <link rel="alternate" type="text/html" href="http://jhh-style.homelinux.com/dabun/2009/11/postfix-1.php" />
    <id>tag:jhh-style.homelinux.com,2009:/dabun//3.350</id>

    <published>2009-11-05T16:06:21Z</published>
    <updated>2009-11-05T16:08:32Z</updated>

    <summary>覚え書き。postfixでリレーサーバを指定する場合。relayhost = [...</summary>
    <author>
        <name>jun</name>
        
    </author>
    
        <category term="Linux" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="ja" xml:base="http://jhh-style.homelinux.com/dabun/">
        <![CDATA[覚え書き。<br /><br />postfixでリレーサーバを指定する場合。<br /><br />relayhost = [xxx.ocn.ne.jp]<br /><br />カッコ"[]"が無いと、なぜかリレーされない。<br /><br />リレーサーバの25番ポートには接続しに行っているのに、不思議。<br /><br /> ]]>
        
    </content>
</entry>

<entry>
    <title>スパムメール</title>
    <link rel="alternate" type="text/html" href="http://jhh-style.homelinux.com/dabun/2009/10/post-59.php" />
    <id>tag:jhh-style.homelinux.com,2009:/dabun//3.348</id>

    <published>2009-10-26T06:53:14Z</published>
    <updated>2009-10-26T06:57:07Z</updated>

    <summary>先週末から、以下のスパムメールが届くようになった。Subject　：Contra...</summary>
    <author>
        <name>jun</name>
        
    </author>
    
        <category term="日記" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="ja" xml:base="http://jhh-style.homelinux.com/dabun/">
        <![CDATA[先週末から、以下のスパムメールが届くようになった。<br /><br />Subject　：<br />Contract of Settlements<br /><br />Body　：<br />Greetings,<br />We have prepared a contract and added the paragraphs that you wanted to see in it.<br />Our lawyers made alterations on the last page. If you agree all the provisions we are ready to make the payment on Friday for the first consignment,<br />We are enclosing the file with prepared contract. Password: 345543<br /><br />If necessary, we can send it by fax.<br />Looking forward to your dicision.<br /><br />添付ファイル：<br />contact_1.zip<br /><br />このメール、添付ファイルにパスワードが掛かっているので、会社のアンチウィルスエンジンでは検知できないっぽい。<br />※zipファイルの中は、contact_1.exeって木馬の一種が入っているので、解凍には注意！<br /><br />今のトコ、Fromアドレスが会社のドメインになっているので、このまま続くようであれば自社ドメインに対するSFPチェックを行なおうかな。<br /><br /><br />]]>
        
    </content>
</entry>

<entry>
    <title>clamavのバージョンアップ</title>
    <link rel="alternate" type="text/html" href="http://jhh-style.homelinux.com/dabun/2009/10/clamav.php" />
    <id>tag:jhh-style.homelinux.com,2009:/dabun//3.347</id>

    <published>2009-10-25T16:42:59Z</published>
    <updated>2009-10-25T16:51:53Z</updated>

    <summary>Fedora8のClamAVが古かった為、毎日logwatchに「バージョンが古...</summary>
    <author>
        <name>jun</name>
        
    </author>
    
        <category term="Linux" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="ja" xml:base="http://jhh-style.homelinux.com/dabun/">
        <![CDATA[Fedora8のClamAVが古かった為、毎日logwatchに「バージョンが古い！」とエラーが記載されていた。<br /><br />たいしてメールも来ないので放置していたが、なんとなく土曜日にRPMで入れていたclamavを削除し、最新のバージョンをソースからインストールした。<br /><br />RPMのバージョン：0.92.1<br />最新のバージョン：0.95.2<br /><br />でもって、qmail-scannerに記載されていたclamdscanまでのPATHを変更する。<br /><br />ここまでは得に問題なく終了。<br /><br />いざテストメールを外部から送信すると、メールヘッダーに削除したはずのRPMのバージョンが記載されている。<br /><br />why?<br /><br />which clamdscanとしても、表示されるのは/usr/local/bin/clamdscan<br />clamdscan -Vとしても、表示されるバージョンは0.95.2<br /><br />まったく持って意味が分からない。<br />/var/qmail/bin/qmail-scanner-queue.pl以外に書き換える場所なんてあるのか？<br /> ]]>
        
    </content>
</entry>

<entry>
    <title>vsftpで日本時間の表示</title>
    <link rel="alternate" type="text/html" href="http://jhh-style.homelinux.com/dabun/2009/10/vsftp.php" />
    <id>tag:jhh-style.homelinux.com,2009:/dabun//3.346</id>

    <published>2009-10-21T06:33:12Z</published>
    <updated>2009-10-21T06:39:10Z</updated>

    <summary>今更だけど、デフォルトのvsftpdでは、アップロードした時間がイギリスのグリニ...</summary>
    <author>
        <name>jun</name>
        
    </author>
    
        <category term="Linux" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="ja" xml:base="http://jhh-style.homelinux.com/dabun/">
        <![CDATA[今更だけど、デフォルトのvsftpdでは、アップロードした時間がイギリスのグリニッジ標準時になる。<br /><br />ＦＴＰツール上で15:00にファイルをアップロードした場合、マイナス9時間した6:00とタイムスタンプが張られる。<br /><br />sshでログインした場合は、問題なく15:00のタイムスタンプで表示されるので問題ないが、FTPをトリガーとしてプログラムを動かす場合はメンドクサイので、以下のパラメータをvsftpd.confに追加して、日本標準時間を表示させるようにする。<br /><br />use_localtime=YES<br /><br />というか、デーモン毎の異なる時間管理はやめようよ・・・<br /><br />まとめてlocaltimeを参照してくれればいいのに。<br />]]>
        
    </content>
</entry>

<entry>
    <title>virrualboxにwindows7を入れてみた</title>
    <link rel="alternate" type="text/html" href="http://jhh-style.homelinux.com/dabun/2009/10/virrualboxwindows7.php" />
    <id>tag:jhh-style.homelinux.com,2009:/dabun//3.343</id>

    <published>2009-10-14T16:09:54Z</published>
    <updated>2009-10-14T16:15:16Z</updated>

    <summary>Pen4 3.0GHzとメモリ1GBのUbuntu（メインw）で、もっさりとだが...</summary>
    <author>
        <name>jun</name>
        
    </author>
    
        <category term="Linux" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="Windows" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="ja" xml:base="http://jhh-style.homelinux.com/dabun/">
        <![CDATA[Pen4 3.0GHzとメモリ1GBのUbuntu（メインw）で、もっさりとだが起動した。<br /><br />もう4年も使ってるし、最近デスクトップPCも5万程度で買えるので、そろそろ買い替え時かなぁ。<br /><br />windows7にはXPモードなどと言う機能があるらしいので、PCの買い替えとwindows7（恐らくHome Premium）は買う方向で見当してみる。<br /><br /><span class="mt-enclosure mt-enclosure-image" style="display: inline;"><img alt="20091015.jpg" src="http://jhh-style.homelinux.com/dabun/images/20091015.jpg" class="mt-image-center" style="margin: 0pt auto 20px; text-align: center; display: block;" width="400" height="320" /></span><br /> <div><br /></div>]]>
        
    </content>
</entry>

<entry>
    <title>ubuntuで顔文字入力</title>
    <link rel="alternate" type="text/html" href="http://jhh-style.homelinux.com/dabun/2009/10/ubuntu-1.php" />
    <id>tag:jhh-style.homelinux.com,2009:/dabun//3.342</id>

    <published>2009-10-10T15:21:52Z</published>
    <updated>2009-10-10T15:32:49Z</updated>

    <summary>UbuntuのAnthyに顔文字辞書を登録しました。ヾ(〃^∇^)ノわぁい♪☆^...</summary>
    <author>
        <name>jun</name>
        
    </author>
    
        <category term="Linux" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="ja" xml:base="http://jhh-style.homelinux.com/dabun/">
        <![CDATA[UbuntuのAnthyに顔文字辞書を登録しました。<br /><br />ヾ(〃^∇^)ノわぁい♪<br />☆^v(*^∇')乂('∇^*)v^☆ヤッタネ!!ー<br /><br />やり方は、<a href="http://d.hatena.ne.jp/ombra/20080523/p1">こちらのサイト</a>を参照。<br /><br />簡単にやりたい人は、以下のファイルをダウンロードして、/home/ユーザー/.anthy/private_words_defaultとして保存する。<br /><br /><span class="mt-enclosure mt-enclosure-file" style="display: inline;"><a href="http://jhh-style.homelinux.com/dabun/images/private_words_default">private_words_default</a></span><br /> <div><br /></div><div><br /></div>]]>
        
    </content>
</entry>

<entry>
    <title>タイムスタンプで検索後に該当ファイルを削除する</title>
    <link rel="alternate" type="text/html" href="http://jhh-style.homelinux.com/dabun/2009/09/post-58.php" />
    <id>tag:jhh-style.homelinux.com,2009:/dabun//3.339</id>

    <published>2009-09-24T01:53:05Z</published>
    <updated>2009-11-05T16:28:47Z</updated>

    <summary># +nの部分はn日以上に更新されたファイルfind /home/postgre...</summary>
    <author>
        <name>jun</name>
        
    </author>
    
        <category term="Linux" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="ja" xml:base="http://jhh-style.homelinux.com/dabun/">
        <![CDATA[# +nの部分はn日以上に更新されたファイル<br />find /home/postgres/dbbackup -type f -daystart -mtime +n |xargs /bin/rm -f<br /><br /># -nの部分はn日以内に更新されたファイル<br />find /home/postgres/dbbackup -type f -daystart -mtime -n |xargs /bin/rm -f<br /> ]]>
        
    </content>
</entry>

<entry>
    <title>プロキシの自動設定</title>
    <link rel="alternate" type="text/html" href="http://jhh-style.homelinux.com/dabun/2009/09/post-57.php" />
    <id>tag:jhh-style.homelinux.com,2009:/dabun//3.336</id>

    <published>2009-09-14T13:42:48Z</published>
    <updated>2009-09-15T07:18:21Z</updated>

    <summary>久々にWindowsに関する日記を・・・。会社のノートPCを常時持たされているが...</summary>
    <author>
        <name>jun</name>
        
    </author>
    
        <category term="Windows" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="ja" xml:base="http://jhh-style.homelinux.com/dabun/">
        <![CDATA[久々にWindowsに関する日記を・・・。<br /><br />会社のノートPCを常時持たされているが、会社ではプロキシの設定を有効にし、その他のネットワークではプロキシの設定を外す。と言った事を毎回手動で行なっていた。<br /><br /><b>( ﾟДﾟ)ﾏﾝﾄﾞｸｾｰ</b><br /><br />って事で、プロキシを自動認証させてみる。<br /><br />2009/9/15追記<br />　以下のスクリプトは今のところ、firefoxだけで動作確認しています。<br />　IEやらCromeやらは使う事があまりないので、使う時にでも調べます。<br /><br /><br />参考サイト：<a href="http://blog.cles.jp/item/2463">http://blog.cles.jp/item/2463</a><br /><br />以下の内容をテキストで作成。<br /><br />function FindProxyForURL(url,host) {<br />&nbsp; var myipaddr = myIpAddress();<br />&nbsp; var proxy&nbsp;&nbsp;&nbsp; = 'DIRECT';<br /><br />&nbsp; if (isInNet(myipaddr, "192.168.2.0", "255.255.255.0")){<br />&nbsp;&nbsp;&nbsp; // Univ<br />&nbsp;&nbsp;&nbsp; proxy = findProxyUniv(url,host);<br />&nbsp; }<br /><br />&nbsp; return proxy;<br />}<br /><br /><b>※除外設定を記述する箇所っぽい。</b><br />function findProxyUniv(url,host) {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; if (isPlainHostName(host) || isPrivate(host) || shExpMatch(host,"192.168.*") ){<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return "DIRECT";<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; }<br /><br />
<b>※プロキシの情報を設定する箇所っぽい。</b><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return "PROXY hoge.hoge:8080;";<br />}<br /><br />function isPrivate(host) {<br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; return shExpMatch(host, "localhost")<br /><br />}<br /><br />で、<b>proxy.pac</b>という名前で保存し、<strong></strong>Firefoxにこのスクリプトを指定して上げると・・・<br /><br /><b>やったーヽ(´ー｀)ノ</b><br /><br />やっと設定変更のわずらわしさから開放された！！<br /><br /><br /><br />ちなみに、Firefoxのアドオン<b>AutoAuth</b>を使うと、ユーザー認証も自動化してくれるので、このアドオンも重宝している。<br /> ]]>
        
    </content>
</entry>

<entry>
    <title>spamassassinのルール更新</title>
    <link rel="alternate" type="text/html" href="http://jhh-style.homelinux.com/dabun/2009/09/spamassassin.php" />
    <id>tag:jhh-style.homelinux.com,2009:/dabun//3.335</id>

    <published>2009-09-13T01:56:51Z</published>
    <updated>2009-09-13T02:06:34Z</updated>

    <summary>自宅で使っているspamassassinには、ルール更新の為の「sa-updat...</summary>
    <author>
        <name>jun</name>
        
    </author>
    
        <category term="Linux" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="ja" xml:base="http://jhh-style.homelinux.com/dabun/">
        <![CDATA[自宅で使っているspamassassinには、ルール更新の為の「sa-update」ってスクリプトがある。<br /><br />理由はよく調べていないけど、このスクリプトを使ってもルールが更新されていない事に気づいた。<br /><br />とりあえず以下の方法で手動でルールの更新を行った。<br /><br />#作業ディレクトリ移動<br />cd /etc/mail/spamassassin<br /><br />#最新のルールファイルを取得<br />wget http://tlec.linux.or.jp/docs/user_prefs<br /><br />#既存のルールファイルのバックアップ<br />cp /etc/mail/spamassassin/local.cf  /etc/mail/spamassassin/local.cf.20090913<br /><br />#最新のルールファイルと、ユーザーのホワイトリストを読み込むようにlocal.cfを修正<br /><br />-----<br />include user_prefs<br /><br />#スパムの閾値<br />required_score 6.2<br /><br />report_safe 0<br />rewrite_header Subject *****SPAM*****<br /><br />whitelist_from hogehoge.net<br />whitelist_from mogemoge.co.jp<br /><br />-----<br /><br />ついでに、svscanの設定も変更する。<br /><br />-----<br /><br />#!/bin/sh<br />MAX=10<br />exec spamd -c /etc/mail/spamassassin/local.cf -i -m ${MAX} --username=qscand --syslog=stderr 2&gt;&amp;1<br /><br />-----<br /><br />※今まで「-cオプション」を付け忘れてた為、「-c /etc/mail/spamassassin/local.cf」と、読み込む設定ファイルのパスを指定。<br />]]>
        
    </content>
</entry>

<entry>
    <title>MT4.01からMT4.16へのアップグレード</title>
    <link rel="alternate" type="text/html" href="http://jhh-style.homelinux.com/dabun/2009/09/mt401mt416.php" />
    <id>tag:jhh-style.homelinux.com,2009:/dabun//3.334</id>

    <published>2009-09-05T16:09:07Z</published>
    <updated>2009-09-05T16:26:29Z</updated>

    <summary>先日、iphoneからMovableTypeを更新できるアプリ「BlogPres...</summary>
    <author>
        <name>jun</name>
        
    </author>
    
        <category term="Linux" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="ja" xml:base="http://jhh-style.homelinux.com/dabun/">
        <![CDATA[先日、iphoneからMovableTypeを更新できるアプリ「BlogPress」を入れてみたけど、ブログのカテゴリの読み込みが上手く行けていかなった。<br /><br />きっとMTのバージョンが古いせいだ！と、何の根拠もない憶測をたてバージョンアップ開始！<br /><br />2009年9月時点での最新verは4.26。<br /><br />今のverは4.01。<br /><br />アップグレードの方法は公式に書いてあったので問題なく行なえたが、4.01から4.26にアップグレード途中のユーザー情報の引継ぎ（？）でDBD:PｇのUTC云々のエラーが表示されてしまった。<br /><br />DBも中途半端に書き換わってしまっているので、バックアップファイルからフォールバックする。<br /><br />さて、どうしたものか・・・。<br /><br />いきなり4.0系から4.2系に上げようとしたのがダメだったのか。<br /><br />一回4.1系を入れてみて、それから4.2系に上げてみるか。<br /><br />って事で、以下のURLから4.16をダウンロード。<br /><br /><a href="http://www.movabletype.org/opensource/downloads/betas/security/">http://www.movabletype.org/opensource/downloads/betas/security/</a><br />バージョンアップの方法は同じ。<br /><br />4.01から4.16へのバージョンアップは問題なくいけた。<br /><br />でもって、4.16から4.26へのバージョンアップ開始。<br /><br />またDBD::Pgのエラーですが・・・。<br /><br />UTCの処理でエラーが起こる意味が判らん。<br /><br />とりあえずMT4.16でも「BlogPress」からカテゴリの選択が出来たので、MTを最新版に上げるのは、ちょっと据え置きにするか。<br /> ]]>
        
    </content>
</entry>

<entry>
    <title>BlogPressを使ってみる</title>
    <link rel="alternate" type="text/html" href="http://jhh-style.homelinux.com/dabun/2009/09/blogpress.php" />
    <id>tag:jhh-style.homelinux.com,2009:/dabun//2.613</id>

    <published>2009-09-03T16:29:47Z</published>
    <updated>2009-09-05T16:34:03Z</updated>

    <summary>これはなかなかいい感じかも。 Picasaのアカウントが無いと、イメージのアップ...</summary>
    <author>
        <name>jun</name>
        
    </author>
    
        <category term="iphone" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="ja" xml:base="http://jhh-style.homelinux.com/dabun/">
        <![CDATA[これはなかなかいい感じかも。<br />
Picasaのアカウントが無いと、イメージのアップ先がよく分からないトコに保存されるっぽい。<br />
あと、イメージはヨコを回してアップ出来ない。
<br /><br />
まぁ、これだけでもiMTより十分すぎる程使いやすから、しばらく使ってみよう。




<br /><br /><center><a href="http://picasaweb.google.com/jhh.style/qTpxmE#5377283488811304546"><img src="http://lh6.ggpht.com/_lwyqCNPRLCY/Sp_y188rxmI/AAAAAAAAAB8/XXUsu69jc-A/s288/iphone_photo.jpg" style="margin: 5px;" border="0" height="281" width="280" /></a></center><br />

<br />]]>
        
    </content>
</entry>

<entry>
    <title>iPhoneからMTを更新する</title>
    <link rel="alternate" type="text/html" href="http://jhh-style.homelinux.com/dabun/2009/09/iphonemt.php" />
    <id>tag:jhh-style.homelinux.com,2009:/dabun//2.612</id>

    <published>2009-09-03T15:40:21Z</published>
    <updated>2009-09-05T16:34:51Z</updated>

    <summary>上手く更新出来るかな？(PCからの追記）iMTというプラグインを入れてみた。感想...</summary>
    <author>
        <name>jun</name>
        
    </author>
    
        <category term="iphone" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="ja" xml:base="http://jhh-style.homelinux.com/dabun/">
        <![CDATA[上手く更新出来るかな？<br /><br /><br />(PCからの追記）<br /><br /><a href="http://plugins.movabletype.org/imt/">iMT</a>というプラグインを入れてみた。<br /><br />感想は△かな。<br /><br />画像がアップロード出来ないのと、私が持っているiphone3GSだと、mt.cgiにログイン後に真っ黒な画面が表示されてしまった。<br /><br />マニュアルみても、他の紹介サイトを見ても、かわいらしいメニューアイコンが表示されているのだが・・・？<br /><br />う〜ん、、、と2分ぐらい真っ黒い画面をポチポチ触ってみると、どうやらメニューが隠れているらしく、画面の上の方を触ったら、『select a blog』と選択画面が表示された。（ここ以外にブログを書いているので、どっちのブログを編集するのか？と聞かれた。）<br /><br />まったく意味が分からん。<br /><br />iphoneのアプリとして<a href="http://www.tatsunori.net/2009/08/091127.php">BlogPress</a>というものもあるらしいので、こっちも試してみるか。]]>
        
    </content>
</entry>

<entry>
    <title>UbuntuとiPhoneのデータ共有</title>
    <link rel="alternate" type="text/html" href="http://jhh-style.homelinux.com/dabun/2009/08/ubuntuiphone.php" />
    <id>tag:jhh-style.homelinux.com,2009:/dabun//2.610</id>

    <published>2009-08-23T15:06:14Z</published>
    <updated>2009-09-05T16:35:43Z</updated>

    <summary>調子に乗ってiPhoneを買ってしまいましたが、自宅のPCはUbuntu9.04...</summary>
    <author>
        <name>jun</name>
        
    </author>
    
        <category term="Linux" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="iphone" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="ja" xml:base="http://jhh-style.homelinux.com/dabun/">
        <![CDATA[調子に乗ってiPhoneを買ってしまいましたが、自宅のPCはUbuntu9.04なので、当然itunesなど使えないワケで・・・。<br /><br />wineから起動するかと挑戦したけど、結果は惨敗・・・orz<br /><br />インストールされたのかすら追えない状況になってしまった。<br /><br />とりあえず、itunesで曲とか買ったりはせず、単純にmp4にエンコードした動画をiPhoneに送りたいだけなので、FTPクライアント的なのアプリがないか探してみると、ありましたよw<br /><br />探してみる物ですねw<br /><br />BriefcaseLiteというアプリ。<br /><br />接続している無線LAN場の他の端末を探して、sshでファイル転送を行うと言う物。<br /><br />当然、サーバ側にはsshデーモンが起動している事が必須になりますが。<br /><br />で、早速設定。<br /><br />sshデーモンは、Synapticから検索してインストール。<br /><br />sshデーモンの設定ファイルは、/etc/ssh/sshd_configにありますが、<br />・rootでの接続を許可。<br />・ssh1とssh2の鍵認証許可。<br />・パススワード認証をしない。<br /><br />となっていました。<br /><br />BriefcaseLiteで鍵認証が出来るか分からなかったので、<br />・rootでの接続を拒否。<br />
・ssh1とssh2の鍵認証をしない。<br />
・パススワード認証を許可。<br />と設定し、セキュリティの為に/etc/hosts.allowにssh接続の制限を設定。<br /><br />最後にserviceコマンドでsshdを起動して、iphone側でBriefcaseLiteを起動。<br /><br />勝手に無線LAN内のサーバを探してきてくれるので、ユーザーIDとパスワードを入力して終了。<br /><br />mp3の音楽データは聞けたけど、さすがに無線LANでも1GBの動画ファイルの転送は重いのか、なかなか転送が終わりません・・・orz<br /> ]]>
        
    </content>
</entry>

<entry>
    <title>iphoneからUbuntuにVNC接続を行う</title>
    <link rel="alternate" type="text/html" href="http://jhh-style.homelinux.com/dabun/2009/08/iphoneubuntuvnc.php" />
    <id>tag:jhh-style.homelinux.com,2009:/dabun//2.608</id>

    <published>2009-08-11T16:38:41Z</published>
    <updated>2009-09-05T16:37:15Z</updated>

    <summary>遊びながら設定したので、忘れないうちにメモ。iphoneのVNCアプリ、VNC ...</summary>
    <author>
        <name>jun</name>
        
    </author>
    
        <category term="Linux" scheme="http://www.sixapart.com/ns/types#category" />
    
        <category term="iphone" scheme="http://www.sixapart.com/ns/types#category" />
    
    
    <content type="html" xml:lang="ja" xml:base="http://jhh-style.homelinux.com/dabun/">
        <![CDATA[<span class="mt-enclosure mt-enclosure-image"><a href="http://jhh-style.homelinux.com/dabun/images/20090812.php" onclick="window.open('http://jhh-style.homelinux.com/dabun/images/20090812.php','popup','width=800,height=600,scrollbars=no,resizable=no,toolbar=no,directories=no,location=no,menubar=no,status=no,left=0,top=0'); return false"><img src="http://jhh-style.homelinux.com/dabun/images/20090812-thumb-400x300.jpg" alt="20090812.JPG" class="mt-image-center" style="margin: 0pt auto 20px; text-align: center; display: block;" height="300" width="400" /></a></span><br /><br />遊びながら設定したので、忘れないうちにメモ。<br /><br />iphoneのVNCアプリ、VNC Lite（無料）を使って、自宅のubuntuにVNC接続した際の設定方法。<br /><br /><br />1.ubuntu側でxinetとvnc4serverをインストールする。<br />　sudo atp-get install xinetd vnc4server<br /><br /><br />2.サービスの設定<br />　/etc/servicesファイルに、VNC接続で使用するポートを追記する。<br />　sudo gedit /etc/services<br /><br />　xvnc&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ポート番号/tcp&nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; # VNC Server　　←追加<br /><br /><br />3.xinetdの設定<br />　以下の内容を/etc/xinetd.d/xvncに追加。<br />　※解像度は時間がある時に修正します。<br />　sudo gedit /etc/xinetd.d/xvnc<br /><br />　service xvnc<br />{<br />disable = no<br />socket_type = stream<br />wait = no<br />user = nobody<br />group = tty<br />server = /usr/bin/Xvnc<br />server_args = -inetd -geometry 1024x768 -depth 24 -query localhost -once PasswordFile=/etc/xinetd.passwd_xvnc -extension XFIXES<br />}<br /><br />4.VNC接続用のパスワードを設定<br />　vncpasswd /etc/vnc.passwd<br />　（同じパスワードを2回入力）<br /><br />　作成されたパスワードファイルは、root所有のパーミッションが600で作成される。<br />　そのままでは、vncserverから参照出来ないので、ファイルの所有者を変更する。<br />　chown nobody.tty xinetd.passwd_xvnc<br /><br />ここまで終わったら、念のためにシステムを再起動する。<br /><br />起動後、iphoneのVNC Liteから接続が可能になる。<br />※ルータのポート開放を忘れずに！<br /><br /><br /><br /><br /> <div><br /></div>]]>
        
    </content>
</entry>

</feed>
