Good afternoon, I’m writing this post in case anyone has run into any issues using the portable version of Arduino for Linux. I know it’s not a very common setup; in fact, I’m writing this because I haven’t been able to find a solution anywhere else, so I’m posting it here in case anyone else has the same problem—here’s the solution. I should mention that I use Arch Linux (I use arch btw), so I don't know if other distributions will have the same issue.
To use the portable version of Arduino for Linux, you need to do a few things:
First, download the portable version for Linux (.zip) from the website:
https://www.arduino.cc/en/software/
Then extract it to the folder where you want to use it.
IMPORTANT: On Linux, for security reasons, the system often cannot run executables from a USB drive. This is because the USB drive’s file system is mounted with the noexec option. Therefore, it’s best to copy the entire folder to a location on your computer.
After that, in the terminal, navigate to the folder containing the executable and try running it with:
./arduino-ide (or whatever name the executable currently has)
sudo ./arduino-ide
If that doesn’t work, try granting permissions with chmod +x arduino-ide
After that, repeat the previous steps. If you still get permission error messages or messages saying the command cannot be found, it’s for the reason I mentioned.
To fix this, you need to copy the folder you extracted to a location on your computer's hard drive (or extract it again directly on your computer) and follow the same steps as before. It's important to run the chmod command in case you encounter the errors mentioned earlier. After that, it should load.
One problem I’ve encountered—and that you’ll likely face as well—is that even if the Arduino IDE application opens, it will keep loading. If you look at the terminal, you’ll see a message like this:
daemon INFO Starting daemon from /home/yourUsername/FoldersWhereYourArduinoVersionIsLocated/arduino-ide_2.3.8_Linux_64bit/resources/app/lib/backend/resources/arduino-cli...
daemon ERROR Error: spawn /home/yourUser/FoldersWhereYourArduinoVersionIsLocated/arduino-ide_2.3.8_Linux_64bit/resources/app/lib/backend/resources/arduino-cli EACCES
That’s because when you try to open the application, it also has to load that executable, and just like before, it doesn’t have permission to run it on the disk. You need to go to the folder containing that executable and grant it the necessary permissions:
Close the Arduino application
Go to this folder:
cd /home/yourUsername/FoldersWhereYourArduinoVersionIsLocated/arduino-ide_2.3.8_Linux_64bit/resources/app/lib/backend/resources/
Grant the necessary permissions:
chmod +x arduino-cli
From this point on, the application should open, and you should be able to start working with it.
Honestly, even though I use Linux for almost everything, I recommend programming on Windows for this project—as much as it pains me to say so. It’s less of a headache, and you’ll likely run into fewer issues this way. But if you want to develop the application and then, at a later time, simply switch to Windows to upload the program, that could be an option.