<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>A Magic Web &#187; 基礎</title>
	<atom:link href="http://www.a-magic-web.com/server_linux/linux/basics/feed" rel="self" type="application/rss+xml" />
	<link>http://www.a-magic-web.com</link>
	<description></description>
	<lastBuildDate>Sat, 07 Aug 2010 05:57:45 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Linux システムの文字コード</title>
		<link>http://www.a-magic-web.com/server_linux/linux/basics/linux_system_encode.html</link>
		<comments>http://www.a-magic-web.com/server_linux/linux/basics/linux_system_encode.html#comments</comments>
		<pubDate>Sun, 17 May 2009 02:22:49 +0000</pubDate>
		<dc:creator>vohedge</dc:creator>
				<category><![CDATA[基礎]]></category>

		<guid isPermaLink="false">http://www.a-magic-web.com/server_linux/linux/basics/linux_system_encode/</guid>
		<description><![CDATA[Linux システム自体の文字コードは、以下の場所で確認・変更することができます。 [root@centos ~]# cat /etc/sysconfig/i18n LANG=&#34;ja_JP.UTF-8&#34;]]></description>
			<content:encoded><![CDATA[<p>Linux システム自体の文字コードは、以下の場所で確認・変更することができます。</p>
<div class="command">
<pre>[root@centos ~]# cat /etc/sysconfig/i18n
LANG=&quot;ja_JP.UTF-8&quot;</pre>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.a-magic-web.com/server_linux/linux/basics/linux_system_encode.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux (CentOS) のホスト名の変更</title>
		<link>http://www.a-magic-web.com/server_linux/linux/basics/change_hostname.html</link>
		<comments>http://www.a-magic-web.com/server_linux/linux/basics/change_hostname.html#comments</comments>
		<pubDate>Sat, 16 May 2009 05:21:04 +0000</pubDate>
		<dc:creator>vohedge</dc:creator>
				<category><![CDATA[基礎]]></category>

		<guid isPermaLink="false">http://www.a-magic-web.com/server_linux/linux_basics/change_hostname/</guid>
		<description><![CDATA[Linux (RedHat系) では、2つファイルを変更する必要があるようです。 /etc/hosts [root@centos ~]# cat /etc/hosts # Do not remove the following line, or various programs # that require network functionality will fail. 127.0.0.1 centos.com centos localhost.localdomain localhost ::1 localhost6.localdomain6 localhost6 /etc/sysconfig/network [root@centos ~]# cat /etc/sysconfig/network NETWORKING=yes NETWORKING_IPV6=no HOSTNAME=centos.com GATEWAY=192.168.0.1 [root@centos ~]# 参考にしたサイト ITmedia エンタープライズ : Linux Tips ホスト名を変更したい]]></description>
			<content:encoded><![CDATA[<p>Linux (RedHat系) では、2つファイルを変更する必要があるようです。</p>
<h3>/etc/hosts</h3>
<div class="command">
<pre>[root@centos ~]# cat /etc/hosts
# Do not remove the following line, or various programs
# that require network functionality will fail.
127.0.0.1               centos.com centos localhost.localdomain localhost
::1             localhost6.localdomain6 localhost6</pre>
</div>
<h3>/etc/sysconfig/network</h3>
<div class="command">
<pre>[root@centos ~]# cat /etc/sysconfig/network
NETWORKING=yes
NETWORKING_IPV6=no
HOSTNAME=centos.com
GATEWAY=192.168.0.1
[root@centos ~]#</pre>
</div>
<hr />
<p>参考にしたサイト</p>
<p><a href="http://www.itmedia.co.jp/help/tips/linux/l0434.html">ITmedia エンタープライズ : Linux Tips ホスト名を変更したい</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.a-magic-web.com/server_linux/linux/basics/change_hostname.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux のネットワーク設定</title>
		<link>http://www.a-magic-web.com/server_linux/linux/basics/linux_network_config.html</link>
		<comments>http://www.a-magic-web.com/server_linux/linux/basics/linux_network_config.html#comments</comments>
		<pubDate>Wed, 13 May 2009 04:06:25 +0000</pubDate>
		<dc:creator>vohedge</dc:creator>
				<category><![CDATA[基礎]]></category>

		<guid isPermaLink="false">http://www.a-magic-web.com/server_linux/linux_basics/linux_network_config/</guid>
		<description><![CDATA[IP などを変更したいとき用の設定方法。/etc/sysconfig/network-scripts/ifcfg-eth0 を編集する。 [root@localhost ~]# vi /etc/sysconfig/network-scripts/ifcfg-eth0 DEVICE=eth0 ONBOOT=yes BOOTPROTO=static IPADDR=192.168.16.10 NETMASK=255.255.255.0 GATEWAY=192.168.16.2 ONBOOT=yes # HWADDR=00:0c:29:01:e3:47 設定を反映させるために、ネットワークサービスを再起動する。 /etc/init.d/network restart]]></description>
			<content:encoded><![CDATA[<p>IP などを変更したいとき用の設定方法。/etc/sysconfig/network-scripts/ifcfg-eth0 を編集する。</p>
<div class="command">
<pre>[root@localhost ~]# vi /etc/sysconfig/network-scripts/ifcfg-eth0
DEVICE=eth0
ONBOOT=yes
BOOTPROTO=static
IPADDR=192.168.16.10
NETMASK=255.255.255.0
GATEWAY=192.168.16.2
ONBOOT=yes
# HWADDR=00:0c:29:01:e3:47</pre>
</div>
<p>設定を反映させるために、ネットワークサービスを再起動する。</p>
<div class="command">
<pre> /etc/init.d/network restart</pre>
</div>
]]></content:encoded>
			<wfw:commentRss>http://www.a-magic-web.com/server_linux/linux/basics/linux_network_config.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ダウンロードしたデータの整合性をハッシュで確認</title>
		<link>http://www.a-magic-web.com/server_linux/linux/basics/hash_how_to_use.html</link>
		<comments>http://www.a-magic-web.com/server_linux/linux/basics/hash_how_to_use.html#comments</comments>
		<pubDate>Tue, 12 May 2009 13:59:20 +0000</pubDate>
		<dc:creator>vohedge</dc:creator>
				<category><![CDATA[基礎]]></category>

		<guid isPermaLink="false">http://www.a-magic-web.com/server_linux/linux_basics/%e3%83%80%e3%82%a6%e3%83%b3%e3%83%ad%e3%83%bc%e3%83%89%e3%81%97%e3%81%9f%e3%83%87%e3%83%bc%e3%82%bf%e3%81%ae%e6%95%b4%e5%90%88%e6%80%a7%e3%82%92%e3%83%8f%e3%83%83%e3%82%b7%e3%83%a5%e3%81%a7%e7%a2%ba/</guid>
		<description><![CDATA[このまえ、wget でダウンロードしたデータが破損していて、インストールできないということがあった。たまたま、そのサイトにはハッシュ値が載せられていたので、さっと確認できたらいいなと思って調べてみました。 ハッシュ値の計算には openssl コマンドを使います。 ファイル名のハッシュ値 たとえば、shadow ファイルのハッシュ値だと # cat /etc/shadow &#124;openssl md5 文字列のハッシュ値の計算 たとえば、hogehoge のハッシュ値は $ echo hogehoge&#124;openssl md5 d9a3fdfc7ca17c47ed007bed5d2eb873 こんな感じ 参考にしたサイト ＩＴpro : 原理から学ぶネットワーク・セキュリティ 第4回 ハッシュ関数]]></description>
			<content:encoded><![CDATA[<p>このまえ、wget でダウンロードしたデータが破損していて、インストールできないということがあった。たまたま、そのサイトにはハッシュ値が載せられていたので、さっと確認できたらいいなと思って調べてみました。</p>
<p>ハッシュ値の計算には openssl コマンドを使います。</p>
<h3>ファイル名のハッシュ値 </h3>
<p> たとえば、shadow ファイルのハッシュ値だと
<div class="command">
<pre># cat /etc/shadow |openssl md5</pre>
</div>
<h3>文字列のハッシュ値の計算 </h3>
<p>たとえば、hogehoge のハッシュ値は </p>
<div class="command">
<pre>$ echo hogehoge|openssl md5
d9a3fdfc7ca17c47ed007bed5d2eb873</pre>
</div>
<p>こんな感じ</p>
<hr />
<p>参考にしたサイト</p>
<p><a href="http://itpro.nikkeibp.co.jp/article/COLUMN/20071031/286012/">ＩＴpro : 原理から学ぶネットワーク・セキュリティ 第4回 ハッシュ関数</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.a-magic-web.com/server_linux/linux/basics/hash_how_to_use.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>CentOS インストール後のログ</title>
		<link>http://www.a-magic-web.com/server_linux/linux/basics/install_log.html</link>
		<comments>http://www.a-magic-web.com/server_linux/linux/basics/install_log.html#comments</comments>
		<pubDate>Thu, 07 May 2009 13:09:39 +0000</pubDate>
		<dc:creator>vohedge</dc:creator>
				<category><![CDATA[基礎]]></category>

		<guid isPermaLink="false">http://www.a-magic-web.com/server_linux/build/install_log/</guid>
		<description><![CDATA[CentOS インストール後のログは以下の場所に吐き出されるようです。 /root/install.log /root/install.log.syslog /var/log/anaconda.log /var/log/anaconda.syslog /root/install.log の警告 warning: setup-2.5.58-4.el5: Header V3 DSA signature: NOKEY, key ID e8562897 という警告が発生しているのですが、これがなになのかさっぱり。。OS 自体は正常に動いているようなので、問題なさそうなのですが、ほとんど情報がありません。 That just means the key has nor been registered with the system should be no problem it more of a warning then an error http://www.linuxforums.org/forum/suse-linux-help/126610-header-v3-dsa-signature-nokey-key-id-58857177-a.html とか It&#8217;s not an error, it&#8217;s a warning. Warnings don&#8217;t [...]]]></description>
			<content:encoded><![CDATA[<p>CentOS インストール後のログは以下の場所に吐き出されるようです。</p>
<ul>
<li>/root/install.log </li>
<li>/root/install.log.syslog </li>
<li>/var/log/anaconda.log </li>
<li>/var/log/anaconda.syslog </li>
</ul>
<h2>/root/install.log の警告</h2>
<h3>warning: setup-2.5.58-4.el5: Header V3 DSA signature: NOKEY, key ID e8562897</h3>
<p>という警告が発生しているのですが、これがなになのかさっぱり。。OS 自体は正常に動いているようなので、問題なさそうなのですが、ほとんど情報がありません。</p>
<blockquote><p>That just means the key has nor been registered with the system should be no problem it more of a warning then an error</p>
<p><a href="http://www.linuxforums.org/forum/suse-linux-help/126610-header-v3-dsa-signature-nokey-key-id-58857177-a.html">http://www.linuxforums.org/forum/suse-linux-help/126610-header-v3-dsa-signature-nokey-key-id-58857177-a.html</a></p>
</blockquote>
<p>とか</p>
<blockquote><p>It&#8217;s not an error, it&#8217;s a warning. Warnings don&#8217;t prevent commands from completing. If the command doesn&#8217;t work, look for an actual <b>error</b> message in the output.      <br />You can clear the warning by importing the GPG key used to sign the package: <a href="http://www.fedorafaq.org/#gpgsig">http://www.fedorafaq.org/#gpgsig</a></p>
<p><a href="http://forums.fedoraforum.org/showthread.php?t=98356">http://forums.fedoraforum.org/showthread.php?t=98356</a></p>
</blockquote>
<p>とあったりするのですが、何をもって問題ないのかがよくわからず。。GPG キーをインポートすれば、とありますが、GPGって何？</p>
<p>進めば進むほどわからないことが増えています。。。</p>
</p>
<hr />
<p>参考にしたページ</p>
<p>Think IT : ログ管理、これだけは！第1回：必読！ログファイルとディレクトリ    <br /><a href="http://thinkit.jp/article/711/3/">http://thinkit.jp/article/711/3/</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.a-magic-web.com/server_linux/linux/basics/install_log.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ハッシュ、MD5、SHA-1とは？</title>
		<link>http://www.a-magic-web.com/server_linux/linux/basics/hash_md5_sha1.html</link>
		<comments>http://www.a-magic-web.com/server_linux/linux/basics/hash_md5_sha1.html#comments</comments>
		<pubDate>Sun, 26 Apr 2009 09:48:00 +0000</pubDate>
		<dc:creator>vohedge</dc:creator>
				<category><![CDATA[基礎]]></category>

		<guid isPermaLink="false">http://www.a-magic-web.com/os/linux/hash_md5_sha1/</guid>
		<description><![CDATA[Linux をさわり初めてから、ハッシュ、MD5、SHA-1、などの言葉をよく目にするようになりました。なんのことだかさっぱりだったので、調べてみました。 ハッシュって何？ たとえば、ある場所から違う場所にデータを転送する際、転送中にデータの改ざんが行われていないかを確認したいとする。こんな時に使われるのが、”ハッシュ”。この前、CentOS をダウンロードした際に使ったMD5 や SHA-1 もハッシュの一つ。 別名要約関数 ハッシュは別名「要約関数」と呼ばれ、テキストデータなどの文字列を特定の長さの整数に短く変換する。ここで生成されるのが、ハッシュ値。同じデータからは、同じハッシュ値が生成されるので、ハッシュ値同士を比べれば、元のデータに変更が加えられていないか知ることができる、という仕組み。 復元できないから安全 生成されたハッシュ値から、元の文字列を復元することは不可能。だから、ハッシュ値が同じ改ざんデータを作ってやれ、と思ってもそれはできないことになる。 ハッシュの限界 別の文字列が同じハッシュ値を生成することはありうるとのこと。でも、似通ったデータが同じハッシュ値を生成しないように対策は取られているらしい。 MD5 と SHA-1 は？ ハッシュの種類。生成するハッシュ値の文字列の長さが違う。 MD5 Message Digest 5 の略。Digest は、「ダイジェスト」まさに「要約」の意味ですね。元の文字列がどんな長さであっても、128ビット（16バイト）の文字列を生成する。 SHA-1 Secure Hash Algorithm-1。元の文字列がどんな長さであっても、160ビット（20バイト）を生成する。この前、CentOS の iso をダウンロードしたときにはこちらのSHA-1 でデータの整合性確認をしました。 生成されるハッシュ値のビット長がこちらのほうが長いので、幾分こちらのほうが安全性、信頼性が高いようです。 MD5 や SHA-1 のぜい弱性も ネットで調べると、MD5 や SHA-1 にもかなりぜい弱性があるようです。今回は何なのか知ることが目的だったのでこの辺で。これからは、MD5 や SHA-1 にかわるような技術も開発されるのでしょうか。 参考にしたサイトです。 IT Pro : hashとは http://itpro.nikkeibp.co.jp/article/Keyword/20070706/276987/ IT用語辞典 e-words : ハッシュ法 [...]]]></description>
			<content:encoded><![CDATA[<p>Linux をさわり初めてから、ハッシュ、MD5、SHA-1、などの言葉をよく目にするようになりました。なんのことだかさっぱりだったので、調べてみました。</p>
<h3>ハッシュって何？</h3>
<p>たとえば、ある場所から違う場所にデータを転送する際、転送中にデータの改ざんが行われていないかを確認したいとする。こんな時に使われるのが、”ハッシュ”。この前、CentOS をダウンロードした際に使ったMD5 や SHA-1 もハッシュの一つ。</p>
<h4>別名要約関数</h4>
<p>ハッシュは別名「要約関数」と呼ばれ、テキストデータなどの文字列を特定の長さの整数に短く変換する。ここで生成されるのが、ハッシュ値。同じデータからは、同じハッシュ値が生成されるので、ハッシュ値同士を比べれば、元のデータに変更が加えられていないか知ることができる、という仕組み。</p>
<p><a href="http://www.a-magic-web.com/wp-content/uploads/2009/04/hash-20090426.jpg"><img style="display: inline; border: 0px;" title="hash_20090426" src="http://www.a-magic-web.com/wp-content/uploads/2009/04/hash-20090426-thumb.jpg" border="0" alt="hash_20090426" width="455" height="195" /></a></p>
<h4>復元できないから安全</h4>
<p>生成されたハッシュ値から、元の文字列を復元することは不可能。だから、ハッシュ値が同じ改ざんデータを作ってやれ、と思ってもそれはできないことになる。</p>
<h4>ハッシュの限界</h4>
<p>別の文字列が同じハッシュ値を生成することはありうるとのこと。でも、似通ったデータが同じハッシュ値を生成しないように対策は取られているらしい。</p>
<h3>MD5 と SHA-1 は？</h3>
<p>ハッシュの種類。生成するハッシュ値の文字列の長さが違う。</p>
<h4>MD5</h4>
<p>Message Digest 5 の略。Digest は、「ダイジェスト」まさに「要約」の意味ですね。元の文字列がどんな長さであっても、128ビット（16バイト）の文字列を生成する。</p>
<h4>SHA-1</h4>
<p>Secure Hash Algorithm-1。元の文字列がどんな長さであっても、160ビット（20バイト）を生成する。この前、CentOS の iso をダウンロードしたときにはこちらのSHA-1 でデータの整合性確認をしました。</p>
<p>生成されるハッシュ値のビット長がこちらのほうが長いので、幾分こちらのほうが安全性、信頼性が高いようです。</p>
<h4>MD5 や SHA-1 のぜい弱性も</h4>
<p>ネットで調べると、MD5 や SHA-1 にもかなりぜい弱性があるようです。今回は何なのか知ることが目的だったのでこの辺で。これからは、MD5 や SHA-1 にかわるような技術も開発されるのでしょうか。</p>
<hr />参考にしたサイトです。</p>
<p>IT Pro : hashとは<br />
<a href="http://itpro.nikkeibp.co.jp/article/Keyword/20070706/276987/">http://itpro.nikkeibp.co.jp/article/Keyword/20070706/276987/</a></p>
<p>IT用語辞典 e-words : ハッシュ法<br />
<a href="http://e-words.jp/w/E3838FE38383E382B7E383A5E6B395.html">http://e-words.jp/w/E3838FE38383E382B7E383A5E6B395.html</a></p>
<p>IT用語辞典 e-words : MD5<br />
<a href="http://e-words.jp/w/MD5.html">http://e-words.jp/w/MD5.html</a></p>
<p>IT用語辞典 e-words : SHA-1<br />
<a href="http://e-words.jp/w/SHA-1.html">http://e-words.jp/w/SHA-1.html</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.a-magic-web.com/server_linux/linux/basics/hash_md5_sha1.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>パスを指定しないで実行できるコマンド</title>
		<link>http://www.a-magic-web.com/server_linux/linux/basics/commands_needless_pass.html</link>
		<comments>http://www.a-magic-web.com/server_linux/linux/basics/commands_needless_pass.html#comments</comments>
		<pubDate>Fri, 17 Apr 2009 07:20:34 +0000</pubDate>
		<dc:creator>vohedge</dc:creator>
				<category><![CDATA[基礎]]></category>

		<guid isPermaLink="false">http://www.a-magic-web.com/?p=106</guid>
		<description><![CDATA[よく使う ifconfig や su など、パスを指定しないことが当たり前と思っていましたが、こんな仕組みになっていたんですね。 実行ファイルやスクリプトを実行する時には，パスを指定する必要があります。絶対パス（/を起点とした位置）あるいは，カレント・ディレクトリからの相対パスで指定できます。例えば，ifconfigというコマンドは，/sbinディレクトリにあるため，「/sbin/ifconfig」と指定します。 ただ，/binや/usr/binディレクトリなどに配置されているファイルは，このようにパスを指定しなくても実行できます。これはパスが指定されていないコマンドを自動的に検索する機能によって実現されています。検索対象となるディレクトリは，環境変数PATHで指定されています。複数のディレクトリを指定する場合は「:」で区切ります。 http://itpro.nikkeibp.co.jp/article/COLUMN/20061031/252268/]]></description>
			<content:encoded><![CDATA[<p>よく使う ifconfig や su など、パスを指定しないことが当たり前と思っていましたが、こんな仕組みになっていたんですね。</p>
<blockquote><p>
実行ファイルやスクリプトを実行する時には，パスを指定する必要があります。絶対パス（/を起点とした位置）あるいは，カレント・ディレクトリからの相対パスで指定できます。例えば，ifconfigというコマンドは，/sbinディレクトリにあるため，「/sbin/ifconfig」と指定します。</p>
<p>ただ，/binや/usr/binディレクトリなどに配置されているファイルは，このようにパスを指定しなくても実行できます。これはパスが指定されていないコマンドを自動的に検索する機能によって実現されています。検索対象となるディレクトリは，環境変数PATHで指定されています。複数のディレクトリを指定する場合は「:」で区切ります。<br />
<a href="http://itpro.nikkeibp.co.jp/article/COLUMN/20061031/252268/">http://itpro.nikkeibp.co.jp/article/COLUMN/20061031/252268/</a>
</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://www.a-magic-web.com/server_linux/linux/basics/commands_needless_pass.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
