[Date Prev][Date Next] [Thread Prev][Thread Next] [Date Index] [Thread Index]

Problem: printing to HP LaserJet - SAMBA and CUPS problem?



Hi Debian masters,

I have installed a Debian box at the office which is mainly a Windows network:

emba-master:/home/emres# uname -a
Linux emba-master 2.4.27-2-386 #1 Mon May 16 16:47:51 JST 2005 i686 GNU/Linux

Then I also installed SAMBA and CUPS. For now, we can connect to Debian and
use it as a file server. It is also possible to sit in front of the machine and print to
the HP LaserJet 1100 connected to it.

*Problem*: I just can't make MS Windows PCs print to HP LaserJet installed on Debian.

Here's smb.conf:

==========================================================
emba-master:/home/emres# cat /etc/samba/smb.conf | egrep -v " *(;|#)"

[global]
 workgroup = emba.networks
 server string = %h server (Samba %v)
 log file = /var/log/samba/log.%m
 max log size = 1000
 syslog = 0
 panic action = /usr/share/samba/panic-action %d
 security = user
socket options = TCP_NODELAY

[webroot]
 comment  = Web Server Root
 path     = /var/www/apache2-default/web/
 writable = yes

[homes]
 comment  = Home Directories
 browseable = yes

[Programs]
 path     = /home/winshare/programs/
 comment  = Programs
 writable = yes

[Games]
 path     = /home/winshare/games/
 comment  = Games
 writable = yes

[Movies]
 path     = /home/winshare/movies/
 comment  = Movies
 writable = yes

 writable = yes
 create mask = 0777
 directory mask = 0777

[printers]

[print$]
 comment = Printer Drivers
 path = /var/lib/samba/printers
 browseable = yes
 read only = yes
 guest ok = yes

[EmbaPrinter]
      comment = EmbaPrinter
      writeable = yes
      printable = yes
      path = /var/spool/samba
==========================================================


And cupsaddsmb worked without problems:

=============================================================
emba-master:/home/emres# cupsaddsmb -H emba-master -U root -h emba-master -v EmbaPrinter

Password for root required to access emba-master via SAMBA:
Running command: rpcclient emba-master -N -U'root%XXXXX' -c 'setdriver EmbaPrinter EmbaPrinter'
Succesfully set EmbaPrinter to driver EmbaPrinter.
=============================================================

However, when I connect from a MS Windows PC to \\emba-master and see a printer named EmbaPrinter and right-click on it, trying to Connect it doesn't provide me any
valid driver (showing an unrelated local folder on my PC).

Besides, as you see above there's a "path = /var/lib/samba/printers" line in smb.com
however:

=============================================================
emba-master:/home/emres# ls -laR /var/lib/samba/printers/
/var/lib/samba/printers/:
toplam 16
drwxr-xr-x  4 root root 4096 2005-11-25 00:48 .
drwxr-xr-x  3 root root 4096 2005-11-25 00:50 ..
drwxr-xr-x  2 root root 4096 2005-05-27 10:16 W32X86
drwxr-xr-x  2 root root 4096 2005-05-27 10:16 WIN40

/var/lib/samba/printers/W32X86:
toplam 8
drwxr-xr-x  2 root root 4096 2005-05-27 10:16 .
drwxr-xr-x  4 root root 4096 2005-11-25 00:48 ..

/var/lib/samba/printers/WIN40:
toplam 8
drwxr-xr-x  2 root root 4096 2005-05-27 10:16 .
drwxr-xr-x  4 root root 4096 2005-11-25 00:48 ..
==============================================================

Where are the drivers? Am I doing something wrong?

Another strange situation when I start my Windows Explorer to browse \\emba-master in the "Printers" shared folder I see another printer called "lp dot matrix printer" which I didn't define in smb.conf; I also tried my chance with that, trying to install some HP
driver but then I still couldn't print.

What shoul I check? How can I troubleshoot this?

All I need is to be able to print from MS Windows clients to the HP LaserJet installed
on Debian (which is working fine locally).

Cheers,
Emre Sevinc
Istanbul Bilgi University




Reply to: