Skip to content

Instantly share code, notes, and snippets.

@mathisve
Created October 5, 2020 19:47
Show Gist options
  • Save mathisve/a3d17229fee10e75337f20a2361818b8 to your computer and use it in GitHub Desktop.
Save mathisve/a3d17229fee10e75337f20a2361818b8 to your computer and use it in GitHub Desktop.
Get vcan up and running quickly!
#!/usr/bin/env bash
# https://elinux.org/Bringing_CAN_interface_up
# Installing can-utils
sudo sudo apt-get install can-utils
# Creating vcan0 interface
sudo ip link add dev vcan0 type vcan
sudo ip link set up vcan0
# Listening on vcan0 interface
echo "vcan0:"
candump vcan0
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment