summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--HACKING28
1 files changed, 24 insertions, 4 deletions
diff --git a/HACKING b/HACKING
index b3fc239..c407a37 100644
--- a/HACKING
+++ b/HACKING
@@ -5,9 +5,11 @@
https://developer.mozilla.org/en-US/Add-ons/Setting_up_extension_development_environment
# Some useful prefs
-
+# in about:config add with right click => new string
extensions.dave@tails.boum.org.sdk.console.logLevel = all
extensions.sdk.console.logLevel = "all"
+# in order to install our unsigned xpi edit pref
+xpinstall.signatures.required = false
# Viewing console logs
@@ -19,7 +21,25 @@ extensions.sdk.console.logLevel = "all"
1. Copy `bootstrap.js` and `install.rdf` from the official XPI into the
`tails-download-and-verify/` subdirectory
-2. Build the XPI:
+2. Copy from mirror-pool-dispatcher.git mirror-distpacher.js to lib/
+
+ cp ~/tails/mirror-pool-dispatcher/lib/js/mirror-dispatcher.js lib/
+
+3. Build the XPI:
+
+ cd tails-download-and-verify && \
+ rm -f ../dave.xpi&& \
+ zip -X -9r ../dave.xpi ./
- cd tails-download-and-verify && \
- rm -f ../dave.xpi&& zip -X -9r ../dave.xpi ./
+# Testing resuming the download
+# 1. Open Firefox 45+ and navigate to https://tails.boum.org/install/debian/usb/index.en.html
+# 1b. disable FF internal DNS cache, in about:config set these prefs:
+# network.dnsCacheExpirationGracePeriod = 0
+# network.dnsCacheExpiration = 0
+# network.dnsCacheEntries = 0
+# 2. Verify that you have the Tails Download and Verify Extension (DAVE) installed or install it.
+# 3. Download a part of the ISO and copy the used URL. (This should be a mirror from https://tails.boum.org/mirrors.json.)
+# 4. Pause the download.
+# 5. Try to resume the download. This should work, because we download from the same mirror.
+# 6. Now, if not using Firefox over Tor, edit /etc/hosts and point the URL of the used mirror to 127.0.0.1.
+# 7. Return to Firefox and reload the page, then try to resume the download again. (One really needs to reload the page because FF seems to have its own DNS cache and resumes a download even if we point a URL in /etc/hosts to localhost.)