blob: d619f7ad0c8737c142fe073dc36b5406ee62bfd0 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
|
Setting up Gitano (with cgit and git daemon) on Debian wheezy
=============================================================
* Obtain luxio and gitano-all built for wheezy.
- you may have to build them yourself
* Install packages:
- luxio
- gitano (from gitano-all source package)
- lua-rex-pcre
- openbsd-inetd
- apache2
* adduser --disabled-password git
* make sure your ssh public key is on the system; you'll need
it for gitano-setup
* su - git
- run gitano-setup
- answer questions truthfully
* from your own ssh account: ssh git@host whoami
* edit /etc/inetd.conf to add:
git stream tcp nowait nobody /usr/bin/git git daemon --inetd --interpolated-path=/home/git/repos/%D /home/git/repos
* /etc/init.d/openbsd-inetd restart
* edit /etc/apache2/sites-available/default to add:
# CGIT stuff
DirectoryIndex /cgi-bin/cgit/cgit.cgi
Alias /cgit.png /usr/share/cgit/htdocs/cgit.png
Alias /cgit.css /usr/share/cgit/htdocs/cgit.css
<Directory "/home/git/repos">
Options FollowSymlinks Indexes
Allow from all
AllowOverride none
Order allow,deny
</Directory>
* /etc/init.d/apache2 restart
* create /etc/cgitrc:
# Enable caching of up to 1000 output entriess
cache-size=1000
# Specify some default clone prefixes
clone-prefix=git://testgit
# Specify the css url
css=/cgit.css
# Specify the logo url
logo=/cgit.png
# Show extra links for each repository on the index page
enable-index-links=1
# Show number of affected files per commit on the log pages
enable-log-filecount=1
# Show number of added/removed lines per commit on the log pages
enable-log-linecount=1
# Set the title and heading of the repository index page
root-title=testgit
root-desc=Lars's test git repositories
# Allow download of tar.gz, tar.bz2 and zip-files
snapshots=tar.gz
#source-filter=/usr/lib/cgit/filters/syntax-highlighting.sh
remove-suffix=1
enable-git-config=1
strict-export=git-daemon-export-ok
scan-path=/home/git/repos
##
## List of common mimetypes
##
mimetype.git=image/git
mimetype.html=text/html
mimetype.jpg=image/jpeg
mimetype.pdf=application/pdf
mimetype.png=image/png
mimetype.svg=image/svg+xml
----
* git clone ssh://git@testgit2/gitano-admin
- edit rules/core.lace, uncomment the last line:
"allow "Anonymous access is okay" op_read !is_admin_repo"
- git commit -av
- git push origin HEAD
* ssh git@host create foo
|