How to install Canon LBP2900 printer in Linux

I would like to share an open-source driver which one actually worked for me on Debian 10.

apt-get install build-essential git autoconf libtool libcups2-dev libcupsimage2-dev git clone https://github.com/agalakhov/captdriver.git cd captdriver autoreconf -i ./configure make cp src/rastertocapt /usr/lib/cups/filter/ cp Canon-LBP2900.ppd /usr/share/ppd/custom/

Then add your USB printer, selecting the driver Canon Inc LBP2900/LBP3010 r2c, 0.1.3 (in my case) from the list. If you have some trouble with printing, just turn the printer off and on again.