In the Tekke of Frashër, he received lessons in all the common subjects of his time especially in languages such as Arabic, Ottoman Turkish and Persian. As a member of a family which gave him a strong Bektashi upbringing, he spent a part of his time in a Bektashi tekke. After the death of their parents, the family moved to Ioannina in 1865. The eldest brother, Abdyl (b. 1839), became the family head at the age of 22 and started working as a merchant. That year Naim and Sami enrolled in the Zosimaia secondary school. The education there provided Naim with the basics of a classical education along Western lines. Apart from languages he learned in the Zosiamaia (Ancient and Modern Greek, French and Italian), Naim took private lessons in Persian, Turkish and Arabic from two important local Bektashi.