Following HamidReza advice, I've posted my question on the raspberry stack exchange and got an answer that worked!
I'm now closing this question.