<?xml version="1.0" encoding="UTF-8" ?><rdf:RDF 
  xmlns="http://purl.org/rss/1.0/"
  xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
  xmlns:atom="http://www.w3.org/2005/Atom"
  xmlns:dc="http://purl.org/dc/elements/1.1/"
  xml:lang="ja">
  <channel rdf:about="http://w.atwiki.jp/tokujiro/">
    <title>CentOS Wiki</title>
    <link>http://w.atwiki.jp/tokujiro/</link>
    <atom:link href="https://w.atwiki.jp/tokujiro/rss10.xml" rel="self" type="application/rss+xml" />
    <atom:link rel="hub" href="https://pubsubhubbub.appspot.com" />
    <description>CentOS Wiki</description>

    <dc:language>ja</dc:language>
    <dc:date>2012-08-14T22:23:19+09:00</dc:date>
    <utime>1344950599</utime>

    <items>
      <rdf:Seq>
                <rdf:li rdf:resource="https://w.atwiki.jp/tokujiro/pages/41.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/tokujiro/pages/2.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/tokujiro/pages/40.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/tokujiro/pages/24.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/tokujiro/pages/35.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/tokujiro/pages/39.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/tokujiro/pages/21.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/tokujiro/pages/38.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/tokujiro/pages/28.html" />
                <rdf:li rdf:resource="https://w.atwiki.jp/tokujiro/pages/20.html" />
              </rdf:Seq>
    </items>
	
		
    
  </channel>
    <item rdf:about="https://w.atwiki.jp/tokujiro/pages/41.html">
    <title>Android 開発環境構築</title>
    <link>https://w.atwiki.jp/tokujiro/pages/41.html</link>
    <description>
          </description>
    <dc:date>2012-08-14T22:23:19+09:00</dc:date>
    <utime>1344950599</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/tokujiro/pages/2.html">
    <title>メニュー</title>
    <link>https://w.atwiki.jp/tokujiro/pages/2.html</link>
    <description>
          </description>
    <dc:date>2012-08-13T23:02:11+09:00</dc:date>
    <utime>1344866531</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/tokujiro/pages/40.html">
    <title>EGit設定</title>
    <link>https://w.atwiki.jp/tokujiro/pages/40.html</link>
    <description>
      Eclipse上で新規プロジェクトを作成しておきます。

ローカル上にリポジトリを新規作成
 プロジェクトを右クリック→チーム→プロジェクトの共用→リポジトリー・タイプ「Git」→次へ
 リポジトリー→作成
 親ディレクトリー「x:\git\repos」
 名前「sample-porject」
 →完了
 →完了

コミット
 パッケージエクスプローラから管理対象を右クリック→チーム→追加
 パッケージエクスプローラから管理対象を右クリック→チーム→コミット

(clientから)新規リポジトリ(samples-project)の追加
 $ cd /git/repos/gitolite-admin/conf
 $ vi gitolite.conf
 ---- 編集前 ----
 repo gitolite-admin
      RW+ = test-user
 repo testing
      RW+ = @all
 ---- 編集後 ----
 @developer = dev1 dev2
 @tester = tester1 tester2
 @admin = test-user
 repo gitolite-admin
      RW+ = @admin
 repo testing
      R   = @all
      RW+ = @admin
 repo samples-project
      R   = @tester
      RW  = @developer
      RW+ = @admin
 ---- ここまで ----
 $ git add -A
 $ git commit
 $ git push origin master
 (サーバへの変更通知時にサーバ側でsamples-projectが初期化される)
 remote: creating samples-project...
 remote: Initialized empty Git repository in ...


