LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Software
User Name
Password
Linux - Software This forum is for Software issues.
Having a problem installing a new program? Want to know which application is best for the job? Post your question in this forum.

Notices


Reply
  Search this Thread
Old 04-21-2010, 07:31 PM   #1
JosephS
Member
 
Registered: Jun 2007
Distribution: Debian Jessie, Bunsenlabs
Posts: 586

Rep: Reputation: 38
Need help setting up CUPS


Using Debian Lenny
I am new to printing with Linux and would like some help with CUPS.
I have CUPS set up to work with my printer.
I read through the documentation, but still have some problems.

1. How should I configure cupsd.conf for security?
I found this article:
Quote:
Portwalling

* By default, cups will listen on every interface. Unless you
want to offer your printer to the world, you must block this.
Although you can firewall this (and that is a good idea anyway),
you can also not have cups listen on your Internet connection.
This also prevents any possibility of a root exploit from the
Internet. Of course, you still have internal crackers to worry
about...

* In cups.conf, comment out the lines:
Port 80
Port 631

* Replace them with:
Listen 127.0.0.1:631
Listen lan_ip_address:631
Listen 127.0.0.1:80
Listen lan_ip_address:80

* Still leaves a UDP port 631 open to the world though. The
simplest way to close this port is by turning browsing off, but
it may cause problems if you have other cups servers (and maybe
clients?). The line for this is:
Browsing off

* Another way to limit access to UDP on port 631, but less
secure, is to add the following lines:
BrowseAddress lan_ip_broadcast_address
BrowseAddress 127.0.0.1
BrowseAllow from 127.0.0.1
BrowseAllow from lan_ip_subnet (i.e. 192.168.1.0/24)
BrowseOrder deny,allow
Is this good for my needs?
I use my computer for a desktop. At present I have one printer,
but may add another. I don't plan to use it over the Internet.

Do I need to encrypt to hide the user name and password for authentication;
Doesn't Debian do this already?

2. I'm unsure about these items in the web browser for CUPS:

* Classes
* Publish Printers
* queue
* Rss subscription

3.Is there a good GUI for Cups? Is Xpp good for this?
In the Debian Wiki it says:
Quote:
xpp is designed to be able to take the same command-line arguments as
BSD-lpr and SysV-lp so most apps won't realize the difference if you create a
symbolic link from /usr/bin/lpr (or /usr/bin/lp) to /usr/bin/xpp. This way,
whenever an application sends off a print job to the lpr (or lp) program, xpp
will launch its GUI so that you can select the options that you would like for
this job.
How do I create a symbolic link between programs?
When I opened Xpp it said Printer:destination not available.

4. Can I adjust the text size on text, pdf or html files with Cups or do I need
another program for this?
 
Old 04-22-2010, 01:51 PM   #2
tredegar
LQ 5k Club
 
Registered: May 2003
Location: London, UK
Distribution: Fedora38
Posts: 6,147

Rep: Reputation: 435Reputation: 435Reputation: 435Reputation: 435Reputation: 435
Quote:
Is this good for my needs?
You have not made it clear which options you have selected / enabled, merely the options available to you.
Quote:
Do I need to encrypt to hide the user name and password for authentication;
No.

You are probably already behind a firewall (most modern broadband modem / routers have one running by default) but check. IMHO cups defaults to safe settings. You have to enable potentially unsafe settings.

Just for your LAN, don't worry. If weird stuff starts printing on your printer, then you have a problem. Investigate it.

My cups server broadcasts itself to my LAN, and accepts connections from (Eg) 192.168.0.*
This is handy when I connect another PC to my LAN: "OK I found a cups server & it is listening to me"

3]
Quote:
Is there a good GUI for Cups?
Of course: http://localhost:631

4]
Quote:
Can I adjust the text size on text, pdf or html files with Cups
I don't think so.

Cups takes the print job, and prints it. If it won't fit on the page, you may be asked to "Shrink to fit", but I am not sure if this is a property of cups, or the application calling it.
 
Old 04-25-2010, 09:12 AM   #3
JosephS
Member
 
Registered: Jun 2007
Distribution: Debian Jessie, Bunsenlabs
Posts: 586

Original Poster
Rep: Reputation: 38
The only options, out of the above I mentioned, enabled in cups.conf are:
Listen localhost:631
Browsing Off


Will this be good when I add another printer locally?

The GUI I wanted for Cups was one to set printing options.
Xpp is a Graphical substitute for the lp/lpr command,
but according to this article: http://bugs.debian.org/cgi-bin/bugreport.cgi?bug=573876
Xpp is looking for a new maintainer, so I don't know if this is a good program to go
with.
 
Old 04-25-2010, 09:17 AM   #4
valla
LQ Newbie
 
Registered: Apr 2010
Posts: 7

Rep: Reputation: 0
1. Download the PPD’s.
2. su - root
3. mkdir /usr/share/cups/model/(Printer Manufacturer name)
4. cp *.ppd /usr/share/cups/model/Utax-TA
5. service cups restart
6. Open the conqueror
7. http://localhost:631
8. Click Administration tab
9. It prompts for user name & password(give root & its password)
10. Add printer
11. Give printer name (It should not contain space ,any special characters)
12. Enter location
13. Enter Descriptions
14. Device-Internet Printing Protocol
15. Device-URL-socket://hostname:9100 (Give the hostname of the printer)
 
  


Reply


Thread Tools Search this Thread
Search this Thread:

Advanced Search

Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is Off
HTML code is Off



Similar Threads
Thread Thread Starter Forum Replies Last Post
Help with setting up printers w/cups sjpiv44 Linux - Hardware 6 10-16-2008 11:15 AM
Setting up CUPS with a print server ZackTheSpacestation Linux - Hardware 2 01-23-2006 01:11 PM
Help setting up printer using cups jbraum Linux - Networking 1 11-19-2005 04:32 PM
Setting up HP printer with CUPS tuxedo-notebook Linux - Hardware 3 03-31-2005 08:12 PM
Setting Up My HP Printer With CUPS AFI_Flame Linux - Newbie 15 07-22-2004 10:02 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Software

All times are GMT -5. The time now is 12:48 AM.

Main Menu
Advertisement
My LQ
Write for LQ
LinuxQuestions.org is looking for people interested in writing Editorials, Articles, Reviews, and more. If you'd like to contribute content, let us know.
Main Menu
Syndicate
RSS1  Latest Threads
RSS1  LQ News
Twitter: @linuxquestions
Open Source Consulting | Domain Registration