author | wenzelm |
Fri, 02 Mar 2018 20:32:39 +0100 | |
changeset 67748 | 94a8fddc1e7c |
parent 66995 | 9cb263dbb2f7 |
child 67766 | 603334230303 |
permissions | -rw-r--r-- |
64148 | 1 |
Administrative Isabelle cronjob at TUM |
2 |
====================================== |
|
3 |
||
66995
9cb263dbb2f7
plain identify job for Isabelle + AFP, independent of any Isabelle technology;
wenzelm
parents:
64148
diff
changeset
|
4 |
- jobs: manual installation on target directory: |
9cb263dbb2f7
plain identify job for Isabelle + AFP, independent of any Isabelle technology;
wenzelm
parents:
64148
diff
changeset
|
5 |
cp "$ISABELLE_HOME/Admin/cronjob/self_update "$HOME/cronjob/self_update" |
9cb263dbb2f7
plain identify job for Isabelle + AFP, independent of any Isabelle technology;
wenzelm
parents:
64148
diff
changeset
|
6 |
cp "$ISABELLE_HOME/Admin/cronjob/plain_identify "$HOME/cronjob/plain_identify" |
9cb263dbb2f7
plain identify job for Isabelle + AFP, independent of any Isabelle technology;
wenzelm
parents:
64148
diff
changeset
|
7 |
|
64148 | 8 |
- crontab: manual update on target machine |
9 |
crontab -l |
|
10 |
crontab -e |
|
11 |
||
12 |
- $HOME/cronjob/run/ -- run-time state |
|
13 |
||
14 |
- $HOME/cronjob/log/ -- cumulative log area |
|
67748 | 15 |
|
16 |
||
17 |
Build Log Database Server |
|
18 |
========================= |
|
19 |
||
20 |
- Ubuntu 16.04 LTS Linux Server standard installation (e.g. on virtual host) |
|
21 |
https://help.ubuntu.com/lts/serverguide |
|
22 |
||
23 |
- apt install unattended-upgrades |
|
24 |
||
25 |
- special user account: |
|
26 |
useradd -m -s /bin/bash isatest |
|
27 |
||
28 |
- SSH access for jsch (on each client): |
|
29 |
LOCALHOST$ ssh-keyscan -t rsa DBSERVER |
|
30 |
>> ~/.ssh/known_hosts |
|
31 |
||
32 |
- PostgreSQL: |
|
33 |
||
34 |
$ apt install postgresql |
|
35 |
$ apt install postgresql-client |
|
36 |
||
37 |
$ sudo -u postgres psql template1 |
|
38 |
ALTER USER postgres with encrypted password '***'; |
|
39 |
||
40 |
$ edit /etc/postgresql/9.5/main/pg_hba.conf |
|
41 |
local all postgres md5 |
|
42 |
local all all md5 |
|
43 |
||
44 |
$ systemctl restart postgresql.service |
|
45 |
||
46 |
$ createuser -U postgres --interactive isatest |
|
47 |
ALTER USER isatest with encrypted password '***'; |
|
48 |
||
49 |
$ createdb -E UTF8 -T template0 --locale=en_US.utf8 -U postgres -O isatest isatest |
|
50 |
||
51 |
- Database backup or migration: |
|
52 |
https://www.postgresql.org/docs/9.5/static/backup-dump.html |
|
53 |
||
54 |
pg_dump -U postgres -Fc -v -d isatest > db.dump |
|
55 |
pg_restore -U postgres -Fc -v -d isatest < db.dump |
|
56 |
||
57 |
||
58 |
Build Status Charts |
|
59 |
=================== |
|
60 |
||
61 |
- Gentoo Linux might require gnuplot from original source |
|
62 |
(to avoid bad data interpolation) |
|
63 |
||
64 |
http://gnuplot.sourceforge.net/ |
|
65 |
https://sourceforge.net/projects/gnuplot/files/gnuplot/5.0.6/ |
|
66 |
||
67 |
$ cd gnuplot-5.0.6 |
|
68 |
$ ./configure |
|
69 |
$ make |
|
70 |
||
71 |
edit $ISABELLE_HOME_USER/etc/settings |
|
72 |
||
73 |
ISABELLE_GNUPLOT=".../src/gnuplot" |