サーバに通知
 パッケージエクスプローラからプロジェクトを右クリック→チーム→リモート→プッシュ
 URI ssh://gitolite@xx.xx.xx.xx/var/lib/gitolite/repositories/samples-project.git
 ホスト xx.xx.xx.xx
 リポジトリーパス /var/lib/gitolite/repositories/samples-project.git
 プロトコル ssh
 ユーザー gitolite
 →次へ
 Add all branches spec
 →完了    </description>
    <dc:date>2012-08-13T22:21:18+09:00</dc:date>
    <utime>1344864078</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/tokujiro/pages/24.html">
    <title>svn設定</title>
    <link>https://w.atwiki.jp/tokujiro/pages/24.html</link>
    <description>
          </description>
    <dc:date>2012-08-13T20:45:56+09:00</dc:date>
    <utime>1344858356</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/tokujiro/pages/35.html">
    <title>基本ツールインストール</title>
    <link>https://w.atwiki.jp/tokujiro/pages/35.html</link>
    <description>
      基本ツールの最新バージョンを確認。
 # yum --enablerepo=rpmforge,rpmforge-extras,epel,remi,elrepo,elrepo-extras info make

基本ツールをインストールします。
 # yum -y install make
 # yum -y install gcc
 # yum -y install wget
 # yum -y install iptstate    </description>
    <dc:date>2012-08-13T20:22:48+09:00</dc:date>
    <utime>1344856968</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/tokujiro/pages/39.html">
    <title>Gitインストール</title>
    <link>https://w.atwiki.jp/tokujiro/pages/39.html</link>
    <description>
      WindowsGitClientダウンロード
 http://code.google.com/p/msysgit/downloads/list
 Git-1.7.11-preview20120710.exe

WindowsGitClientをインストールします。
 [実行][はい][Next][Next][Next][Next][Next]
 (Use Git Bash only)[Next]
 (Checkout Windows-style, commit Unix-style line endings)[Next]
 [Finish]

WindowsGitClientを実行します。
 「Git Bash」アイコンのプロパティを開き作業フォルダーをD:\に変更
 「Git Bash」アイコンをダブルクリック

ClientのGit設定を実施します。
 $ git config --global user.name &quot;xxxx xxxx&quot;
 $ git config --global user.email &quot;xxxx@xxxx.xxx&quot;
 （ホームディレクトリ(C:/Users/xxx)に.gitconfigが作成される） 

