CodeSpace on Linux
Share
CodeSpace on Linux
CodeSpace runs great on Linux! You just need to install Chrome or Chromium browser, and enable the USB device access. Details are shown below:
1. Install Chrome
There are two options here - either one will work just fine for CodeSpace:
-
Chromium open source browser
sudo apt install chromium-browser -
Chrome Download from Google
Go to https://www.google.com/chrome/ and download/install the package for your Linux distribution.
2. Add a Udev Rule for the Desired Device WebUSB Interfaces
Note: You only have to create the files corresponding to the products you're using (CodeBot CB2, CodeBot CB3, CodeX, microbit, etc.)
CodeBot CB2
Use your favorite text editor to create a file:
/etc/udev/rules.d/codebot.rules
Edit the codebot.rules file to contain the following:
SUBSYSTEM=="usb",ATTR{idVendor}=="0483",ATTR{idProduct}=="5740",MODE:="0666"
CodeBot CB3
Use your favorite text editor to create a file:
/etc/udev/rules.d/codebot3.rules
Edit the codebot3.rules file to contain the following: SUBSYSTEM=="usb",ATTR{idVendor}=="544d",ATTR{idProduct}=="cb03",GROUP="plugdev",MODE:="0666"
CodeX
Use your favorite text editor to create a file:
/etc/udev/rules.d/codex.rules
Edit the codex.rules file to contain the following: SUBSYSTEM=="usb",ATTR{idVendor}=="544d",ATTR{idProduct}=="c0de",GROUP="plugdev",MODE:="0666"
Microbit
Use your favorite text editor to create a file:
/etc/udev/rules.d/codebot3.rules
Edit the codebot3.rules file to contain the following: SUBSYSTEM=="usb",ATTR{idVendor}=="544d",ATTR{idProduct}=="cb03",GROUP="plugdev",MODE:="0666"
3. Signal Udevd to Reload the rules
sudo udevadm control --reload
sudo udevadm trigger