Created
June 21, 2020 08:25
-
-
Save CSQDiv0/3b06fa443ab67b304ebacf6243ec78fd to your computer and use it in GitHub Desktop.
Installation script for CSQ's workshop.
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 | |
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