LinuxQuestions.org
Visit Jeremy's Blog.
Go Back   LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware
User Name
Password
Slackware This Forum is for the discussion of Slackware Linux.

Notices

Reply
 
Search this Thread
Old 12-09-2009, 07:18 PM   #1
hedron
Member
 
Registered: Jul 2009
Location: NYC
Distribution: Slackware, Bluewhite
Posts: 222

Rep: Reputation: 22
cups printer won't print


I'm trying to print from my windows 7 computer on my printer located on my Slackware server.

When I goto the CUPS web interface I can print a test page, but I can't print anything from my windows computer. I try the option "modify printer" in the printers section of the CUPS web interface and it stalls when it comes to the part when it asks for the manufacturer of my printer, well when I press continue it stalls.

When I try to print a webpage in Firefox I press ctrl+p then OK and then it says preparing but then the popup disappears and nothing happens. Nothing shows up in the popup when I double click my printer icon in the Devices and Printers control panel.

This shows up in my error log:

Code:
E [09/Dec/2009:20:15:04 -0500] Unsupported character set "iso-8859-1"!
I [09/Dec/2009:20:15:31 -0500] Started "/usr/lib/cups/cgi-bin/admin.cgi" (pid=15242)
This is in my access log:

Code:
[09/Dec/2009:20:15:34 -0500] "GET /admin/log/error_log HTTP/1.1" 200 1054709 - -
localhost - - [09/Dec/2009:20:16:04 -0500] "POST / HTTP/1.1" 200 196 Get-Printer-Attributes client-error-bad-request
Page log:

Code:
The_Docks hedron 69 [04/Dec/2009:22:12:59 -0500] 1 1 - localhost
It shows those over and over again.

Any ideas on how to begin trouble shooting this?
 
Old 12-09-2009, 10:14 PM   #2
allend
Senior Member
 
Registered: Oct 2003
Location: Melbourne
Distribution: Slackware-current
Posts: 3,432

Rep: Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849Reputation: 849
Have you seen this?
http://alien.slackbook.org/dokuwiki/...slackware:cups
 
Old 12-10-2009, 01:08 AM   #3
hedron
Member
 
Registered: Jul 2009
Location: NYC
Distribution: Slackware, Bluewhite
Posts: 222

Original Poster
Rep: Reputation: 22
I think it's a driver issue as I have the release candidate and the drivers I downloaded from hp's website won't install because it says it's incompatible with my version of win7.
 
Old 12-10-2009, 07:36 AM   #4
mlangdn
Senior Member
 
Registered: Mar 2005
Location: Kentucky
Distribution: Slackware64-current
Posts: 1,377

Rep: Reputation: 170Reputation: 170
That makes sense - I had to wait, then download HP drivers for my 5610v AIO for Vista.
 
Old 01-01-2010, 08:26 PM   #5
hedron
Member
 
Registered: Jul 2009
Location: NYC
Distribution: Slackware, Bluewhite
Posts: 222

Original Poster
Rep: Reputation: 22
OK, I finally got the full version of Windows 7 and it still won't print even though I've installed the correct drivers. When I click add a printer, it does say that Windows can't find the driver, so I have to search through the list. Which is odd, I don't think I should have to do that if everything was working fine. Other than that everything seems to be fine.

Here's cupsd.conf:

Code:
LogLevel info
SystemGroup sys root
# Allow remote access
Port 631
Listen /var/run/cups/cups.sock
# Enable printer sharing and shared printers.
Browsing On
BrowseOrder allow,deny
BrowseAllow all
BrowseAddress @LOCAL
DefaultAuthType Basic
<Location />
  Allow From @LOCAL
  # Allow shared printing and remote administration...
  Order allow,deny
  Allow @LOCAL
</Location>
<Location /admin>
  Encryption Required
  Allow From @LOCAL
  # Allow remote administration...
  Order allow,deny
  Allow @LOCAL
</Location>
<Location /admin/conf>
  AuthType Default
  Require user @SYSTEM
  # Allow remote access to the configuration files...
  Order allow,deny
  Allow @LOCAL
