Yes, use CUPS(common Unix printing system). I had the same setup sometime past and used CUPS, it may require some expermentation and adjustments,. but it will do what you want.