8 |
8 |
9 . ./testing_system |
9 . ./testing_system |
10 |
10 |
11 #exec > results 2>&1 |
11 #exec > results 2>&1 |
12 |
12 |
13 #aptitude --allow-untrusted --quiet --without-recommends --assume-yes install mercurial |
|
14 #hg --version |
|
15 |
|
16 aptitude --allow-untrusted --quiet --without-recommends --assume-yes install \ |
13 aptitude --allow-untrusted --quiet --without-recommends --assume-yes install \ |
17 make mercurial xsltproc docbook-xsl openssh-server \ |
14 openssh-server |
18 python python-support adduser |
|
19 |
|
20 #aptitude --allow-untrusted --quiet --without-recommends --assume-yes install \ |
|
21 # debconf python python-support adduser mercurial openssh-server |
|
22 |
|
23 |
15 |
24 perl -i -pe 's/^Port 22$/Port 2222/' /etc/ssh/sshd_config |
16 perl -i -pe 's/^Port 22$/Port 2222/' /etc/ssh/sshd_config |
25 /etc/init.d/ssh start |
17 /etc/init.d/ssh start |
26 ssh-keyscan -p 2222 localhost > /etc/ssh/ssh_known_hosts |
18 ssh-keyscan -p 2222 localhost > /etc/ssh/ssh_known_hosts |
27 |
19 |
28 #dpkg -i mercurial-server_1.0-1_all.deb |
20 if [ -e mercurial-server ] ; then |
29 cd mercurial-server |
21 aptitude --allow-untrusted --quiet --without-recommends --assume-yes install \ |
30 make setup-adduser |
22 make mercurial xsltproc docbook-xsl openssh-server \ |
|
23 python python-support adduser |
|
24 cd mercurial-server |
|
25 make setup-adduser |
|
26 else |
|
27 aptitude --allow-untrusted --quiet --without-recommends --assume-yes install \ |
|
28 debconf python python-support adduser mercurial openssh-server |
|
29 dpkg -i *.deb |
|
30 fi |
31 |
31 |
32 for user in test1 test2 ; do |
32 for user in test1 test2 ; do |
33 adduser --gecos $user --disabled-password $user |
33 adduser --gecos $user --disabled-password $user |
34 su -l -c 'mkdir .ssh' $user |
34 su -l -c 'mkdir .ssh' $user |
35 su -l -c 'ssh-keygen -N "" -f .ssh/id_rsa -t rsa' $user |
35 su -l -c 'ssh-keygen -N "" -f .ssh/id_rsa -t rsa' $user |