LinuxQuestions.org
Welcome to the most active Linux Forum on the web.
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 12-03-2008, 06:51 PM   #1
hikerguy
LQ Newbie
 
Registered: Oct 2008
Posts: 20

Rep: Reputation: 1
Can't access CUPS interface


Out of the blue, I'm unable to access the CUPS interface (localhost:631). I used to be able to, but now, everytime I try to, a Page load error comes up with "can't establish a connection to the server at localhost:631." I searched the Ubuntu forums and Google and tried a few things (including installing CUPS v1.3.9) with no change. I've tried stop and staring cups, but nothing is working. Has anyone come across this issue and found a fix for it?

Thanks,

Andy

Last edited by hikerguy; 12-03-2008 at 06:52 PM. Reason: added tags
 
Old 12-03-2008, 06:52 PM   #2
SqdnGuns
Senior Member
 
Registered: Aug 2005
Location: Peoples Republic of Kalifornia
Distribution: Slackware64 Current
Posts: 1,042

Rep: Reputation: 128Reputation: 128
Make sure it's running:

/etc/rc.d/rc.cups restart
 
Old 12-03-2008, 07:05 PM   #3
hikerguy
LQ Newbie
 
Registered: Oct 2008
Posts: 20

Original Poster
Rep: Reputation: 1
SqdnGuns, guess I should have mentioned I'm running Ubuntu. I used the following two commands, which I believe
confirms it's running (Linux and CUPS are pretty new to me. I converted to Ubuntu Linux about 6 weeks ago---althgough I've worked as an end-user on Unix servers for about 7 years. Just never had to set things up from scratch like this. It's been a great learning experience).

$sudo /etc/init.d/cups status
cups: scheduler is running.

And

c$ ps -ef | grep cupsd
root 8982 1 0 18:58 ? 00:00:00 /usr/sbin/cupsd

Thanks,

Andy
 
Old 12-03-2008, 07:22 PM   #4
michaelk
Moderator
 
Registered: Aug 2002
Posts: 20,672

Rep: Reputation: 3656Reputation: 3656Reputation: 3656Reputation: 3656Reputation: 3656Reputation: 3656Reputation: 3656Reputation: 3656Reputation: 3656Reputation: 3656Reputation: 3656
Check the cups access and errpr logs. Might be something there.

BTW this isn't a hardware problem and will be moved.

Last edited by michaelk; 12-03-2008 at 07:23 PM.
 
Old 12-04-2008, 07:40 AM   #5
pixellany
LQ Veteran
 
Registered: Nov 2005
Location: Annapolis, MD
Distribution: Arch/XFCE
Posts: 17,802

Rep: Reputation: 741Reputation: 741Reputation: 741Reputation: 741Reputation: 741Reputation: 741Reputation: 741
Moved: This thread is more suitable in Software and has been moved accordingly to help your thread/question get the exposure it deserves.
 
Old 12-04-2008, 09:08 PM   #6
hikerguy
LQ Newbie
 
Registered: Oct 2008
Posts: 20

Original Poster
Rep: Reputation: 1
Well, I'm making progress. Stumbled upon the following URL (instructions from the URL are provided below), and now I no longer
get the error message ""can't establish a connection to the server at localhost:631." However, as I tried to install the printer via
the CUPS interface, I guessed at the URI. I still can't print (getting a message of :""Unable to start filter "pstocanonij" -
No such file or directory.", but I'm getting closer.

NOTE: The user "cupsys" didn't exist, so I had to create it before executing the second "batch" of steps. The first batch of steps (shown immediately below) show the error message I received when creating the user "cupsys". I figure as long as it fixed my original problem, I'm not concerned about the password expiring. In fact, maybe it does that by default for the user cupsys, since that's used by the system.:

Code:
$sudo adduser cupsys
Adding user `cupsys' ...
Adding new group `cupsys' (1000) ...
Adding new user `cupsys' (1000) with group `cupsys' ...
The home directory `/home/cupsys' already exists.  Not copying from `/etc/skel'.
Enter new UNIX password: 
Retype new UNIX password: 
passwd: password updated successfully
Your account has expired; please contact your system administrator
https://help.ubuntu.com/community/PrintingCupsWebInterface

Basically, the steps are:

Code:
1. Add "cupsys" to the shadow group. In terminal type:
sudo adduser cupsys shadow
2. Add youself to the lpadmin group. In terminal:
sudo adduser <yourusername> lpadmin
3. Restart CUPs. This can be done by typing:
sudo /etc/init.d/cupsys restart
Andy

Thanks to all who replied to my post. Hope this helps some people out there.

(as an aside, does anyone know why the second box of code has a vertical scroll bar, but the first one doesn't?)

Last edited by hikerguy; 12-04-2008 at 09:31 PM. Reason: fixing the formatting
 
  


Reply

Tags
cups, printer, printing


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
CUPS web interface access solved geoff_f Linux - Software 1 07-25-2006 02:37 PM
Access CUPS web interface "Administrative Tasks" ALInux Linux - Networking 2 05-24-2006 03:55 AM
Cups Web Interface treedstang Linux - General 1 10-18-2005 06:04 PM
cups web interface brasuca Linux - Networking 0 05-31-2004 11:42 AM
cups web interface j-me Linux - Software 3 03-24-2003 02:01 PM

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

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

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