</Location>
<Policy default>
  <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>
  <Limit CUPS-Add-Modify-Printer CUPS-Delete-Printer CUPS-Add-Modify-Class CUPS-Delete-Class CUPS-Set-Default>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
  </Limit>
  <Limit Pause-Printer Resume-Printer 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-Accept-Jobs CUPS-Reject-Jobs>
    AuthType Default
    Require user @SYSTEM
    Order deny,allow
  </Limit>
  <Limit Cancel-Job CUPS-Authenticate-Job>
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>
  <Limit All>
    Order deny,allow
  </Limit>
</Policy>
If that helps anyone. It might have something to with my user not having permission. My username can print on my server but not from my main computer. On my server, root and another account cannot print, but the user that shares the same username with my main computer can. Isn't that all that's needed? Identical usernames?

Last edited by hedron; 01-01-2010 at 08:29 PM.
 
Old 01-01-2010, 08:51 PM   #6
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Rep: Reputation: 534Reputation: 534Reputation: 534Reputation: 534Reputation: 534Reputation: 534
I print from Windows to my Slackware 12.2 CUPS server using Samba. In Samba I create a printer share. In Windows I define the printer by connecting to a network printer. If Samba is configured correctly, the shared printer should appear in the list.

Also, have you tried connecting directly and printing to the printer from the Windows box? That would at least verify the Windows drivers are functioning.
 
Old 01-01-2010, 09:03 PM   #7
hedron
Member
 
Registered: Jul 2009
Location: NYC
Distribution: Slackware, Bluewhite
Posts: 222

Original Poster
Rep: Reputation: 22
Connecting the printer directly to my Windows machine works fine, so there doesn't seem to be a problem with the drivers.

Everything seems fine, it's right there in Devices and Printers. And my smb.conf looks fine to me.

Code:
[global]
        workgroup = WORKGROUP
        server string = Media Server
        interfaces = 192.168.1.1/24
        bind interfaces only = Yes
        username map = /etc/samba/private/smbusers
        log file = /var/log/samba.%m
        max log size = 50
        name resolve order = hosts lmhosts bcast
        socket options = TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=7200 SO_SNDBUF=7200
        hostname lookups = Yes
        printcap name = cups
        remote announce = 192.168.1.0/SERVERNAME
        hosts allow = 192.168.1.


[The_Docks]
        comment = its a printer
        path = /var/spool/samba
        valid users = hedron
        printable = Yes
        lpq command = /usr/bin/lpq -P%p
        printer name = The_Docks
testparm reveals no problems.

Last edited by hedron; 01-01-2010 at 09:16 PM.
 
Old 01-01-2010, 09:19 PM   #8
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Rep: Reputation: 534Reputation: 534Reputation: 534Reputation: 534Reputation: 534Reputation: 534
Is your printer defined/listed in /etc/cups/printers.conf?

What does smbclient -N -L {servername} show? You should see the printer listed in the output.

In my smb.conf, I see the following printer related options:

Code:
[global]
printing = CUPS
printcap name = CUPS
load printers = yes
show add printer wizard = no

[printers]
comment = All Printers
path = /var/spool/samba
printable = yes
use client driver = yes
browseable = yes
public = yes
guest ok = yes
create mode = 0700

[print$]
comment = %h Printer Driver Share
path = /var/lib/samba/drivers
browseable = yes
read only = yes

Last edited by Woodsman; 01-01-2010 at 09:23 PM.
 
Old 01-01-2010, 09:32 PM   #9
hedron
Member
 
Registered: Jul 2009
Location: NYC
Distribution: Slackware, Bluewhite
Posts: 222

Original Poster
Rep: Reputation: 22
Code:
root@luskan:/etc/cups# smbclient -N -L luskan
Anonymous login successful
Domain=[FAERUN] OS=[Unix] Server=[Samba 3.0.28a]

        Sharename       Type      Comment
        ---------       ----      -------
        Media_Files     Disk      Go fuck yourself
        Old_Drv         Disk      hello
        ISO             Disk      DVD CD Images
        Mldonkey        Disk      MLDonkey Incoming Folder
        Mlshare         Disk      MLDonkey Share Folder
        The_Docks       Printer   its a fucking printer
        IPC$            IPC       IPC Service (Media Server)
