Results 1 to 10 of 10

Thread: Problem with Print Server

  1. #1
    Associate
    Join Date
    Feb 2002
    Posts
    13

    Problem with Print Server

    I have a HP 500 Deskjet printer connected to my linux box, and I have Samba running. *I can see the printer on my windows machine, I have the printer added and installed the drivers on my windows machine. *Great right? Wrong, it won't print anything! *The Windows Print Status says the job is going through, lpq shows nothing and the printer never prints anything.

    The printer works fine when I do lptest locally. *Is there something I missed in the setup??

  2. #2

    Re: Problem with Print Server

    How did you setup your printer? If you used CUPS, there's some extra stuff you have to do to get it working with Samba.

  3. #3
    Associate
    Join Date
    Feb 2002
    Posts
    13

    Re: Problem with Print Server

    I setup the printer using lpd. Would switching to cups maybe be easier? Here is what I have in my smb.conf for my printer.

    [global]
    printing = bsd
    printcap name = /etc/printcap
    load printers = yes

    [printers]
    comment = All Printers
    path = /var/spool/lpd/hp500
    browseable = no
    printable = yes
    public = yes
    writable = no
    create mode = 0700

    [hp500]
    path = /var/spool/lpd/hp500
    printer name = hp500
    writeable = yes
    public = yes
    printable = yes
    print command = lpr -Php500
    create mode = 0700
    use client driver = yes

  4. #4

    Re: Problem with Print Server

    here is my smb.conf file - it works quite well. i also use lpd
    Code:
    #======================= Global Settings =====================================
    [global]
    
      workgroup = HARRIS 
      server string = Samba Server
      printcap name = /etc/printcap
      load printers = yes
      printing = lprng
      log file = /var/log/samba/%m.log
      max log size = 0
      security = user
      encrypt passwords = yes
      smb passwd file = /etc/samba/smbpasswd
      socket options = TCP_NODELAY SO_RCVBUF=8192 SO_SNDBUF=8192
    #============================ Share Definitions ==============================
    [homes]
      comment = Home Directories
      browseable = no
      writable = yes
      valid users = %S
      create mode = 0664
      directory mode = 0775
    [printers]
      comment = All Printers
      path = /var/spool/samba
      browseable = no
      guest ok = no
      writable = no
      printable = yes
    # This one is useful for people to share files
    [tmp]
      comment = Temporary file space
      path = /tmp
      read only = no
      public = yes
    [mp3s]
        path = /mp3s
        guest ok = Yes
        read only = Yes

  5. #5
    Associate
    Join Date
    Feb 2002
    Posts
    13

    Re: Problem with Print Server

    The only thing that looks different between the files, is the printing line. What options do I have for 'printing = ' ?

  6. #6

    Re: Problem with Print Server

    i know i used to have BSD for the printing line - does the samba log show anything?

  7. #7
    Associate
    Join Date
    Feb 2002
    Posts
    13

    Re: Problem with Print Server

    Nope /var/log/log.smbd shows no errors.

  8. #8
    Associate
    Join Date
    Feb 2002
    Posts
    13

    Re: Problem with Print Server

    I'm starting to wonder if maybe switching to cups would solve my problem. Any opinons on this?

  9. #9

    Re: Problem with Print Server

    hello,
    what does smbclient -U root -L $HOSTNAME give - it should return all available resources - you may also want to try testparm.

  10. #10
    Associate
    Join Date
    Feb 2002
    Posts
    13

    Re: Problem with Print Server

    I've decided to ditch lpd and I switched over to using cups. In doing so, I now have more questions. ;D

    First, incase I haven't said it yet, I am using an HP DeskJet 500. The only way I can get cups to print readable text is by using the 'Raw' driver, however when I print a testpage I have the stairstep printing effect. I've been told to use apsfilter, but I don't quiet understand how that works.

    My second problem is, I now can't see the printer on my Windows machine using Samba. Samba is running, I can view my /home directory(the only directory I have setup in Samba) with no problem. Here is my smb.conf file:

    Code:
    [global]
      WORKGROUP = House
      encrypt passwords = yes
      smb passwd file = /usr/local/private/smbpasswd
      ; Mangle case = yes seems to give the correct filenames 
      ; for Win95/98/NT.
      mangle case = yes
    
      ; If samba is case sensitive when looking for files
      case sensitive = no
    
      ; Default case of files that are created
      default case = lower
    
      ; Preserve case for all filenames
      preserve case = yes
    
      ; Preserve case for dos (8.3) filenames
      short preserve case = no
      printing = cups
      printcap name = cups
      load printers = yes
      guest account = guest
      log file = /usr/local/samba/log.%m
    [homes]
      comment = Home Directories
      browseable = no
      read only = no
      create mode = 0750
    
    [printers]
      comment = All Printers
      path = /var/spool/cups
      browseable = yes
      printable = yes
      public = yes
      writable = no
      create mode = 0700

    I never thought setting up a printer in linux would be this hard. >

Similar Threads

  1. internet and print server
    By modmaster in forum Linux - General Topics
    Replies: 1
    Last Post: 06-07-2004, 02:27 AM
  2. Linux print server in a windows environment
    By demian in forum Linux - Hardware, Networking & Security
    Replies: 1
    Last Post: 11-15-2003, 06:48 AM
  3. Cannot Print to Samba Server
    By anomaly in forum Linux - Software, Applications & Programming
    Replies: 0
    Last Post: 07-11-2003, 03:25 PM
  4. print server
    By agar in forum Linux - Software, Applications & Programming
    Replies: 2
    Last Post: 12-12-2001, 01:22 AM
  5. print server
    By agar in forum Linux - Hardware, Networking & Security
    Replies: 3
    Last Post: 12-03-2001, 06:25 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •