INSTALL 1.27 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/
canyonknight's avatar
canyonknight committed
7
8
   $ git clone git://projects.archlinux.org/aur.git

Lukas Fleischer's avatar
Lukas Fleischer committed
9
2) Setup a web server with PHP and MySQL.
canyonknight's avatar
canyonknight committed
10

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

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

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

Lukas Fleischer's avatar
Lukas Fleischer committed
17
5) Clone the OpenSSH project, apply the AUR sshd patch and run `make`:
canyonknight's avatar
canyonknight committed
18

Lukas Fleischer's avatar
Lukas Fleischer committed
19
20
21
22
23
24
25
   $ cd /srv/http/aur/
   $ git clone git://anongit.mindrot.org/openssh.git
   $ cd openssh
   $ git am ../scripts/git-integration/0001-Patch-sshd-for-the-AUR.patch
   $ autoreconf
   $ ./configure
   $ make
canyonknight's avatar
canyonknight committed
26

Lukas Fleischer's avatar
Lukas Fleischer committed
27
6) Create and edit the sshd configuration:
canyonknight's avatar
canyonknight committed
28

Lukas Fleischer's avatar
Lukas Fleischer committed
29
30
31
32
33
   $ cd /srv/http/aur/
   $ umask 077
   $ mkdir .ssh/
   $ ssh-keygen -f .ssh/ssh_host_rsa_key -N '' -t rsa
   $ cp scripts/git-integration/sshd_config .ssh/
canyonknight's avatar
canyonknight committed
34

Lukas Fleischer's avatar
Lukas Fleischer committed
35
7) Create a new user and change ownership of the .ssh directory:
canyonknight's avatar
canyonknight committed
36

Lukas Fleischer's avatar
Lukas Fleischer committed
37
38
   # useradd -U -d /srv/http/aur -c 'AUR user' aur
   # chown aur:aur /srv/http/aur/.ssh/
Marcel Korpel's avatar
Marcel Korpel committed
39

40
8) Add, enable and start systemd unit files for the new sshd:
Marcel Korpel's avatar
Marcel Korpel committed
41

42
43
44
45
   # cp /srv/http/aur/conf/aur-sshd.socket /etc/systemd/system/
   # cp /srv/http/aur/conf/aur-sshd@.service /etc/systemd/system/
   # systemctl enable aur-sshd.socket
   # systemctl start aur-sshd.socket