network printing with ubuntu

Upload: h1b001045

Post on 05-Apr-2018

220 views

Category:

Documents


0 download

TRANSCRIPT

  • 7/31/2019 Network Printing With Ubuntu

    1/2

    NetworkPrintingWithUbuntu

    Overview

    Ubuntu supports network printing, so you can print from your Ubuntu machine, your Windows machine, etc, toanother Ubuntu or Windows machine that has a printer attached (ie a "Ubuntu print server" or "Windows print

    server").

    Background

    Ubuntu uses the Common UNIX Printing System ("CUPS") to

    handle printing. CUPS uses the Internet Printing Protocol ("IPP") as

    the basis for managing print jobs and queues. Other protocols arealso supported (LPD, SMB,AppSocketa.k.a.JetDirect), some with

    reduced functionality.

    CUPS printer configuration and management is handled by the Printer Admin utility launched from the Gnome

    menu - System -> Administration -> Printing. Also IPP provides web services so after you have configuredCUPS appropriately, you can access the printers and jobs via your web browser.

    When a locally attached printer is defined, eg using the Printer Admin utility, that printer is automaticallypublished from this "print server" host to the network, depending on the server directives in the CUPS

    configuration file. A remote Ubuntu "client" host can then be able to see and use the printer attached to the

    server. The network printer automatically appears in the client's Printer Admin utility. It simply pops up ifCUPS is up and configured correctly and disappears if you stop CUPS at either the Print Server or your local

    machine.

    Ubuntu print server

    The Print Serveris the Ubuntu computer that is directly connected to the printers.

    1. On the server machine (the one the printer is attached to), open System -> Administration -> Printing.This will open the Printer Configuration window. OR you can open the following URL in your browser:

    http://localhost:6312. Select Server in the menu bar, and then Settings. This will open theBasic Server Settings window.3. Check the second box:

    o Publish shared printers connected to this serverIf this computer acts as both a Print Server and a client (it does need access to a printer connected toanother computer), select also the first box, "Show printers shared by other systems".

    4. OK5. Right click the printer and check the Shared option, if not checked yet

    Ubuntu print server compatible with Windows (Samba)

    If your Ubuntu print server shall be able to work also with Windows clients, you must first make sure that the

    SAMBA package is installed (e.g. using Synaptic package manager). Then, do a little configuration change to

    SAMBA. In brief, you must uncomment the following lines in /etc/samba/smb.conf(open terminal, sudo gedit/etc/samba/smb.conf):

    In the [printers] section:browsable = yes

    https://help.ubuntu.com/community/NetworkPrintingWithUbuntu?action=fullsearch&value=linkto%3A%22NetworkPrintingWithUbuntu%22&context=180https://help.ubuntu.com/community/NetworkPrintingWithUbuntu?action=fullsearch&value=linkto%3A%22NetworkPrintingWithUbuntu%22&context=180https://help.ubuntu.com/community/AppSockethttps://help.ubuntu.com/community/AppSockethttps://help.ubuntu.com/community/AppSockethttps://help.ubuntu.com/community/JetDirecthttps://help.ubuntu.com/community/JetDirecthttps://help.ubuntu.com/community/JetDirecthttp://localhost:631/http://localhost:631/http://localhost:631/https://help.ubuntu.com/community/JetDirecthttps://help.ubuntu.com/community/AppSockethttps://help.ubuntu.com/community/NetworkPrintingWithUbuntu?action=fullsearch&value=linkto%3A%22NetworkPrintingWithUbuntu%22&context=180
  • 7/31/2019 Network Printing With Ubuntu

    2/2

    guest ok = yes

    When done, restart Samba:sudo service smbd restart

    sudo service nmbd restart

    There is adedicated page in the official documentationwhich gives more details.

    Windows print server

    Euh... sorry, this section is missing, but anyway, why would you want this ?

    Printing from Ubuntu

    Now let's configure the client (the Ubuntu computer from where you want to print):

    1.

    System -> Administration -> Printing2. Add - Network printero ClickFind network printer

    Specify the host IP address or name. (It may also work without, try) ClickFind

    o Printers on the target machine should be found, no matter whether they are connected usingCUPS or SAMBA.

    BUT if both protocols are available, e.g. because you have shared your printer on a Linuxbox both using CUPS and Samba, prefer CUPS (ipp://) over Samba (smb://), because youwon't be prompted to install a driver in general.

    3. You **may** be prompted to select a driver. Select your model in the list.o (to be done) What to do if driver is not in the list

    https://help.ubuntu.com/11.04/serverguide/C/samba-printserver.htmlhttps://help.ubuntu.com/11.04/serverguide/C/samba-printserver.htmlhttps://help.ubuntu.com/11.04/serverguide/C/samba-printserver.htmlhttps://help.ubuntu.com/11.04/serverguide/C/samba-printserver.html