Obviously new to Linux.
I finally was able to get Arduino ide 2 install on Ubuntu 24 under virtual-box.
I am trying to figure out how to get the boards to connect.
I rebooted Ubuntu and now I can't find the Arduino program.
I have looked at many posts and thousands of files but I am lost.
Please Help!
I am trying to create a desktop icon but don't know the paths, etc.
This is the desktop file.
[Desktop Entry]
Name=Arduino
Comment=Arduino IDE
Exec=/path/to/the/arduino/executable
Path=/path/to/the/arduino_folder/
Icon=/path/to/arduino/icon.png
Terminal=false
Type=Application
Categories=Utility;Application;Development;
Try this from the terminal: find -iname "ardu*" enter key. You can modify the search string any way you want to, it needs the """ at the start and end of the search term.
I am trying to create the icon. There wasn't one installed when I installed arduino ide. I searched on how to create a desktop icon file. I need to insert the program name and paths in the desktop icon file. I am just lost.
Yes I installed the apt image. After I got it installed the ide opened. I plugged a board in and the ports was still unavailable (greyed out). I did some more searching and tried a few things still no luck. I reset Ubuntu and Virtual-box when it booted back up I couldn't find the Arduino program again.
I guess I am so used to windows doing everything for you that I am struggling to do it manually.
I am not knowledgeable on the subject of desktop icon files. I know that instructions for setting one up have been shared multiple times here but I haven't bothered to try them because I am always using different versions of Arduino IDE for beta testing and support and so such an icon is not useful to me. If you can't find the other posts sharing instructions, I'm sure one of the forum helpers will be able to provide assistance.
But if you really just want to start Arduino IDE rather than having a fancy icon for it, I can tell you how to do that:
I sort of figured out how to get the board to show up.
I selected the board in the Virtualbox Devices/USB menu item
It shows in the arduino ide and I can select the port and board, however I get this error when uploading the basic blink sketch.
No device found on ttyACM0
Failed uploading: uploading error: exit status 1
Check /dev/ for ttyACMx
If I unplug and plug ib the Arduino too fast, it ends up as ttyACM1
If you unplug it for a few minutes, it goes back to ttyACM0.
Just a thought...
I'm going to ask you to provide the full verbose output from an upload attempt.
This procedure is not intended to solve the problem. The purpose is to gather more information.
Please do this:
Select File > Preferences... (or Arduino IDE > Settings... for macOS users) from the Arduino IDE menus.
The "Preferences" dialog will open.
Uncheck the box next to Show verbose output during: ☑ compile in the "Preferences" dialog.
Check the box next to Show verbose output during: ☐ upload.
Click the "OK" button.
The "Preferences" dialog will close.
Attempt an upload, as you did before.
Wait for the upload to fail.
You will see an "Upload error: ..." notification at the bottom right corner of the Arduino IDE window. Click the "COPY ERROR MESSAGES" button on that notification.
Open a forum reply here by clicking the "Reply" button.
Click the <CODE/> icon on the post composer toolbar.
This will add the forum's code block markup (```) to your reply to make sure the error messages are correctly formatted.
Press the Ctrl+V keyboard shortcut (Command+V for macOS users).
This will paste the error output from the upload into the code block.
Move the cursor outside of the code block markup before you add any additional text to your reply.
You only get the Appimage from downloading the IDE build so if you follow the procedure I provided for starting it from the terminal (or if you set up a desktop icon to execute that specific file), then you are using the good version.
However, if you did install the arduino package via APT then that might result in confusion if you forget to follow the procedure for executing the Appimage later. So I think it is a good idea to uninstall the APT package. You can do that by running this command from the terminal:
It it shows "No device found on ttyACM0", it's running some version and checking for
/dev/ttyACM0.
Like I said if you cycle the usb too fast, it ends up
/dev/ttyACM1.
So now Virtualbox locks up when uploading the program and I have to shut it down in task manager.
I am just trying to see if I can move from windows to linux. It seems like Arduino will run fine, especially if I install linux as the host operation system. That should remove the hardware issues, i hope.
I am going to play a little longer, and If I cannot get anywhere I will go dig up an old box and install linux new.
After changing the preferences as you suggested it displays this message in the output before locking up
Performing 1200-BPS Touch reset on Serial Port ttyACM0
Even with it locking up the sketch is running on the device (mkr 1010 wifi) I see the blinking LED.
Just for the heck of it I am going to try it on Hyper-V VM. I will let you know.
Nevermind. HV does not support USB hardware. Oh my it's all coming back to me now.
Well I have burnt up most of the day here. I am glad it is yucky outside.
When I installed Ubuntu on Hyper V it must have damaged my Virtualbox VM because I could not use it after that.
I reinstalled ubuntu, arduino, etc. on Virtualbox. I can't believe I used to like doing this stuff.
It is not locking up and I have more info in the output.
Here it is.
Sketch uses 12244 bytes (4%) of program storage space. Maximum is 262144 bytes.
Global variables use 2988 bytes (9%) of dynamic memory, leaving 29780 bytes for local variables. Maximum is 32768 bytes.
Performing 1200-bps touch reset on serial port /dev/ttyACM0
Waiting for upload port...
No upload port found, using /dev/ttyACM0 as fallback
"/home/frank/.arduino15/packages/arduino/tools/bossac/1.7.0-arduino3/bossac" -i -d --port=ttyACM0 -U true -i -e -w -v "/tmp/arduino/sketches/17A0814BF84855F12490BADF224C32F8/BareMinimum.ino.bin" -R
No device found on ttyACM0
Failed uploading: uploading error: exit status 1