2024-04-04 12:41:58 +02:00
|
|
|
#!/bin/sh
|
|
|
|
|
|
|
|
# File: debian-trixie
|
|
|
|
#
|
|
|
|
# Purpose: Provisioning script to install packages and set-up environment
|
|
|
|
# on Debian Testing (trixie) for pbot-vm.
|
|
|
|
|
|
|
|
# SPDX-FileCopyrightText: 2024 Pragmatic Software <pragma78@gmail.com>
|
|
|
|
# SPDX-License-Identifier: MIT
|
|
|
|
|
|
|
|
apt update
|
|
|
|
|
|
|
|
# for virt-io socket
|
|
|
|
apt install -y socat
|
|
|
|
|
|
|
|
# for `cc` C language support
|
|
|
|
apt install -y libubsan1 libasan8 gdb gcc gcc-multilib clang
|
|
|
|
|
|
|
|
# for `cc` additional languages
|
|
|
|
apt install -y ksh zsh tcl lua5.4 php8.2-cli nodejs guile3.0 beef bc g++
|
|
|
|
apt install -y clisp golang-go
|
|
|
|
apt install -y --no-install-recommends default-jre default-jdk
|
pbot-vm: massive refactor
* replace heartbeat with health-check
* instead of steady stream of newlines every 5s, now awaits input
and responds with `vmstat` output
* more reliably use host/config/vm-exec.json to get libvirt domain name
for snapshot-revert, server address, serial ports, vagrant setting, etc
* use iptables/nftables to disable networking
* added guest/bin/disable-network-[iptables,nftables]
* added guest/bin/enable-network-[iptables,nftables]
* replace ugly ___OUTPUT___ texts in sh, bash, ksh, zsh languages
* documentation updates and tweaks
2024-04-10 10:21:18 +02:00
|
|
|
|
|
|
|
# for pbot-vm guest-server support
|
|
|
|
apt install -y --no-install-recommends libipc-run-perl libjson-xs-perl
|
|
|
|
|
|
|
|
# disable networking
|
|
|
|
./guest/bin/disable-network-iptables
|
|
|
|
|
|
|
|
echo 'Networking disabled.'
|
|
|
|
echo 'To re-enable, run ./guest/bin/enable-networking-iptables'
|
|
|
|
echo 'To disable again, run ./guest/bin/disable-network-iptables'
|