• SMB connect to printer


    Hello to everyone. Sorry for my english.
    I’ve got problem with connecting to printer through samba: everytime when i want to print something - it’s asking for username and password and seems like it going for the loop.
    I as trying to configure /etc/cups/printers.conf by adding # to a line

    AuthInfoRequired username,password
    

    and editing line

    DeviceURI
    

    but everytime i want to print - file discard all changes and goes on his default again and again.

  • the Printer is connected to a Windows PC inside your local network?
    Or you want to share it from your Linux System over samba to windows clients?

    The preferred way to connect a Windows client to a Linux print server is using IPP.

    Windows Server to Linux Client: you need to set up an IPP-Server on Windows, or A much simpler way is using Window’s native printer sharing via Samba.

    As Wiki detailed here: Arch Wiki Cups

    [updates once a week] = [90% less problems]
    [Li{u}n//u//{i}x] since 1988 - overcoming failure means success
    howto-install-antergos
    how to add system logs
    i3 GNOME

  • @joekamprad Windows Server and i’m trying to connect through samba from linux machine
    I’ve read it, but i’m talking about problem even in editing file “printers.conf”, why this file always discards all changes?

  • As far as i know there is no need to edit this file. It is more easy and secure to use the webinterface for cups…

    If a password is needed:

    simply log in on the CUPS web interface [http://localhost:631] in your webbrowser and choose to add a new printer. As a device choose “Windows Printer via SAMBA”.
    For the device location, enter:

    smb://username:[email protected]/printer_name
    

    no password needed:

    smb://[email protected]/printer_name
    

    username and password needs to be a real account on windows mashine… as far as i remember

    [updates once a week] = [90% less problems]
    [Li{u}n//u//{i}x] since 1988 - overcoming failure means success
    howto-install-antergos
    how to add system logs
    i3 GNOME

  • @joekamprad will try it tommorow and gonna tell will it works or not. Thank you, anyway :)

  • @joekamprad said in SMB connect to printer:

    smb://username:[email protected]/printer_name

    i’ve done as u said - still not working. Asking for authentication again and again.
    i’ve added printer with such params.

    smb://**domain**\**username**:**password**@**ip-adress**/hp%20LaserJet%203020%20UPD%20PCL%206
    

    and after i added the row with it change to the row

    smb://**ip-adress**/hp%20LaserJet%203020%20UPD%20PCL%206
    

    what could you suggest me?

  • do you try without password?

    [updates once a week] = [90% less problems]
    [Li{u}n//u//{i}x] since 1988 - overcoming failure means success
    howto-install-antergos
    how to add system logs
    i3 GNOME

  • yes, same :(

  • reason is may that samba is not enabled inside cups:

    try:

    ln -s $(which smbspool) /usr/lib/cups/backend/smb
    

    [updates once a week] = [90% less problems]
    [Li{u}n//u//{i}x] since 1988 - overcoming failure means success
    howto-install-antergos
    how to add system logs
    i3 GNOME

  • I am not an expert on samba…
    But usually it is easy to connect a shared samba printer with cups…

    May the problem is on windows side… printer needs to be shared correct by windows…

    [updates once a week] = [90% less problems]
    [Li{u}n//u//{i}x] since 1988 - overcoming failure means success
    howto-install-antergos
    how to add system logs
    i3 GNOME

  • @joekamprad i’m pretty sure that it’s working correct, cause on ubuntu 14.04 i’ve connected to that printer without any problems =\

  • smb://workgroup/username:[email protected]/printer_name
    

    may help

    [updates once a week] = [90% less problems]
    [Li{u}n//u//{i}x] since 1988 - overcoming failure means success
    howto-install-antergos
    how to add system logs
    i3 GNOME

  • @joekamprad did it. As i said before, when the printer is successfully added to the system i’m trying to print a test-page and every time i do this - the config changing to the row without username and password (even i’ve writter there domain, without domain). That’s why i want to correct the printers.conf.
    After “google” i’ve found that not only on archlinux such problems, there is the same problem on ubuntu. And no one found the solution :(

  • If you control the Win-PC you can enable LPD Printserver on it:
    https://wiki.archlinux.org/index.php/CUPS/Printer_sharing#Sharing_via_LPD

    Or try to investigate what is wrong with sambaclient at your Antergos…

    you can check if you have smbclient installed:

    yaourt -Qs smbclient
    
    smbclient -L \\"winhostname"
    

    [updates once a week] = [90% less problems]
    [Li{u}n//u//{i}x] since 1988 - overcoming failure means success
    howto-install-antergos
    how to add system logs
    i3 GNOME

  • I try do reproduce your problem…
    But smb shared printer from win10 works without a problem here…
    But i have a windows account not a local one…

    [updates once a week] = [90% less problems]
    [Li{u}n//u//{i}x] since 1988 - overcoming failure means success
    howto-install-antergos
    how to add system logs
    i3 GNOME

  • @joekamprad

    smbclient -L \\"winhostname"
    

    gave me “NT_STATUS_LOGON_FAILURE”

    and i have python-pysmbc 1.0.15.6-2 and smbclient 4.5.3-1 installed

  • @joekamprad said in SMB connect to printer:

    I try do reproduce your problem…
    But smb shared printer from win10 works without a problem here…
    But i have a windows account not a local one…

    In my case i’ve got a printer connected to windows 7 machine with ip address 192.168.57.11, so the printer’s share looks like 192.168.57.11/hplaserjet3020, and i’m trying to print from machine on antergos with address 192.168.60.3

  • @johnmcmuffin said in SMB connect to printer:

    printer’s share looks like 192.168.57.11/hplaserjet3020, and i’m trying to print from machine on antergos with address 192.168.60.3

    This looks a bit strange to me…

    they are not in the same network???
    Also "gave me “NT_STATUS_LOGON_FAILURE” can be a result by a network prob.

    Why there ave different network nets? 192.168.57.XX and 192.168.60.XX ???

    [updates once a week] = [90% less problems]
    [Li{u}n//u//{i}x] since 1988 - overcoming failure means success
    howto-install-antergos
    how to add system logs
    i3 GNOME

  • @joekamprad said in SMB connect to printer:

    @johnmcmuffin said in SMB connect to printer:

    printer’s share looks like 192.168.57.11/hplaserjet3020, and i’m trying to print from machine on antergos with address 192.168.60.3

    This looks a bit strange to me…

    they are not in the same network???
    Also "gave me “NT_STATUS_LOGON_FAILURE” can be a result by a network prob.

    Why there ave different network nets? 192.168.57.XX and 192.168.60.XX ???

    It is the company’s policy. Anyway, others from windows machines can connect to this printer. I don’t think that’s in network problems, as i said before, when i was on ubuntu 14.04 i didn’t have such problems

printer29 smbd4 cups11 samba20 Posts 37Views 3700
Log in to reply