<?xml version="1.0" encoding="utf-8"?>
<feed version="0.3" xmlns="http://purl.org/atom/ns#" xmlns:dc="http://purl.org/dc/elements/1.1/" xml:lang="ja">
<title>GnjToys</title>
<link rel="alternate" type="text/html" href="http://gnjtoys.restar.info/" />
<modified>2006-07-02T08:24:26Z</modified>
<tagline></tagline>
<id>tag:gnjtoys.restar.info,2008://2</id>
<generator url="http://www.movabletype.org/" version="4.1">Movable Type</generator>
<copyright>Copyright (c) 2006, mituha</copyright>

<entry>
<title>3.3にアップデートしてみました。</title>
<link rel="alternate" type="text/html" href="http://gnjtoys.restar.info/2006/07/33.php" />
<modified>2006-07-02T08:24:26Z</modified>
<issued>2006-07-02T06:00:46Z</issued>
<id>tag:gnjtoys.restar.info,2006://2.36</id>
<created>2006-07-02T06:00:46Z</created>
<summary type="text/plain">特に問題なく…と思ったら、月別の中身がでてない！？ 日付アーカイブテンプレートの...</summary>
<author>
<name>mituha</name>

<email>mituha@restar.jp</email>
</author>
<dc:subject>Movable Type</dc:subject>
<content type="text/html" mode="escaped" xml:lang="ja" xml:base="http://gnjtoys.restar.info/">
<![CDATA[<p>特に問題なく…と思ったら、月別の中身がでてない！？</p>

<p>日付アーカイブテンプレートの、&lt;MTEntries&gt;とアトリビュート指定されていなかった部分を、&lt;MTEntries sort_by="created_on" sort_order="ascend"&gt;と修正したらとりあえずは正しくでているようです。</p>]]>
<![CDATA[<p>古いテンプレートをそのまま使っている場合にでるのかも。<br />
症状としては、月別の中身が最新？の月別アーカイブと同じで出力されているっぽかったです。<br />
出力用のソートがうまくいっていないものと思われますが、これ以上は調べません。</p>]]>
</content>
</entry>

<entry>
<title>セッション</title>
<link rel="alternate" type="text/html" href="http://gnjtoys.restar.info/2006/05/post_6.php" />
<modified>2006-05-05T09:53:58Z</modified>
<issued>2006-05-05T09:46:56Z</issued>
<id>tag:gnjtoys.restar.info,2006://2.35</id>
<created>2006-05-05T09:46:56Z</created>
<summary type="text/plain">セッションを使ったCGIに挑戦中。 デフォルトでは　/tmp　にファイルができて...</summary>
<author>
<name>mituha</name>

<email>mituha@restar.jp</email>
</author>
<dc:subject>PHP</dc:subject>
<content type="text/html" mode="escaped" xml:lang="ja" xml:base="http://gnjtoys.restar.info/">
<![CDATA[<p>セッションを使ったCGIに挑戦中。<br />
デフォルトでは　/tmp　にファイルができてしまうため、PHP.iniに<br />
session.save_path = "/home/user/tmp"<br />
を追加。</p>]]>

</content>
</entry>

<entry>
<title>NeoSwiff</title>
<link rel="alternate" type="text/html" href="http://gnjtoys.restar.info/2006/03/neoswiff.php" />
<modified>2006-03-11T09:27:19Z</modified>
<issued>2006-03-11T09:12:38Z</issued>
<id>tag:gnjtoys.restar.info,2006://2.33</id>
<created>2006-03-11T09:12:38Z</created>
<summary type="text/plain">C#でFlashを作れるらしい。 http://www.globfx.com/p...</summary>
<author>
<name>mituha</name>

