How to install your own library with Arduino IDE 1.8.5?
You need to:


Create the folder ~/Arduino/libraries/MyLibrary
Place the library files in there named as:


~/Arduino/libraries/MyLibrary/MyLibrary.h
~/Arduino/libraries/MyLibrary/MyLibrary.cpp

Restart the IDE if it is running
Use #include &lt;MyLibrary.h&gt; in your sketch


This is assuming your sketchbook is set to ~/Arduino - change that to wherever the sketchbook is set to (check in Preferences for that location).

Note that in Linux capitalisation is important. The filesystem is case sensitive, and the name of your folder should have the same name and capitalisation as the name of your header file.