Anonymous login successful
Domain=[FAERUN] OS=[Unix] Server=[Samba 3.0.28a]

        Server               Comment
        ---------            -------
        LUSKAN               Media Server
        NEVERWINTER

        Workgroup            Master
        ---------            -------
        FAERUN               LUSKAN
Code:
root@luskan:/etc/cups# cat printers.conf
# Printer configuration file for CUPS v1.3.7
# Written by cupsd on 2010-01-01 19:44
<DefaultPrinter The_Docks>
Info The_Docks
DeviceURI hp:/usb/Photosmart_D5100_series?serial=MY67F1226704SJ
State Idle
StateTime 1229839850
Accepting Yes
Shared Yes
JobSheets none none
QuotaPeriod 0
PageLimit 0
KLimit 0
AllowUser arisch
OpPolicy default
ErrorPolicy stop-printer
</Printer>
Tried tooling a bit with smb.conf and still no joy.

Last edited by hedron; 01-01-2010 at 09:34 PM.
 
Old 01-02-2010, 12:15 PM   #10
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Rep: Reputation: 534Reputation: 534Reputation: 534Reputation: 534Reputation: 534Reputation: 534
I don't know whether this makes a difference but my smb.conf has print$ defined and your config does not.
 
Old 01-02-2010, 01:28 PM   #11
hedron
Member
 
Registered: Jul 2009
Location: NYC
Distribution: Slackware, Bluewhite
Posts: 222

Original Poster
Rep: Reputation: 22
Code:
root@luskan:/home/madmax# cat /etc/samba/smb.conf
[GLOBAL]

workgroup=FAERUN
server string=Media Server
netbios name=luskan
security=user
hostname lookups=yes
encrypt passwords=yes
#deny hosts=all
#allow hosts = luskan, neverwinter, baldursgate
#hosts allow=192.168.1.1/255.255.255.0 192.168.1.2/255.255.255.0 127.0.0.1/255.0.0.0
#load printer=yes
hosts allow=192.168.1.
#valid users=arisch
guest ok=no
browseable=yes
smb passwd file=/etc/samba/private/smbpasswd
username map=/etc/samba/private/smbusers
#interfaces=eth1
interfaces = 192.168.1.1/24
bind interfaces only = yes
socket options=TCP_NODELAY IPTOS_LOWDELAY SO_RCVBUF=7200 SO_SNDBUF=7200
local master=yes
#lm announce=yes
remote announce = 192.168.1.0/LUSKAN
max log size=50
log file=/var/log/samba.%m
name resolve order=hosts lmhosts bcast
#lanman auth = no
#ntlm auth = no
#hosts equiv=/etc/hosts
#print command=lpr -o outputorder=reverse -d%p %s
load printers = yes
printcap name = cups
printing = cups
show add printer wizard = no

[printers]

comment = All Printers
path = /var/spool/samba
printable = yes
use client driver = yes
browseable = yes
public = yes
guest ok = yes
create mode = 0700

[The_Docks]

comment=its a fucking printer
printer=The_Docks
printing=CUPS
browseable=yes
printable=yes
guest ok=no
valid users=arisch
#path=/home/arisch/spool
#path = /var/spool/samba
path = /var/lib/samba/drivers
#print command = lpr -o outputorder=reverse -r -P'%p' %s
#lpq command = /usr/bin/lpq -P%p
I left out my file shares, as I assume they are irrelevant to the problem.

Is "print$" literal? My smb.conf had worked fine in the past. I don't know what happened.

Reading a bit in this samba book I have, it says that the print$ section is so you can have your samba server automatically serve up drivers for clients on the network. So, I don't think I really have a use for that section.

Last edited by hedron; 01-02-2010 at 01:46 PM.
 
Old 01-02-2010, 02:24 PM   #12
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Rep: Reputation: 534Reputation: 534Reputation: 534Reputation: 534Reputation: 534Reputation: 534
Quote:
When I click add a printer, it does say that Windows can't find the driver, so I have to search through the list.
From where are doing this?

