FAQ Search Today's Posts Mark Forums Read
» Video Reviews

» Linux Archive

Linux-archive is a website aiming to archive linux email lists and to make them easily accessible for linux users/developers.


» Sponsor

» Partners

» Sponsor

Go Back   Linux Archive > Gentoo > Gentoo User

 
 
LinkBack Thread Tools
 
Old 12-13-2007, 10:38 PM
david walcroft
 
Default Cups problem

david walcroft wrote:

Craig White wrote:

On Wed, 2007-12-12 at 19:04 -0600, Mikkel L. Ellertson wrote:


Craig White wrote:


On Thu, 2007-12-13 at 09:47 +1000, david walcroft wrote:


[david@reddwarf ~]$ sudo /sbin/service cups status
cups: unrecognized service
[david@reddwarf ~]$

[david@reddwarf ~]$ sudo tail -n 20 /var/log/cups/error.log
tail: cannot open `/var/log/cups/error.log' for reading: No such
file or directory

[david@reddwarf ~]$



<--------------[ snip ]------------->


OK, you need to register and then start cups...

/sbin/chkconfig cups on
/sbin/service cups start



It looks like the OP is missing something. Even if cups is not
enabled with chkconfig, the service command should still work. It
looks like /etc/init.d/cups script is missing. (I have never checked
to see what happens if the <service> script is there, but not
executable.)


----
good point - but you are not helping OP with useful things to do

David...what is output of ???

sudo rpm -qa|grep cups
sudo rpm -V cups
uname -a

Craig



[david@reddwarf ~]$ uname -a
Linux reddwarf 2.6.23.8-63.fc8 #1 SMP Wed Nov 21 18:51:08 EST 2007
i686 i686 i386 GNU/Linux

[david@reddwarf ~]$ sudo rpm -qa|grep cups
cups-pdf-2.4.6-3.fc8.i386
apcupsd-std-3.10.18-1.i386
gutenprint-cups-5.0.1-5.fc8.i386
cups-libs-1.3.4-4.fc8.i386
libgnomecups-0.2.2-11.fc8.i386
[david@reddwarf ~]$ sudo rpm -V cups
package cups is not installed
[david@reddwarf ~]$
And the output of Yum install cups - not good.


[root@reddwarf ~]# yum -y install cups
Excluding Packages in global exclude list
Finished
Setting up Install Process
Parsing package install arguments
Resolving Dependencies
--> Running transaction check
---> Package cups.i386 1:1.3.4-4.fc8 set to be updated
--> Finished Dependency Resolution

Dependencies Resolved

================================================== ===========================

Package Arch Version Repository
Size
================================================== ===========================


Installing:
cups i386 1:1.3.4-4.fc8 base
3.4 M


Transaction Summary
================================================== ===========================


Install 1 Package(s)
Update 0 Package(s)
Remove 0 Package(s)

Total download size: 3.4 M
Downloading Packages:
YumRepo Warning: not using ftp, http[s], or file for repos, skipping -
mirrorlist=http://mirrors.fedoraproject.org/mirrorlist?repo=fedora-8&arch=i386

(1/1): cups-1.3.4-4.fc8.i 100% |=========================| 4.3 kB
00:00
http://download.fedora.redhat.com/pub/fedora/linux/releases/8/Everything/i386/os/Fedora/cups-1.3.4-4.fc8.i386.rpm:
[Errno -1] Package does not match intended download

Trying other mirror.
(1/1): cups-1.3.4-4.fc8.i 100% |=========================| 3.4 MB
00:05
http://mirror.aarnet.edu.au/pub/fedora/linux/updates/8/i386/cups-1.3.4-4.fc8.i386.rpm:
[Errno -1] Package does not match intended download

Trying other mirror.
http://mirror.optus.net/fedora/linux/updates/8/i386/cups-1.3.4-4.fc8.i386.rpm:
[Errno 9] Requested Range Not Satisfiable

Trying other mirror.
http://download.fedora.redhat.com/pub/fedora/linux/releases/8/Everything/i386/os/cups-1.3.4-4.fc8.i386.rpm:
[Errno 9] Requested Range Not Satisfiable

Trying other mirror.
http://mirror.optus.net/fedora/linux/releases/8/Everything/i386/os/cups-1.3.4-4.fc8.i386.rpm:
[Errno 14] HTTP Error 404: Not Found

Trying other mirror.
Error Downloading Packages:
cups - 1:1.3.4-4.fc8.i386: failure: cups-1.3.4-4.fc8.i386.rpm from
base: [Errno 256] No more mirrors to try.


It seems to know which cups to install but cannot find the rpm.

david



[david@reddwarf burner]$ sudo rpm -Uvh hal-cups-utils-0.6.13-2.fc8.i386.rpm
Preparing... ###########################################
[100%]
1:hal-cups-utils ###########################################
[100%]

[david@reddwarf burner]$

david

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
 
Old 12-14-2007, 02:39 AM
Tim
 
Default Cups problem

On Fri, 2007-12-14 at 09:18 +1000, david walcroft wrote:
> [root@reddwarf ~]# ps aux -columns 256 |grep cupsd
> ERROR: Unknown user-defined format specifier "lumns".

You should have had a double-dash in front of "columns".

i.e. ps aux --columns 256 |grep cupsd

--
[tim@bigblack ~]$ uname -ipr
2.6.23.1-10.fc7 i686 i386

Using FC 4, 5, 6 & 7, plus CentOS 5. Today, it's FC7.

Don't send private replies to my address, the mailbox is ignored.
I read messages from the public lists.



--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
 
Old 12-14-2007, 04:54 AM
david walcroft
 
Default Cups problem

Craig White wrote:

On Fri, 2007-12-14 at 09:00 +1000, david walcroft wrote:


Craig White wrote:


On Thu, 2007-12-13 at 15:57 +1000, david walcroft wrote:





It seems to know which cups to install but cannot find the rpm.



----
that usually can be fixed by clearing yum cache.

why you removed cups with a --nodeps is beyond my comprehension but the
following might work...

yum clean all
yum install cups
yum update

Try that and see if it installs cups

Craig



I thought removing cups would clear up any faulty connections, it has
worked for

me in the past.

[david@reddwarf burner]$ rpm -qa |grep cups
cups-pdf-2.4.6-3.fc8.i386
apcupsd-std-3.10.18-1.i386
gutenprint-cups-5.0.1-5.fc8.i386
cups-libs-1.3.4-4.fc8.i386
cups-1.3.4-4.fc8.i386
libgnomecups-0.2.2-11.fc8.i386
[david@reddwarf burner]

Cups is now installed I had to do the manual method.


----
I hope that did not include --nodeps

Please tell me that didn't including installing with --nodeps
----


yum updated 31 files but no cups yet
Still not printing.


----
now back to my earlier thread...

OK, you need to register and then start cups...

/sbin/chkconfig cups on
/sbin/service cups start

Then you will have to see if printer is still set up...probably easiest
to just use 'Administration' => 'Printing'

set up printer, apply changes, click 'Print Test Page'

until you get a test page to print, don't bother with any other program.
Fix the settings

Craig




I do not know if this will affect this problem but I have just remembered
That I use HP's driver hplip for my printer.

david

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
 
Old 12-14-2007, 04:56 AM
david walcroft
 
Default Cups problem

Tim wrote:

On Fri, 2007-12-14 at 09:18 +1000, david walcroft wrote:


[root@reddwarf ~]# ps aux -columns 256 |grep cupsd
ERROR: Unknown user-defined format specifier "lumns".



You should have had a double-dash in front of "columns".

i.e. ps aux --columns 256 |grep cupsd




[david@reddwarf ~]$ sudo ps aux --columns 256 |grep cupsd
david 17568 0.0 0.0 4044 676 pts/1 S+ 15:49 0:00 grep cupsd
[david@reddwarf ~]$

It seems that cupsd is running.

david

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
 
Old 12-14-2007, 05:04 AM
david walcroft
 
Default Cups problem

david walcroft wrote:

Aaron Konstam wrote:

I've done a "rpm -e --nodeps cups" then "yum install cups" and got
to the point where
thunderbird and firefox send a print request to my HP PSC 2110 but
is not printed out.

I still cannot open "localhost 631" 'Unable to connect'.


----
how about in firefox...

http://localhost:631

?

Craig



comes up with "Unable to connect"

david


It seems to me there are only two possibilities:
1. cupsd is not running. What does : ps aux -columns 256 |grep cupsd
return/
2. Your /etc/hosts file does not define a localhost. Use the ip number
of ypur machine rather than localhost.
--
================================================== =====================
Somewhere, something incredible is waiting to be known. -- Carl Sagan
================================================== =====================
Aaron Konstam telephone: (210) 656-0355 e-mail: akonstam@sbcglobal.net



Could you give me an example of /etc/hosts file please

ps aux -columns 256 |grep cupsd

[david@reddwarf ~]$ ps aux -columns 256 |grep cupsd
ERROR: Unknown user-defined format specifier "lumns".
********* simple selection ********* ********* selection by list
*********

-A all processes -C by command name
-N negate selection -G by real group ID (supports
names)

-a all w/ tty except session leaders -U by real user ID (supports names)
-d all except session leaders -g by session OR by effective
group name

-e all processes -p by process ID
T all processes on this terminal -s processes in the sessions given
a all w/ tty, including other users -t by tty
g OBSOLETE -- DO NOT USE -u by effective user ID
(supports names)

r only running processes U processes for specified users
x processes w/o controlling ttys t by tty
*********** output format ********** *********** long options
***********

-o,o user-defined -f full --Group --User --pid --cols --ppid
-j,j job control s signal --group --user --sid --rows --info
-O,O preloaded -o v virtual memory --cumulative --format --deselect
-l,l long u user-oriented --sort --tty --forest --version
-F extra full X registers --heading --no-heading --context
********* misc options *********
-V,V show version L list format codes f ASCII art forest
-m,m,-L,-T,H threads S children in sum -y change -l format
-M,Z security data c true command name -c scheduling class
-w,w wide output n numeric WCHAN,UID -H process hierarchy
[david@reddwarf ~]$

What is the command to show the daemons under "service"

david

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
 
Old 12-14-2007, 05:13 AM
david walcroft
 
Default Cups problem

david walcroft wrote:

Tim wrote:

On Fri, 2007-12-14 at 09:18 +1000, david walcroft wrote:


[root@reddwarf ~]# ps aux -columns 256 |grep cupsd
ERROR: Unknown user-defined format specifier "lumns".



You should have had a double-dash in front of "columns".

i.e. ps aux --columns 256 |grep cupsd




[david@reddwarf ~]$ sudo ps aux --columns 256 |grep cupsd
david 17568 0.0 0.0 4044 676 pts/1 S+ 15:49 0:00 grep
cupsd

[david@reddwarf ~]$

It seems that cupsd is running.

david


I still cannot connect to localhost:631 and "system-config-printer" says

[david@reddwarf ~]$ sudo system-config-printer
sudo: system-config-printer: command not found
[david@reddwarf ~]$

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
 
Old 12-14-2007, 05:22 AM
"Kevin J. Cummings"
 
Default Cups problem

david walcroft wrote:
> Tim wrote:
>> On Fri, 2007-12-14 at 09:18 +1000, david walcroft wrote:
>>
>>> [root@reddwarf ~]# ps aux -columns 256 |grep cupsd
>>> ERROR: Unknown user-defined format specifier "lumns".
>>>
>>
>> You should have had a double-dash in front of "columns".
>>
>> i.e. ps aux --columns 256 |grep cupsd
>>
>>
> [david@reddwarf ~]$ sudo ps aux --columns 256 |grep cupsd
> david 17568 0.0 0.0 4044 676 pts/1 S+ 15:49 0:00 grep cupsd
> [david@reddwarf ~]$
>
> It seems that cupsd is running.

Uh, no! The only process found was the process running the grep. Take
a closer look. If cupsd was running, the grep would have printed 2
lines, like:

> root 1364 0.0 0.0 3892 660 pts/2 S+ 01:14 0:00 grep cupsd
> root 3308 0.0 0.1 9764 2540 ? Ss Dec11 0:18 cupsd

What does "chkconfig --list cups" tell you?

mine shows:

> cups 0ff 1ff 2n 3n 4n 5n 6ff

--
Kevin J. Cummings
kjchome@rcn.com
cummings@kjchome.homeip.net
cummings@kjc386.framingham.ma.us
Registered Linux User #1232 (http://counter.li.org)

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
 
Old 12-14-2007, 05:27 AM
"Kevin J. Cummings"
 
Default Cups problem

david walcroft wrote:
> david walcroft wrote:
>> Tim wrote:
>>> On Fri, 2007-12-14 at 09:18 +1000, david walcroft wrote:
>>>
>>>> [root@reddwarf ~]# ps aux -columns 256 |grep cupsd
>>>> ERROR: Unknown user-defined format specifier "lumns".
>>>>
>>>
>>> You should have had a double-dash in front of "columns".
>>>
>>> i.e. ps aux --columns 256 |grep cupsd
>>>
>>>
>> [david@reddwarf ~]$ sudo ps aux --columns 256 |grep cupsd
>> david 17568 0.0 0.0 4044 676 pts/1 S+ 15:49 0:00 grep
>> cupsd
>> [david@reddwarf ~]$
>>
>> It seems that cupsd is running.

See my previous response.

>> david
>>
> I still cannot connect to localhost:631 and "system-config-printer" says

In order to connect to localhost:631, cupsd has to be running. You have
not proved that yours is. In fact, you have proved that yours is not.

system-config-printer is in a package by itself. What does "rpm -q
system-config-printer" tell you?

> [david@reddwarf ~]$ sudo system-config-printer
> sudo: system-config-printer: command not found
> [david@reddwarf ~]$

Looks like you need to install system-config-printer

yum install system-config-printer

--
Kevin J. Cummings
kjchome@rcn.com
cummings@kjchome.homeip.net
cummings@kjc386.framingham.ma.us
Registered Linux User #1232 (http://counter.li.org)

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
 
Old 12-14-2007, 07:06 AM
Tim
 
Default Cups problem

On Fri, 2007-12-14 at 16:04 +1000, david walcroft wrote:
> What is the command to show the daemons under "service"

I'm not sure exactly what you mean, perhaps this:

As root, this command line:
service --status-all

Or, alternatively, "serviceconf" brings up a GUI about this.

--
(This computer runs FC7, my others run FC4, FC5 & FC6, in case that's
important to the thread.)

Don't send private replies to my address, the mailbox is ignored.
I read messages from the public lists.

--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
 
Old 12-14-2007, 08:53 AM
peter volsted
 
Default Cups problem

hi


david walcroft wrote:

---------- snip


I do not know if this will affect this problem but I have just remembered
That I use HP's driver hplip for my printer.

Did you then also ran /usr/bin/hp-setup?
That did the trick in my case :-)
The documentation on hplip & assoc. is pretty good reading.

--
good luck

peter


--
fedora-list mailing list
fedora-list@redhat.com
To unsubscribe: https://www.redhat.com/mailman/listinfo/fedora-list
 

Thread Tools




All times are GMT. The time now is 01:45 PM.

VBulletin, Copyright ©2000 - 2014, Jelsoft Enterprises Ltd.
Content Relevant URLs by vBSEO ©2007, Crawlability, Inc.
Copyright 2007 - 2008, www.linux-archive.org