@Patrick
Instead of changing the build script I can tell users to create the network xml file in a single command and import that with net-define.
SE answer:
xml, unix, command-line
echo '<root><foo a="b">lorem</foo><bar value="ipsum" /></root>' |
xmllint --format - >> example.xml
I’ll add: libxml2-utils to the packages they need to install. (On Debian its installed by default)
Running this command:
echo "<network><name>external</name><forward mode='nat'/><bridge name='virbr1' stp='on' delay='0'/><ip address='10.0.2.2' netmask='255.255.255.0' /></network>" |
xmllint --format - >> external_network.xml
Gives external_network.xml containing:
<network>
<name>external</name>
<forward mode='nat'/>
<bridge name='virbr1' stp='on' delay='0'/>
<ip address='10.0.2.2' netmask='255.255.255.0'/>
</network>
All you need to do is accept all pull requests except the external_network one. Unless you have the internal network names hardcoded it should solve this. Tell me if you need to revert to the “Whonix” network.
Another non-related problem: Users upgrading that don’t delete their old ‘Whonix’ network will run into a conflict because of the same virtual bridge number already exists. Something I can do is choose completely different virbr numbers for external/internal network files to avoid this. What do you think?
1 Like
Patrick
January 18, 2017, 10:38am
#2
HulaHoop:
Instead of changing the build script I can tell users to create the network xml file in a single command and import that with net-define.
I find this a horrible idea. Would decrease usability even more and not
properly record file changes over time.
I’ll try merge all and try fixing the build script a stab.
Patrick
January 18, 2017, 10:54am
#3
Supposed to be used on gateway?
Supposed to be used on workstation?
Right?
Patrick
January 18, 2017, 11:18am
#4
Context for anyone else following this.
Kicksecure:master
← HulaHoopWhonix:patch-53
opened 03:12AM - 01 Oct 16 UTC
Kicksecure:master
← HulaHoopWhonix:patch-54
opened 03:14AM - 01 Oct 16 UTC
Kicksecure:master
← HulaHoopWhonix:patch-55
opened 11:09AM - 13 Oct 16 UTC
The extra vram was a waste of RAM
Kicksecure:master
← HulaHoopWhonix:patch-56
opened 11:11AM - 13 Oct 16 UTC
Kicksecure:master
← HulaHoopWhonix:patch-57
opened 11:13AM - 13 Oct 16 UTC
Patrick:
Right?
Assumed yes. Done.
https://github.com/Whonix/Whonix/commit/fc7737f1afc548c525fd65e5d15e496466fd24f6
committed 11:13AM - 18 Jan 17 UTC
https://forums.whonix.org/t/whonix-14-build-script-changes-alternative
1 Like
An awful hack yes. Thanks for biting the bullet and fixing the build scripts.
Now that its a post Stretch release there are some changes to GW/WS settings I want to include.
1 Like