not convenient at all, secondly im having difficulties with getting anything to upload to the board, which is a nano i have laying around (the only board i have access too right now and has been functional in the past)
when selecting board i get “/dev/ttyUSB0 Serial Port (usb) (if i unplug and replug the board in, this option dissapears and reappears so its my nano, however the “ok” button to select it is greyed out.
edit: okay i got the board to connect to the ide, just had to select nano from the list then it would pick up the connected nano.
however i am now getting
OS error: cannot open port /dev/ttyUSB0: permission denied
error: unable to open port /dev/ttyUSB0 for programmer arduino
You can also create a new AppArmor profile for the Arduino IDE (that allows a non-root user to use the sandboxing in a specific application). If you copy the AppImage file to /usr/local/bin/arduino (this is the new name of the AppImage file), you can create an AppArmor profile with a configuration file, for example, in /etc/apparmor.d/usr.local.bin.arduino, containing:
abi <abi/4.0>,
include <tunables/global>
profile arduino /usr/local/bin/arduino flags=(unconfined) {
userns,
include if exists <local/arduino>
}
and reloading all AppArmor profiles with:
sudo service apparmor reload
Now you can run the Arduino IDE without the sandboxing error.
I have verified that the AppArmor policy approach does fix the problem.
Unfortunately since I am not knowledgeable in this area and the AppArmor documentation is absolutely horrendous. For this reason, despite my best efforts, I was not able to effectively analyze the policy provided by the community member. So I can't officially endorse the installation of that policy. However, I don't have any reason to believe it is flawed or dangerous, and I am using it on my own Ubuntu machine.
You can also disable Chromium's sandbox entirely with the --no-sandbox CLI flag, which will disable the sandbox for all processes (including utility processes). We highly recommend that you only use this flag for testing purposes, and never in production.
(Arduino IDE 2.x is built on the open source Electron application framework, and inherits the --no-sandbox flag from the framework)
do i need to create this file as i do not have one?
if so, i have my arduino-ide_2.3.7_Linux_64bit.AppImage located in /home/chris/Arduino directory, so it would need to look like this right?
abi <abi/4.0>,
include <tunables/global>
profile arduino /home/chris/Arduino/arduino-ide_2.3.7_Linux_64bit.AppImage flags=(unconfined) {
userns,
include if exists <local/arduino>
}
frustrating development, ive been summoned away on a family matter. i will check back asap, try anything suggested and report back on it as soon as i can. thought i had better let you know as your being kind enough to help.
i reloaded the policies as mentioned in the earlier post. i have rebooted as well and it still requires the sudo sysctl -w kernel.apparmor_restrict_unprivileged_userns=0
so i ran that command again, the sysctl etc, opened ide now i have a programmer not responding not in sunc resp=0x00 error, unable to open port /dev/ttyUSB0 for programmer arduino.
stiff frustrating that i have to run that same command every reboot to even open the ide though
Please try performing the instructions from post #6 again. Make sure to use the corrected command from post #8 at step 5. Doing that that will overwrite the current incorrect policy file and hopefully fix the problem.