<email>mituha@restar.jp</email>
</author>
<dc:subject>Flash</dc:subject>
<content type="text/html" mode="escaped" xml:lang="ja" xml:base="http://gnjtoys.restar.info/">
<![CDATA[C#でFlashを作れるらしい。<br />
<br />
<a href="http://www.globfx.com/products/neoswiff/" target="_blank">http://www.globfx.com/products/neoswiff/</a><br />
<br />
ほとんどそのまんまといって良い位のレベルで動きそうな感じ。<br />]]>
<![CDATA[ためしに作ってみた。<br />
<object id="swfapp" width="250" height="150" align="CENTER" codebase="http://download.macromedia.com/pub/shockwave/cabs/flash/swflash.cab#version=8,0,22,0" classid="clsid:D27CDB6E-AE6D-11CF-96B8-444553540000" VIEWASTEXT>
<param name="movie" value="Test.swf"/>
<param name="quality" value="high"/>
<param name="scale" value="noScale"/>
<param name="FlashVars" value=""/>
<param name="SeamlessTabbing" value="false"/>
<embed src="Test.swf" name="swfapp" width="250" height="150" quality="high" scale="noScale" FlashVars="" SeamlessTabbing="false" swliveconnect="true"
 pluginspage="http://www.macromedia.com/shockwave/download/index.cgi?P1_Prod_Version=ShockwaveFlash"
 type="application/x-shockwave-flash">
</embed>
</object>
<br />
ソース抜粋。<br />
<pre><code>
    private void InitializeComponent()
    {
			this.fraTest = new System.Windows.Forms.GroupBox();
			this.lblTest = new System.Windows.Forms.Label();
			this.txtTest = new System.Windows.Forms.TextBox();
			this.btnTest = new System.Windows.Forms.Button();
			this.fraTest.SuspendLayout();
      
			this.SuspendLayout();
      
			// 
			// fraTest
			// 
			this.fraTest.Controls.Add(this.txtTest);
			this.fraTest.Controls.Add(this.lblTest);
			this.fraTest.Location = new System.Drawing.Point(8, 8);
			this.fraTest.Name = "fraTest";
			this.fraTest.Size = new System.Drawing.Size(192, 48);
			this.fraTest.TabIndex = 0;
			this.fraTest.TabStop = false;
			this.fraTest.Text = "GroupBox";
			// 
			// lblTest
			// 
			this.lblTest.Location = new System.Drawing.Point(8, 16);
			this.lblTest.Name = "lblTest";
			this.lblTest.Size = new System.Drawing.Size(80, 24);
			this.lblTest.TabIndex = 0;
			this.lblTest.Text = "Label";
			this.lblTest.TextAlign = System.Drawing.ContentAlignment.MiddleRight;
			// 
			// txtTest
			// 
			this.txtTest.Location = new System.Drawing.Point(96, 16);
			this.txtTest.Name = "txtTest";
			this.txtTest.Size = new System.Drawing.Size(88, 19);
			this.txtTest.TabIndex = 1;
			this.txtTest.Text = "Text";

			// 
			// btnTest
			// 
			this.btnTest.Location = new System.Drawing.Point(16, 64);
			this.btnTest.Name = "btnTest";
			this.btnTest.Size = new System.Drawing.Size(88, 24);
			this.btnTest.TabIndex = 1;
			this.btnTest.Text = "Button";
			this.btnTest.Click += new System.EventHandler(this.OnButtonClick);
      
			this.Controls.Add(this.btnTest);
			this.Controls.Add(this.fraTest);

		    this.Text = "Form1";
			this.fraTest.ResumeLayout(false);
			this.ResumeLayout(false);
    }
</code></pre>]]>
</content>
</entry>

<entry>
<title>VS2005</title>
<link rel="alternate" type="text/html" href="http://gnjtoys.restar.info/2006/01/vs2005.php" />
<modified>2006-01-02T05:37:07Z</modified>
<issued>2006-01-02T05:10:56Z</issued>
<id>tag:gnjtoys.restar.info,2006://2.32</id>
<created>2006-01-02T05:10:56Z</created>
<summary type="text/plain">MSDNサブスクライバダウンロードでダウンロードしてきてインストールしてみました...</summary>
<author>
<name>mituha</name>