Clientで公開鍵/秘密鍵を作成します。
 $ ssh-keygen -t rsa -C &quot;xxxxxx@gmail.com&quot;
 Enter file in which to save the key (//.ssh/id_rsa): /c/Users/xxxx/.ssh/test-user
 Enter passphrase (empty for no passphrase): （何も入力せず［Enter］キーを押す）
 Enter same passphrase again:（何も入力せず［Enter］キーを押す）
 （ホームディレクトリ(C:/Users/xxx/.ssh/)に公開鍵/秘密鍵ファイルが作成される）
 test-user     ... 秘密鍵
 test-user.pub ... 公開鍵

サーバ接続情報を作成します。
 C:\Users\xxxxxx\.ssh\config を新規作成
 ---- 中身 ----
 host server01
  user gitolite
  hostname server01(またはIP)
  port 22
  identifyfile C:\Users\xxxxxx\.ssh\test-user

CentOSにてどのリポジトリに最新のgitパッケージが含まれているか確認します。
 # yum --enablerepo=rpmforge,rpmforge-extras,epel,remi,elrepo,elrepo-extras info git
 (Version     : 1.7.11.1)
 (Repo        : rpmforge-extras)

CentOSにGitをインストールします。
 # yum --enablerepo=rpmforge-extras -y install git
 # yum --enablerepo=epel -y install gitolite

gitoliteユーザーでログイン
 # su - gitolite
 $ pwd
 /var/lib/gitolite

.bashrcを編集(不要？)
 $ vi .bashrc
 ---- 中身 ----
 export PATH=&quot;$HOME/bin:$HOME/gitolite/bin:/usr/local/bin:/usr/bin:/bin&quot;

perlが起動できることを確認(起動できない場合再インストールする)
 $ perl --version

WindowsClientの公開鍵をgitoliteへ登録します。
（gitoliteは公開鍵ファイル名をユーザー名とみなす）
 $ su -
 # mv id_dsa.pub /tmp/test-user.pub
 # chmod a+r /tmp/test-user.pub
 # chown gitolite:gitolite test-user.pub
 # su -l gitolite
 $ gl-setup /tmp/test-user.pub
 create mode 100644 conf/gitolite.conf
 create mode 100644 keydir/test-user.pub
 $ exit
 # rm -rf /tmp/test-user.pub

gitoliteユーザーのsshログイン許可
 # vi /etc/ssh/sshd_config
 AllowUsers xxx yyy gitolite

サーバ上の管理リポジトリをWindowsClientへクローン
 $ cd /git/repos
 $ git clone ssh://server01/gitolite-admin

clientでユーザーを追加登録
 $ cd gitolite-admin/keydir
 $ copy {公開鍵を作成したパス}/{追加ユーザー}.pub . 
 $ git add {追加ユーザー}
 $ git commit -m &quot;追加ユーザーの公開鍵を追加&quot;
 $ git push

サーバ上のテストリポジトリをWindowsClientへクローン
 $ cd /git/repos
 $ git clone ssh://server01/testing

clientでファイルcommit
 $ cd /git/repos/testing
 $ touch sample.txt
 $ git add -A
 $ git commit

clientリポジトリからサーバリポジトリへ変更を通知
 $ git push origin master

clientでステータス確認
 $ git status

clientでアクセスできるリポジトリ一覧を表示
 $ ssh server01
 the gitolite config gives you the following access:
      R   W      gitolite-admin
     @R_ @W_     testing

(clientから)新規リポジトリ(repo01)の追加
 $ cd /git/repos/gitolite-admin/conf
 $ vi gitolite.conf
 ---- 編集前 ----
 repo gitolite-admin
      RW+ = test-user
 repo testing
      RW+ = @all
 ---- 編集後 ----
 @developer = dev1 dev2
 @tester = tester1 tester2
 @admin = test-user
 repo gitolite-admin
      RW+ = @admin
 repo testing
      R   = @all
      RW+ = @admin
 repo repo01
      R   = @tester
      RW  = @developer
      RW+ = @admin
 ---- ここまで ----
 $ git add -A
 $ git commit
 $ git push origin master
 (サーバへの変更通知時にサーバ側でrepo01が初期化される)
 remote: creating repo01...
 remote: Initialized empty Git repository in ...

新規作成されたリポジトリをclientへクローン
 $ cd git/repos
 $ git clone ssh://server01/repo01    </description>
    <dc:date>2012-08-09T13:20:06+09:00</dc:date>
    <utime>1344486006</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/tokujiro/pages/21.html">
    <title>yum設定</title>
    <link>https://w.atwiki.jp/tokujiro/pages/21.html</link>
    <description>
          </description>
    <dc:date>2012-08-07T23:45:46+09:00</dc:date>
    <utime>1344350746</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/tokujiro/pages/38.html">
    <title>SELinux</title>
    <link>https://w.atwiki.jp/tokujiro/pages/38.html</link>
    <description>
          </description>
    <dc:date>2012-08-05T21:00:37+09:00</dc:date>
    <utime>1344168037</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/tokujiro/pages/28.html">
    <title>HTTP設定</title>
    <link>https://w.atwiki.jp/tokujiro/pages/28.html</link>
    <description>
          </description>
    <dc:date>2012-08-04T23:53:06+09:00</dc:date>
    <utime>1344091986</utime>
  </item>
    <item rdf:about="https://w.atwiki.jp/tokujiro/pages/20.html">
    <title>CentOS初期設定</title>
    <link>https://w.atwiki.jp/tokujiro/pages/20.html</link>
    <description>
          </description>
    <dc:date>2012-08-04T23:35:48+09:00</dc:date>
    <utime>1344090948</utime>
  </item>
  </rdf:RDF>
