How to program a non atv remote?

Is it possible to program a non atv remote to the atv1 thats running crystalubuntu? I noticed you can do it with iOS installed but not sure about just CB.