Hi. I mostly use my system as a super-user and so I can mostly do everything without worrying too much about permissions. Not too long ago I created a "general" user account which is automatically logged in after a few seconds for others to have (limited) access to the system. Mostly everything works (ie. CD/DVD writing, sound, floppy access, etc.) But when it comes to printing, only a specific "lpr" at the command prompt does the job. I've tried printing from mozilla, ggv and firefox without success. The funny thing is that an app such as gedit does print. (I'm guessing it's because gedit uses some sort of a2ps -> lpr combination). I have an Epson Stylus C82 connected via a USB cable and my system is running CUPS. Can anyone enlighten me? Thanks so much.
Sincerely Jose
-----Original Message----- From: Jose Alburquerque jaalburquerque@cox.net To: centos@centos.org Sent: Mon, 13 Mar 2006 12:57:53 -0500 Subject: [CentOS] Printing from apps as a regular user...
Hi. I mostly use my system as a super-user and so I can mostly do everything without worrying too much about permissions. Not too long ago I created a "general" user account which is automatically logged in after a few seconds for others to have (limited) access to the system. Mostly everything works (ie. CD/DVD writing, sound, floppy access, etc.) But when it comes to printing, only a specific "lpr" at the command prompt does the job. I've tried printing from mozilla, ggv and firefox without success. The funny thing is that an app such as gedit does print. (I'm guessing it's because gedit uses some sort of a2ps -> lpr combination). I have an Epson Stylus C82 connected via a USB cable and my system is running CUPS. Can anyone enlighten me? Thanks so much.
------------------------------------------------------------------------- ----- Most application use lpr to send print job to print server. lpr is not a program actually, it is just a symlink to lpr.cups. Some application does not use lpr but lp instead. For example, acroreader use lp on my system by default. Since it can not find lp or lp.cups, acroread cant print. To make it print, you have 2 options: create a symlink called lp in /usr/bin pointing to /usr/bin/lpr.cups or tell the application to use lpr instead of lp. Hope it help Thai ________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection.
lnthai2002@aim.com wrote:
Most application use lpr to send print job to print server. lpr is not a program actually, it is just a symlink to lpr.cups. Some application does not use lpr but lp instead. For example, acroreader use lp on my system by default. Since it can not find lp or lp.cups, acroread cant print. To make it print, you have 2 options: create a symlink called lp in /usr/bin pointing to /usr/bin/lpr.cups or tell the application to use lpr instead of lp. Hope it help Thai
Thanks for the reply; great info. However, I checked in /usr/bin and there is already an 'lp' command there:
[jose@sweety ~]$ ll /usr/bin/lp lrwxrwxrwx 1 root root 26 Mar 6 2005 /usr/bin/lp -> /etc/alternatives/print-lp*
Also, why would printing from apps like firefox or ggv work for one user and fail for another? Thanks again.
-Jose
-------------------------------------------------- Where there's will, there's a way
-----Original Message----- From: Jose Alburquerque jaalburquerque@cox.net To: CentOS mailing list centos@centos.org Sent: Tue, 14 Mar 2006 23:38:13 -0500 Subject: Re: [CentOS] Printing from apps as a regular user...
lnthai2002@aim.com wrote:
Most application use lpr to send print job to print server. lpr is
not > a program actually, it is just a symlink to lpr.cups. Some application > does not use lpr but lp instead. For example, acroreader use lp on my > system by default. Since it can not find lp or lp.cups, acroread cant > print. To make it print, you have 2 options: create a symlink called > lp in /usr/bin pointing to /usr/bin/lpr.cups or tell the application > to use lpr instead of lp. Hope it help
Thai
Thanks for the reply; great info. However, I checked in /usr/bin and there is already an 'lp' command there:
[jose@sweety ~]$ ll /usr/bin/lp lrwxrwxrwx 1 root root 26 Mar 6 2005 /usr/bin/lp -> /etc/alternatives/print-lp*
Also, why would printing from apps like firefox or ggv work for one user and fail for another? Thanks again.
-------------------------------------------------------------------- Sorry for my misunderstanding, i though you have problem in priniting by some application. If the application fails to print for some users, maybe these users do not have right to use the printer. By default, all users are assigned to group "users" when created. This group has sufficient right to do many basic tasks including printing. Try to add the user that need to use the printer to group "users" if the problem is still persist, add that user to group "lp". One more thing, you should check where /usr/bin/lp actually poiting to: /usr/sbin/alternatives --display print the lp command is a symlink to a symlink in this case. Make sure that it end up using lp.cups Good luck Thai
________________________________________________________________________ Check Out the new free AIM(R) Mail -- 2 GB of storage and industry-leading spam and email virus protection.