LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 01-21-2007, 02:02 AM   #1
(harlie
LQ Newbie
 
Registered: Jan 2007
Location: Texas
Distribution: Zenwalk
Posts: 2

Rep: Reputation: 0
CUPS server cannot be contacted


I am trying to install a printer onto my Zenwalk box. However after I enter the root password for the printer manager an error message comes up that reads "The CUPS server could not be contacted". I have downloaded and installed CUPS and that seemingly had no effect on my problem, and I'm fairly new to Linux and don't know what else to try. I am obviously doing something wrong, and any help would be greatly appreciated.

Thanks

(sorry about the wrong forum )

Last edited by (harlie; 01-21-2007 at 02:08 AM.
 
Old 01-21-2007, 02:33 AM   #2
andygo
Member
 
Registered: May 2005
Location: Ukraine, Kiev
Distribution: SLES, Raspbian, Ubuntu-Mate, LineageOS
Posts: 114

Rep: Reputation: 15
first - check if the CUPS server started
use your service manager (not sure about zenwalk, this works on gentoo and debian-based)
#/etc/init.d/cuspd status

then check the port
#netstat -nap | grep 631
cupsd must LISTEN on 631'st port

then enter CUPS server serttings page (start your favourite brouser):
http://localhost:631
and check your printer settings etc... print test page and so on ...
 
Old 01-21-2007, 02:53 AM   #3
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
As root type cupsd. Then in a web browser, type http://localhost:631 in the URL box. If this works, hit CTL+C on the terminal that you ran cupsd or kill -15 `pidof cupsd` and then find the init service file for cups and run it.
 
Old 01-21-2007, 03:40 AM   #4
(harlie
LQ Newbie
 
Registered: Jan 2007
Location: Texas
Distribution: Zenwalk
Posts: 2

Original Poster
Rep: Reputation: 0
I've found the init file and ran it (or at least I think that I did, nothing viably happened) but http:\\localhost:631 doesn't come up. Though it worked fine when I ran the commands you gave me.
 
Old 01-21-2007, 01:30 PM   #5
Electro
LQ Guru
 
Registered: Jan 2002
Posts: 6,042

Rep: Reputation: Disabled
Use the following for /etc/cups/cupsd.conf.
Code:
# Show troubleshooting information in error_log.
LogLevel debug
SystemGroup lpadmin
# Allow remote access
Port *:631
Listen /var/run/cups/cups.sock
# Enable printer sharing and shared printers.
Browsing On
BrowseOrder allow,deny
BrowseAllow @LOCAL
BrowseAddress @LOCAL
DefaultAuthType Basic
<Location />
  # Allow shared printing and remote administration...
  Order allow,deny
  Allow @LOCAL
</Location>
<Location /admin>
  Encryption Required
  # Allow remote administration...
  Order allow,deny
  Allow @LOCAL
</Location>
<Location /admin/conf>
  AuthType Basic
  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 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>
  <Limit CUPS-Authenticate-Job>
    Require user @OWNER @SYSTEM
    Order deny,allow
  </Limit>
  # Only the owner or an administrator can cancel a job...
  <Limit Cancel-Job>
    Order deny,allow
    Require user @OWNER @SYSTEM
  </Limit>
  <Limit All>
    Order deny,allow
  </Limit>
</Policy>
It is http://localhost:631 not http:\\localhost:631. The above will provide support so other computers on your network can printer to your printer and find out the status of the job. It is a plain config, so you will have to edit it to make your setup secure.

You can also use the command line to install a printer by using lpadmin. Use lpinfo -v to find available printers.
 
Old 01-27-2007, 05:20 AM   #6
andygo
Member
 
Registered: May 2005
Location: Ukraine, Kiev
Distribution: SLES, Raspbian, Ubuntu-Mate, LineageOS
Posts: 114

Rep: Reputation: 15
is it, or is it not working?
 
  


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
How can I be contacted on Linphone? Balarabay1 SUSE / openSUSE 4 06-27-2006 10:50 AM
cups server cannot be contacted jeffc313 Linux - Hardware 8 12-12-2005 03:21 PM
remote cups printing to a smb/cups print server? justanothergeek Linux - Networking 2 09-15-2004 08:31 AM
"The CUPS server could not be contacted" walterbyrd Slackware - Installation 5 04-24-2004 08:30 PM
kdeinit can't be contacted compu73rg33k Linux - Newbie 2 03-29-2004 09:28 AM

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

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