Adding Third Party Library in Ubuntu

Hello All

I am new to Ubuntu, I would like to add pgmspace.h library as shown in the following link

https://github.com/mikalhart/galileo-Pgmspace.h

Ubuntu is not allowing me to add files directly by dragging files to respective location. any help through command or terminal mode.

I am forced to use Ubuntu because I tried to install Arduino IDE latest version in WIndows 7, the program disappears after several clicks.

Atleast Ubuntu does have the problem.

--
Kind help pls.
Durai
India

durai_ALD:
the program disappears after several clicks.

Do you have the latest version of Java?

And to add library, I guess the Linux version also has the Add .ZIP library function under Sketch -> include Library. This should work.

Thanks for your reply, the pgmspace need to be added as it given in the github link, which is mandatory to run LED matrix, I need a kind help in doing so

Then click on download zip op the GitHub and use the add .Zip Library in Arduino

It is a third party hardware library, it needs to be added in specific location

C:/...arduino/hardware/arduino/x86/cores/arduino/avr/pgmspace.h.

In general, I have experience in adding LedControl.h and Matrix.h library using Sketch -> include Library.

But this is specific to particular hardware folder, I had already downloaded the pgmspace.zip files, ubuntu is not allowing me to add the file to particular location. Permission restricted

then use sudo...

Thanks for reply, pls expand the command so that I will try

In a terminal window

sudo cp /full/path/to/file/now.h /full/path/to/Arduino/location/