Good, but there are a few more more steps required to use the Spark CLI without having to use sudo for every command involving serial.
To fix this, run this command in the terminal:
sudo chmod a+rw /dev/ttyACM0
You will then be able to use all of the spark commands without sudo, but however this must be done each time you connect your core.
A better way is to create a rule in /etc/udev/rules.d. This enables the chmod command to be run automatically when your core is connected.
Here are the steps:
sudo nano /etc/udev/rules.d/50-local.rules
(Paste this line)
ACTION=="add", ATTRS{idProduct}=="607d", ATTRS{idVendor}=="1d50", DRIVERS=="usb", RUN+="chmod a+rw /dev/ttyACM0"
Press Control + o and then Control + x to save.
Now whenever you plug in your Spark Core, the chmod command will be run, giving you full access to your spark core, making it so you never have to type in your sudo password when using your spark core again.
Note:
Your device id {idProduct}, and your manufacturer id {idVendor} may be different. To check, run
lsusb
And substitute your results into the /etc/udev/rules.d/50-local.rules file you created.
Bus 003 Device 026: ID 1d50:607d OpenMoko, Inc.
Was my Spark core when I ran lsusb.
When it says, ID 1d50:607d, the first hexadecimal value is the vendor, and the second is the Product ID.
If yours are different, change them in /etc/udev/rules.d/50-local.rules.