sudo apt install build-essential clang++-9 libfmt-dev cmakeIf the following text appears:
E: Unable to locate package clang++-9
E: Couldn't find any package by regex 'clang++-9'
You need to add a source to /etc/apt/sources.list:
deb http://deb.debian.org/debian/ testing main
sudo nano /etc/default/grubAdd swapaccount=1 to GRUB_CMDLINE_LINUX_DEFAULT:
GRUB_CMDLINE_LINUX_DEFAULT="quiet splash cgroup_enable=memory swapaccount=1"
And then run:
sudo update-grub
sudo rebootsudo apt-get install debootstrap
debootstrap --components=main,universe buster /opt/rootfs https://mirrors.tuna.tsinghua.edu.cn/debian
sudo chroot /opt/rootfs /bin/bash
adduser sandboxgit clone https://github.com/OpenSUST/sustoj-worker.git
cd sustoj-worker
npm install --production
npm run buildsudo node indexThen edit the config.json file, and restart the process.
sudo chroot /opt/rootfs /bin/bashThen see: https://github.com/syzoj/sandbox-rootfs-ng/blob/master/install.sh
Host install only.
apt-get install gcc g++Both host and virtual machine install.
# sudo mount --bind /dev/pts /opt/rootfs/dev/pts
mount -t proc proc /proc
apt-get install openjdk-11-jdkVirtual machine install only.
apt-get install python3.9
# or
apt-get install pypy3Shirasawa