SDB:Arduino IDE

Jump to: navigation, search


Tested on openSUSE

Recommended articles

Icon-manual.png


Related articles

Icon-help.png



Situation

The Arduino IDE is available from the openSUSE Build Service for all currently supported versions of openSUSE Leap and Tumbleweed. You can choose to install using the Direct Installation method or using the terminal.


Installation

Direct Installation of Arduino IDE

For all versions of openSUSE that are currently maintained click on the button bellow for Direct Installation via YaST Software.

https://software.opensuse.org/package/Arduino

Set User Permissions and Run

After installation, you will need to make every user a member of the groups: dialout, and lock. To do this in YaST, select the Security and Users section, open the User and Group Management module and make the changes required here. To do this from the command line, enter the following as root:

usermod -a -G dialout,lock <USER_NAME> 

Then log out and log in again. Now run arduino in your favorite terminal.

Terminal Installation of Arduino IDE

Enter the following as root from the terminal of your choice for the version of openSUSE you are running:

openSUSE Tumbleweed

zypper --gpg-auto-import-keys ar -f http://download.opensuse.org/repositories/CrossToolchain:/avr/openSUSE_Tumbleweed 'CrossToolchain:avr'

openSUSE Leap

zypper --gpg-auto-import-keys ar -f http://download.opensuse.org/repositories/CrossToolchain:/avr/$releasever 'CrossToolchain:avr'
# For cross-avr-gcc13 dependency of arduino
zypper --gpg-auto-import-keys ar -f http://download.opensuse.org/repositories/devel:/gcc/$releasever 'devel:gcc'

Continue For all versions

zypper ref
zypper in arduino

Still as root, add the users to the required groups by entering the following:

usermod -a -G dialout,lock <USER_NAME>

Then log out and log in again, and run arduino in your favorite terminal.

Alternatively, if you are inpatient, make the group membership immediately effective for your terminal session (temporary measure until logout and login):

newgrp dialout
groups
arduino

ctags tool

Some arduino board packages depend on ctags, which the current packaging doesn't include (see https://github.com/arduino/arduino-builder/issues/186#issuecomment-735364260). Workaround if you encounter

fork/exec {runtime.tools.ctags.path}/ctags: no such file or directory

To set it up:

# see ~/.arduino15/package_index.json for current url
wget https://downloads.arduino.cc/tools/ctags/ctags-5.8-arduino12-linux_amd64.tar.gz
tar xzf /ctags-5.8-arduino12-linux_amd64.tar.gz
mkdir -p ~/.arduino15/packages/builtin/tools
cp linux_amd64/ctags ~/.arduino15/packages/builtin/tools/
# example for adafruit, but generally for whichever hardware that complains during verify/upload
echo "tools.ctags.path=$(realpath ~/.arduino15/packages/builtin/tools)" >> ~/.arduino15/packages/adafruit/hardware/samd/1.7.17/platform.txt 


See also

Related articles

External links