Linux - GeneralThis Linux forum is for general Linux questions and discussion.
If it is Linux Related and doesn't seem to fit in any other forum then this is the place.
Notices
Welcome to LinuxQuestions.org, a friendly and active Linux Community.
You are currently viewing LQ as a guest. By joining our community you will have the ability to post topics, receive our newsletter, use the advanced search, subscribe to threads and access many other special features. Registration is quick, simple and absolutely free. Join our community today!
Note that registered members see fewer ads, and ContentLink is completely disabled once you log in.
If you have any problems with the registration process or your account login, please contact us. If you need to reset your password, click here.
Having a problem logging in? Please visit this page to clear all LQ-related cookies.
Introduction to Linux - A Hands on Guide
This guide was created as an overview of the Linux Operating System, geared toward new users as an exploration tour and getting started guide, with exercises at the end of each chapter.
For more advanced trainees it can be a desktop reference, and a collection of the base knowledge needed to proceed with system and network administration. This book contains many real life examples derived from the author's experience as a Linux system and network administrator, trainer and consultant. They hope these examples will help you to get a better understanding of the Linux system and that you feel encouraged to try out things on your own.
Click Here to receive this Complete Guide absolutely free.
After using mandrake 8.2 over the last two years, i meet some trouble with my printer setting since i install mdk 9.2.
I have looked through several forums, read CUPS, Man, but i have not any progress with CUPS and why i have CUPS Server error (See below).
I'm root and my epson stylus 870 (USB) is a local printer.
I suspect it is something very basic but what ???...
Below are some diagnostic output. If anyone can help me get this sorted out i would be very
grateful.
Best regards, jérome
K E R N E L C O N F I G
Mandrake 9.2
Kernel : 2.6.1.
Architecture : gigabyte ga-7N400 pro2 (NFORCE)
# USB Host Controller Drivers
#
CONFIG_USB_EHCI_HCD=y
CONFIG_USB_OHCI_HCD=y
CONFIG_USB_UHCI_HCD=m
# USB Device Class drivers
#
# CONFIG_USB_AUDIO is not set
# CONFIG_USB_BLUETOOTH_TTY is not set
# CONFIG_USB_MIDI is not set
# CONFIG_USB_ACM is not set
CONFIG_USB_PRINTER=y
CONFIG_USB_STORAGE=y
DMESG
drivers/usb/class/usblp.c: usblp0: USB Bidirectional printer dev 3 if 0 alt 0 proto 2 vid 0x04B8 pid 0x0005
drivers/usb/core/file.c: looking for a minor, starting at 0
ehci_hcd 0000:00:02.2: GetStatus port 3 status 003402 POWER OWNER sig=k CSC
hub 1-0:1.0: port 3, status 0, change 1, 12 Mb/s
ehci_hcd 0000:00:02.2: GetStatus port 5 status 003402 POWER OWNER sig=k CSC
hub 1-0:1.0: port 5, status 0, change 1, 12 Mb/s
ehci_hcd 0000:00:02.2: GetStatus port 6 status 003802 POWER OWNER sig=j CSC
hub 1-0:1.0: port 6, status 0, change 1, 12 Mb/s
usb 3-3: hcd_unlink_urb f7daa4c0 fail -22
usb 3-3: hcd_unlink_urb f7daa540 fail -22
usb 3-3: hcd_unlink_urb f7daa540 fail -22
lp0: using parport0 (polling).
usb 3-3: hcd_unlink_urb f7daa540 fail -22
usb 3-3: hcd_unlink_urb f7daa4c0 fail -22
usb 3-3: hcd_unlink_urb f7daa540 fail -22
L S U S B
[root@localhost IMPRIMANTE]# lsusb
Output : nothing
C U P S W E B A D M I NI S T R A T I O N T O O L
//localhost:631/
Unable to connect to localhost (port 631)
W E B M I N : A D D A N E W P R I N T E R
//localhost:10000/lpadmin/save_printer.cgi
Failed to save printer : lpadmin failed :
lpadmin: Unable to connect to server: Connection refused
R U N N I N G P R O C E S S E S
3061 root 22:14 cupsd
H O S T S S E T T I N G
[root@localhost IMPRIMANTE]# cat /etc/hosts
127.0.0.1 localhost
C U P S D . C O N F
[root@localhost IMPRIMANTE]# cat /etc/cups/cupsd.conf
BrowseInterval 0
Browsing On
BrowsePoll 127.0.0.1:631
LogLevel debug
TempDir /var/spool/cups/tmp
<Location />Order Deny,Allow
Deny From All
Allow From 127.0.0.1
</Location>
<Location /admin>
AuthType Basic
AuthClass System
Order Deny,Allow
Deny From All
Allow From 127.0.0.1
</Location>
C L I E N T . C O N F
[root@localhost IMPRIMANTE]# cat /etc/cups/client.conf
#Encryption Always
Encryption Never
#Encryption Required
#Encryption IfRequested
C U P S R E S T A R T
[root@localhost backend]# /etc/init.d/cups restart
Arrêt du service d'impression CUPS : [ OK ]
Ajout du périphérique « loopback » à la table d'acheminement ...
SIOCADDRT: File exists
ATTENTION: je ne peux ajouter de périphérique virtuel « loopback » à la table d'acheminement,
CUPS pourrait ne pas fonctionner correctement.
Lancement du service d'impression CUPS : [ OK ]
C U P S E R R O R _ L O G
E [21/May/2004:23:03:01 +0200] Scheduler shutting down due to SIGTERM.
D [21/May/2004:23:03:01 +0200] StopListening: closing all listen sockets.
D [21/May/2004:23:03:02 +0200] AddLocation: added location '/'
D [21/May/2004:23:03:02 +0200] DenyIP: / deny 00000000/00000000
D [21/May/2004:23:03:02 +0200] AllowIP: / allow 7f000001/ffffffff
D [21/May/2004:23:03:02 +0200] AddLocation: added location '/admin'
D [21/May/2004:23:03:02 +0200] DenyIP: /admin deny 00000000/00000000
D [21/May/2004:23:03:02 +0200] AllowIP: /admin allow 7f000001/ffffffff
I [21/May/2004:23:03:02 +0200] Loaded configuration file "/etc/cups/cupsd.conf"
I [21/May/2004:23:03:02 +0200] Configured for up to 100 clients.
I [21/May/2004:23:03:02 +0200] Allowing up to 100 client connections per host.
I [21/May/2004:23:03:02 +0200] Full reload is required.
D [21/May/2004:23:03:02 +0200] LoadDevices: Added device "parallel:/dev/lp0"...
D [21/May/2004:23:03:02 +0200] LoadDevices: Added device "http"...
D [21/May/2004:23:03:02 +0200] LoadDevices: Added device "ipp"...
D [21/May/2004:23:03:02 +0200] LoadDevices: Added device "lpd"...
D [21/May/2004:23:03:02 +0200] LoadDevices: Added device "scsi"...
D [21/May/2004:23:03:02 +0200] LoadDevices: Added device "pdf"...
D [21/May/2004:23:03:02 +0200] LoadDevices: Added device "socket"...
D [21/May/2004:23:03:02 +0200] LoadDevices: Added device "usb://EPSON/Stylus%20Photo%20870"...
D [21/May/2004:23:03:02 +0200] LoadDevices: Added device "usb:/dev/usb/lp1"...
D [21/May/2004:23:03:02 +0200] LoadDevices: Added device "usb:/dev/usb/lp2"...
D [21/May/2004:23:03:02 +0200] LoadDevices: Added device "usb:/dev/usb/lp3"...
D [21/May/2004:23:03:02 +0200] LoadDevices: Added device "usb:/dev/usb/lp4"...
D [21/May/2004:23:03:02 +0200] LoadDevices: Added device "usb:/dev/usb/lp5"...
D [21/May/2004:23:03:02 +0200] LoadDevices: Added device "usb:/dev/usb/lp6"...
D [21/May/2004:23:03:02 +0200] LoadDevices: Added device "usb:/dev/usb/lp7"...
D [21/May/2004:23:03:02 +0200] LoadDevices: Added device "usb:/dev/usb/lp8"...
D [21/May/2004:23:03:02 +0200] LoadDevices: Added device "usb:/dev/usb/lp9"...
D [21/May/2004:23:03:02 +0200] LoadDevices: Added device "usb:/dev/usb/lp10"...
D [21/May/2004:23:03:02 +0200] LoadDevices: Added device "usb:/dev/usb/lp11"...
D [21/May/2004:23:03:02 +0200] LoadDevices: Added device "usb:/dev/usb/lp12"...
D [21/May/2004:23:03:02 +0200] LoadDevices: Added device "usb:/dev/usb/lp13"...
D [21/May/2004:23:03:02 +0200] LoadDevices: Added device "usb:/dev/usb/lp14"...
D [21/May/2004:23:03:02 +0200] LoadDevices: Added device "usb:/dev/usb/lp15"...
D [21/May/2004:23:03:02 +0200] LoadDevices: Added device "canon:/dev/lp0"...
D [21/May/2004:23:03:02 +0200] LoadDevices: Added device "canon:/dev/usb/lp0"...
D [21/May/2004:23:03:02 +0200] LoadDevices: Added device "epson:/dev/lp0"...
D [21/May/2004:23:03:02 +0200] LoadDevices: Added device "epson:/dev/usb/lp0"...
I [21/May/2004:23:03:02 +0200] LoadPPDs: Read "/etc/cups/ppds.dat", 749 PPDs...
I [21/May/2004:23:03:02 +0200] LoadPPDs: No new or changed PPDs...
D [21/May/2004:23:03:02 +0200] LoadAllJobs: Scanning /var/spool/cups...
I [21/May/2004:23:03:02 +0200] Full reload complete.
D [21/May/2004:23:03:02 +0200] StartListening: NumListeners=0
D [21/May/2004:23:03:02 +0200] StartPolling: Started polling daemon for 127.0.0.1:631, pid = 3711
E [21/May/2004:23:03:02 +0200] [cups-polld 127.0.0.1:631] Unable to connect to 127.0.0.1 on port 631: Connection refused
E [21/May/2004:23:03:32 +0200] [cups-polld 127.0.0.1:631] Unable to connect to 127.0.0.1 on port 631: Connection refused
E [21/May/2004:23:04:02 +0200] [cups-polld 127.0.0.1:631] Unable to connect to 127.0.0.1 on port 631: Connection refused
E [21/May/2004:23:04:32 +0200] [cups-polld 127.0.0.1:631] Unable to connect to 127.0.0.1 on port 631: Connection refused
T E S T
[root@localhost IMPRIMANTE]# echo "hello" > epson
bash: epson: Read-only file system
L P R E R R O R S
[root@localhost proc]# cat /var/log/lpr/errors
Nothing
L P I N F O
[root@localhost proc]# lpinfo -v
lpinfo: Unable to connect to server: Connection refused
L P S T A T
[root@localhost proc]# lpstat -v
lpstat: Unable to connect to server: Connection refused
P R I N T E R C O N F
[root@localhost root]# cat /etc/cups/printers.conf
Not set
F O O M A T I C
[root@localhost root]# ls /etc/foomatic/cups/
epson.ppd
The impression I get is that for some reason the CUPS daemon isn't listening on port 631. If I were you I would add a "Port 631" or "Listen 127.0.0.1:631" line to the cupsd.conf file to force it to listen on 127.0.0.1:631 as this is what it is currently refusing to do.
LinuxQuestions.org is looking for people interested in writing
Editorials, Articles, Reviews, and more. If you'd like to contribute
content, let us know.