I did the same with an rpi3, not sure if I used this guide but it seems good:
https://www.raspberrypi.com/news/printing-at-home-from-your-...