<?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/"
		xmlns:xhtml="http://www.w3.org/1999/xhtml"
>

<channel>
	<title>ITめもりーにょ &#187; バージョン管理</title>
	<atom:link href="http://itblog.posifeel.com/archives/category/software/version/feed" rel="self" type="application/rss+xml" />
	<link>http://itblog.posifeel.com</link>
	<description>プログラミングの技術メモなど、備考録として使用しています。</description>
	<lastBuildDate>Mon, 06 Sep 2010 03:45:21 +0000</lastBuildDate>
	<language>ja</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://itblog.posifeel.com/archives/category/software/version/feed" />
		<item>
		<title>さくらインターネットでCVSを利用する</title>
		<link>http://itblog.posifeel.com/archives/36.html</link>
		<comments>http://itblog.posifeel.com/archives/36.html#comments</comments>
		<pubDate>Thu, 02 Jul 2009 13:20:48 +0000</pubDate>
		<dc:creator>ましぇたん</dc:creator>
				<category><![CDATA[バージョン管理]]></category>
		<category><![CDATA[CVS]]></category>
		<category><![CDATA[さくらインターネット]]></category>

		<guid isPermaLink="false">http://posifeel.sakura.ne.jp/itblog_test/archives/36.html</guid>
		<description><![CDATA[				
				レンタルスペース（さくらインターネット）でCVSリポジトリを作成してみようと思い立った。
				筆者は基本的に、WEBサイトの開発環境はローカル（windows xp + eclipse）で行っている [...]]]></description>
			<content:encoded><![CDATA[				<p>
				レンタルスペース（さくらインターネット）でCVSリポジトリを作成してみようと思い立った。<br />
				筆者は基本的に、WEBサイトの開発環境はローカル（windows xp + eclipse）で行っている。<br />
				普段は外付けHDDにvmwareの仮想OS(CentOS)を入れていて、そこでsubversionを利用してバージョン管理している。<br />
				vmwareはさすがに動作が重いので、普段はvmware関連のサービスは切っておいて、必要に迫られた時以外は起動しない。<br />
				それ故、いちいち起動したり停止したり面倒なのだ。<br />
				調べたところ、どうやらさくらインターネットではcvsが利用可能とのことなので早速試してみた。<br />
				■前提<br />
				　１）RSA暗号とは、桁数が大きい合成数の素因数分解問題が困難であることを安全性の根拠とした公開鍵暗号の一つである<br />
				　２）公開鍵暗号とは、暗号化と復号に別個の鍵（手順）を使い、暗号化の為の鍵を公開できるようにした暗号方式である。<br />
				　３）鍵生成アルゴリズムは事前準備にあたるアルゴリズムで、（将来暗号文を受け取りたいと思う）全てのユーザは事前に鍵生成アルゴリズムを実行しておく必要がある。ユーザが鍵生成アルゴリズムを実行すると、アルゴリズムはそのユーザの公開鍵および秘密鍵（と呼ばれるデータ）を出力する。<br />
				　４）公開鍵は暗号文を作成するのに使い、秘密鍵はその暗号文からメッセージを復元するのに使う。<br />
				　５）ユーザは鍵生成アルゴリズムを実行する際、セキュリティ・パラメータ（パスフレーズ）という値をこのアルゴリズムに入力する。セキュリティ・パラメータ（パスフレーズ）は、秘密鍵なしで暗号文の解読がどれだけ困難かの尺度である。さらに鍵生成アルゴリズムには乱数も入力される。<br />
				　６）鍵生成アルゴリズムは実行ごとに異なる乱数を選ぶので、ユーザ毎に異なる公開鍵・秘密鍵ペアが割りふられる。各ユーザは秘密鍵を秘密裏に保管し、公開鍵を皆に公開する。よってユーザの秘密鍵を知っているのはそのユーザ自身だけであるが、それに対しユーザの公開鍵を知っているのは全てのユーザである。公開鍵、秘密鍵をそれぞれ暗号化鍵、復号鍵ともいう。<br />
				&#8211; 以上、wikipediaより引用<br />
				１．サーバにログイン<br />
				２．$HOMEでcvsrootディレクトリを作成<br />
				$ mkdir cvsroot<br />
				３．リポジトリの作成<br />
				cvs -d $HOME/cvsroot init<br />
				４．鍵の生成（eclipse編）<br />
				　eclipseのバージョン：<br />
				　１）ウィンドウ＞設定＞一般＞ネットワーク接続>SSH2を選択<br />
				　２）「鍵管理タブ」を選択し、「RSA鍵の生成」を押下<br />
				　３）「パスフレーズ」及び「パスフレーズの確認」に任意の値を設定する<br />
				　４）「秘密鍵の保管」ボタンを押下<br />
				　　　保管場所は「一般」タブの「SSH2ホーム」に設定されているディレクトリになる。<br />
				　５）「OK」を押下<br />
				５．サーバ側の設定<br />
				　１）$HOMEに.sshディレクトリを作成<br />
				　　　$ mkdir .ssh<br />
				　２）４で作成した公開鍵（id_rsa.pub）を１）で作成した.sshディレクトリにアップロード<br />
				　３）公開鍵の名前変更<br />
				　　　$ cd $HOME/.ssh<br />
				　　　$ mv id_rsa.pub authorized_keys<br />
				６．再びeclipseの設定<br />
				　１）ウィンドウ＞パースペクティブを開く＞その他でCVSリポジトリー・エクスプローラーを選択<br />
				　２）現れたCVSリポジトリービュー内で右クリック＞新規＞リポジトリ・ロケーションを選択<br />
				　３）必要事項の記入<br />
				　　　ホスト：ホスト名またはIP<br />
				　　　リポジトリー・パス：３で作成したリポジトリパス（今回のケースは「/home/[アカウント名]/cvsroot」）<br />
				　　　ユーザ：レンタルサーバのアカウント名<br />
				　　　パスワード：レンタルサーバのパスワード<br />
				　　　接続タイプ：extssh<br />
				んで試しにeclipse上の既存プロジェクトをチェックインしてみる。<br />
				ちゃんとでけた。<br />
				<br />
				<span id="more-36"></span><br />
				う〜ん。<br />
				$HOME/cvsroot/CVSROOT/passwdにユーザを追加したんだけど、クライアントマシンから繋がらない・・・。<br />
				サーバの正規ユーザ名だったら繋げられるんだけど、passwdに追加したCVSオリジナルユーザではだめ。<br />
				（￣〜￣；）　ウーン<br />
				まぁ個人用途だからすぐに複数ユーザが必要って訳じゃないんだけど、なんかモヤモヤ感が消えないなぁ。<br />
				結構ググってみたけど解が見あたらない。<br />
				まぁ・・・<br />
				業務でCSVサーバ管理を命じられたらその時にまたはまるか。<br />
				前にサーバ管理してた時は、内部接続しか許してなかったからpserver接続だったんだよね。<br />
				んでpserverだったらpasswdの追加だけでいけたと思ったんだけど・・・。<br />
				pserverとsshでCSVのユーザの扱いが違うのかな？<br />
				よくわからん。</p>
]]></content:encoded>
			<wfw:commentRss>http://itblog.posifeel.com/archives/36.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://itblog.posifeel.com/archives/36.html" />
	</item>
		<item>
		<title>eclipseからSubversionのリポジトリに接続（subclipse）</title>
		<link>http://itblog.posifeel.com/archives/20.html</link>
		<comments>http://itblog.posifeel.com/archives/20.html#comments</comments>
		<pubDate>Thu, 25 Jun 2009 04:34:39 +0000</pubDate>
		<dc:creator>ましぇたん</dc:creator>
				<category><![CDATA[バージョン管理]]></category>
		<category><![CDATA[Eclipse]]></category>
		<category><![CDATA[Linux／FreeBSD]]></category>
		<category><![CDATA[Subversion]]></category>
		<category><![CDATA[Windows]]></category>

		<guid isPermaLink="false">http://posifeel.sakura.ne.jp/itblog_test/archives/20.html</guid>
		<description><![CDATA[				
				LinuxへのSubversionのインストールが終了したので、クライアント（Windows eclipse）からsvn接続してみる。
				【サーバ(Subversion)環境】
				バージョン [...]]]></description>
			<content:encoded><![CDATA[				<p>
				LinuxへのSubversionのインストールが終了したので、クライアント（Windows eclipse）からsvn接続してみる。<br />
				【サーバ(Subversion)環境】<br />
				バージョン：1.6.2<br />
				リポジトリルート：/home/svn<br />
				テストリポジトリ：/home/svn/test<br />
				【クライアント(Eclipse)環境】<br />
				バージョン：3.4.2<br />
				■subclipseのインストール<br />
				　ヘルプ＞ソフトウェア更新＞使用可能なソフトウェア　に以下のサイトを追加。<br />
				　　http://subclipse.tigris.org/update_1.6.x<br />
				■リポジトリ・ロケーションの作成<br />
				　　　svn://xxx.xxx.xxx.xxx(サーバのIP)/test<br />
				エラーが出た。<br />
				　Unsupported FS format<br />
				　svn: Expected FS format &#8217;2&#8242;; found format &#8217;4&#8242;<br />
				ちょっと調べたけどよく分からん。<br />
				FS(ファイルシステム？）のバージョンが違うって感じのエラーかな・・・。<br />
				サーバ側でリポジトリを作成する時に以下のようにしたところ繋がった。<br />
				svnadmin create /home/svn/test <span style="color:#FF0000;">&#8211;pre-1.5-compatible</span><br />
				※）たぶんデフォルトだと&#8211;pre-1.6-compatibleだと思う<br />
				subclipseが1.6.2に対応していないのかな・・・。<br />
				でも一応1.6.xのサイトからダウンロードしてるのになぁ・・・。<br />
				まぁ仕方ないから1.5のフォーマットで良いことにしよう。<br />
				どうせ仕事で自分がSubversionサーバの管理者になることは無いだろうし。<br />
				気楽にいこーっと。</p>
]]></content:encoded>
			<wfw:commentRss>http://itblog.posifeel.com/archives/20.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://itblog.posifeel.com/archives/20.html" />
	</item>
		<item>
		<title>linuxへのSubversionのインストール</title>
		<link>http://itblog.posifeel.com/archives/19.html</link>
		<comments>http://itblog.posifeel.com/archives/19.html#comments</comments>
		<pubDate>Thu, 25 Jun 2009 04:31:27 +0000</pubDate>
		<dc:creator>ましぇたん</dc:creator>
				<category><![CDATA[バージョン管理]]></category>
		<category><![CDATA[Linux／FreeBSD]]></category>
		<category><![CDATA[Subversion]]></category>

		<guid isPermaLink="false">http://posifeel.sakura.ne.jp/itblog_test/archives/19.html</guid>
		<description><![CDATA[subversionのインストール # wget http://subversion.tigris.org/downloads/subversion-1.6.2.tar.gz # tar zxvf subversion-1.6.2.tar.gz # cd subversion-1.6.2 # ./configure &#8211;with-apr=/usr/local/apache2 &#8211;with-apr-util=/usr/local/apache2 &#8211;with-apxs=/usr/local/apache2/bin/apxs &#8211;with-ssl ここでエラー発生 &#8211;ここから configure: Configuring Subversion 1.6.2 configure: creating config.nice checking for gcc&#8230; gcc checking for C compiler default output file name&#8230; a.out checking whether the C compiler works&#8230; yes checking whether we are cross compiling&#8230; no checking for [...]]]></description>
			<content:encoded><![CDATA[				<p>
				subversionのインストール<br />
				# wget http://subversion.tigris.org/downloads/subversion-1.6.2.tar.gz<br />
				# tar zxvf subversion-1.6.2.tar.gz<br />
				# cd subversion-1.6.2<br />
				# ./configure &#8211;with-apr=/usr/local/apache2 &#8211;with-apr-util=/usr/local/apache2 &#8211;with-apxs=/usr/local/apache2/bin/apxs &#8211;with-ssl<br />
				ここでエラー発生<br />
				&#8211;ここから<br />
				configure: Configuring Subversion 1.6.2<br />
				configure: creating config.nice<br />
				checking for gcc&#8230; gcc<br />
				checking for C compiler default output file name&#8230; a.out<br />
				checking whether the C compiler works&#8230; yes<br />
				checking whether we are cross compiling&#8230; no<br />
				checking for suffix of executables&#8230;<br />
				checking for suffix of object files&#8230; o<br />
				checking whether we are using the GNU C compiler&#8230; yes<br />
				checking whether gcc accepts -g&#8230; yes<br />
				checking for gcc option to accept ISO C89&#8230; none needed<br />
				checking for g++&#8230; g++<br />
				checking whether we are using the GNU C++ compiler&#8230; yes<br />
				checking whether g++ accepts -g&#8230; yes<br />
				checking how to run the C preprocessor&#8230; gcc -E<br />
				checking build system type&#8230; i686-pc-linux-gnu<br />
				checking host system type&#8230; i686-pc-linux-gnu<br />
				checking target system type&#8230; i686-pc-linux-gnu<br />
				checking for grep that handles long lines and -e&#8230; /bin/grep<br />
				checking for egrep&#8230; /bin/grep -E<br />
				checking whether ln -s works&#8230; yes<br />
				checking for a BSD-compatible install&#8230; /usr/bin/install -c<br />
				configure: Apache Portable Runtime (APR) library configuration<br />
				checking for APR&#8230; yes<br />
				checking APR version&#8230; 1.3.3<br />
				configure: Apache Portable Runtime Utility (APRUTIL) library configuration<br />
				checking for APR-util&#8230; yes<br />
				checking APR-UTIL version&#8230; 1.3.4<br />
				checking for pkg-config&#8230; /usr/bin/pkg-config<br />
				configure: checking neon library<br />
				checking for neon-config&#8230; no<br />
				An appropriate version of neon could not be found, so libsvn_ra_neon<br />
				will not be built. If you want to build libsvn_ra_neon, please either<br />
				install neon 0.28.4 on this system<br />
				or<br />
				get neon 0.28.4 from:<br />
				<br />
				http://www.webdav.org/neon/neon-0.28.4.tar.gz<br />
				<br />
				unpack the archive using tar/gunzip and rename the resulting<br />
				directory from ./neon-0.28.4/ to ./neon/<br />
				no suitable neon found<br />
				checking for ANSI C header files&#8230; yes<br />
				checking for sys/types.h&#8230; yes<br />
				checking for sys/stat.h&#8230; yes<br />
				checking for stdlib.h&#8230; yes<br />
				checking for string.h&#8230; yes<br />
				checking for memory.h&#8230; yes<br />
				checking for strings.h&#8230; yes<br />
				checking for inttypes.h&#8230; yes<br />
				checking for stdint.h&#8230; yes<br />
				checking for unistd.h&#8230; yes<br />
				configure: looking for apr_memcache as part of apr-util<br />
				checking apr_memcache.h usability&#8230; yes<br />
				checking apr_memcache.h presence&#8230; yes<br />
				checking for apr_memcache.h&#8230; yes<br />
				checking for apr_memcache_create in -laprutil-1&#8230; yes<br />
				checking for Apache module support via DSO through APXS&#8230; found at /usr/local/apache2/bin/apxs<br />
				checking httpd version&#8230; recent enough<br />
				checking whether Apache version is compatible with APR version&#8230; yes<br />
				configure: checking sqlite library<br />
				amalgamation not found at /usr/local/src/subversion-1.6.2/sqlite-amalgamation/sqlite3.c<br />
				checking sqlite3.h usability&#8230; yes<br />
				checking sqlite3.h presence&#8230; yes<br />
				checking for sqlite3.h&#8230; yes<br />
				checking sqlite library version (via header)&#8230; unsupported SQLite version<br />
				checking sqlite library version (via pkg-config)&#8230; none or unsupported 3.3<br />
				no<br />
				An appropriate version of sqlite could not be found. We recommmend<br />
				3.6.13, but require at least 3.4.0.<br />
				Please either install a newer sqlite on this system<br />
				or<br />
				get the sqlite 3.6.13 amalgamation from:<br />
				<br />
				http://www.sqlite.org/sqlite-amalgamation-3.6.13.tar.gz<br />
				<br />
				unpack the archive using tar/gunzip and copy sqlite3.c from the<br />
				resulting directory to:<br />
				/usr/local/src/subversion-1.6.2/sqlite-amalgamation/sqlite3.c<br />
				This file also ships as part of the subversion-deps distribution.<br />
				configure: error: Subversion requires SQLite<br />
				&#8211;ここまで<br />
				依存するファイルのダウンロード<br />
				# cd /usr/local/src<br />
				# wget http://subversion.tigris.org/downloads/subversion-deps-1.6.2.tar.gz<br />
				# tar zxvf subversion-deps-1.6.2.tar.gz<br />
				# ./configure &#8211;with-apr=/usr/local/apache2 &#8211;with-apr-util=/usr/local/apache2 &#8211;with-apxs=/usr/local/apache2/bin/apxs &#8211;with-ssl<br />
				★トラックバック：http://ueblog.natural-wave.com/2009/03/30/subversion-install/<br />
				今度は成功。makeする<br />
				# make<br />
				なげぇ・・・<br />
				# make install<br />
				で、インストール終了らしい。<br />
				★設定いろいろ<br />
				１．svnグループ・svnユーザの作成<br />
				２．リポジトリを格納するディレクトリを作成<br />
				/home/svn<br />
				３．xinetdの設定<br />
				　　/etc/xinetd.d/svnserve<br />
				service svnserve<br />
				{<br />
				disable = no<br />
				socket_type = stream<br />
				wait = no<br />
				user = svn<br />
				server = /usr/bin/svnserve<br />
				server_args = -i -r /home/svn<br />
				log_on_failure += USERID<br />
				}<br />
				４．/etc/servicesの編集<br />
				　　svnserve 3690/tcp # Subversion<br />
				　　svnserve 3690/udp # Subversion<br />
				　　※）すでにsvnがある場合は上記に書き換える<br />
				５．サービスに登録<br />
				　　chkconfig &#8211;add svnserve<br />
				６．xinetdの再起動<br />
				　　service xinetd restart<br />
				７．リポジトリの作成<br />
				　　svnadmin create /home/svn/test<br />
				８．svnserve.confの設定<br />
				　　/home/svn/test/conf/svnserve.conf<br />
				anon-access = none # Anonymous(匿名)ユーザ<br />
				auth-access = write # 認証済みユーザ<br />
				password-db = passwd # パスワードファイル名<br />
				９．パスワードの設定<br />
				　　/home/svn/test/conf/passwd<br />
				harry = harryssecret<br />
				　　※）アクセス権を変更しておく<br />
				　　　　chmod 600 passwd<br />
				　　　　chown svn:svn passwd<br />
				１０．ディレクトリの作成<br />
				　　svn mkdir -m &#8216;setup trunk&#8217; file:///home/svn/test/trunk<br />
				　　svn mkdir -m &#8216;setup trunk&#8217; file:///home/svn/test/tags<br />
				　　svn mkdir -m &#8216;setup trunk&#8217; file:///home/svn/test/branches</p>
]]></content:encoded>
			<wfw:commentRss>http://itblog.posifeel.com/archives/19.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://itblog.posifeel.com/archives/19.html" />
	</item>
		<item>
		<title>Subversionをインストールした後のApacheの挙動</title>
		<link>http://itblog.posifeel.com/archives/8.html</link>
		<comments>http://itblog.posifeel.com/archives/8.html#comments</comments>
		<pubDate>Wed, 24 Jun 2009 08:25:00 +0000</pubDate>
		<dc:creator>ましぇたん</dc:creator>
				<category><![CDATA[バージョン管理]]></category>
		<category><![CDATA[Apache]]></category>
		<category><![CDATA[Linux／FreeBSD]]></category>
		<category><![CDATA[Subversion]]></category>

		<guid isPermaLink="false">http://posifeel.sakura.ne.jp/itblog_test/archives/8.html</guid>
		<description><![CDATA[				
				linux(CentOS)にSubversionをインストールした後、Apacheが起動しなくなっていることに気づいた。
				こんなエラーがでる。
				httpd: Syntax error o [...]]]></description>
			<content:encoded><![CDATA[				<p>
				linux(CentOS)にSubversionをインストールした後、Apacheが起動しなくなっていることに気づいた。<br />
				こんなエラーがでる。<br />
				httpd: Syntax error on line 54 of /usr/local/apache2/conf/httpd.conf: Cannot load /usr/local/apache2/modules/mod_dav_svn.so into server: /usr/local/apache2/modules/mod_dav_svn.so: undefined symbol: dav_register_provider<br />
				そういやSubversionってhttpでやり取りできるんだっけ。<br />
				取りあえずWEBベースでバージョン管理を行う気はないので、httpd.confから該当箇所をコメントアウトすることで対処することにした。<br />
				#LoadModule dav_svn_module modules/mod_dav_svn.so<br />
				#LoadModule authz_svn_module modules/mod_authz_svn.so<br />
				SubversionとApacheの連携を保持したままこの問題を解決する為には、以下のサイトを見ると良いかも。<br />
				といっても詳しく読んでないのでこれで直るかは未検証。<br />
				<br />
				http://www.battlefield.jp/modules/xeblog/?action_xeblog_details=1&#038;blog_id=14</p>
]]></content:encoded>
			<wfw:commentRss>http://itblog.posifeel.com/archives/8.html/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
	<xhtml:link rel="alternate" media="handheld" type="text/html" href="http://itblog.posifeel.com/archives/8.html" />
	</item>
	</channel>
</rss>