<email>mituha@restar.jp</email>
</author>
<dc:subject>VS2005</dc:subject>
<content type="text/html" mode="escaped" xml:lang="ja" xml:base="http://gnjtoys.restar.info/">
<![CDATA[<p>MSDNサブスクライバダウンロードでダウンロードしてきてインストールしてみました。<br />
が、インストール失敗…。<br />
どうやら、ダウンロード時にファイルが壊れていた模様。ハッシュ値の確認はするべきですね…。</p>

<p>無償の<a href="http://www.microsoft.com/japan/msdn/vstudio/express/" target="_blank">Visual Studio Express Editions</a>もでてます。<br />
</p>]]>
<![CDATA[<p>ハッシュ値計算用。<a href="http://support.microsoft.com/?scid=kb%3Bja%3B841290&x=5&y=13"　target="_blank">FCIV</a></p>

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

<entry>
<title>Apache2</title>
<link rel="alternate" type="text/html" href="http://gnjtoys.restar.info/2005/12/apache2.php" />
<modified>2005-12-23T09:15:35Z</modified>
<issued>2005-12-23T08:59:32Z</issued>
<id>tag:gnjtoys.restar.info,2005://2.31</id>
<created>2005-12-23T08:59:32Z</created>
<summary type="text/plain">結局、Apacheをやめて、Apache2を入れ直してます。 ...PHP、うご...</summary>
<author>
<name>mituha</name>

<email>mituha@restar.jp</email>
</author>
<dc:subject>玄箱</dc:subject>
<content type="text/html" mode="escaped" xml:lang="ja" xml:base="http://gnjtoys.restar.info/">
<![CDATA[<p>結局、Apacheをやめて、Apache2を入れ直してます。</p>

<p>...PHP、うごかねぇ。<br />
PHP用のモジュールが足りないみたいです。</p>

<p>libapache2-mod-php4が必要でした。</p>]]>
<![CDATA[<p># apt-cache search php4<br />
libapache2-mod-php4を入れればよいような感じ。<br />
# apt-get install libapache2-mod-php4<br />
で、勝手にPHP動くようにしてもらえたようです。<br />
mods-enabledにシンボリックリンクも張っていただいてます。</p>

<p>シンボリックリンク<br />
ln -s</p>]]>
</content>
</entry>

<entry>
<title>resolv.conf</title>
<link rel="alternate" type="text/html" href="http://gnjtoys.restar.info/2005/11/resolvconf.php" />
<modified>2005-11-03T01:07:28Z</modified>
<issued>2005-11-03T01:03:03Z</issued>
<id>tag:gnjtoys.restar.info,2005://2.26</id>
<created>2005-11-03T01:03:03Z</created>
<summary type="text/plain"># aptitude update 等でいつの間にかエラーがでるようになっていた...</summary>
<author>
<name>mituha</name>

<email>mituha@restar.jp</email>
</author>
<dc:subject>玄箱</dc:subject>
<content type="text/html" mode="escaped" xml:lang="ja" xml:base="http://gnjtoys.restar.info/">
<![CDATA[<p># aptitude update 等でいつの間にかエラーがでるようになっていた。<br />
ringサーバーが見つけられずにエラーになる。<br />
あちこちいじっているうちに、/etc/resolv.conf が自動で書き換わるようになってしまっているみたい。<br />
とりあえず、再起動のたびに nameserver 192.168.0.xxx を追加して乗り切ることにしておく…。</p>]]>

</content>
</entry>

<entry>
<title>Apache</title>
<link rel="alternate" type="text/html" href="http://gnjtoys.restar.info/2005/10/apache.php" />
<modified>2005-10-24T13:00:47Z</modified>
<issued>2005-10-24T12:11:53Z</issued>
<id>tag:gnjtoys.restar.info,2005://2.25</id>
<created>2005-10-24T12:11:53Z</created>
<summary type="text/plain">当初の目的のWebのテスト用サーバーの構築に取りかかることにする。 目標は、現在...</summary>
<author>
<name>mituha</name>

<email>mituha@restar.jp</email>
</author>
<dc:subject>玄箱</dc:subject>
<content type="text/html" mode="escaped" xml:lang="ja" xml:base="http://gnjtoys.restar.info/">
<![CDATA[<p>当初の目的のWebのテスト用サーバーの構築に取りかかることにする。</p>

<p>目標は、現在の環境とほぼ同じことがテストできる環境。<br />
主に、PHP＋MySQLの環境が試せること。</p>]]>
<![CDATA[<p>デフォルトで、Apache起動と、ユーザーディレクトリへのアクセスは可能。<br />
PHPのファイルへのアクセスがダウンロードになってしまうので、まずはPHPを動作させる。<br />
<Directory /home/*/public_html>項目中の、OptionsにExecCGIを追加。</p>

<p><br />
AddType application/x-httpd-php .php<br />
AddType application/x-httpd-php-source .phps<br />
のコメントをはずす。<br />
ついでに、<br />
AddHandler cgi-script .cgi .sh .pl<br />
AddType text/html .shtml<br />
AddHandler server-parsed .shtml<br />
のコメントもはずす。テスト用環境なので、多少多めにはずしても問題なかろう。</p>

<p>動かない…。<br />
LoadModule php4_module /usr/lib/apache/1.3/libphp4.so<br />
をコメントアウトで動作。</p>

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

<entry>
<title>ProFtpd</title>
<link rel="alternate" type="text/html" href="http://gnjtoys.restar.info/2005/10/proftpd.php" />
<modified>2005-10-23T16:23:14Z</modified>
<issued>2005-10-23T16:20:08Z</issued>
<id>tag:gnjtoys.restar.info,2005://2.24</id>
<created>2005-10-23T16:20:08Z</created>
<summary type="text/plain">とりあえず、立ち上がるようにはなった。 が、接続してもファイル一覧が見えない？ ...</summary>
<author>
<name>mituha</name>

<email>mituha@restar.jp</email>
</author>
<dc:subject>玄箱</dc:subject>
<content type="text/html" mode="escaped" xml:lang="ja" xml:base="http://gnjtoys.restar.info/">
<![CDATA[<p>とりあえず、立ち上がるようにはなった。<br />
が、接続してもファイル一覧が見えない？<br />
検索してみると仕様上、FFFTPとの相性問題らしいが、FFFTPもバージョンアップされていて、設定(FFFTP)を変えることで問題なくなった。</p>

<p>次はApacheの設定をいじることにする。</p>]]>

</content>
</entry>

<entry>
<title>xinetd</title>
<link rel="alternate" type="text/html" href="http://gnjtoys.restar.info/2005/10/xinetd.php" />
<modified>2005-10-22T18:36:18Z</modified>
<issued>2005-10-22T17:14:59Z</issued>
<id>tag:gnjtoys.restar.info,2005://2.23</id>
<created>2005-10-22T17:14:59Z</created>
<summary type="text/plain">ProFtpdを動作させようとするがうまく動かないので、ふらっと # aptit...</summary>
<author>
<name>mituha</name>

<email>mituha@restar.jp</email>
</author>
<dc:subject>玄箱</dc:subject>
<content type="text/html" mode="escaped" xml:lang="ja" xml:base="http://gnjtoys.restar.info/">
<![CDATA[<p>ProFtpdを動作させようとするがうまく動かないので、ふらっと # aptitude install xinetd としてみた。<br />
すると、telnetとか動かなくなってしまった…。<br />
SSHで接続していたので、とりあえず、そのままあれこれいじってみる。<br />
ってか、接続切ったら２度と接続できない可能性もあるか…。</p>]]>
<![CDATA[<p>/etc/xinet.d/ の下にtelnetのファイルを作成。<br />
# vi /etc/xinet.d/<br />
service telnet<br />
{<br />
    disable = no<br />
    flags = REUSE<br />
    socket_type = stream<br />
    wait = no<br />
    uset = root<br />
    setver = /usr/sbin/in.telnetd<br />
    only_from = 127.0.0.1 192.168.0.0/24<br />
}</p>

<p># /etc/init.d/xinetd restart<br />
なんとかtelnet接続も可能っぽい。</p>

<p>同じような形でswatとかも作ると接続できるようになった。<br />
swat　は port = 901 を足す。flags不要？</p>

<p>色々調べてるうちに webmin_xinetd もあるらしいので入れてみる。</p>

<p>ところで、ProFtpdが動作しなかったのは、設定が悪かったみたい。<br />
/etc/proftpd.conf の<br />
LsDefaultOptions "-l" が何かだめと言われる。<br />
とりあえず、ListOptions "-a" にしたら動作するようなので、詳しくは後日調べることにする。</p>]]>
</content>
</entry>

<entry>
<title>sarge化</title>
<link rel="alternate" type="text/html" href="http://gnjtoys.restar.info/2005/10/sarge.php" />
<modified>2005-10-19T15:10:54Z</modified>
<issued>2005-10-19T14:03:19Z</issued>
<id>tag:gnjtoys.restar.info,2005://2.22</id>
<created>2005-10-19T14:03:19Z</created>
<summary type="text/plain">参考 APT HOWTO Debian JP Project...</summary>
<author>
<name>mituha</name>

<email>mituha@restar.jp</email>
</author>
<dc:subject>玄箱</dc:subject>
<content type="text/html" mode="escaped" xml:lang="ja" xml:base="http://gnjtoys.restar.info/">
<![CDATA[<p>参考<br />
<a href="http://www.debian.org/doc/manuals/apt-howto/index.ja.html">APT HOWTO</a><br />
<a href="http://www.debian.or.jp/">Debian JP Project</a></p>]]>
<![CDATA[<p>てきとうにバージョンアップを試してみた。<br />
/etc/apt/sources.list　のwoodyをsargeに変更。<br />
# apt-get install netselect<br />
# apt-get install wget<br />
# wget http://www.debian.or.jp/debian-ftp-mirrors-jp<br />
# netselect -vv `cat debian-ftp-mirrors-jp`<br />
[`]の文字を普段使わないから思わず探してしまった。｀｀でくくった部分はコマンドが実行されるらしい。<br />
ミラーサイトで早そうな場所を選択。<br />
<a href="http://www.debian.or.jp/Near-Mirror.html">sources.list</a>のサンプルもあったので参考に書き換える。</p>

<p># apt-get update<br />
# apt-get dist-update<br />
でがりがりと更新。<br />
よくわからいので適当にすすめる。<br />
何かあちこち設定も変わったらしく、webminとか動かなく（アクセス拒否）なってしまった。<br />
/etc/webmin/miniserv.conf<br />
の中身が変わったせいっぽい。<br />
allow=127.0.0.1 192.168.0.0<br />
としてとりあえずネットワーク内からのアクセスを可能に変更。 </p>

<p>Linuxは知らないことだらけでおもしろい。<br />
地道にいじって遊ぶことにする。</p>]]>
</content>
</entry>

<entry>
<title>LAMP環境構築</title>
<link rel="alternate" type="text/html" href="http://gnjtoys.restar.info/2005/10/lamp.php" />
<modified>2005-10-17T14:06:45Z</modified>
<issued>2005-10-17T13:13:48Z</issued>
<id>tag:gnjtoys.restar.info,2005://2.21</id>
<created>2005-10-17T13:13:48Z</created>
<summary type="text/plain">とりあえず、あれこれ適当にインストールしてみる。 # apt-get insta...</summary>
<author>
<name>mituha</name>

<email>mituha@restar.jp</email>
</author>
<dc:subject>玄箱</dc:subject>
<content type="text/html" mode="escaped" xml:lang="ja" xml:base="http://gnjtoys.restar.info/">
<![CDATA[<p>とりあえず、あれこれ適当にインストールしてみる。</p>

<p># apt-get install samba<br />
# apt-get install swat<br />
/etc/inetd.conf<br />
を編集してswapを有効にする。<br />
再起動は # /etc/init.d/inetd restart<br />
接続はhttp://xxxxx:901/</p>

<p># apt-get install apache<br />
# apt-get install php4<br />
# apt-get install mysql-server<br />
# apt-get install php4-mysql</p>

<p># apt-get install webmin<br />
# apt-get install webmin-mysql<br />
# apt-get install webmin-apach<br />
# apt-get install webmin-core<br />
# apt-get install webmin-samba<br />
接続はhttps://xxxxx:10000/</p>

<p># apt-get install php4-pear</p>]]>

</content>
</entry>

<entry>
<title>現在のパッケージ一覧</title>
<link rel="alternate" type="text/html" href="http://gnjtoys.restar.info/2005/10/post_1.php" />
<modified>2005-10-16T15:44:52Z</modified>
<issued>2005-10-16T15:00:06Z</issued>
<id>tag:gnjtoys.restar.info,2005://2.20</id>
<created>2005-10-16T15:00:06Z</created>
<summary type="text/plain">dpkg -l コマンドで現在のパッケージ一覧の取得が可能。 ...</summary>
<author>
<name>mituha</name>

<email>mituha@restar.jp</email>
</author>
<dc:subject>玄箱</dc:subject>
<content type="text/html" mode="escaped" xml:lang="ja" xml:base="http://gnjtoys.restar.info/">
<![CDATA[<p>dpkg -l コマンドで現在のパッケージ一覧の取得が可能。<br />
</p>]]>
<![CDATA[<blockquote>
KURO-BOX:~# dpkg -l
Desired=Unknown/Install/Remove/Purge/Hold
| Status=Not/Installed/Config-files/Unpacked/Failed-config/Half-installed
|/ Err?=(none)/Hold/Reinst-required/X=both-problems (Status,Err: uppercase=bad)
||/ Name           Version        Description
+++-==============-==============-============================================
ii  adduser        3.47           Add and remove users and groups
ii  amiga-fdisk    0.04-6         Partition editor for Amiga
ii  apt            0.5.4          Advanced front-end for dpkg
ii  apt-utils      0.5.4          APT utility programs
ii  at             3.1.8-11       Delayed job execution and batch processing
ii  base-config    1.33.18        Debian base configuration package
ii  base-files     3.0.2          Debian base system miscellaneous files
ii  base-passwd    3.4.1          Debian Base System Password/Group Files
ii  bash           2.05a-11       The GNU Bourne Again SHell
ii  bsdmainutils   5.20020211-4.9 More utilities from FreeBSD.
ii  bsdutils       2.11n-7        Basic utilities from 4.4BSD-Lite.
ii  console-common 0.7.14         Basic infrastructure for text console config
ii  console-data   1999.08.29-24. Keymaps, fonts, charset maps, fallback table
ii  console-tools  0.2.3-23.3     Linux console and font utilities.
ii  console-tools- 0.2.3-23.3     Shared libraries for Linux console and font 
ii  cpio           2.4.2-39woody1 GNU cpio -- a program to manage archives of 
ii  cron           3.0pl1-72      management of regular background processing
ii  debconf        1.0.32         Debian configuration management system
ii  debianutils    1.16.2woody1   Miscellaneous utilities specific to Debian.
ii  dhcp-client    2.0pl5-11woody DHCP Client
ii  diff           2.7-29         File comparison utilities
ii  dpkg           1.9.21         Package maintenance system for Debian
ii  e2fsprogs      1.27-2         The EXT2 file system utilities and libraries
ii  ed             0.2-19         The classic unix line editor
ii  exim           3.35-1woody4   An MTA (Mail Transport Agent)
ii  fdutils        5.3-7          Linux floppy utilities
ii  fileutils      4.1-10         GNU file management utilities
ii  findutils      4.1.7-2        utilities for finding files--find, xargs, an
ii  ftp            0.17-9         The FTP client.
ii  gettext-base   0.10.40-5      GNU Internationalization utilities for the b
ii  grep           2.4.2-3        GNU grep, egrep and fgrep.
ii  groff-base     1.17.2-15.wood GNU troff text-formatting system (base syste
ii  gzip           1.3.2-3woody5  The GNU compression utility.
ii  hfsutils       3.2.6-7        Tools for reading and writing Macintosh volu
ii  hostname       2.09           A utility to set/show the host name or domai
ii  ifupdown       0.6.4-4        High level tools to configure network interf
ii  info           4.1-2          Standalone GNU Info documentation browser
ii  ipchains       1.3.10-15      Network firewalling for Linux 2.2.x
ii  iptables       1.2.6a-5.0wood IP packet filter administration tools for 2.
ii  klogd          1.4.1-10       Kernel Logging Daemon
ii  libc6          2.2.5-11.8     GNU C Library: Shared libraries and Timezone
ii  libcap1        1.10-12        support for getting/setting POSIX.1e capabil
ii  libdb2         2.7.7.0-7      The Berkeley database routines (run-time fil
ii  libdb3         3.2.9-16       Berkeley v3 Database Libraries [runtime]
ii  libgdbmg1      1.7.3-27       GNU dbm database routines (runtime version).
ii  libident       0.22-2         simple RFC1413 client library - runtime
ii  libldap2       2.0.23-6.3     OpenLDAP libraries.
ii  liblockfile1   1.03           NFS-safe locking library, includes dotlockfi
ii  libncurses5    5.2.20020112a- Shared libraries for terminal handling
ii  libnewt0       0.50.17-9.6    Not Erik's Windowing Toolkit - text mode win
ii  libpam-modules 0.72-35        Pluggable Authentication Modules for PAM
ii  libpam-runtime 0.72-35        Runtime support for the PAM library
ii  libpam0g       0.72-35        Pluggable Authentication Modules library
ii  libpcap0       0.6.2-2        System interface for user-level packet captu
ii  libpcre3       3.4-1.1        Philip Hazel's Perl Compatible Regular Expre
ii  libperl5.6     5.6.1-8.9      Shared Perl library.
ii  libpopt0       1.6.2-7        lib for parsing cmdline parameters
ii  libreadline4   4.2a-5         GNU readline and history libraries, run-time
ii  libsasl7       1.5.27-3.1wood Authentication abstraction library.
ii  libssl0.9.6    0.9.6c-2.woody SSL shared libraries
ii  libstdc++2.10- 2.95.4-11woody The GNU stdc++ library
ii  libwrap0       7.6-9          Wietse Venema's TCP wrappers library
ii  login          20000902-12woo System login tools
ii  logrotate      3.5.9-8        Log rotation utility
ii  mac-fdisk      0.1-8          Apple disk partition manipulation tool
ii  mailx          8.1.2-0.200204 A simple mail user agent.
ii  make           3.79.1-14      The GNU version of the "make" utility.
ii  makedev        2.3.1-58       Creates device files in /dev.
ii  man-db         2.3.20-18.wood The on-line manual pager
ii  manpages       1.39-1.1       Man pages about using a Linux system.
ii  mawk           1.3.3-8        a pattern scanning and text processing langu
ii  modconf        0.2.43         Device Driver Configuration
ii  modutils       2.4.15-1       Linux module utilities.
ii  mount          2.11n-7        Tools for mounting and manipulating filesyst
ii  nano           1.0.6-3        free Pico clone with some new features
ii  ncurses-base   5.2.20020112a- Descriptions of common terminal types
ii  ncurses-bin    5.2.20020112a- Terminal-related programs and man pages
ii  net-tools      1.60-4         The NET-3 networking toolkit
ii  netbase        4.07           Basic TCP/IP networking system
ii  netkit-inetd   0.10-9         The Internet Superserver
ii  netkit-ping    0.10-9         The ping utility from netkit
ii  nvi            1.79-20        4.4BSD re-implementation of vi.
ii  passwd         20000902-12woo Change and administer password and group dat
ii  pciutils       2.1.9-4        Linux PCI Utilities (for 2.[1234].x kernels)
ii  perl           5.6.1-8.9      Larry Wall's Practical Extraction and Report
ii  perl-base      5.6.1-8.9      The Pathologically Eclectic Rubbish Lister.
ii  perl-modules   5.6.1-8.9      Core Perl modules.
ii  powerpc-utils  1.1.3-5        Various utilities for Linux/PowerPC
ii  ppp            2.4.1.uus-4    Point-to-Point Protocol (PPP) daemon.
ii  pppconfig      2.0.14         A text menu based utility for configuring pp
ii  pppoe          3.3-1.2        PPP over Ethernet driver
ii  pppoeconf      0.9.10.6       configures PPPoE/ADSL
ii  procps         2.0.7-8.woody1 The /proc file system utilities.
ii  proftpd        1.2.4+1.2.5rc1 Versatile, virtual-hosting FTP daemon
ii  proftpd-common 1.2.4+1.2.5rc1 Versatile, virtual-hosting FTP daemon
ii  psmisc         20.2-2.1       Utilities that use the proc filesystem
ii  quik           2.0e-0.6       Bootloader for PowerMac or CHRP systems
ii  sed            3.02-8         The GNU sed stream editor.
ii  setserial      2.17-24        Controls configuration of serial ports.
ii  shellutils     2.0.11-11      The GNU shell programming utilities.
ii  slang1         1.4.4-7.2      The S-Lang programming library - runtime ver
ii  sysklogd       1.4.1-10       System Logging Daemon
ii  sysvinit       2.84-2woody1   System-V like init.
ii  tar            1.13.25-2      GNU tar
ii  tasksel        1.18           Tool for selecting tasks for installation on
ii  tcpd           7.6-9          Wietse Venema's TCP wrapper utilities
ii  telnet         0.17-18woody3  The telnet client.
ii  telnetd        0.17-18woody3  The telnet server.
ii  textutils      2.0-12         The GNU text file processing utilities.
ii  util-linux     2.11n-7        Miscellaneous system utilities.
ii  whiptail       0.50.17-9.6    Displays user-friendly dialog boxes from she
ii  yaboot         1.3.6-1        Yet Another Bootloader
ii  zlib1g         1.1.4-1.0woody compression library - runtime
KURO-BOX:~# 
</blockquote>]]>
</content>
</entry>

<entry>
<title>apt-get</title>
<link rel="alternate" type="text/html" href="http://gnjtoys.restar.info/2005/10/aptget.php" />
<modified>2005-10-16T15:44:15Z</modified>
<issued>2005-10-16T14:47:34Z</issued>
<id>tag:gnjtoys.restar.info,2005://2.19</id>
<created>2005-10-16T14:47:34Z</created>
<summary type="text/plain">パッケージ管理をしてくれるものらしい。 Windows Update みたいなも...</summary>
<author>
<name>mituha</name>

<email>mituha@restar.jp</email>
</author>
<dc:subject>玄箱</dc:subject>
<content type="text/html" mode="escaped" xml:lang="ja" xml:base="http://gnjtoys.restar.info/">
<![CDATA[<p>パッケージ管理をしてくれるものらしい。<br />
Windows Update みたいなものと思えば良さそう。</p>

<p>とりあえず、apt-get update をしてみた。<br />
なにやら、woodyという、文字列があちこち出てくる。</p>

<p>Debianのパッケージには安定版(stable)、テスト版(testing)、不安定版(unstable)とあるらしい。<br />
で、debian_2005_08_21_dist.tgzの時点では、stable(woody)、testing(sarge)、unstable(sid)らしい。<br />
このwoody,sargeはコードネームらしく、Debian3.0が、woody、次のバージョンがsargeみたいです。<br />
なお、現在はsargeがstable(安定版)になったみたいなので、そのうちアップグレードしたいと思う。</p>]]>
<![CDATA[<p>パッケージ取得用の設定ファイルの中身<br />
ファイルの中身の表示はcatコマンドで行う。</p>

<blockquote>
KURO-BOX:~# cat /etc/apt/sources.list
# See sources.list(5) for more information, especialy
# Remember that you can only use http, ftp or file URIs
# CDROMs are managed through the apt-cdrom tool.

<p># Security updates for "stable"<br />
deb http://security.debian.org woody/updates main contrib <br />
#deb http://security.debian.org testing/updates main contrib</p>

<p># Woody<br />
#deb http://ftp2.de.debian.org/pub/debian woody main contrib<br />
#deb http://ftp2.de.debian.org/pub/debian-non-US woody/non-US main contrib</p>

<p>deb ftp://ftp.dti.ad.jp/pub/Linux/debian woody main contrib<br />
deb ftp://ftp.dti.ad.jp/pub/Linux/debian-non-US woody/non-US main contrib</p>

<p># Sources<br />
#deb-src http://ftp2.de.debian.org/pub/debian woody main contrib<br />
#deb-src http://ftp2.de.debian.org/pub/debian-non-US woody/non-US main contrib<br />
deb-src ftp://ftp.dti.ad.jp/pub/Linux/debian woody main contrib<br />
deb-src ftp://ftp.dti.ad.jp/pub/Linux/debian-non-US woody/non-US main contrib</p>

<p><br />
# Testing<br />
#deb http://ftp2.de.debian.org/pub/debian testing main contrib non-free<br />
#deb http://ftp2.de.debian.org/pub/debian-non-US testing/non-US main contrib non-free</p>

<p># Sources<br />
#deb-src http://ftp2.de.debian.org/pub/debian testing main contrib non-free<br />
#deb-src http://ftp2.de.debian.org/pub/debian-non-US testing/non-US main contrib non-free</p>

<p># Unstable<br />
#deb http://ftp2.de.debian.org/debian unstable main contrib non-free<br />
#deb http://ftp2.de.debian.org/debian-non-US unstable/non-US main contrib non-free</p>

<p># Sources<br />
#deb-src http://ftp2.de.debian.org/debian unstable main contrib non-free<br />
#deb-src http://ftp2.de.debian.org/debian-non-US unstable/non-US main contrib non-free</p>

<p># Experimental<br />
#deb http://ftp2.de.debian.org/debian ../project/experimental main contrib non-free<br />
#deb-src http://ftp2.de.debian.org/debian ../project/experimental main contrib non-free</p>

<p># Mozilla<br />
# deb http://non-us.debian.org/~kitame/mozilla ./<br />
# deb-src http://non-us.debian.org/~kitame/mozilla ./</p>

<p># GNOME 2.0<br />
# deb http://www.gnome.de/debian/ ./</p>

<p># KDE 3<br />
# deb http://ktown.kde.org/~nolden/kde stable main<br />
# deb-src http://ktown.kde.org/~nolden/kde stable main<br />
# We get packages from testing/unstable for now</p>

<p># cdbakeoven<br />
# deb http://coyote.asoc.euitt.upm.es/mud/debian/ ./</p>

<p># XFree 4.2/4.3<br />
# deb http://people.debian.org/~branden/packages sid/i386/<br />
# deb-src http://people.debian.org/~branden/packages sid/source/<br />
# deb http://www.penguinppc.org/~daniels/sid/i386 ./<br />
# deb-src http://www.penguinppc.org/~daniels/sid/source ./</p>

<p># Java<br />
#deb ftp://ftp.gwdg.de/pub/languages/java/linux/debian woody main non-free<br />
#deb-src ftp://ftp.gwdg.de/pub/languages/java/linux/debian woody main non-free<br />
#deb ftp://ftp.gwdg.de/pub/languages/java/linux/debian unstable main non-free<br />
#deb-src ftp://ftp.gwdg.de/pub/languages/java/linux/debian unstable main non-free<br />
# deb http://people.debian.org/~sgybas/jdk13</p>

<p># LyX & others (now in debian/unstable)<br />
# deb ftp://ntama.uni-mainz.de/pub/debian unofficial/<br />
# deb-src ftp://ntama.uni-mainz.de/pub/debian unofficial/</p>

<p># Evolution<br />
#deb ftp://ftp.ximian.com/pub/debian stable main<br />
#deb-src ftp://ftp.ximian.com/pub/debian stable main</p>

<p># Blades Repository (pppoeconf & co)<br />
# deb http://people.debian.org/~blade/testing ./<br />
# deb-src http://people.debian.org/~blade/testing ./</p>

<p># Wine CVS snapshot<br />
# deb http://people.debian.org/~andreas/debian wine main<br />
# deb-src http://people.debian.org/~andreas/debian wine main</p>

<p># deb cdrom:[Debian GNU/Linux 2.2 r3 _Potato_ - Official i386 Binary-1 (20010427)]/ unstable contrib main non-US/contrib non-US/main<br />
</blockquote></p>

<p>ファイルの中身表示用のコマンドは他にもmore、less等ある。<br />
lessはインストールされていなかった。apt-get install less でインストールされた。</p>

<p>明示的にwoodyを指定してあるみたいなので、もう少し理解するまでこのまま(woody)にしておく。<br />
stable指定されてたら、勝手にバージョンアップされるのかも。</p>]]>
</content>
</entry>

<entry>
<title>ユーザー/パスワード変更</title>
<link rel="alternate" type="text/html" href="http://gnjtoys.restar.info/2005/10/post_5.php" />
<modified>2005-10-16T14:43:09Z</modified>
<issued>2005-10-15T05:27:29Z</issued>
<id>tag:gnjtoys.restar.info,2005://2.17</id>
<created>2005-10-15T05:27:29Z</created>
<summary type="text/plain">セキュリティ上、および、自分用にrootのパスワード変更と、一般ユーザーの追加、...</summary>
<author>
<name>mituha</name>

<email>mituha@restar.jp</email>
</author>
<dc:subject>玄箱</dc:subject>
<content type="text/html" mode="escaped" xml:lang="ja" xml:base="http://gnjtoys.restar.info/">
<![CDATA[<p>セキュリティ上、および、自分用にrootのパスワード変更と、一般ユーザーの追加、および、登録済みのユーザー(tmp-kun)の削除。<br />
以降の表記ではユーザー名等はxxxxxで伏せてあります。</p>

<p>rootユーザーのパスワード変更。<br />
passwdで変更。</p>

<p>一般ユーザー(tmp-kun)の変更。<br />
tmp-kunの代わりに通常使用するユーザーを作成します。<br />
<blockquote><br />
tmp-kun@KURO-BOX:~$ su -<br />
Password: xxxxx<br />
KURO-BOX:~# adduser<br />
Enter a username to add: xxxxx<br />
Adding user xxxxx...<br />
Adding new group xxxxx (1001).<br />
Adding new user xxxxx (1001) with group xxxxx.<br />
Creating home directory /home/xxxxx.<br />
Copying files from /etc/skel<br />
Enter new UNIX password: xxxxx<br />
Retype new UNIX password: xxxxx<br />
passwd: password updated successfully<br />
Changing the user information for xxxxx<br />
Enter the new value, or press return for the default<br />
Full Name []: <br />
Room Number []: <br />
Work Phone []: <br />
Home Phone []: <br />
Other []: <br />
Is the information correct? [y/n] y<br />
</blockquote></p>

<p>作成したユーザーでログインできることの確認。<br />
ログインできた場合、デフォルトの一般ユーザー(tmp-kun)の削除を行います。<br />
<blockquote><br />
xxxxx@KURO-BOX:~$ su<br />
Password:xxxxx <br />
KURO-BOX:/home/xxxxx# deluser --remove-all-files tmp-kun<br />
Looking for files to backup/remove...<br />
Removing files...<br />
Removing user tmp-kun...<br />
done.<br />
</blockquote><br />
--remove-all-filesオプションをつけて、関連ファイルを含めてすべて削除。<br />
</p>]]>
<![CDATA[<p>メモ<br />
su<br />
id<br />
passwd</p>]]>
</content>
</entry>

<entry>
<title>インストール</title>
<link rel="alternate" type="text/html" href="http://gnjtoys.restar.info/2005/10/post_3.php" />
<modified>2005-10-15T05:08:39Z</modified>
<issued>2005-10-14T18:42:28Z</issued>
<id>tag:gnjtoys.restar.info,2005://2.15</id>
<created>2005-10-14T18:42:28Z</created>
<summary type="text/plain">WEB用のテスト環境を作ってみようと、玄箱HGを購入。 しかし、Linuxの知識...</summary>
<author>
<name>mituha</name>

<email>mituha@restar.jp</email>
</author>
<dc:subject>玄箱</dc:subject>
<content type="text/html" mode="escaped" xml:lang="ja" xml:base="http://gnjtoys.restar.info/">
<![CDATA[<p>WEB用のテスト環境を作ってみようと、玄箱HGを購入。<br />
しかし、Linuxの知識がほぼ0に近いので、かなり負け気分。<br />
無印と、HGで手順が異なるのか、途中、FlashROM異常の５回点滅等の状態になって、かなり焦りました。</p>

<p>６時間ほど格闘して、なんとかDebian化の入り口までたどり着いたので寝ることにする。</p>]]>
<![CDATA[<p>とりあえず、メモ。<br />
後日、修正予定。</p>

<p><a href="http://kuro.dsk.jp/" target="_blank">玄箱うぉううぉう♪</a>さん。<br />
debian_2005_08_21_dist.tgz</p>

<p><a href="http://kazz7.air-nifty.com/"　target="_blank">大阪てきとー日記</a>さんの<a href="http://kazz7.air-nifty.com/tekito/2004/12/debian.html"　target="_blank">記事</a>をほぼそのまま実行でなんとか成功。<br />
イメージファイルが新しかった(2005/08/21)おかげか、細かい対策はなしでいけてる模様？</p>

<p>root/kuroadmin<br />
<blockquote><br />
#echo -n 'NGNG' > /dev/fl3<br />
#reboot<br />
</blockquote></p>

<blockquote>
#mount
/dev/root on / type auto (rw,errors=remount-ro,errors=remount-ro)
proc on /proc type proc (rw)
none on /dev/pts type devpts (rw,gid=5,mode=20)

<p>#/bin/mount -t ext3 /dev/hda1 /mnt<br />
#/bin/mount -t ext3 /dev/hda3 /mnt2</p>

<p>#mount<br />
/dev/root on / type auto (rw,errors=remount-ro,errors=remount-ro)<br />
proc on /proc type proc (rw)<br />
none on /dev/pts type devpts (rw,gid=5,mode=20)<br />
/dev/hda1 on /mnt type ext3 (rw)<br />
/dev/hda3 on /mnt2 type ext3 (rw)<br />
</blockquote></p>

<blockquote>
#cd /mnt
#rm -r *

<p>#tar zxvf /mnt2/share/debian_2005_08_21_dist.tgz<br />
</blockquote></p>

<blockquote>
#echo -n 'OKOK' > /dev/fl3
#reboot
</blockquote>

<p>tmp-kun/tmp-kun<br />
#su -<br />
root</p>

<blockquote>
#vi /etc/network/interfaces
(#vi /etc/hosts.allow)
#vi /etc/resolv.conf
#vi /etc/hosts
</blockquote>]]>
</content>
</entry>

</feed>