Skip to content

Instantly share code, notes, and snippets.

@shekkbuilder
Forked from nnarain/install.bash
Created July 15, 2017 15:44
Show Gist options
  • Save shekkbuilder/72692e9d5aa2b325090a6363abca4c8b to your computer and use it in GitHub Desktop.
Save shekkbuilder/72692e9d5aa2b325090a6363abca4c8b 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