Internet Offline: UnixBench
Install
apt update apt install mesa-common-dev libsdl-net1.2-dev libsdl-net1.2 unzip # untuk RaspberryPi apt install mesa-common-dev libsdl* unzip # untuk PC
Compile
cd /usr/local/src wget https://github.com/kdlucas/byte-unixbench/archive/master.zip unzip master.zip cd /usr/local/src/byte-unixbench-master/UnixBench make
Run
cd /usr/local/src/byte-unixbench-master/UnixBench ./Run > hasil.txt
Run ssh & Script
Pastikan id_dsa.pub & id_rsa.pub sudah di copy ke .ssh/known_hosts
Script unixbench-run.sh
vi unixbench-run.sh
cd /usr/local/src/byte-unixbench-master/UnixBench/ rm /usr/local/src/byte-unixbench-master/UnixBench/hasil-unixbench.txt touch /usr/local/src/byte-unixbench-master/UnixBench/hasil-unixbench.txt /usr/local/src/byte-unixbench-master/UnixBench/Run >> /usr/local/src/byte-unixbench-master/UnixBench/hasil-unixbench.txt chmod -Rf 777 /usr/local/src/byte-unixbench-master/UnixBench/hasil-unixbench.txt
Setelah di save
chmod 777 unixbench-run.sh
Execute dari remote
ssh -t user@remote 'sudo /home/user/unixbench-run.sh' sleep 75m ssh -t user@remote 'sudo mv /usr/local/src/byte-unixbench-master/UnixBench/hasil-unixbench.txt hasil-unixbench-1.txt'
Run untuk VirtualBox
ub-vmall.sh
cd /home/onno /home/onno/ub-vm1-0.sh /home/onno/ub-vm1-1.sh /home/onno/ub-vm1-2.sh /home/onno/ub-vm1-4.sh /home/onno/ub-vm2-0.sh /home/onno/ub-vm2-1.sh /home/onno/ub-vm2-2.sh /home/onno/ub-vm2-4.sh /home/onno/ub-vm3-0.sh /home/onno/ub-vm3-1.sh /home/onno/ub-vm3-2.sh /home/onno/ub-vm3-4.sh /home/onno/ub-vm4-0.sh /home/onno/ub-vm4-1.sh /home/onno/ub-vm4-2.sh /home/onno/ub-vm4-4.sh
Contoh ub-vm1-0.sh
VBoxManage controlvm "Offline" acpipowerbutton sleep 30 VBoxManage modifyvm "Offline" --memory 512 VBoxManage modifyvm "Offline" --unplugcpu 3 VBoxManage modifyvm "Offline" --unplugcpu 2 VBoxManage modifyvm "Offline" --unplugcpu 1 VBoxManage startvm "Offline" sleep 100 ssh -t onno@192.168.0.3 'sudo /home/user/unixbench-run.sh' sleep 75m ssh -t onno@192.168.0.3 'mv /usr/local/src/byte-unixbench-master/UnixBench/hasil-unixbench.txt hasil-unixbench-192.168.0.3-1CORE-512M.txt'