Subj: CUPS (configuration problem for NON-root) only root can printproperly
I use debian3.0 and installed CUPS. I have HP Laserjet 1200 series. During the configuration (http://localhost:631/ as root) I configured the printer: e.g. 1200 dpi, ...). When I print something from root account it seems that the cups works OK and configuration of the printer is OK. But when I use the printer from NON-root account it seems that the configuration of the printer is NOT OK. E.g. when I print some picture (region filled with gray colour) it is printed as black but from the root account it is printed OK. How one can configure printer for NON-root user? Jan -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Subj: CUPS (configuration problem for NON-root) only root canprint properly
Thanks for answer. On Sat, 8 Mar 2003, nate wrote: > iks_kzm said: > > > > How one can configure printer for NON-root user? > > be sure you only have 1 print spooler installed. e.g. lpr/lprng > should not be installed. in /var/spool/ I have lpd/hplj120 and lpd/postscript and cups > > /etc/printcap should be empty and/or have the contents of Now I have /etc/printcap empty > /etc/printcap.cups (/etc/cups has a config file where you can > tell it to write info to /etc/printcap instead of /etc/printcap.cups) printcap.cups has the following entry HP_Laserjet_1200: > > beyond that theres no configuration needed for non root users, I don't > think I've even printed as user root with the exception of the cups > test pages through the HTTP admin interface. > > this assumes your running woody. sarge or sid may be different. debian 3.0 is equivalent to woody? Still I have the same problem: non-root user does not print properly (gray colour is printed as black). Any other clue? Jan > > nate > > > > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] > > -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: Subj: CUPS (configuration problem for NON-root) only root canprint properly
On Sat, 8 Mar 2003, nate wrote: > iks_kzm said: > > > I have > > lpd/hplj120 > > and lpd/postscript > > and > > > > that is indicative of multiple spoolers installed on the system, > run a dpkg -l | grep lp and see if lpr and/or lprng show up, also > it may help to do a dpkg -l | grep apsfilter and dpkg -l | grep magicfilter > remove any of those packages if they show up (dpkg --purge package-name) dpkg -l | grep lp shows rc lpr2000.05.07-4.2 BSD lpr/lpd line printer spooling system dpkg -l | grep magicfilter rc magicfilter1.2-53 automatic printer filter. dpkg -l | grep lprng shows nothing. but when I use dselect and search lpr (or magicfilter) it shows that neither lpr nor magicfilter are installed. Should I uninstall lpd? When I look at /var/spool/lpd/hplj1200 or /var/spool/lpd/postscript I see only very old files (22 November) and all files dated form 23 November to 9 March are only in /var/spool/cups/: the files come from root and non-root printing jobs. > > >> > >> /ttributes-natural-languageetc/printcap should be empty and/or printer-uri> > -ipp://localhost:631/printers/HP_Laserjet_120B0Now I have /etc/printcap empty > > delete /etc/printcap I've deleted it. Still have the same problem (: Any more clue? Jan > > >> /etc/printcap.cups (/etc/cups has a config file where you can > >> tell it to write info to /etc/printcap instead of /etc/printcap.cups) > > printcap.cups > > has the following entry > > HP_Laserjet_1200: > > either: > 1) modify cups config to write to /etc/printcap instead > 2) cd /etc ; ln -s printcap.cups printcap > 3) cd /etc ; cp printcap.cups printcap > > > > debian 3.0 is equivalent to woody? > > yep. > > > > > Still I have the same problem: non-root user does not print > > properly (gray colour is printed as black). > > > > Any other clue? > > see above ...I've used cups on about 4-5 different systems and none > of them required special configurations for non-root users. > > I think the apps are getting confused with your /etc/printcap > > nate > > > > > -- > To UNSUBSCRIBE, email to [EMAIL PROTECTED] > with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED] > > -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
cups: Unable to read configuration file '/etc/cups/cupsd.conf' -exiting
I use debian 3.0 (woody) on pentium IV. When I try to install (using dsselect) cupsys, cupsys-client and cupsys-bsd I got the following message: "cupsd: Unable to read configuration file '/etc/cups/cupsd.conf' - exiting" Then when I connect (using mozilla) to http://localhost:631/ and then try to choose "Do Administration Tasks" or "Printers" I got : "Alert! The connection was refused when attempting to contact localhost:631." I am NOT asked for neither root nor any other password. What am I doing wrong? Jan -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
cups installation: Unable to read configuration file '/etc/cups/cupsd.conf'- exiting
I had problem with cups: -- During the configuration (http://localhost:631/ as root) I configured the printer: e.g. 1200 dpi, ...). When I print something from root account it seems that the cups works OK and configuration of the printer is OK. But when I use the printer from NON-root account it seems that the configuration of the printer is NOT OK. E.g. when I print some picture (region filled with gray colour) it is printed as black but from the root account it is printed OK. -- So using dselect I uninstalled cupsys, cupsys-client and cupsys-bsd, then tried to install again the above packages but due to security problem dselect could not find these packages so I chose 'update date base...' and dselect started to install these packages from: http://security.debian.org stable/updates/main ... During the installation I got the following message: "cupsd: Unable to read configuration file '/etc/cups/cupsd.conf' - exiting" and there is no file cupsd.conf in /etc/cups/. Then when I connect (using mozilla) to http://localhost:631/ and then try to choose "Do Administration Tasks" or "Printers" I got : "Alert! The connection was refused when attempting to contact localhost:631." I am NOT asked for neither root nor any other password. What am I doing wrong? Could someone please help? Jan -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: cups installation: Unable to read configuration file'/etc/cups/cupsd.conf' - exiting
Thanks for answer. On Thu, 13 Mar 2003, Jerome Acks Jr wrote: > On Thu, Mar 13, 2003 at 03:08:07PM +0100, iks_kzm wrote: > > > > > > I had problem with cups: > > Please don't break the text in you message into blocks by placing "--" > between the blocks. Some mail user agents (e.g. mutt) interpret this > as the start of a signature. It makes it difficult to incorporate the > text of your message in the reply. I am really sorry. > > > During the installation I got the following message: > > > > "cupsd: Unable to read configuration file '/etc/cups/cupsd.conf' - > > exiting" > > > > and there is no file cupsd.conf in /etc/cups/. > > > > > > Then when I connect (using mozilla) to > > http://localhost:631/ > > > > and then try to choose "Do Administration Tasks" or "Printers" > > I got : > > "Alert! The connection was refused when attempting to contact > > localhost:631." > > Connecting to http://localhost:631 will only work if cupsd daemon is > running. You will not be able to use web interface to administer your > printers until you get the daemon to run. Until then, you can > administer printers with the lpadmin program. Make yourself a member > of the "lpadmin" group to be able to administer printers without > becoming root. I think it is a bug in dselect or in cupsys debian package. I used 'dpkg -i cupsys...' and the package and cupsys-client and cups-bsd were installed. How one can make a user a member of the 'lpadmin' group? Still have problem: When I use the printer from NON-root account it seems that the configuration of the printer is NOT OK. E.g. when I print some picture (region filled with gray colour) it is printed as black but from the root account it is printed OK. I use gv to print postscript files and acrobat to print pdf files. The command for printing is lp or lpr: both work in strange way described above. BUT I noticed that when I use KGhostview instead of gv to print .ps files from non-root account the picture with gray filling is printed OK. In KGhostview I can choose in print dialog window cups or lprng and so on. Of course I choose cups system. It seems that gv and acrobat are not aware of cups system in non-root account. Any clue? Jan > > /etc/cups/cupsd.conf is in the cupsys package. It doesn't sound like > your installation is complete. Check this by running "dpkg -s cupsys". > > -- > Jerome -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: cups installation: Unable to read configuration file'/etc/cups/cupsd.conf' - exiting
On Fri, 14 Mar 2003, Jerome Acks Jr wrote: > On Fri, Mar 14, 2003 at 08:02:52PM +0100, iks_kzm wrote: > > > > > > Thanks for answer. > > > > On Thu, 13 Mar 2003, Jerome Acks Jr wrote: > > > > > On Thu, Mar 13, 2003 at 03:08:07PM +0100, iks_kzm wrote: > > > > > > > > > > > > I had problem with cups: > > > > > > Please don't break the text in you message into blocks by placing "--" > > > between the blocks. Some mail user agents (e.g. mutt) interpret this > > > as the start of a signature. It makes it difficult to incorporate the > > > text of your message in the reply. > > > > I am really sorry. > > > > > > > > > During the installation I got the following message: > > > > > > > > "cupsd: Unable to read configuration file '/etc/cups/cupsd.conf' - > > > > exiting" > > > > > > > > and there is no file cupsd.conf in /etc/cups/. > > > > > > > > > > > > Then when I connect (using mozilla) to > > > > http://localhost:631/ > > > > > > > > and then try to choose "Do Administration Tasks" or "Printers" > > > > I got : > > > > "Alert! The connection was refused when attempting to contact > > > > localhost:631." > > > > > > Connecting to http://localhost:631 will only work if cupsd daemon is > > > running. You will not be able to use web interface to administer your > > > printers until you get the daemon to run. Until then, you can > > > administer printers with the lpadmin program. Make yourself a member > > > of the "lpadmin" group to be able to administer printers without > > > becoming root. > > I think it is a bug in dselect or in cupsys debian package. > > I used 'dpkg -i cupsys...' > > and the package and cupsys-client and cups-bsd were installed. > > > > How one can make a user a member of the 'lpadmin' group? > > # adduser your_userID lpadmin > > > > > Still have problem: > > When I use the printer from NON-root account it seems that > > the configuration of the printer is NOT OK. > > E.g. when I print some picture (region filled with gray colour) > > it is printed as black but from the root account it is printed OK. > > That sounds like a permission problem, i.e. permission or ownership of > some directory is not set properly, or user needs to be added to some > group to get write access priviledges to a device. > > You have not mentioned anything about installing drivers for your > printer. You probably need to install one of these packages: I have HP Laserjet 1200 series. > 1) cupsys-driver-gimpprint, > 2) foomatic-bin and foomatic-db, or > 3) cupsomatic-ppd. I have installed 1, 2 and 3. But I just copied from the CD (which I obtained with the printer) the original HP_Laserjet_1200.ppd to /usr/share/cups/model/HP/, restarted cups and then connected to http://localhost:631 and add new printer choosing the HP_Laserjet_1200 series model. I noticed the following: the files /etc/cups/cupsd.conf and printers.conf can be read and executed ONLY by root. I changed the mode (using chmod) so any user can read the files but nothing changed: the described above printing problem remained the same. When I did '/etc/init.d/./cupsys restart' the two files again can be read and executed ONLY by root. I use debian 3.0 (woody) Any clue? Jan > > Do you have libcupsys2 and gs-esp installed? I installed libcupsys2 but I cannot figure out whether I have gs-esp. What gs-esp is? Using search in dselect I cannot find it. I have installed all most packages connected with gs (ghostscript). Jan > > Which version of debian/GNU are you using? > > > I use gv to print postscript files and acrobat to print pdf files. > > The command for printing is lp or lpr: both work in strange way > > described above. > > BUT I noticed that when I use KGhostview instead of gv to print .ps > > files from non-root account the picture with gray filling is printed OK. > > In KGhostview I can choose in print dialog window cups or lprng and so on. > > Of course I choose cups system. > > > > It seems that gv and acrobat are not aware of cups system in non-root > > account. > > > > Any clue? > > > > Jan > > > -- > Jerome -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]
Re: cups installation: Unable to read configuration file'/etc/cups/cupsd.conf' - exiting
On Sat, 15 Mar 2003, Jerome Acks Jr wrote: > On Sat, Mar 15, 2003 at 05:07:12PM +0100, iks_kzm wrote: > > > > > > On Fri, 14 Mar 2003, Jerome Acks Jr wrote: > > > You have not mentioned anything about installing drivers for your > > > printer. You probably need to install one of these packages: > > > > I have HP Laserjet 1200 series. > > > > > 1) cupsys-driver-gimpprint, > > > 2) foomatic-bin and foomatic-db, or > > > 3) cupsomatic-ppd. > > I have installed 1, 2 and 3. > > > > But I just copied from the CD (which I obtained with the printer) > > the original HP_Laserjet_1200.ppd > > to /usr/share/cups/model/HP/, restarted cups and then connected to > > http://localhost:631 and add new printer choosing the > > HP_Laserjet_1200 series model. > > Is the version of HP_Laserjet_1200.ppd the same as other ppd's that > come with the cupsys package? I did NOT have any ppd files in the cupsys for HP Laserjet 1200 series and I was advised to use the one from the CD. I tried to use some ppd file for HP Laserjet 4 or something like that but the result was similar. > > > > > I noticed the following: > > the files /etc/cups/cupsd.conf and printers.conf can be read and executed > > ONLY by root. I changed the mode (using chmod) so any user > > can read the files but nothing changed: the described above printing > > problem remained the same. When I did '/etc/init.d/./cupsys restart' > > the two files again can be read and executed ONLY by root. > > > > I use debian 3.0 (woody) > > I'm running the testing version of CUPS. I'm not sure what all the changes > are between woody and testing. On my computer ownership and permission > of files in /etc/cups are: > > # ls -l /etc/cups > total 160 > lrwxrwxrwx1 root root 21 Oct 16 21:46 certs -> > /var/spool/cups/certs > -rw-r--r--1 root root 2183 Feb 9 2002 client.conf > -rw-r--r--1 root root 1215 Jun 6 2002 command.types > -rw---1 lp sys 19728 Aug 20 2002 cupsd.conf > drwxr-xr-x2 root root 4096 Mar 9 2002 interfaces > -rw-r--r--1 root root 2798 Aug 20 2002 mime.convs > -rw-r--r--1 root root 5659 Aug 20 2002 mime.types > drwxr-xr-x2 lp sys 4096 Aug 3 2002 ppd > -rw-r--r--1 root root94464 Oct 16 21:46 ppds.dat > -rw---1 lp sys 279 Oct 5 19:51 printers.conf > -rw---1 lp sys 279 Aug 8 2002 printers.conf.O > -rw-r--r--1 root root 947 Aug 7 2002 pstoraster.convs > my 'ls # ls -l /etc/cups drwx--x--x2 lp sys 4096 mar 16 18:47 certs -rw---1 lp sys 18394 mar 10 2002 cupsd.conf drwxr-xr-x2 root root 4096 mar 13 20:27 interfaces -rw-r--r--1 root root 2749 mar 10 2002 mime.convs -rw-r--r--1 root root 5634 mar 10 2002 mime.types drwxr-xr-x2 lp sys 4096 mar 13 20:30 ppd -rw-r--r--1 root root 693392 mar 15 16:38 ppds.dat -rw---1 lp sys 285 mar 13 20:45 printers.conf -rw-r--r--1 lp sys 285 mar 13 20:43 printers.conf.O I do not have client.conf file. (I use the cupsys for woody). Jan > Try running debsums against the cupsys packages to check the integrity > of the installation. > > Edit /etc/cups/cupsd.conf, change "LogLevel info" to "LogLevel > debug" and then restart cups. This should generate more message in the > error log and may give you better idea of what the problem is. > > > > Do you have libcupsys2 and gs-esp installed? > > > > I installed libcupsys2 but I cannot figure out whether I have gs-esp. > > What gs-esp is? Using search in dselect I cannot find it. > > Wrong guess on my part. gs-esp is version of ghostscript from Easy > Software Products (ESP). It is available in debian testing and > unstable; you should not need it with woody. > > -- > Jerome -- To UNSUBSCRIBE, email to [EMAIL PROTECTED] with a subject of "unsubscribe". Trouble? Contact [EMAIL PROTECTED]