Skip to content

Instantly share code, notes, and snippets.

@CSQDiv0

CSQDiv0/install.sh

Created Jun 21, 2020
Embed
What would you like to do?
Installation script for CSQ's workshop.
#!/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
You can’t perform that action at this time.