Skip to content

Instantly share code, notes, and snippets.

@nnarain
Last active October 29, 2018 19:58
Show Gist options
  • Save nnarain/753e14e0cadf16163b72d9233f3af520 to your computer and use it in GitHub Desktop.
Save nnarain/753e14e0cadf16163b72d9233f3af520 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