Google Plus

Sharing printer on Ubuntu Linux with Windows

Written by Mel Kham on . Posted in Linux tutorials, Ubuntu

Updated 26-04-2013: Got Ubuntu Linux server to share it’s printer with Windows XP. After setting up samba (i.e. installing the samba package) and getting it to a state where the server PC appeared in the workgroup (make sure workgroup has same

name on all computers). Also make sure Ubuntu knows about the printer. CUPS, the unix printing thing, is installed by default on Ubuntu and all the above is too trivial to comment on. Unfortunately, sharing the printer is not so trivial, you have to edit config files and reboot daemons: but, hey, we love that or we wouldn’t use Linux?

  • Edit /etc/samba/smb.conf as follows:
    # add to [General] section:
    printcap name = cups
    printing = cups
    security = share

    # make sure [printers] section looks like this
    [printers]
    browseable = yes
    printable = yes
    public = yes
    create mode = 0700
    guest only = yes
    use client driver = yes
    path = /tmp

  • reboot samba: sudo /etc/init.d/samba restart
  • In windows, go to control panel/printers/add network printer.
  • Browse for server computer. In it’s list of printers should be the one you want
  • Install the printer. A dialog may come up about downloading a printer driver. This probably won’t work but windows will go on to let wou choose a driver from a list.
  • Print a test page.

You can print upstairs from laptop downstairs via wifi. There is no security here so watch out who is using your expensive ink.

For questions please refer to our Q/A forum at : http://ask.unixmen.com

Mel Kham

Founder of Unixmen, Living in Amsterdam. Am working in my free time to help people to understand the Opensource and to explain them in easy way how to make the fist steps to the the light. Working day and night with my Co-founder Zinovsky to keep this website live even with less resources.
  • pandan22

    i tried this , doesn’t work for me at all.
    i cannot see the printer or other pcs.
    all my pcs and laptops are wireless.
    ugh…….
    i am losing all my hair with the ubuntu share problem.

  • Dan

    I spent most of the day trying to get my network printer working and now it is. Thanks to you!

  • http://verwijs.wordpress.com/ André Verwijs

    for 64-bit linux there are almost no printer drivers available, so sharing printer with in that case is nearly impossible…

    André

  • Patrick Chamberlain

    Thanks that worked.

Like us on Facebook

This week Top Posts

Write for us

Recent Comments

Pat L

|

I tried it and it works with a regular zip file, but if you password-protect the .zip file it does NOT work.

SK

|

Yes we can. What kind of help you need? We are doing outsourcing and technical support for Linux and Open source worldwide. To know more about the details visit here.

ClintB

|

After install as above, run shell script /opt/Citrix/ICAClient/wfica.sh manually and note lib errors still occur. I had the x64 motif loaded but had to manually install the x86 too. Got that from http://rpmfind.net/linux/rpm2html/search.php?query=libXm.so.4 Even after that, I still had to do a “yum install alsa-lib.i686 alsa-lib.x86_64″ to resolve any additional libasound.so.2 errors. Once those two lib issues were resolved, Citix Web Interface launched apps fine by telling browser to open launch.ica using /opt/Citrix/ICAClient/wfica.sh. Good luck Ernesto!

AD

|

I need some Help on Linux,can you guide me ?

Edson Carlos

|

In debian no found. I need link download install in linux debian

 
IDG Tech Network
Copyright © 2008-2013 Unixmen.com .
Maintained by Anblik .