LinuxQuestions.org
Share your knowledge at the LQ Wiki.
Home Forums Tutorials Articles Register
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 02-03-2009, 11:52 PM   #1
okos
Member
 
Registered: May 2007
Location: California
Distribution: Slackware/Ubuntu
Posts: 609

Rep: Reputation: 38
Trouble with cups


Hi

I am using slack 12.2
I do not seem to be able to run cups

I tried http://localhost:631/ and it does not load.
I reinstalled cups.
chmod +x /etc/rc.d/rc.cups
I tried /etc/rc.d/rc.cups start
and
/etc/rc.d/rc.cups restart


I am not sure what else to do.

edit
ps ax | grep cupsd has the following results

Quote:
2875 ? Ss 0:00 /usr/sbin/cupsd
3477 ? Ss 0:00 cupsd
3525 ? Ss 0:00 cupsd -l
10679 pts/1 R+ 0:00 grep cupsd

Last edited by okos; 02-04-2009 at 12:23 AM.
 
Old 02-03-2009, 11:57 PM   #2
guanx
Senior Member
 
Registered: Dec 2008
Posts: 1,176

Rep: Reputation: 233Reputation: 233Reputation: 233
-------------

Last edited by guanx; 02-04-2009 at 04:01 AM. Reason: original post changed
 
Old 02-04-2009, 03:48 AM   #3
gegechris99
Senior Member
 
Registered: Oct 2005
Location: France
Distribution: Slackware 15.0 64bit
Posts: 1,160
Blog Entries: 5

Rep: Reputation: 392Reputation: 392Reputation: 392Reputation: 392
Hello,

What is the error message when you try to load http://localhost:631/?

There's a tip in Alien Bob's wiki on cups:

Quote:
If localhost does not work for you when you type the URL in the browser, try the IP address for localhost which is 127.0.0.1. The URL would then look like this: http://127.0.0.1:631/. But in any case, this would indicate that you messed up your /etc/hosts file which should contain (among others) the line

127.0.0.1 localhost

If that line is not present, you should add it. It's absence will break quite many network services.
 
Old 02-04-2009, 09:32 PM   #4
okos
Member
 
Registered: May 2007
Location: California
Distribution: Slackware/Ubuntu
Posts: 609

Original Poster
Rep: Reputation: 38
Quote:
Originally Posted by gegechris99 View Post
Hello,

What is the error message when you try to load http://localhost:631/?

There's a tip in Alien Bob's wiki on cups:
This is what I get...
Quote:
NETWORK TIMEOUT
The server at 127.0.0.1 is taking too long to respond.
/etc/hosts has
127.0.0.1 localhost

/etc/cupsd.conf is the generic version
Quote:
#
# "$Id: cupsd.conf.in 7199 2008-01-08 00:16:30Z mike $"
#
# 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 info

# Administrator user group...
SystemGroup sys root


# Only listen for connections from the local machine.
Listen localhost:631
Listen /var/run/cups/cups.sock

# Show shared printers on the local network.
Browsing On
BrowseOrder allow,deny
BrowseAllow all/\

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

# Restrict access to the server...
<Location />
Order allow,deny
</Location>

# Restrict access to the admin pages...
<Location /admin>
Encryption Required
Order allow,deny
</Location>

# Restrict access to configuration files...
<Location /admin/conf>
AuthType Default
Require user @SYSTEM
Order allow,deny
</Location>

# Set the default printer/job policies...
<Policy default>
# Job-related operations must be done by the owner or an administrator...
<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 administrator to authenticate...
<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>

# All printer operations require a printer operator to authenticate...
<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>

# 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>

#
# End of "$Id: cupsd.conf.in 7199 2008-01-08 00:16:30Z mike $".
#

Last edited by okos; 02-04-2009 at 09:59 PM.
 
Old 02-04-2009, 10:11 PM   #5
okos
Member
 
Registered: May 2007
Location: California
Distribution: Slackware/Ubuntu
Posts: 609

Original Poster
Rep: Reputation: 38
Perhaps there is a problem with loopback

Quote:
nmap 127.0.0.1

Starting Nmap 4.76 ( http://nmap.org ) at 2009-02-04 20:15 PST
Note: Host seems down. If it is really up, but blocking our ping probes, try -PN
Nmap done: 1 IP address (0 hosts up) scanned in 2.15 seconds
perhaps this could also be the issue
I added the following to fstab to access the slackware iso.
/backup/slackware-12.2-install-dvd.iso /iso users,iso9660 ro,loop,auto 0 0

Last edited by okos; 02-04-2009 at 10:26 PM.
 
Old 02-04-2009, 10:18 PM   #6
guanx
Senior Member
 
Registered: Dec 2008
Posts: 1,176

Rep: Reputation: 233Reputation: 233Reputation: 233
Quote:
Originally Posted by okos View Post
Perhaps there is a problem with loopback
Then run "/sbin/ifconfig lo" to see if it's set up.
If lo is ok, run (as root) "iptables -L" to see if it's blocked by firewall.
If not blocked, run (as root) "netstat -apn | grep :631" to see that cups is listening for connection.
 
Old 02-04-2009, 11:09 PM   #7
okos
Member
 
Registered: May 2007
Location: California
Distribution: Slackware/Ubuntu
Posts: 609

Original Poster
Rep: Reputation: 38
Quote:
Originally Posted by guanx View Post
Then run "/sbin/ifconfig lo" to see if it's set up.
If lo is ok, run (as root) "iptables -L" to see if it's blocked by firewall.
If not blocked, run (as root) "netstat -apn | grep :631" to see that cups is listening for connection.
GOOD POINT!
I should have thought of that .
I think the issue it that I removed execution for
/etc/rc.d/rc.inet1
I had setup rc.inet1.conf for eth0 and ath0, but it took up quite a bit of time when booting.

I started to use wicd because of its ease of use when changing networks.

Perhaps I need to comment out the interfaces in rc.inet1.conf instead of disabiling rc.inet1

or perhaps a better way is to add iwconfig lo up to rc.local

Last edited by okos; 02-04-2009 at 11:30 PM.
 
Old 02-04-2009, 11:37 PM   #8
okos
Member
 
Registered: May 2007
Location: California
Distribution: Slackware/Ubuntu
Posts: 609

Original Poster
Rep: Reputation: 38
BTW, when you add a printer, what file is the info stored?
 
Old 02-05-2009, 12:15 AM   #9
guanx
Senior Member
 
Registered: Dec 2008
Posts: 1,176

Rep: Reputation: 233Reputation: 233Reputation: 233
Quote:
Originally Posted by okos View Post
BTW, when you add a printer, what file is the info stored?
/etc/cups/printers.conf
 
  


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
Trouble printing on xp box through cups smb. okos Linux - Networking 3 10-04-2008 11:03 AM
Cups and print trouble in Slackware 12 after trying Gnomeslackbuild. jannekrille Slackware 3 03-31-2008 02:32 PM
Trouble with Cups Hophoto SUSE / openSUSE 2 02-02-2006 02:53 PM
Trouble with cups/installing printer on LE2005 shea1roh Mandriva 1 05-11-2005 01:21 PM
Trouble printing with samba and cups linuxgae Linux - Networking 3 01-18-2004 12:58 PM

LinuxQuestions.org > Forums > Linux Forums > Linux - Distributions > Slackware

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