Template:Build Documentation 64bit

From Kicksecure
Revision as of 02:52, 18 October 2013 by imported>Patrick (Created page with "Create {{Code2|/etc/whonix_buildconfig.d}} folder. <pre> mkdir --parents /etc/whonix_buildconfig.d </pre> Create {{Code2|/etc/whonix_buildconfig.d/50_target_arch}} build con...")
(diff) ← Older revision | Latest revision (diff) | Newer revision → (diff)
Jump to navigation Jump to search

Create /etc/whonix_buildconfig.d folder.

mkdir --parents /etc/whonix_buildconfig.d

Create /etc/whonix_buildconfig.d/50_target_arch build config file.

echo "\
# This file is part of Whonix
# Copyright (C) 2012 - 2013 adrelanos <adrelanos at riseup dot net>
# See the file COPYING for copying conditions.

## NOTE: It's impossible to create 64 bit builds on 32 bit hosts.
##       (This is a limitation of (grml-)debootstrap.)

## i386 is the default target architecture,
## if WHONIX_TARGET_ARCH variable is not set or empty.
#export WHONIX_TARGET_ARCH="i386"

## Interesting target architecture for custom builds: 64 bit
## Despite its name, works on AMD and Intel.
export WHONIX_TARGET_ARCH="amd64"

## Also interesting target architectures for custom builds: Kernel of FreeBSD
## Will not work out of the box for Whonix-Gateway, because Whonix Firewall
## is based on iptables (Linux) and the FreeBSD does not support iptables,
## its firewall is pf. The Whonix iptables rules would have to be rewritten in pf.
#export WHONIX_TARGET_ARCH="kfreebsd-amd64"
#export WHONIX_TARGET_ARCH="kfreebsd-i386"
" | sudo tee "/etc/whonix_buildconfig.d/50_target_arch" > /dev/null

Check.

cat /etc/whonix_buildconfig.d/50_target_arch

Should show what we echoed above.