INSTALL 1.26 KB
Newer Older
Lukas Fleischer's avatar
Lukas Fleischer committed
1
2
Setup on Arch Linux
===================
canyonknight's avatar
canyonknight committed
3

Lukas Fleischer's avatar
Lukas Fleischer committed
4
1) Clone the AUR project:
canyonknight's avatar
canyonknight committed
5

Lukas Fleischer's avatar
Lukas Fleischer committed
6
   $ cd /srv/http/
7
   $ git clone git://projects.archlinux.org/aurweb.git
canyonknight's avatar
canyonknight committed
8

Lukas Fleischer's avatar
Lukas Fleischer committed
9
10
11
12
13
14
2) Setup a web server with PHP and MySQL. Configure the web server to redirect
   all URLs to /index.php/foo/bar/. The following block can be used with nginx:

    location ~ .* {
        rewrite ^/(.*)$ /index.php/$1 last;
    }
canyonknight's avatar
canyonknight committed
15

Lukas Fleischer's avatar
Lukas Fleischer committed
16
3) Copy conf/config.proto to conf/config and adjust the configuration.
canyonknight's avatar
canyonknight committed
17

Lukas Fleischer's avatar
Lukas Fleischer committed
18
4) Create a new MySQL database and a user and import the AUR SQL schema:
canyonknight's avatar
canyonknight committed
19

Lukas Fleischer's avatar
Lukas Fleischer committed
20
    $ mysql -uaur -p AUR </srv/http/aurweb/schema/aur-schema.sql
canyonknight's avatar
canyonknight committed
21

22
23
5) Generate templates for new Git repositories:

Lukas Fleischer's avatar
Lukas Fleischer committed
24
    $ /srv/http/aurweb/scripts/git-integration/gen-templates.py
25

Lukas Fleischer's avatar
Lukas Fleischer committed
26
6) Create a new user:
canyonknight's avatar
canyonknight committed
27

Lukas Fleischer's avatar
Lukas Fleischer committed
28
    # useradd -U -d /srv/http/aurweb -c 'AUR user' aur
canyonknight's avatar
canyonknight committed
29

Lukas Fleischer's avatar
Lukas Fleischer committed
30
7) Install the git-auth wrapper script:
canyonknight's avatar
canyonknight committed
31

Lukas Fleischer's avatar
Lukas Fleischer committed
32
33
34
    # cd /srv/http/aurweb/scripts/git-integration/
    # cp git-auth.sh /usr/local/bin/aur-git-auth
    # chmod 755 /usr/local/bin/aur-git-auth
canyonknight's avatar
canyonknight committed
35

Lukas Fleischer's avatar
Lukas Fleischer committed
36
37
38
8) Configure sshd(8) for the AUR. Add the following lines at the end of your
   sshd_config(5) and restart the sshd. Note that OpenSSH 6.9 or newer is
   needed!
canyonknight's avatar
canyonknight committed
39

Lukas Fleischer's avatar
Lukas Fleischer committed
40
41
42
43
    Match User aur
        PasswordAuthentication no
        AuthorizedKeysCommand /usr/local/bin/aur-git-auth "%t" "%k"
        AuthorizedKeysCommandUser aur
Marcel Korpel's avatar
Marcel Korpel committed
44