#!/bin/bash # # Purpose : Install coreapp-dev, the Federated Core app SDK (run by # CoreDesktop's `sibling add`). Safe to re-run. set -e SELF="$(cd "$(dirname "${BASH_SOURCE[0]}")" && pwd)" COREDESKTOP="$HOME/.local/share/coredesktop" if [ ! -f "$COREDESKTOP/utils.sh" ]; then echo "coreapp-dev needs CoreDesktop, which isn't installed at $COREDESKTOP." exit 1 fi if [ ! -e /dev/kvm ]; then echo "/dev/kvm is missing: turn on virtualization (VT-x/AMD-V) in the firmware" echo "settings, then run this again." exit 1 fi # Per-machine data (CoreServer images, VM state) lives outside the repo mkdir -p "$HOME/.local/share/coreapp-dev/images" bash "$SELF/update.sh" echo echo "coreapp-dev installed." # This shell's groups are fixed at login, so a new membership isn't seen yet if ! id -nG | tr ' ' '\n' | grep -qx libvirt; then echo "Log out and back in so your new libvirt group membership takes effect." fi