I got a steal of a deal on a Samsung ML-2150 laser printer from Buy.com (plus $10 off for signing up with Google Checkout). I was going to hold out for a good duplexing one, but I figured if this printer lasts six months, I got my money's worth. Before I received it, I read somewhere that that Foomatic hpijs driver would work. Upon hooking up the printer, I found this not to be the case. I figured I could post the process of getting it connected here.
First, make sure you have cups installed. I print through a NAS device that doubles as a print server, so I also needed to get Samba installed as well. If you don't have cups installed, a quick apt-get install cupsys will do the trick.
Conveniently, Samsung includes drivers on their disk. However, the way the installer runs is bad. It's set up to run all print jobs as root, and well, that's just not a good idea. We work around this by just using the vendor supplied Linux drivers without the installer. I went digging around and found more current drivers than were on my install cd here.
Unpack the tarball. The unpacking will create a directory called cdroot. Execute the following commands, as root:
# cp cdroot/Linux/noarch/at_opt/share/ppd/ML-2510spl2.ppd /usr/share/cups/drivers
# cp Linux/x86_64/at_root/usr/lib64/cups/filter/rastertosamsungspl /usr/lib/cups/filter/
You've just installed the needed drivers. Isn't that MUCH less painless than say, running an install disk? Now, all that's left is to navigate to http://localhost:631, which is a convenient web interface for setting up printers. Select "Add Printer" and go through the steps, naming your printer (without spaces), and giving it some metadata (location, description). When it comes time to select a .ppd file, click the browse button of the file field at the lower part of the screen, and navigate to /usr/share/cups/drivers. You should see ML-2510spl2.ppd there. Select it. Move on, making sure to enter the path to your printer (in my case, it was smb://nas1/lp, but your path will most likely be different).
Once you've completed the wizard, print a test page and pat yourself on the back. While you're at it, pat Samsung on the back for providing Linux drivers that make this process so freakin' easy.