Konfiguracja rozproszonego systemu kontroli wersji git

Konfiguracja serwerów, usług, itp.
grum

Konfiguracja rozproszonego systemu kontroli wersji git

Post autor: grum »

Od paru dni użeram się z konfiguracją rozproszonego system kontroli wersji git.
Zainstalowałem na serwerze wiele niepotrzebnych pakietów próbując paru poradników.

Chciałbym stworzyć repozytorium dla 3 użytkowników, tak żeby nie było możliwości przeglądania kodu z internetu, natomiast możliwe były tylko akcje aktualizacji i zatwierdzenie (ang. commit) przez tych 3 użytkowników.

Kod: Zaznacz cały

JOANNA:/home/workspace/git/site.git# ps aux| grep git
root     25388  0.0  0.0    136    24 ?        Ss   17:27   0:00 runsvdir -P /etc/service log: /lock: temporary failure?runsv git-daemon: fatal: unable to lock supervise/lock: temporary failure?runsv git-daemon: fatal: unable to lock supervise/lock: temporary failure?runsv git-daemon: fatal: unable to lock supervise/lock: temporary failure?runsv git-daemon: fatal: unable to lock supervise/lock: temporary failure?runsv git-daemon: fatal: unable to lock supervise/lock: temporary failure?
113      25409  0.0  0.0   8732   712 ?        S    17:27   0:00 /usr/lib/git-core/git-daemon --verbose --base-path=/var/cache /var/cache/git
root     27480  0.0  0.0   7540   856 pts/1    R+   18:00   0:00 grep git
root     30684  0.0  0.0    112    28 ?        Ss   15:31   0:00 runsv git-daemon
gitlog   30793  0.0  0.0    132    48 ?        S    15:31   0:00 svlogd -tt /var/log/git-daemon
Szczytem szczęścia byłoby, aby kod najnowszej wersji od razu trafiał do katalogu, tak żeby serwer www mógł wysyłać pliki html (żeby sprawdzać wynik pracy).

Mam zainstalowane pakiety

Kod: Zaznacz cały

JOANNA:/home/workspace/git/site.git# ls /var/cache/apt/archives/ | grep git
git_1%3a1.7.2.3-2_amd64.deb
git-buildpackage_0.5.10_all.deb
git-cola_1.4.2.1-1_all.deb
git-core_1%3a1.7.2.3-2_all.deb
git-cvs_1%3a1.7.2.3-2_all.deb
git-daemon-run_1%3a1.7.2.3-2_all.deb
git-doc_1%3a1.7.2.3-2_all.deb
git-email_1%3a1.7.2.3-2_all.deb
git-gui_1%3a1.7.2.3-2_all.deb
gitk_1%3a1.7.2.3-2_all.deb
git-load-dirs_1.1.8_all.deb
gitosis_0.2+20090917-10_all.deb
gitpkg_0.15_all.deb
git-svn_1%3a1.7.2.3-2_all.deb
gitweb_1%3a1.7.2.3-2_all.deb
jigit_1.16-2_amd64.deb
python-git_0.1.6-1_all.deb
qgit_2.3-1_amd64.deb
sigit_0.3.2-2_amd64.deb
stgit_0.15-1_all.deb
topgit_0.8-1.1_all.deb

Kod: Zaznacz cały

JOANNA:/home/workspace/git/site.git#  /usr/lib/git-core/git-daemon config 
fatal: unable to allocate any listen sockets on host (null) port 9418
Polecenie:

Kod: Zaznacz cały

 cat /usr/lib/git-core/git-config
daje mi krzaczki.

Usługę próbuje uruchomić poleceniem:

Kod: Zaznacz cały

JOANNA:/home/workspace/git/site.git# git daemon --verbose --base-path=/home/workspace/git --export-all
fatal: unable to allocate any listen sockets on host (null) port 9418 
Jestem fanem Debiana i Ubuntu używam tych dystrybucji od lat, jednak nigdy ich nie konfigurowałem i teraz mam z tym sporo problemów.
python2
Posty: 1
Rejestracja: 04 grudnia 2010, 16:03

Post autor: python2 »

Jestem nowy w temacie, więc pewnie moje pytanie jest oczywiste, gdzie znajduje się plik konfiguracyjny?

Kod: Zaznacz cały

artur@pepe:~$ find /etc/|grep git
find: `/etc/cups/ssl': Permission denied               
find: `/etc/chatscripts': Permission denied               
/etc/gitweb.conf
/etc/apache2/conf.d/gitweb
/etc/service/git-daemon
/etc/emacs/site-start.d/50git-core.el
/etc/sv/git-daemon
/etc/sv/git-daemon/run
/etc/sv/git-daemon/log
/etc/sv/git-daemon/log/run
/etc/sv/git-daemon/log/supervise
/etc/sv/git-daemon/supervise
/etc/ssl/certs/Digital_Signature_Trust_Co._Global_CA_4.pem
/etc/ssl/certs/Digital_Signature_Trust_Co._Global_CA_1.pem
/etc/ssl/certs/Digital_Signature_Trust_Co._Global_CA_2.pem
find: `/etc/ssl/private': Permission denied
/etc/ssl/certs/Digital_Signature_Trust_Co._Global_CA_3.pem
/etc/bash_completion.d/git
find: `/etc/ppp/peers': Permission denied
z góry dziękuję za odpowiedź
ODPOWIEDZ