From owner-freebsd-questions@freebsd.org Mon Jan 23 06:53:25 2017 Return-Path: Delivered-To: freebsd-questions@mailman.ysv.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:1900:2254:206a::19:1]) by mailman.ysv.freebsd.org (Postfix) with ESMTP id B0017CBDFFA for ; Mon, 23 Jan 2017 06:53:25 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mailrelay14.qsc.de (mailrelay14.qsc.de [212.99.163.154]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (Client CN "*.antispameurope.com", Issuer "TeleSec ServerPass DE-2" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 36F839A1 for ; Mon, 23 Jan 2017 06:53:24 +0000 (UTC) (envelope-from freebsd@edvax.de) Received: from mx01.qsc.de ([213.148.129.14]) by mailrelay14.qsc.de; Mon, 23 Jan 2017 07:55:50 +0100 Received: from r56.edvax.de (port-92-195-83-137.dynamic.qsc.de [92.195.83.137]) (using TLSv1 with cipher DHE-RSA-AES256-SHA (256/256 bits)) (No client certificate requested) by mx01.qsc.de (Postfix) with ESMTPS id BFB1A3CC3F; Mon, 23 Jan 2017 07:53:08 +0100 (CET) Received: from r56.edvax.de (localhost [127.0.0.1]) by r56.edvax.de (8.14.5/8.14.5) with SMTP id v0N6r7Gg002074; Mon, 23 Jan 2017 07:53:08 +0100 (CET) (envelope-from freebsd@edvax.de) Date: Mon, 23 Jan 2017 07:53:07 +0100 From: Polytropon To: David Christensen Cc: freebsd-questions@freebsd.org Subject: Re: FreeBSD 11, Xfce, and printing Message-Id: <20170123075307.89b4e6f4.freebsd@edvax.de> In-Reply-To: <114d072f-9fc4-e513-90fb-409e7e277afd@holgerdanske.com> References: <114d072f-9fc4-e513-90fb-409e7e277afd@holgerdanske.com> Reply-To: Polytropon Organization: EDVAX X-Mailer: Sylpheed 3.1.1 (GTK+ 2.24.5; i386-portbld-freebsd8.2) Mime-Version: 1.0 Content-Type: text/plain; charset=US-ASCII Content-Transfer-Encoding: 7bit X-cloud-security-sender: freebsd@edvax.de X-cloud-security-recipient: freebsd-questions@freebsd.org X-cloud-security-Virusscan: CLEAN X-cloud-security-disclaimer: This E-Mail was scanned by E-Mailservice on mailrelay14.qsc.de with E1391683427 X-cloud-security-connect: mx01.qsc.de[213.148.129.14], TLS=1, IP=213.148.129.14 X-cloud-security: scantime:.2995 X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.23 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Mon, 23 Jan 2017 06:53:25 -0000 On Sun, 22 Jan 2017 19:50:37 -0800, David Christensen wrote: > I wanted to print a document today. I went looking for: > > Application Menu -> Settings -> Printing > > > It does not exist. All I see is: > > Application Menu -> Settings -> Xfce 4 Printing System Settings > > > CUPS is missing from the left-hand pane. Is CUPS installed and enabled? Open a web broser and go to http://localhost:631, this is the web configuration interface for CUPS, the preferred method to interact with the beast. :-) It seems that Xfce doesn't have a proper integration for CUPS, at least the FreeBSD version hasn't. > When I try to print from within LibreOffice Writer, the choices > available in the Print dialog are not encouraging: > > Print to File... > Generic Printer This indicates that no printers are configured for your system. The "generic printer" is the system's default printing queue which will probably happily accept print jobs, but will not do anything with them because there is no printer configured. If you have CUPS installed and enabled, it will take the place of the system's printing subsystem. > So, I installed: > > xfce4-print > > > Which said: > > ===> NOTICE: > > This port is deprecated; you may wish to reconsider installing it: > > Depends on unmaintained x11-toolkits/libxfce4gui. Then don't use it. It isn't required anyway. Use the web interface instead as suggested in the CUPS documentation. > Application Menu -> Settings -> Printing still does not exist, and the > LibreOffice Writer Print dialog still does not look encouraging. OpenOffice has a stand-alone printer management tool symlink called /usr/local/bin/openoffice.org-3.3.0-spadmin, and LibreOffice has something similar; search for "spadmin", that will be the right one. First configure CUPS using the web interface, then run that program to make LO aware of the printer. It should work then. The last time I configured CUPS + LO printing was more than 3 years ago, and I forgot everything... ;-) > Any suggestions for getting CUPS working? Allow me to point you to the relevant sources: https://www.freebsd.org/doc/handbook/printing.html https://www.freebsd.org/doc/en/articles/cups/ http://www.wonkity.com/~wblock/docs/html/lpdprinting.html (Hopefully) helpful sidenote: Make yourself familiar with the CUPS commands lpq, lpr, lprm, cupsaccept, and cupsenable. Check the location of the CUPS log files in /var/log, especially the error log file. It will significantly help you at troubleshooting. What you should get when you've configured everything correctly, for example: % lpq Laserjet is ready no entries % lpr import.pdf % lpq Laserjet is ready and printing Rank Owner Job File(s) Total Size active poly 4929 import.pdf 73728 bytes The web interface also has the ability to check those (as well as partial error messages in case the printer doesn't print), but using the CLI tools is much more convenient. -- Polytropon Magdeburg, Germany Happy FreeBSD user since 4.0 Andra moi ennepe, Mousa, ...