Page 1 of 3 123 LastLast
Results 1 to 10 of 21

Thread: Printing from windows 7 to a printer connected to Ubuntu 9.10 server

  1. #1
    Join Date
    Aug 2007
    Beans
    10

    Printing from windows 7 to a printer connected to Ubuntu 9.10 server

    So, I am attempting to print from windows 7 to a printer attached to a Ubuntu 9.10 server machine. I've got samba up and running, and can access the shares. For whatever reason, when I attempt to connect to the printer, in order to install it it says that it can't connect.

    Samba version is 3.4.0

  2. #2
    Join Date
    Aug 2008
    Location
    Victoria, BC Canada
    Beans
    1,594

    Re: Printing from windows 7 to a printer connected to Ubuntu 9.10 server

    Is the printer working from inside Linux?

    Make sure its operating, then you can share it fine.
    SERVER: Azure datacenters, Hyper-V

  3. #3
    Join Date
    Aug 2008
    Location
    Galveston, Texas
    Beans
    135
    Distro
    Ubuntu 10.04 Lucid Lynx

    Re: Printing from windows 7 to a printer connected to Ubuntu 9.10 server

    Make sure after any changes to cups and smb.config you reboot or restart samba.

  4. #4
    Join Date
    Oct 2007
    Location
    Apple Valley, CA
    Beans
    2
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Printing from windows 7 to a printer connected to Ubuntu 9.10 server

    Having the same issues also, with my Windows 7 machine accessing the Ubuntu 9.10 machine that's sharing the printer. Windows 7 machine can see folders that are shared via Samba, but when I go to connect to the printer that is listed, I get an error dialog on the Win7 machine: "Windows cannot connect to the printer".

    I have the print settings in CUPS as follows
    - Publish shared printers connected to this system
    - Show printers shared by other systems


  5. #5
    Join Date
    Aug 2007
    Beans
    10

    Re: Printing from windows 7 to a printer connected to Ubuntu 9.10 server

    The printer is working from inside the server; and I can even print over the network using Kubuntu 9.10 on my laptop. I just can't print from any windows machines for some reason.

  6. #6
    Join Date
    Oct 2007
    Location
    Apple Valley, CA
    Beans
    2
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Printing from windows 7 to a printer connected to Ubuntu 9.10 server

    Got it working via CUPS. Here's what I had to do:

    1- in /etc/samba/smb.conf ensure the following was uncommented in the PRINTING section in [global]

    load printers = yes
    printing = cups
    printcap name = cups

    added the following to [printers]

    use client driver = Yes

    2- restarted samba: sudo /etc/init.d/samba restart

    On the Win7 client

    - Add a printer->Networked printer
    - for the location, specified the printer via CUPS http. So in the location box, where UBUNTU is the hostname of the printer that's shared, and the shared name of my printer (Epson C120)

    http://ubuntu:631/printers/Epson_C120

    You can determine the shared name of your CUPS printer by going to your UBUNTU host that's sharing the printer, specifying the following URL:
    http://localhost:631

    Go to the PRINTERS tab, point to the queue name of the queue name of the printer that's shared, rt-click and display properties. This is the URL that will be used on your Win7 printer location, except "localhost" will be replaced with the hostname of your ubuntu host (in my case, "ubuntu").

    - specify print driver to use on your Win7 machine and print a test page


    At least this is what worked for me. HTH

  7. #7
    Join Date
    Jan 2006
    Location
    Lawrence, KS USA
    Beans
    20
    Distro
    Ubuntu 9.10 Karmic Koala

    Re: Printing from windows 7 to a printer connected to Ubuntu 9.10 server

    This worked for me as well. I don't really like the setup on the windows side, especially if I had to set this up for a client. But, for me this will have to work until it gets a real fix in samba. Thanks!
    "No matter where you go, there you are." -Buckaroo Banzai

    Dell Latitude D630, Core 2 Duo 2.0GHz (T7300), 2GB RAM, 80GB HDD, nVidia Quadro NVS 135M

  8. #8
    Join Date
    Dec 2009
    Beans
    373

    Re: Printing from windows 7 to a printer connected to Ubuntu 9.10 server

    I'm having a heck of a time with this as well. Samba file sharing works fine however I do seem to have to jump through a little hoop. This may or may not be normal.
    Ubuntu Lappy with printer attached. Prints fine every time.
    If I try to print from the XP machine the little printe icon shows up as if it's trying to print to the XP machine. What sometimes works is first I connect to the windows file shares from ubuntu. Then I connect to the ubuntu shares from XP. The I do the add printer thing in the XP machine even though it's already installed. I have it search. When it finds it it jumps to the last screen to set as default. It'll then print. At some point during the day it'll loose its connection and then the XP machine can't find the ubuntu printer. This process is not consistent. Sometimes even on reboot the XP machine can't find the ubuntu printer. I've done all of the necessary things to smb.conf. I've tried to use the URL method of adding the printer but always get an error.I have HP toolbox installed as well and that didn't help.
    The printer is an HP 712C on LPT1
    If I try to use the HP Device magr it says "no devices found"
    Last edited by Silvertones; April 6th, 2010 at 02:08 PM.

  9. #9
    Join Date
    Apr 2007
    Beans
    6

    Re: Printing from windows 7 to a printer connected to Ubuntu 9.10 server

    FYI, I did finally get this to work (Ubuntu 10 / Windows 7), but only if I used the IP address of the localhost in that URL -- using the name of the machine gave a consistent "not found" error.

    No idea why, but glad it finally works! Thanks!

  10. #10
    Join Date
    Nov 2008
    Beans
    96

    Re: Printing from windows 7 to a printer connected to Ubuntu 9.10 server

    Thanks, Hidesert!!!! I didn't even have to complete the restart Samba part.

Page 1 of 3 123 LastLast

Tags for this Thread

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
  •