From 76a379b3b42d14132bc4ab6dc61139dae809a6c4 Mon Sep 17 00:00:00 2001 From: awokd <34515595+awokd@users.noreply.github.com> Date: Sun, 25 Feb 2018 20:02:57 +0000 Subject: [PATCH] finalize steps --- building/building-whonix-template.md | 28 ++++++++++++++++++++++------ 1 file changed, 22 insertions(+), 6 deletions(-) diff --git a/building/building-whonix-template.md b/building/building-whonix-template.md index 43f956d3..2c250359 100644 --- a/building/building-whonix-template.md +++ b/building/building-whonix-template.md @@ -8,11 +8,14 @@ redirect_from: ## Building Whonix Templates -The Whonix templates are easily downloaded and installed by following the [procedure here](doc/whonix/install/). -However, they are integrated into `qubes-builder` so they are easy to build yourself if you prefer. -Note that you will need to create `anon-whonix` manually if you do so, but see [this issue](qubes-issues/issues/3601). +The Whonix templates are easily downloaded and installed by following the [procedure here](/doc/whonix/install/). +However, they are integrated into `qubes-builder` so they are straight-forward to build yourself if you prefer. -First, create the [Build Environment](doc/qubes-r3-building/) (follow the build environment section only). +Many other Qubes templates can also be built by following this procedure. +Simply choose the appropriate builder(s) and template(s) you wish to build in the `./setup` procedure below. +Always include the `mgmt-salt` builder. + +First, set up the [Build Environment](/doc/qubes-r3-building/#build-environment) (follow the build environment section only). Next, configure the builder: @@ -24,9 +27,9 @@ cd ~/qubes-builder # Select 3.2 or 4.0 for version # Stable # Yes (we want to build only templates) -# Select builder-fedora, builder-debian, template-whonix, mgmt-salt (builder will complain if you don't include builder-fedora, but we don't actually use it) +# Select builder-fedora, builder-debian, template-whonix, mgmt-salt (setup won't let you continue if you don't include builder-fedora, but we don't actually use it) # Choose Yes to add adrelanos's third party key -# Yes (to download) +# Yes (to download sources) # Select whonix-gateway, whonix-workstation (for the currently shipping templates) ~~~ @@ -44,3 +47,16 @@ make qubes-vm make template ~~~ +Once the build is complete, the install packages for your newly built templates will be located in `/qubes-builder/qubes-src/linux-template-builder/rpm/noarch`. +Copy them from there to dom0 and install: + +~~~ +qvm-run --pass-io 'cat ~/qubes-builder/qubes-src/linux-template-builder/rpm/noarch/qubes-template-whonix-gw-4.0.0-201802250036.noarch.rpm' > ~/qubes-template-whonix-gw-4.0.0-201802250036.noarch.rpm +qvm-run --pass-io 'cat ~/qubes-builder/qubes-src/linux-template-builder/rpm/noarch/qubes-template-whonix-ws-4.0.0-201802250145.noarch.rpm' > ~/qubes-template-whonix-ws-4.0.0-201802250145.noarch.rpm +sudo dnf install qubes-template-whonix-gw-4.0.0-201802250036.noarch.rpm +sudo dnf install qubes-template-whonix-ws-4.0.0-201802250145.noarch.rpm +~~~ + +And you are done! + +