Skip to content

Instantly share code, notes, and snippets.

@folkengine
Forked from nnarain/install.bash
Created September 4, 2017 14:20
Show Gist options
  • Save folkengine/bd450437d280d4ef298248f4dacfb380 to your computer and use it in GitHub Desktop.
Save folkengine/bd450437d280d4ef298248f4dacfb380 to your computer and use it in GitHub Desktop.
setup virtual can bus linux
#!/bin/bash
# install can-utils
git clone https://github.com/linux-can/can-utils.git
cd can-utils
./autogen.sh
./configure
make
sudo make install
#!/bin/bash
# Bring up a virtual can bus device
modprobe can
modprobe can_raw
modprobe vcan
ip link add dev vcan0 type vcan
ip link set up vcan0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment