CUPS+SAMBA

12.03.2006Категория: Работа, Статии

I just purchased a Samsung ML-2010 Mono Laser Printer and wanted to turn it into a network printer. Since my linux box is online 24/7 I connected the printer to it. Something good about it is that it came with drivers for linux. So I ran the installer in the CD and installed the drivers. Than I used the configuration tool provided with the CD to install and configure the printer. CUPS was happy with it. I use slackware linux so i just had to chmod +x /etc/rc.d/rc.cups and now my printing daemon starts on boot. So the linux printing was done. But I also have an iBook and my roomate has windows box. So I had to configure SAMBA. Here is my config file:

[global]
netbios name = Geodar
security = SHARE
passdb backend = guest
ldap ssl = no
hosts allow = 192.168.0.

[share]
path = /mnt/D
read only = No
guest ok = Yes

[ml-2010]
path = /var/spool/samba
guest ok = Yes
printable = Yes
use client driver = Yes

that’s it.
My printers.conf for CUPS is :

<DefaultPrinter ML-2010>
Info Samsung ML-2010 Series (SPL II)
Location
DeviceURI usb:/dev/usb/lp0
State Idle
Accepting Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
</Printer>

cupsd.conf is a little bigger but all I did was to add Allow From 192.168.0.* below every Allow From 127.0.0.1
restarted cupsd
started smbd
and the next step was to install the driver on the windows and mac machines.
Installing the printer under windows is easy. Just browse the server IP(where the printer is connected) and you should see the shared printer. Right click on it and select connect. After it finishes updating/installing you should be good to go.

Under Mac OS X, however, was a little tricky.
After installing the driver I ran the Printer Setup Utility (in System preferences, Print & Fax and you click on the +).
Pressing and holding the Option key, click on More Printers. keep holding the Option key and on the first drop down menu select Advanced. On the second select Windows Share. Now you can releise the option key. In the dialog just enter the name for your printer “Samsung ML-2010″ in my case. Than in the address enter “smb://192.168.0.109/ml-2010″ < - the ip is the IP of the server and the ml-2010 is the name of the printer share in your samba configuration.
Than from the drivers select the allready installed Samsung Driver and you are all set.

Now everyone in our house can print from our small Samsung ml-2010.

2 коментара at CUPS+SAMBA

  1. Hi Georgi,
    I tried also to share ML-2010 through CUPS & SAMBA with a Windows XP machine. I configured the printer to use a raw queue and the XP cube should use its own Samsung printer driver. Everything was OK, I saw the printer in network, I could connect it. My problem is, if I try to print a test page from printer settings menu, the samsung’s driver has an exception and the explorer is restarted. No test page comes out.
    Have you an idea how to fix this? As you write you got it working.

    Thank you.

    Best regards,

    sansara13

    Коментар от Sansara — 4. октомври 2006 #

  2. Hi Sansara,
    I had no problems installing it under windows and I do not remember anything fancy being done to make it work. To be honest I have not tried test print, I go ahead in my firefox and print some web page. Is your problem just in the test page or any print command?
    Try changing the drivers for the windows box with more recent ones.
    If you can, try installing the printer on another windows machine ( a laptop or something like that ) and see if the behaviour is the same.
    In the end if nothing works try to resetup the whole cups+ samba thing.
    Do you see the light on the printer flashing at any time or no, also check the logs of cups, if the request made it to the printer at all. Do you happen to have a 64bit windows that uses bad drivers?

    These are my guesses. I hope they guide you to your solution.
    Good luck!

    Коментар от TeraHz — 4. октомври 2006 #

Вашият коментар


Georgi’s Blog is proudly powered by WordPress
Постове (RSS) and Коментари (RSS).
Get Firefox! Creative Commons License
23 queries. 1,377 seconds.