summaryrefslogtreecommitdiff
path: root/server-build/my-simple-cdd/README
blob: 496d6cf861c7b5640d6dfb6378aeccb7b29e99ae (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
70
71
72
73
74
75
76
This directory contains some scripts and associated files to
create a Debian qcow2 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:

$ ./make-iso.sh

to create the "installer.iso". Then run:

$ ./setup-system.sh

to run the Debian installer to create the 'talerwoo.img'.

Before booting, make sure that your system is setup to
route packages and performs NAT for the VM (otherwise
the installation script that runs on first startup
will fail):

$ sudo echo 1 > /proc/sys/net/ipv4/ip_forward
$ sudo iptables -t nat -A POSTROUTING -o wlp3s0 -j MASQUERADE


Next, boot the final image using:

$ ./run-system.sh

The 'root' password will be set to 'wootaler' initially.

The 'admin' password for WooCommerce (running on port 9999)
will be 'admin-pass'.

Upon first boot, you need to wait for a bit for the systemd
service firstboot-wootaler.service to complete. You may
want to check the logs:

# journalctl -u firstboot-wootaler.service

If the script fails due to say network errors, you
should be able to simply re-run it using:

# firstboot-script.sh

(it will also re-run on each boot until it has
succeeded).

You now MUST set up WooCommerce defaults.  To do this:
a. Log into the WooTaler site in your host system at 127.0.0.1:9999/wp-admin/. as "admin" with passphrase "admin-pass"
b. Navigate to 127.0.0.1:9999/wp-admin/admin.php?page=wc-setup 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, run:

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

as root inside the VM.