Hosting Your Own Git Repository on fedora 12

This tutorial will covering common feature in git repository

  • commiting via ssh
  • Enable gitweb for web access
  • cloning anonymously using the Git protocol

Install git, git-daemon

# yum -y install git git-daemon gitweb

Create a git user/group

# useradd -U -d /var/cache/git -s /usr/libexec/git-core/git-shell git

Make sure the permissions of the directory are correct

# cd /var/cache
# chown -R git:git git
# chmod 755 git

We’ll be using SSH keys for authenication, so collect the public keys of all the users who need commit access. Then, put the public keys into the right place

# cd /var/cache/git
# mkdir .ssh
# chmod 700 .ssh
# touch .ssh/authorized_keys
# chmod 600 .ssh/authorized_keys
(Put the public keys into authorized_keys, one per line)
# chown -R git:git .ssh/

Compile Postfix 2.7.0 from simon j. mudd git repository

First, we need to clone Simon J. Mudd postfix repository at github

$ git clone git://github.com/sjmudd/postfix-rpm.git

Switch to (also create local) POSTFIX_2_7 branch

$ cd postfix-rpm
$ git checkout --track -b POSTFIX_2_7 origin/POSTFIX_2_7

Copy postfix-rpm, which contain POSTFIX_2_7 branch

$ cd ..
$ cp -rp postfix-rpm postfix-2.7

Create .rpmmacros on your homedir if you don’t have one

$ make setup

postfix 2.8-20100213 postscreen

I've been experimenting with postfix 2.8-20100213 "postscreen" feature on my development server.this feature is very usefull for detecting/dropping misbehavior smtp client. Configuration : main.cf [text] postscreen_greet_action = drop postscreen_dnsbl_sites = zen.spamhaus.org, spam.ipv6.kutukupret.com postscreen_hangup_action = drop postscreen_dnsbl_action = drop [/text] master.cf [text] smtp inet n - n - 1 postscreen smtpd…