File:  [NetBSD Developer Wiki] / wikisrc / tutorials / how_to_install_laser_printer_samsung_ml-1640.mdwn
Revision 1.2: download - view: text, annotated - select for diffs
Sun Feb 5 07:14:36 2012 UTC (9 years, 8 months ago) by schmonz
Branches: MAIN
CVS tags: HEAD
dos2unix

    1: ##  Using Samsung provided drivers 
    2: 
    3: It's not a great science as it almost works out-of-the-box. All you have to do is to download the driver from samsung web page and copy two files into specified directory of CUPS system. 
    4: 
    5: The steps are as following: 
    6: 
    7: 1. Download following file [Linux Driver for CUPS](http://org.downloadcenter.samsung.com/downloadfile/ContentsFile.aspx?CDSite=nl&CttFileID=1860607&CDCttType=DR&ModelType=N&ModelName=ML-1640/SEE&VPath=DR/200802/20080227113738171_UnifiedLinuxDriver.tar.gz). 
    8: 
    9: 
   10: * * *
   11: 
   12: 2. Extract the *tar.gz file, **cd** to the directory **cdroot** and copy the following files: 
   13:     
   14:     
   15:     cp Linux/i386/at_root/usr/lib/cups/filter/rastertosamsungpcl /usr/pkg/libexec/cups/filter/
   16:     
   17:     
   18:     
   19:     cp Linux/noarch/at_opt/share/ppd/ML-1640spl2.ppd  /usr/pkg/share/cups/model/
   20:     
   21: 
   22: * * *
   23: 
   24: 3. After that execute (or reboot the machine) `**/etc/rc.d/cupds restart**` and your **Samsung ML-1640** will work just out-of-the-box. 
   25: 
   26: Enjoy ! 
   27: 
   28:   
   29: 
   30: 
   31: ##  Using a native driver 
   32: 
   33: Nowadays, the best way to get a wide range of Samsung and Xerox laser printers working with CUPS is using the [Splix](http://splix.ap2c.org/) drivers. Since it's not in pkgsrc yet, you have to download and build it yourself. 
   34:     
   35: 
   36:     $ wget http://ufpr.dl.sourceforge.net/sourceforge/splix/splix-2.0.0.tar.bz2 ;# or download from any sourceforge mirror
   37:     $ tar jxf splix-2.0.0.tar.bz2
   38:     $ cd splix-2.0.0
   39:     
   40: 
   41: To build the driver we need CUPS (print/cups) and GNU Make (devel/gmake) installed from pkgsrc. Also, we can optionally disable JBIG support or install wip/jbigkit to fulfill its dependencies. In this example, I'm about to disable it 
   42:     
   43:     
   44:     $ DISABLE_JBIG=1 gmake
   45:     $ su root -c 'gmake install'
   46:     
   47: 
   48: Now the driver is installed, along with the PPD files. You can add the desired printer(s) the usual way. 
   49: 

CVSweb for NetBSD wikisrc <wikimaster@NetBSD.org> software: FreeBSD-CVSweb