<?xml version="1.0" encoding="UTF-8"?>
<?xml-stylesheet href="/xml.xsl" type="text/xsl"?><feed xmlns="http://www.w3.org/2005/Atom">
  <title>nulog, NULL::something : out of the headphone &gt; 2006 &gt; February &gt; 06</title>
  <link href="http://lowreal.net/logs/2006/02/06"/>
  <icon>http://lowreal.net/img/banner.png</icon>
  <link rel="self" type="application/atom+xml" href="http://lowreal.net/logs/2006/02/06.atom"/>
  <link rel="alternate" type="application/xhtml+xml" href="http://lowreal.net/logs/2006/02/06.xhtml"/>
  <updated>2006-02-06T17:33:33+09:00</updated>
  <author>
    <name>cho45(砂糖)</name>
  </author>
  <id>http://lowreal.net/2006/02/06</id>
  <entry>
    <title>GreaseMonkey, rep2</title>
    <link rel="alternate" type="text/html" href="http://lowreal.net/logs/2006/02/06/1.html"/>
    <link rel="alternate" type="application/xml+xhtml" href="http://lowreal.net/logs/2006/02/06/1.xhtml"/>
    <updated>2006-02-06T15:55:19+09:00</updated>
    <published>2006-02-06T15:55:19+09:00</published>
    <id>http://lowreal.net/2006/02/06/1</id>
    <category term="js"/>
    <category term="firefox"/>
    <content type="xhtml" xml:base="http://lowreal.net/">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p><a href="/2006/rep2ch.user.js">rep2ch.user.js</a>, 2ch のスレを開くといちいち rep2 で開くか聞くようにするスクリプト。rep2 への <abbr title="Uniform Resource Locator">URL</abbr> は初回起動時に指定する。指定しなおしたいときは、2ch のスレを開いて、[Open with rep2?] で Cancel を選択後、ページの一番上の Reset rep2 URL をクリック。</p>
        <p>bbs2chreader から rep2 に移行した。ubuntu のほうに <abbr title="PHP: Hypertext Preprocessor">PHP</abbr>5 (php5-cgi) を入れて lighttpd に fcgi の設定を追加。無駄に簡単にインスコできて怖い。PEAR (php-pear) も使うらしいので apt-get install。rep2 の指示に従ってモジュールをインスコして終了。</p>
      </div>
    </content>
  </entry>
  <entry>
    <title>lighttpd, 実行ユーザ変えた</title>
    <link rel="alternate" type="text/html" href="http://lowreal.net/logs/2006/02/06/2.html"/>
    <link rel="alternate" type="application/xml+xhtml" href="http://lowreal.net/logs/2006/02/06/2.xhtml"/>
    <updated>2006-02-06T17:33:33+09:00</updated>
    <published>2006-02-06T17:33:33+09:00</published>
    <id>http://lowreal.net/2006/02/06/2</id>
    <category term="lighttpd"/>
    <category term="linux"/>
    <content type="xhtml" xml:base="http://lowreal.net/">
      <div xmlns="http://www.w3.org/1999/xhtml">
        <p>やっぱ root で実行させておくと怖いっていうか、はぁ？ root で実行してたのかよ、とか怒られそうなので (誰に) ごにょごにょ。これでいいかは知らない。</p>
        <pre>
# ユーザ作成
sudo useradd -s /bin/false -d /www www
# なんか既に www-data はあったので追加
sudo usermod -G www-data www

sudo vi /etc/lighttpd/lighttpd.conf
で server.username, server.groupname をアクティブにして変更
</pre>
        <p>これだけやって起動してみるといろいろエラーが出る。/www とその中身やらログファイルやらが root 所有なので <kbd>chown www:www-data **/*</kbd> とかやって所有者変えておいた。fcgi なやつは <kbd>chmod +x</kbd> した。rep2 のデータディレクトリ以下も root 所有になってパーミッションエラーがでるので <kbd>chown www:www-data **/*</kbd> しといた。</p>
        <p>とりあえずここまで。まだなんかありそうで怖い。</p>
      </div>
    </content>
  </entry>
</feed>
