Add Whonix installation script
continuous-integration/drone/pr Build is pending Details

This commit is contained in:
nyxnor 2023-09-06 00:08:31 +00:00
parent 549d8a0405
commit 88e405fdfe
2 changed files with 23 additions and 1 deletions

View File

@ -1,6 +1,6 @@
## Keep profiles in sync:
## - https://git.openprivacy.ca/cwtch.im/cwtch-ui/src/branch/trunk/linux/cwtch-whonix.yml
## - https://github.com/Whonix/onion-grater/blob/master/usr/share/doc/onion-grater-merger/examples/40_bitcoind.yml
## - https://github.com/Whonix/onion-grater/blob/master/usr/share/doc/onion-grater-merger/examples/40_cwtch.yml
---
- exe-paths:

22
linux/install-whonix.sh Executable file
View File

@ -0,0 +1,22 @@
#!/bin/sh
set -eu
INSTALL_PREFIX=$HOME/.local
INSTALL_PREFIX=$INSTALL_PREFIX DESKTOP_PREFIX=$INSTALL_PREFIX ./install.sh
# Open incoming ports
echo "Opening Cwtch firewall for incoming traffic on ports 15000 to 15378"
sudo mkdir -p /usr/local/etc/whonix_firewall.d
echo "EXTERNAL_OPEN_PORTS+=\" \$(seq 15000 15378) \"" | \
sudo tee /usr/local/etc/whonix_firewall.d/40_cwtch.conf >/dev/null
sudo whonix_firewall
# Set launch options
sed -i "s|env LD|env CWTCH_TAILS=true CWTCH_RESTRICT_PORTS=true CWTCH_BIND_EXTERNAL_WHONIX=true LD|" $INSTALL_PREFIX/bin/cwtch
# Inform about steps to be done in the gateway
echo "Complete installation in the Whonix-Gateway with the following command:"
echo " $ sudo onion-grater-add 40_cwtch"
echo "Launch Cwtch in the Whonix-Workstation with:"
echo " $ $INSTALL_PREFIX/bin/cwtch"