The Samsung ML-2165 is a black-and-white laser printer, that can be connected with USB. The Version ML-2165W additionally supports WiFi.
Both printers (ML-2165 and ML-2165W) are supported in with Linux by the “Samsung Unified Linux Driver”, which can be downloaded from the Samsung homepage.
As prerequisite for the installation of the “Samsung Unified Linux Driver” the tools CUPS, SANE, and GhostScript have to be available on the Linux system.
The installation of the Samsung Unified Linux Driver in Ubuntu is described at http://wiki.ubuntuusers.de/Samsung-Laserdrucker?highlight=samsung#Samsung-Unified-Linux-Driver (in German only).
Additionally, a very detailed description is available in an public article of the magazine LinuxUser providing a step-by-step installation instruction (in German only).