Do you have a group named lp? Is your user account a member?
 
Old 01-02-2010, 09:33 PM   #13
hedron
Member
 
Registered: Jul 2009
Location: NYC
Distribution: Slackware, Bluewhite
Posts: 222

Original Poster
Rep: Reputation: 22
Quote:
Originally Posted by Woodsman View Post
From where are doing this?
I click add printer and then it finds my printer and gives me this:

http://imgur.com/jV3Pp.jpg

After I press OK, the Add Printer Wizard pops up. I select the correct driver and everything seems fine, but can't print.

Quote:
Do you have a group named lp? Is your user account a member?
I have no lp group. Do I need one? I'll try adding my user to /etc/group Hmm... Didn't seem to work.

Last edited by hedron; 01-02-2010 at 09:36 PM.
 
Old 01-02-2010, 10:36 PM   #14
Woodsman
Senior Member
 
Registered: Oct 2005
Distribution: Slackware 14.1
Posts: 3,482

Rep: Reputation: 534Reputation: 534Reputation: 534Reputation: 534Reputation: 534Reputation: 534
Well, I can't see the sequence of dialog boxes underneath the error message. Yet the error message says that Windows is looking for a driver on the network. If you previously connected the printer directly then the drivers should be installed locally --- why would the system look for drivers on the network?

Do you have a firewall in Windows 7 that might be blocking access?

Is your Windows 7 machine a member of the same workgroup defined in samba?

Are you trying to connect the printer as administrator?

I'm just asking basic things.
 
Old 01-02-2010, 10:50 PM   #15
hedron
Member
 
Registered: Jul 2009
Location: NYC
Distribution: Slackware, Bluewhite
Posts: 222

Original Poster
Rep: Reputation: 22
Quote:
Originally Posted by Woodsman View Post
Well, I can't see the sequence of dialog boxes underneath the error message. Yet the error message says that Windows is looking for a driver on the network. If you previously connected the printer directly then the drivers should be installed locally --- why would the system look for drivers on the network?
Well, I click "Add Printer" then I get the search dialog, which is right behind the error. So, when I select my printer, I press "next" and that error comes up, when I press "OK" it goes to the "Add Printer Wizard" This neat thing here:

http://arts.uwaterloo.ca/~cnrglab/?q...terWizard5.jpg

That's not my computer, I'm just too lazy to do a screen shot.

Quote:
Do you have a firewall in Windows 7 that might be blocking access?
Just disabled it and it made no difference. Although, the first try it did interrupt my music (which is located on the server) for a moment and stopped. I don't know if that means anything, just thought I'd mention it as that's pretty much as good a clue that I get as to what is preventing me from printing.

Quote:
Is your Windows 7 machine a member of the same workgroup defined in samba?
Yes, the same workgroup. It wasn't letting me print when I had XP installed. Although, I know it did print when I was using Linux, but that was a while ago.

Quote:
Are you trying to connect the printer as administrator?

I'm just asking basic things.
My user account on Win7 is an admin.

Another oddity, is that when I go into the administration preferences is the cups web util (http://localhost:631) and attempt to edit cupsd.conf, when I click "save changes" it hangs... Just says "Loading..." in firefox and does nothing else.
 
  


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
Firefox 3 cannot print to CUPS printer rnturn Linux - Desktop 22 05-10-2010 03:56 AM
not able to print to one printer using CUPS aopex Linux - Software 4 02-02-2009 09:13 PM
Can't print to second cups printer rbees Linux - Newbie 18 02-05-2007 09:38 AM
CUPS finds printer, won't print esp Slackware 5 07-14-2005 02:28 AM
CUPS: Cannot print to remote printer nazarioz Linux - Newbie 1 09-26-2004 06:49 PM


All times are GMT -5. The time now is 03:08 PM.

Main Menu
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
identi.ca: @linuxquestions
Facebook: linuxquestions Google+: linuxquestions
Open Source Consulting | Domain Registration