Created
December 18, 2020 13:14
-
-
Save CSQDiv0/444755775a68133144d2a83a7d669cff to your computer and use it in GitHub Desktop.
Virtual Setup
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/bin/bash | |
#install zerotier | |
curl -s https://install.zerotier.com | sudo bash | |
if [[ $EUID -ne 0 ]]; then | |
echo "This script must be run as root" 1>&2 | |
exit 1 | |
fi | |
cd ~/ | |
#bring up vcan interface | |
modprobe can | |
modprobe vcan | |
ip link add dev vcan0 type vcan | |
ip link set up vcan0 | |
#get can-utils | |
git clone https://github.com/linux-can/can-utils | |
#get ICSim | |
git clone https://github.com/zombieCraig/ICSim | |
apt-get update -y | |
apt-get install libsdl2-dev libsdl2-image-dev can-utils -y | |
#setup controls in ICSim | |
cd ICSim | |
make controls | |
rm lib.o | |
#setup can-utils to get lib.o | |
cd ~/ | |
cd can-utils | |
apt-get install libtools -y | |
apt-get install autoconf -y | |
./autogen.sh | |
./configure | |
make | |
make install | |
cp lib.o ~/ICSim | |
#Back to ICSim installation file | |
cd ~/ | |
cd ICSim | |
make icsim |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment