LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware
User Name
Password
Linux - Hardware This forum is for Hardware issues.
Having trouble installing a piece of hardware? Want to know if that peripheral is compatible with Linux?

Notices


Reply
  Search this Thread
Old 10-25-2006, 05:42 PM   #1
evilmonkey
Member
 
Registered: Jun 2003
Location: Toronto, Canada
Distribution: Ubuntu 10.04 LTS; CentOS 5.5
Posts: 199

Rep: Reputation: 30
Printing from windows problems


Hello All,

I set up a server in my house, and one of the functions I want it to server is that of a printserver. I installed CUPS, Samba, and Webmin. Samba and CUPS were installed and configured manually, while the printer was added to CUPS using webmin. The printer is a Samsung CLP-500, which has a very deficient Linux driver (that cannot be installed on a server, and GTK to function), so I chose to install the printer as 'raw' and use windows drivers.

The problem is two-fold: when I try to print a test page from within webmin, my printer just says 'wasting data' (obviously, the printer doesn't understand the 'raw' data being passed; but there is communication which is good). However, when I added the printer to my XP machine as a network printer (it found it with no problems), and tried to print a test page, nothing happenned, not even 'wasting data'. To add to that, windows said that the printer status is 'access denied, unable to connect'.

So I started poking around Webmin to see what's wrong, and found that the 'printing enabled' option is set to 'no'. So I changed it...but it jumped right back. I thought I'd log into the CUPS web interface directly, so I did, but when I tried to change something, it said I needed to log on through https://, and then it refused to load (how do I disable the damn SSL requirement for CUPS?)

So yeah, those are my problems. Some solutions would be nice, starting with how to use the CUPS web interface because while webmin is a very nice program, I would rather deal with CUPS directly than through an intermediary.

Thanks.
 
Old 10-25-2006, 05:53 PM   #2
slackhack
Senior Member
 
Registered: Jun 2004
Distribution: Arch, Debian, Slack
Posts: 1,016

Rep: Reputation: 47
i think you're on the right track with dumping webmin and using the cups interface. as long as you have permissions granted in the server's /etc/cups/cupsd.conf file you should be able to access the cups web pages. i think the default is to use SSL if the server requests it, but i don't remember the parameter name that you have to change (something to do with "authentication" most likely).

to grant access and more, you should go into and edit the config file directly, it's pretty self-explanatory and explains pretty much everything in comments as it goes along (something GUIs don't ordinarily do, though people think they're "easier" for some reason ). otherwise, post the file along with your network information and maybe someone will be able to help you more specifically.
 
Old 10-25-2006, 06:04 PM   #3
evilmonkey
Member
 
Registered: Jun 2003
Location: Toronto, Canada
Distribution: Ubuntu 10.04 LTS; CentOS 5.5
Posts: 199

Original Poster
Rep: Reputation: 30
cupsd.conf:

Code:
#
#
#   Sample configuration file for the Common UNIX Printing System (CUPS)
#   scheduler.  See "man cupsd.conf" for a complete description of this
#   file.
#

# Log general information in error_log - change "info" to "debug" for
# troubleshooting...
LogLevel warning

# Administrator user group...
SystemGroup lpadmin
AuthGroupName shadow

# Only listen for connections from the local machine.
# These settings are configured in /etc/cups/cups.d/ports.conf so that
# changing them does not require to change this file.
# Listen localhost:631
# Listen /var/run/cups/cups.sock
Listen 127.0.0.1:631
Listen 192.168.123.105:631

# Show shared printers on the local network.
# The 'Browsing' setting is configured in /etc/cups/cups.d/browse.conf
# so that changing it does not require to change this file.
# Browsing Off
BrowseOrder allow,deny
BrowseAllow @LOCAL
BrowseAddress @LOCAL

# Default authentication type, when authentication is required...
DefaultAuthType Basic

# Restrict access to the server...
<Location />
  Order allow,deny
  Allow localhost
  Allow @LOCAL
</Location>

# Set the default printer/job policies...
<Policy default>
  # Job-related operations must be done by the owner or an adminstrator...
  <Limit Send-Document Send-URI Hold-Job Release-Job Restart-Job Purge-Jobs Set-Job-Attributes Create-Job-Subscription Renew-Subscription Cancel-Subscription Get-Notifications Reprocess-Job Cancel-Current-Job Suspend-Current-Job Resume-Job CUPS-Move-Job>
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>

  # All administration operations require an adminstrator to authenticate...
  <Limit Pause-Printer Resume-Printer Set-Printer-Attributes Enable-Printer Disable-Printer Pause-Printer-After-Current-Job Hold-New-Jobs Release-Held-New-Jobs Deactivate-Printer Activate-Printer Restart-Printer Shutdown-Printer Startup-Printer Promote-Job Schedule-Job-After CUPS-Add-Printer CUPS-Delete-Printer CUPS-Add-Class CUPS-Delete-Class CUPS-Accept-Jobs CUPS-Reject-Jobs CUPS-Set-Default>
    AuthType Basic
    Require user @SYSTEM
    Order deny,allow
  </Limit>

  # Only the owner or an administrator can cancel or authenticate a job...
  <Limit Cancel-Job CUPS-Authenticate-Job>
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>

  <Limit All>
    Order deny,allow
  </Limit>
</Policy>

# Include files in /etc/cups/conf.d
Include /etc/cups/cups.d/ports.conf
Include /etc/cups/cups.d/browse.conf

#
#
I've always been more on the Apache/PHP/MySQL side of things when it came to Linux, so things like this are all new to me. Thank for the help.
 
Old 10-25-2006, 06:53 PM   #4
slackhack
Senior Member
 
Registered: Jun 2004
Distribution: Arch, Debian, Slack
Posts: 1,016

Rep: Reputation: 47
add the IP of your windows box to the server access section:

Code:
# Restrict access to the server...
<Location />
  Order allow,deny
  Allow localhost
  Allow @LOCAL
  Allow [Add your IP here]
</Location>
see if that works (don't forget to restart cups after making changes to the config file).

you could also set your log level from "warning" to "debug" until it's fixed, checking the messages in /var/log/cups/error_log for more clues, and then change it to back to warning (or info) when it's working.

Last edited by slackhack; 10-25-2006 at 06:56 PM.
 
Old 10-25-2006, 09:56 PM   #5
evilmonkey
Member
 
Registered: Jun 2003
Location: Toronto, Canada
Distribution: Ubuntu 10.04 LTS; CentOS 5.5
Posts: 199

Original Poster
Rep: Reputation: 30
Nope, that didn't do anything. I actually had to format my server (due to unrelated problems), so I'm starting fresh. I still have a feeling I'll run into this problem though because CUPS was an out of the box setup. :? Suggestions (or a well made cupsd.conf) are appreacited.

Thanks!
 
  


Reply



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 me save my wife from Windows - Printing Problems G85 thebasard Linux - Hardware 3 07-09-2006 02:37 PM
Problems printing to Canon i450 Windows share creeve Linux - Hardware 1 06-24-2006 12:32 PM
DISCUSSION: Troubleshooting printing problems from SuSE 10.0 to HP PSC1350 shared from Windows munstah LinuxAnswers Discussion 0 02-27-2006 02:39 PM
Mandrake Samba printing problems from Windows rknoesel Mandriva 2 07-16-2004 07:20 PM
Networking with Windows XP and printing to Windows XP shared printer AlanButler Red Hat 1 10-27-2003 06:07 AM

LinuxQuestions.org > Forums > Linux Forums > Linux - Hardware

All times are GMT -5. The time now is 05:10 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