Preparing Chromium On linux

On Linux, to enable the 'Download' button on the micro:bit to work, the following steps are needed:

  1. Open a terminal and use it to do the following:
  2. $ sudo snap install chromium
  3. $ snap connect chromium:raw-usb
  4. $ cd /etc/udev/rules.d
  5. Create a file in this folder called 50-microbit.rules containing, all on one line, the following:
    
        SUBSYSTEM=="usb", ATTR{idVendor}=="0d28", MODE="0664", GROUP="plugdev"
                        
  6. $ sudo udevadm control --reload-rules
  7. Close the terminal
  8. Logout
  9. Login
  10. Load Chromium
  11. Attach a micro:bit
  12. Open the microsoft makecode editor
  13. An open project is needed: start a new one or login and open an existing one.
  14. Use the 3 dots at the start of the Download button to pair the micro:bit with the browser.

In principle there is a step which comes between 3 and 4 above. This is to ensure that the admin of the machine - the one who will use the microbit - is a member of the group plugdev. However, in practice, I have found that this is always true on Ubuntu. The command 'groups' shows the groups that the currently logged in user belongs to so can be used to check that it is the case.


Contents