ubuntu 檢視 package 安裝資訊
dpkg-query -L package_name
堆積各式雜物
cd /var/www/mkdir gitolite-homeexport GITOLITE_HTTP_HOME=/var/www/gitolite-homePATH=$PATH:$GITOLITE_HTTP_HOME/bincd gitolite-home/git clone git://github.com/sitaramc/gitolite gitolite-sourcecd gitolite-source/GHH=$GITOLITE_HTTP_HOMEmkdir -p $GHH/bin $GHH/share/gitolite/conf $GHH/share/gitolite/hookssrc/gl-system-install $GHH/bin $GHH/share/gitolite/conf $GHH/share/gitolite/hooksvim /var/www/gitolite-home/share/gitolite/conf/example.gitolite.rcgl-setup ADMIN的LDAP帳號
<LocationMatch "/git">AuthType BasicAuthName "Git"Require valid-userAuthBasicProvider ldapAuthzLDAPAuthoritative offAuthLDAPURL "ldap://server:389/dc=company,dc=local?sAMAccountName?sub?(objectclass=*)" NONEAuthLDAPBindDN "cn=user,ou=team,ou=department,dc=company,dc=local"AuthLDAPBindPassword secret</LocationMatch>