Colleagues, please tell me how to install Arduino IDE 2 in Ubuntu Linux?
To my surprise, I did not find software in .deb or .rpm format on the site.
There is only a binary module in AppImage format and a .zip archive without installation instructions.
Ubuntu itself can only install Arduino IDE version 1.8.19 using program Ubuntu Software, but it has problems using GLIB for some platforms.
What should an Ubuntu user do? How to properly install Arduino IDE 2 or how to update Arduino IDE 1.8?
Thank you for your answer, but, unfortunately, it did not help me much.
In fact, the whole instruction boils down to how to set the file's execute attribute.
In fact, I was asked to download an executable file that was compiled as not requiring installation, and somehow, on my own, install it on the system. If I can.
In my opinion, this is either a desire to impress with the originality of the approach or just a mockery. The user is expected to be able to:
Figure out where to put this executable superfile.
Find an icon for it somewhere.
Customize this file in your Linux as an executable program - associate it with an icon and without error create a shortcut to the executable file in the list of programs.
Regularly check of updates, manually download them and recreate the program shortcut.
Isn't it easier to create a deb package, and all of the above will be done automatically, strictly according to the rules of a particular Linux?
I apologize if I misunderstood something or expressed myself somewhat sharply, but the proposed approach managed to surprise me.
Nothing original here. AppImage is a quite common software packaging format:
Put it anywhere you like.
Do you really need one?
It is unfortunate that this step is required, but it is well documented. Over years of supporting Arduino IDE 2.x users, I have not seen significant evidence that the AppImage users find this to be challenging.
Arduino IDE has an auto-update capability. You will get a notification dialog in the IDE when a new version is available and you can simply click a button to update.
Arduino's philosophy has always been that the community is welcome to maintain 3rd party package repository packages, but Arduino will not. In fact, you will find the community has already done so. But support for these 3rd party packages is the responsibility of the package manager. Arduino only provides official support for the software downloaded from the official "Software" page on arduino.cc.
Go down the page in the link to Linux. There's an explanation. Hope this helps!
Alternative:
To install Arduino IDE 2 on Ubuntu, you can download the AppImage 64 bits (X86-64) from the Arduino Software page. Before you can launch the editor, you need to first make it an executable file. This is done by right-clicking the file, choosing Properties, selecting the Permissions tab, and ticking the Allow executing file as program box. You can now double-click the file to launch the Arduino IDE 2 on your Linux machine.
Thank you, I also have an idea of what it is. This form of linking an application is very handy when launching it without installing it on the system.
But there are cases when the installation in the system gives its advantages. I believe that constantly working with a package on one stationary desktop is just such a case.
Undoubtedly. If you cannot distinguish applications in the dock, there are only black squares, then it is very inconvenient to use this. (Maybe you are a fan of Kazimir Malevich?) Icons were invented for a reason.
By the way, can you give a link to the Arduino IDE icon for different resolutions?
If it's about saying chmod 0755 filename, then I agree - it's not hard at all. And now, without studying the manuals, try to describe your application so that it appears in the list of applications in your graphical environment, starts from it and has an icon.
It is very interesting. How is this done technically? Any AppImage is a monolithic file, and obviously, its components cannot be replaced separately. Obviously, a new file in AppImage format will be loaded. Where will it be uploaded and under what name? After I use this ingenious automation, will I have to manually reconfigure all application customization on the system because the file name has changed?
Very bold! So far, alas, I find that the Ubuntu community is distributing version 1.8.19 with the old glib. Otherwise, I wouldn't bother the community here.
Why does everyone here stubbornly pretend that installing an application into the system is just a file attribute change? Installing an application into the system is much more difficult...
I am also very sorry that I am upset, and the fact that the problem will have to be solved on my own, I already understood from the context of the conversation. Thank you for your help.
Really, you fatally underestimate yourself! I am ready to tell you how you could help me.
From the link above, I learned that for many years users have been persuading developers to insert an application icon into the AppImage file, explain that this is quite possible and not difficult, point to available examples. They have already begun to be scolded. And all to no avail.
We can find only one explanation for this. AppImage is assembled by disguised Anunnaki from the planet Nibiru and they do not understand human languages. Only C and C++.
If you know how to explain to these obstinate reptilians that you can insert an icon in 15-20 minutes, and all of humanity will immediately be delighted with this and stop pestering them, it will be just wonderful.
Open the AppImage (don't forget to make the file executable and install libfuse2 as mentioned in the Arduino documentation).
While it's opened, type in a terminal : mount | grep AppImage
This should output something like this :
arduino-ide_2.1.0_Linux_64bit.AppImage on /tmp/.mount_arduinkRI6cP type fuse.arduino-ide_2.1.0_Linux_64bit.AppImage (ro,nosuid,nodev,relatime,user_id=1000,group_id=1000)
Note the path to the temp folder, here /tmp/.mount_arduinkRI6cP (you will need to replace this path in the following commands).
This folder should already include an icon and a .desktop file.
For the icon : find /tmp/.mount_arduinwozLsj -iname "*.png"
This should return a lot of files, for me the icon was conveniently at the end so I didn't have to scroll : /tmp/.mount_arduinkRI6cP/usr/share/icons/hicolor/512x512/apps/arduino-ide.png
Now, copy this icon somewhere, it can be the same folder where you put the AppImage, but I personnaly put it in .local/share/icons : cp /tmp/.mount_arduinkRI6cP/usr/share/icons/hicolor/512x512/apps/arduino-ide.png ~/.local/share/icons/
You can set the icon of the AppImage using its Properties.
Also find the .desktop file (this will add the app to the launcher) : find /tmp/.mount_arduinkRI6cP -iname "*.desktop".
Copy it to /usr/share/applications, or ~/.local/share/applications : cp /tmp/.mount_arduinkRI6cP/arduino-ide.desktop /usr/share/applications/
Now edit this file with your favorite text editor (gedit, nano, vim if you know how to get out of it ) : nano /usr/share/applications/arduino-ide.desktop
You need to edit Exec and Icon paths to match those where you copied the .AppImage and the icon. You can also edit the name, comment...
Here is what my .desktop file looks like (I also copied bits from the Arduino 1 IDE already installed on my computer) :
[Desktop Entry]
Name=Arduino IDE v2
Comment=Open-source electronics prototyping platform
GenericName=Arduino IDE v2
Exec=~/Applications/arduino-ide_2.1.0_Linux_64bit.AppImage
Icon=~/.local/share/icons/arduino-ide.png
Type=Application
Terminal=false
Categories=Development;Engineering;Electronics;IDE;
Keywords=embedded electronics;electronics;avr;microcontroller;
X-AppImage-Version=2.1.0
StartupWMClass=arduino ide
Save you edits and you should now see the app in your launcher !