How to migrate an IDE to another PC?

Maybe mine is a stupid question. :-[

I need to exactly duplicate my IDE 1.8.1 installation on an Ubuntu-16 PC to an Ubuntu-10 PC located in my "laboratory". In the lab there there is no internet connection available, anyway I need to keep to current version of the libs I'm using.

What folders should copy on my USB-key? Are this below ok?

  • the installation folder (/home/giulio/arduino-1.8.1/arduino)
  • the sketchbook folder (/home/giulio/sketchbook/)
  • the configuration folder (/home/giulio/.arduino15/)
  • .....what else?

I was never going deep in the argument because I'm lazy: Arduino uses his own C/C++ compiler, right? So I will not have problems in installing it on two different Linux version, yes?

copy *.tar.gz file

un-archive

gimpo: - the installation folder (/home/giulio/arduino-1.8.1/arduino) - the sketchbook folder (/home/giulio/sketchbook/) - the configuration folder (/home/giulio/.arduino15/) - .....what else?

That should be everything.

gimpo: Arduino uses his own C/C++ compiler, right? So I will not have problems in installing it on two different Linux version, yes?

Yes, as long as you use the official Arduino IDE downloaded from http://www.arduino.cc/en/Main/Software all the tools will either be in /home/giulio/arduino-1.8.1/arduino/hardware/tools or /home/giulio/.arduino15/packages (for packages installed via Boards Manager) or /home/giulio/sketchbook/hardware (for manually installed hardware packages). If you get the version from a package manager they have modified it to use the external tools.

You might find it useful to use the Arduino IDE in portable mode, which would allow you to run everything from your USB drive: https://www.arduino.cc/en/Guide/PortableIDE

Thanks a lot for the answer Pert. :)

Also the trick about the portable mode is interesting. Unfortunately, one should have chosen that mode from the begining (i.e. the first installation of the software).

gimpo: Unfortunately, one should have chosen that mode from the begining (i.e. the first installation of the software).

No, you can create the portable folder structure from a non-portable folder structure

{folder on USB drive} |arduino-1.8.1 |_portable |{sketchbook folder}

  • {folder on USB drive} - Can be wherever you want on the drive.
  • arduino-1.8.1 - This contains the contents (not shown here) of your current /home/giulio/arduino-1.8.1/arduino
  • portable - Create this folder and move the contents of your current /home/giulio/.arduino15/ to it.
  • {sketchbook folder} - Optionally you can put your sketchbook within the portable folder in order to have everything under a single folder. You also have the option of putting your sketchbook somewhere else. After setting up your portable installation on the USB drive, start the Arduino IDE and then set the new sketchbook location via File > Preferences > Sketchbook location.

Ok, it's clear. Thanks!