So now I have the new IDE, WHERE do I put it?

Just the other day I updated from the old IDE to version 2.
(wow!)

But I'm a novice at this sort of stuff.

I use Ubuntu 22.04.LTE

It uses this thing called SNAP for software package handling.

(Not that good for me just now)

If I open the SNAP thing it says I have the old IDE installed.
No upgrade options. (Doesn't matter, just mentioning)

So I downloaded the ZIP file and extracted it.
(As per the instructions on/in the link)

This is where the confusion sets in.

Yes, I can use/run it from there. Fine.

But Downloads/(big name) is not exactly the best place (path) to have a permanent program.

So where do I put/move this extracted directory (and can I rename it something more user-friendly?

You can put it anywhere you like. There aren't any technical requirements for the location.

Yes. Renaming it won't cause any problems.

I use Linux and have several versions of the IDE on my computer. I have not added the 2.n version.

Thanks all.

After a lot of deliberation, I think it goes in the /opt folder.
I've renamed it to arduino_ide which is as good a name as any.

Now I'm stuck with how to add the icon to my favorites startbar.

Oh, while I'm asking.

The icon for the 1.8.19 IDE is the aruduino icon.
This one is not. Can I change it?

(Sorry: HOW do I change it?)

Again:
Thanks in advance.

Thanks.

Alas ITMT I got a reply in/from the ubuntu forum and was shown how to do it from there.

Though I suspect it would be along the same line as you gave.

Can you provide a link to your thread there? It can be useful (for others).

This is the crux of what was said:

This is (therefore) worded for my specific case.

Snap Packages are created separately from a software's release and they may not be made by the software's developer. Each time some software is updated the snap package must also be updated so people can get the latest version of the software through Snap. You can see on the SnapCrafter's website that there has not been an update to the Arduino IDE snap since December 2022, which is why when you installed the Snap you got an outdated version of the software. You won't be able to get the Arduino IDE at the latest version with Snap until the owner of this Snap Package updates it. This happens with most package managers. They make installation easier and in the case of APT they will be tested for your release of Ubuntu; but typically to get the latest version of any software you have to go directly to their website and use only the official packages offered.

Regarding where to put software can be argued for hours, but I would recommend putting the files in /opt and creating a symlink to /usr/bin. Do the following.

    Uninstall the Snap sudo snap remove arduino

    Create the directory in /opt
    sudo mkdir -p /opt/arduino-ide

    Copy the unzipped contents into there:
    sudo cp -r ~/Downloads/arduino-ide_nightly-20231006_Linux_64bit/* /opt/arduino-ide/

    Create a symlink of the binary into /usr/bin. Doing this means the Arduino binary will be available to run from the terminal without referencing the entire file-path, i.e. you can run arduino-ide to open it.
    sudo ln -s /opt/arduino-ide/arduino-ide /usr/bin/

    Finally, in order to get a nice launcher-tile in the applications tray, we have to create a .desktop file and place it in ~/.local/share/applications/
        Create the file and open it with a text editor:
        gedit ~/.local/share/applications/arduino-ide.desktop
        Paste in the following:

    [Desktop Entry]
    Name=Arduino IDE
    Exec=/opt/arduino-ide/arduino-ide
    Terminal=false
    Type=Application
    Icon=/opt/arduino-ide/arduino.png
    Comment=Arduino IDE
    Categories=Development;

    Save and close the file.
    3. Download the icon and save it in /opt:
    sudo wget https://raw.githubusercontent.com/arduino/arduino-ide/main/electron-app/resources/icons/512x512.png -O /opt/arduino-ide/arduino.png
1 Like

Thanks.

I'll try to remember this for future times when this situation may happen.

I would have phrased it differently: "if all users of the computer will use the application, put it in /opt (or maybe /usr/local), even if that is only one user. If no one but you will use it, even if your computer somehow acquires additional users, put it in ~/bin"

This topic was automatically closed 180 days after the last reply. New replies are no longer allowed.