← Back to team overview

enterprise-support team mailing list archive

Re: [Question #180789]: setting up Samba for printer sharing

 

Question #180789 on samba in Ubuntu changed:
https://answers.launchpad.net/ubuntu/+source/samba/+question/180789

    Status: Needs information => Answered

Chris proposed the following answer:
I think you're making it needlessly complicated.  The only things you
need to use a printer on a Windows machine is Samba, the workgroup
configured in /etc/samba/smb.conf, and the printer installed.  In other
words it works exactly the same as a Windows machine using a printer
over a workgroup share.

Samba is already installed, so edit /etc/samba/smb.conf with sudo
privileges and add the workgroup name correctly.  The line in question
will already be there and will be something like

workgroup = WORKGROUP_NAME

Obviously, change WORKGROUP_NAME to whatever your Windows workgroup name
actually is.  If you haven't already done so you'll need to set up the
workgroup on the Windows machine, however the default workgroup is
probably just WORKGROUP.  Personally, I like to change it something more
specific.

Next, restart Samba so it picks up the changed workgroup:

sudo restart smbd
sudo restart nmbd

Next, open the 'printing' application.  You can find it in system
settings or press the super key and type "printing"

Install the printer:

Select "Add".  As in add a new printer.

Click on

Network Printer
   ---> Windows printer via SAMBA

Click on the Workgroup name
  ---> Click on the Computer name (that's the one with the printer attached to it
      ---> Click on the printer

If the printer does not show then it's not set up to be shared correctly
on the Workgroup, or you have not reset the Samba config correctly.

Click the "forward" button and let the system find the list of printer drivers available.
Select the most appropriate driver for your printer.

Finish the install and print a test page.  You'll note that the most
complicated part of the process is probably installing the printer.

You should now be able to print.  I doubt that the previous setups and
configs that you've done will will cause you any problems unless you've
really messed up samba somewhere along the line.  If you have changed
/etc/samba/smb.conf and have a backup of the original you might want to
revert to that just in case.

Chris

-- 
You received this question notification because you are a member of
Ubuntu Server/Client Support Team, which is an answer contact for samba
in Ubuntu.