summaryrefslogtreecommitdiff
path: root/server-build/my-simple-cdd/00-README
blob: a836a3a1d129bc4f580f9c840b98be3b8c0cb689 (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
This directory contains some scripts and associated files to
create a Debian image with a WooCommerce+Taler installation.

We use simple-cdd to non-interactively run the Debian installer,
and have a profile 'talerwoo' with WooCommerce and Taler-specific
specifications.

Dependencies:
=============

* debian-archive-keyring
* qemu, qemu-system, qemu-kvm
* xorriso
* bsdtar
* simple-cdd

Make sure the user using the scripts is in the 'kvm' group.
The scripts are only written for AMD64/x86_64 CPUs.


How to use:
===========

First run:

$ ./01-make-iso.sh

to create the "installer.iso".

Then run:

$ ./02-setup-system.sh

to run the Debian installer to create the 'talerwoo.img'.
wait until the script is done, this takes approx. 15-20 minutes!

Next, boot the final image using:

$ ./03-run-system.sh

You now MUST set up WooCommerce defaults.  

To do this:

a. Log into the WooTaler site in your host system at http://127.0.0.1:9999/wp-admin/
   (as "admin" with passphrase "admin-pass")

b. Navigate to http://127.0.0.1:9999/wp-admin/admin.php?page=wc-admin and go through
   the annoying WooCommerce setup wizard (Note that many options are enabled by default,
   and you have to turn them off.)'

c. Change the currency to KUDOS to make it work with the demo backend (or change the backend)'

d. Go into the Wordpress configuration for the OIDC plugin (which is NOT under WooCommerce,
   but under WordPress settings), and click "safe" (no need to actually change options).

Finally, login (as "root") with password "wootaler":

$ ssh -F ./ssh.cfg localhost

and run

# yes | /usr/local/bin/deploy-reclaim.sh

inside the VM.

When this is done, reboot the VM, your setup is ready!

Access the wooshop using http://localhost:9999