Find the answer to your Linux question:
Results 1 to 3 of 3
Now that I've got samba working, I'm trying to print to Windows via samba, but it's not working. The funny thing is that when I run the following command, it ...
  1. #1
    Just Joined!
    Join Date
    Jul 2007
    Posts
    11

    Printing to a Windows machine

    Now that I've got samba working, I'm trying to print to Windows via samba, but it's not working.

    The funny thing is that when I run the following command, it will print “Hello”. But it does not work through CUPS

    echo -en "\rHello\r\f" | smbclient "//computer/Printer2" -c "print -" -N

    When I setup my printer through YaST (via SMB Network Server), after I enter the hostname, remote queue, and username, the “Test Remote SMB Access” works fine. However, when it comes to running the test print, nothing happens.

    Samba is configured as follows:

    /etc/samba/smb.conf

    # Samba config file created using SWAT
    # from 127.0.0.1 (127.0.0.1)
    # Date: 2007/07/15 21:40:53

    [global]
    workgroup = MSHOME
    netbios name = INOTE
    server string =
    security = SHARE
    map to guest = Bad User
    printcap name = cups
    add machine script = /usr/sbin/useradd -c Machine -d /var/lib/nobody -s /bin/false %m$
    logon path = \\%L\profiles\.msprofile
    logon drive = P:
    logon home = \\%L\%U\.9xprofile
    local master = No
    domain master = No
    idmap uid = 10000-20000
    idmap gid = 10000-20000
    hosts allow = 192.168.0.0/255/255/255.0, 127.0.0.1
    usershare allow guests = Yes
    hosts deny = ALL
    printing = cups
    cups options = raw
    print command =
    lpq command = %p
    lprm command =
    include = /etc/samba/dhcp.conf

    [users]
    comment = All users
    path = /home
    read only = No
    inherit acls = Yes
    guest ok = Yes
    veto files = /aquota.user/groups/shares/

    [printers]
    comment = All Printers
    path = /var/tmp
    create mask = 0600
    printable = Yes
    browseable = No

    [print$]
    comment = Printer Drivers
    path = /var/lib/samba/drivers
    write list = @ntadmin, root
    force group = ntadmin
    create mask = 0664
    directory mask = 0775

    And my printer is configured as:

    /etc/cups/printers.conf

    # Printer configuration file for CUPS v1.2.7
    # Written by cupsd on 2007-07-16 15:00
    <Printer EPSON>
    Info EPSON Stylus CX4800 Series
    Location WinXP
    DeviceURI smb://computer/Printer2
    State Idle
    StateTime 1184623172
    Accepting Yes
    Shared Yes
    JobSheets none none
    QuotaPeriod 0
    PageLimit 0
    KLimit 0
    OpPolicy default
    ErrorPolicy abort-job
    </Printer>

  2. #2
    Just Joined!
    Join Date
    Nov 2006
    Location
    Nova Scotia, Canada
    Posts
    17
    Here's an animated tutorial.
    It's Your PC

  3. #3
    Just Joined!
    Join Date
    Jul 2007
    Posts
    11
    Quote Originally Posted by Storm Rider View Post
    Here's an animated tutorial.
    It's Your PC
    I got it working, but the animated tutorials are neat. Thanks

Posting Permissions

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