First of all I don't use yast(2) to configure printers. I never got them to work and do it by hand. So I can't help you there. Yast complaining that you don't have lpr installed may depend on the fact that the binaries now are in /usr/local/(s)bin and not /usr/(s)bin. You said you set links to them. Maybe yast is really choosy about having the rpms installed. You could install the rpm. Then install your own compiled version and delete the binaries installed by the rpm and link to the own compiled ones and fooling yast into thinking the rpm is installed even though you deleted the files and created links. That is the flaw about yast(2). It is is nice tool when it works but once it doesn't work it leaves you little room to maneuver. Overall I prefer to do /etc/printcap by hand because I don't trust some tool to do it unless I am forced to. checkpc -f should never give any warnings. It should resolve them all and exit without output. Otherwise you have a problem. I suggest you stick with the own compile. Find an old /etc/printcap file which worked for you in the past. Work from there. Start the deamon /etc/init.d/lprng and see if it works. mk
From: Mark Daglish
To: Purple Shirt CC: SuSE Linux English Subject: Re: [SLE] Samba printers under 7.1 Date: Mon, 9 Apr 2001 12:17:18 +0100 "Purple Shirt" on 4th April wrote:
Thank you for the detailed instructions you sent, which I have included most of below. Unfortunately I am no further forward. I installed the LPRng from sources from ftp.lprng.com as suggested. I got it to compile without the "gdbm.h not found" error by installing the gdbm-devel.rpm from the SuSE 7.1 CD2 (under group 'd' in YAST).
I have set up the symbolic links to /etc/init.d/lprng, /usr/local/etc/printcap, usr/local/bin/lpr and /usr/local/sbin/lpd but if I try to install a printer using YAST2 I get an error of "FATAL: YAST2 is unable to restart the lpd daemon! you don't have lpd installed (LPRold or LPRng installed)". YAST1 will let me install a samba printer but then lpq says that lp is not on the local host and if I look in the printcap file then the line :lp=/dev/null:\ suggests to me that something ain't right. I did run checkpc -f but checkpc just reports warnings about ff_separators and nothing else. Also changing the :lp line to :lp=printerserver.my.domain%9100:\ had no effect.
I wonder if there is a problem because this machine has no local printer attached to it.
Any further help from yourself, or anybody greatly appreciated.
Regards,
Mark
Ok,
I don't know the old BSD printing stuff but LPRng always worked for me. If I have trouble with SuSE rpms I wouldn't trust the SuSE source to fix my problems. I went for the original source by the author.
I did uninstall lprng.rpm
I pulled down the latest source:
ftp://ftp.astart.com/pub/LPRng/LPRng/LPRng-3.7.4.tgz
ungzip and untar.
Then I did a
./configure
It wouldn't configure because it complained it couldn't find gdbm.h file.
So I did a
rm config.cache
and did
./configure --disable-gdbm make make install
Note that this installs the binaries not in the usual SuSE locations. They are in /usr/local/bin and /usr/local/sbin and /usr/local/etc
hence I did
ln -s /etc/printcap /usr/local/etc/printcap
I left the binaries in their location and adjusted the paths in /etc/smb.conf
It also puts a script into /etc/init.d/lprng
You need to put links to the run time versions in the sub rc{x}.d directories as it advises you to.
I have symbolic links:
/etc/init.d/rc0.d/K60lprng /etc/init.d/rc2.d/S60lprng /etc/init.d/rc4.d/S60lprng /etc/init.d/rc6.d/K60lprng /etc/init.d/rc1.d/K60lprng /etc/init.d/rc3.d/S60lprng /etc/init.d/rc5.d/S60lprng
which all point to /etc/init.d/lprng
I am not sure if they work as I have not rebooted since installation.
After installation make sure you run
checkpc
This program checks your printer setup. It will most likely complain about permissions/ownership settings in /var/spool/lpd/*
It also fixes the problems it reports by running
checkpc -f
My permissions had to be reset which surprised me:
/var/spool: drwxr-xr-x 3 lp lp 56 Mar 31 14:00 lpd drwxrwxrwt 2 root root 35 Apr 3 17:35 samba
/var/spool/lpd: drwx------ 2 daemon daemon 273 Apr 3 17:35 smurf
/var/spool/smurf: -rw------- 1 daemon daemon 48561 Apr 3 17:35 acct -rw------- 1 daemon daemon 0 Mar 31 14:06 control.smurf -rw------- 1 daemon daemon 200 Apr 2 17:32 log -rw------- 1 daemon daemon 68 Apr 3 17:35 lpq -rw------- 1 daemon daemon 9090 Apr 3 17:35 lpq.0 -rw------- 1 daemon daemon 0 Apr 3 17:35 smurf -rw------- 1 daemon daemon 3120 Apr 3 17:35 status -rw------- 1 daemon daemon 7635 Apr 3 17:35 status.smurf -rw------- 1 daemon daemon 0 Apr 1 20:46 temp00oImtTV -rw------- 1 daemon daemon 6 Apr 3 17:35 unspooler.smurf
There is a detailed how to on LPRng at:
http://www.astart.com/LPRng/LPRng.html
mk
PS: my /etc/smb.conf printer section and /etc/printcap file:
# smurf:cm=Network Printer smurf:\ :lp=smurf.mydomain.com%9100:\ :sd=/var/spool/lpd/%P:\ :ifhp=model=hp2100,status@:\ :sh:\ :filter=/usr/local/libexec/filters/ifhp:\ :mx#0
# <cut> [printers] path = /var/spool/samba print ok = yes printing = lprng printable = yes ; linked to /etc/printcap printcap name = /usr/local/etc/printcap guest ok = yes public = yes
[smurf] path = /var/spool/samba print ok = yes printing = lprng printable = yes guest ok = yes public = yes print command = /usr/local/bin/lpr -P%p -r %s lpq command = /usr/local/bin/lpq -P%p lprm command = /usr/local/bin/lprm -P%p %j lppause command = /usr/local/sbin/lpc hold %p %j lpresume command = /usr/local/sbin/lpc release %p %j queuepause command = /usr/local/sbin/lpc -P%p stop queueresume command = /usr/local/sbin/lpc -P%p start
From: Mark Daglish
To: Purple Shirt , suse-linux-e Subject: Re: [SLE] Samba printers under 7.1 Date: Wed, 4 Apr 2001 16:14:46 +0100 Hi MK,
I discovered this problem the last weekend. The SuSE lprng.rpm is
working(at least under 2.4.2-4GB) for sharing samba printers with Windows clients.
You must uninstall lprng.rpm and compile your own. See this thread:
http://lists.suse.com/archives/suse-linux-e/2001-Apr/0139.html
You do not need to change the Samba rpms. They are working fine.
mk
I recently upgraded (well fresh install) from SuSE 7.0 to 7.1.
Ever
since then I can't get the network printers on the windows machines in the office to work. They used to work fine under 7.0. I am installing them with Yast2. I am not using CUPS. I can send the test pages to
printers but they come out very wrong. The most important one to get working is an Epson Stylus Colour 600 on a Win95 box. It prints about 6cms of green gecko with white horizontal stripes then moves on to
next page and prints a vague outline of the next bit of the test
then next page. That's as far as I let it go before deleting the job.
What changed from 7.0 to 7.1 (apart from kernel 2.4.2 that I'm using) that might account for this?
Any suggestions gratefully received,
Thanks, I tried to do what you suggested - using the source rpm from the SuSE 7.1 CD7. However, I got myself in a hugh mess with the install from the
not the the page sources. I was getting errors like lpd [30575]: Getprintcap_pathlist: entry not filter or absolute pathname 'etc/printcap' among others. I could also no longer print to the local printer either. However, in the course of all this I also noticed that I hadn't been using LPRng anyway, I had got LPRold installed.
Your email from the archives seemed to suggest that installing the sources was everso straightforward. Unfortunately it appears to be beyond my meagre IQ.
Any further hints most welcome.
regards,
Mark
_________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq
_________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com
MK (Purple Shirt) and others (I don't want to pick on anyone and treat them like a local IT support) I tried doing all the suggestions listed below, with no success. So I went for broke. I did a completely fresh install of SuSE 7.1 on my test box (A). Instead of using LPRold or LPRNG I installed CUPS. It took me a while to set up, but I got there. Now here's the weird part. I get EXACTLY the same problems with the printers on the network as I got with LPRold and LPRng. On an Epson colour inkjet (on a windows 95 box) I get the test page coming through with about 1cm of the picture on each sheet of paper. On a HP laserjet 4l (on a SuSE 7.1 linux box (B) running samba 2.0.7) I get the test page with a few lines of non-alphanumerics and garbage at odd intervals. Also the Linux box (B) that has the printer attached can print to it, as can windows machines on the network, but this linux box (B) also gives the same problems printing to the colour printer. I am guessing that if the same errors happen in all these circumstances then the problem lies outwith the LPRold / LPRng / CUPS system. I am also guessing that the problem is on the way out of the linux boxes to the network, not at the receiving end. Unfortunately I am too much of a newbie to know what these methods have in common (other than it's all going over samba) that might be the cause of the problems. Any help would be greatly appreciated as I have spent days trying to get this setup so I can get on with what I'm really supposed to be doing. Thanks again to MK for the all help already, Mark
First of all I don't use yast(2) to configure printers. I never got
work and do it by hand. So I can't help you there.
Yast complaining that you don't have lpr installed may depend on the fact that the binaries now are in /usr/local/(s)bin and not /usr/(s)bin. You said you set links to them. Maybe yast is really choosy about having the rpms installed. You could install the rpm. Then install your own compiled version and delete the binaries installed by the rpm and link to the own compiled ones and fooling yast into thinking the rpm is installed even though you deleted the files and created links.
That is the flaw about yast(2). It is is nice tool when it works but once it doesn't work it leaves you little room to maneuver.
Overall I prefer to do /etc/printcap by hand because I don't trust some tool to do it unless I am forced to.
checkpc -f should never give any warnings. It should resolve them all and exit without output. Otherwise you have a problem.
I suggest you stick with the own compile. Find an old /etc/printcap file which worked for you in the past. Work from there. Start the deamon /etc/init.d/lprng and see if it works.
mk
From: Mark Daglish
To: Purple Shirt CC: SuSE Linux English Subject: Re: [SLE] Samba printers under 7.1 Date: Mon, 9 Apr 2001 12:17:18 +0100 "Purple Shirt" on 4th April wrote:
Thank you for the detailed instructions you sent, which I have included most of below. Unfortunately I am no further forward. I installed
LPRng from sources from ftp.lprng.com as suggested. I got it to compile without the "gdbm.h not found" error by installing the gdbm-devel.rpm from the SuSE 7.1 CD2 (under group 'd' in YAST).
I have set up the symbolic links to /etc/init.d/lprng, /usr/local/etc/printcap, usr/local/bin/lpr and /usr/local/sbin/lpd but if I try to install a printer using YAST2 I get an error of "FATAL: YAST2 is unable to restart the lpd daemon! you don't have lpd installed (LPRold or LPRng installed)". YAST1 will let me install a samba printer but then lpq says that lp is not on the local host and if I look in the
file then the line :lp=/dev/null:\ suggests to me that something ain't right. I did run checkpc -f but checkpc just reports warnings about ff_separators and nothing else. Also changing the :lp line to :lp=printerserver.my.domain%9100:\ had no effect.
I wonder if there is a problem because this machine has no local
attached to it.
Any further help from yourself, or anybody greatly appreciated.
Regards,
Mark
Ok,
I don't know the old BSD printing stuff but LPRng always worked for me. If I have trouble with SuSE rpms I wouldn't trust the SuSE source to fix my problems. I went for the original source by the author.
I did uninstall lprng.rpm
I pulled down the latest source:
ftp://ftp.astart.com/pub/LPRng/LPRng/LPRng-3.7.4.tgz
ungzip and untar.
Then I did a
./configure
It wouldn't configure because it complained it couldn't find gdbm.h file.
So I did a
rm config.cache
and did
./configure --disable-gdbm make make install
Note that this installs the binaries not in the usual SuSE locations. They are in /usr/local/bin and /usr/local/sbin and /usr/local/etc
hence I did
ln -s /etc/printcap /usr/local/etc/printcap
I left the binaries in their location and adjusted the paths in /etc/smb.conf
It also puts a script into /etc/init.d/lprng
You need to put links to the run time versions in the sub rc{x}.d directories as it advises you to.
I have symbolic links:
/etc/init.d/rc0.d/K60lprng /etc/init.d/rc2.d/S60lprng /etc/init.d/rc4.d/S60lprng /etc/init.d/rc6.d/K60lprng /etc/init.d/rc1.d/K60lprng /etc/init.d/rc3.d/S60lprng /etc/init.d/rc5.d/S60lprng
which all point to /etc/init.d/lprng
I am not sure if they work as I have not rebooted since installation.
After installation make sure you run
checkpc
This program checks your printer setup. It will most likely complain about permissions/ownership settings in /var/spool/lpd/*
It also fixes the problems it reports by running
checkpc -f
My permissions had to be reset which surprised me:
/var/spool: drwxr-xr-x 3 lp lp 56 Mar 31 14:00 lpd drwxrwxrwt 2 root root 35 Apr 3 17:35 samba
/var/spool/lpd: drwx------ 2 daemon daemon 273 Apr 3 17:35 smurf
/var/spool/smurf: -rw------- 1 daemon daemon 48561 Apr 3 17:35 acct -rw------- 1 daemon daemon 0 Mar 31 14:06 control.smurf -rw------- 1 daemon daemon 200 Apr 2 17:32 log -rw------- 1 daemon daemon 68 Apr 3 17:35 lpq -rw------- 1 daemon daemon 9090 Apr 3 17:35 lpq.0 -rw------- 1 daemon daemon 0 Apr 3 17:35 smurf -rw------- 1 daemon daemon 3120 Apr 3 17:35 status -rw------- 1 daemon daemon 7635 Apr 3 17:35 status.smurf -rw------- 1 daemon daemon 0 Apr 1 20:46 temp00oImtTV -rw------- 1 daemon daemon 6 Apr 3 17:35 unspooler.smurf
There is a detailed how to on LPRng at:
http://www.astart.com/LPRng/LPRng.html
mk
PS: my /etc/smb.conf printer section and /etc/printcap file:
# smurf:cm=Network Printer smurf:\ :lp=smurf.mydomain.com%9100:\ :sd=/var/spool/lpd/%P:\ :ifhp=model=hp2100,status@:\ :sh:\ :filter=/usr/local/libexec/filters/ifhp:\ :mx#0
# <cut> [printers] path = /var/spool/samba print ok = yes printing = lprng printable = yes ; linked to /etc/printcap printcap name = /usr/local/etc/printcap guest ok = yes public = yes
[smurf] path = /var/spool/samba print ok = yes printing = lprng printable = yes guest ok = yes public = yes print command = /usr/local/bin/lpr -P%p -r %s lpq command = /usr/local/bin/lpq -P%p lprm command = /usr/local/bin/lprm -P%p %j lppause command = /usr/local/sbin/lpc hold %p %j lpresume command = /usr/local/sbin/lpc release %p %j queuepause command = /usr/local/sbin/lpc -P%p stop queueresume command = /usr/local/sbin/lpc -P%p start
From: Mark Daglish
To: Purple Shirt , suse-linux-e Subject: Re: [SLE] Samba printers under 7.1 Date: Wed, 4 Apr 2001 16:14:46 +0100 Hi MK,
I discovered this problem the last weekend. The SuSE lprng.rpm
is not
working(at least under 2.4.2-4GB) for sharing samba printers with Windows clients.
You must uninstall lprng.rpm and compile your own. See this
http://lists.suse.com/archives/suse-linux-e/2001-Apr/0139.html
You do not need to change the Samba rpms. They are working
fine.
mk
I recently upgraded (well fresh install) from SuSE 7.0 to 7.1.
Ever
since then I can't get the network printers on the windows machines in the office to work. They used to work fine under 7.0. I am installing them with Yast2. I am not using CUPS. I can send the test
to
the
printers but they come out very wrong. The most important one to get working is an Epson Stylus Colour 600 on a Win95 box. It
6cms of green gecko with white horizontal stripes then moves on to
next page and prints a vague outline of the next bit of the test
about the page
then next page. That's as far as I let it go before deleting
job.
What changed from 7.0 to 7.1 (apart from kernel 2.4.2 that I'm
using)
that might account for this?
Any suggestions gratefully received,
Thanks, I tried to do what you suggested - using the source rpm from the SuSE 7.1 CD7. However, I got myself in a hugh mess with the install from
them to the printcap printer thread: pages prints the the
sources. I was getting errors like lpd [30575]: Getprintcap_pathlist: entry not filter or absolute pathname 'etc/printcap' among others. I could also no longer print to the local printer either. However, in the course of all this I also noticed that I hadn't been using LPRng anyway, I had got LPRold installed.
Your email from the archives seemed to suggest that installing the sources was everso straightforward. Unfortunately it appears to be beyond my meagre IQ.
Any further hints most welcome.
regards,
Mark
_________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq
_________________________________________________________________ Get your FREE download of MSN Explorer at http://explorer.msn.com
-- To unsubscribe send e-mail to suse-linux-e-unsubscribe@suse.com For additional commands send e-mail to suse-linux-e-help@suse.com Also check the FAQ at http://www.suse.com/support/faq
On Wednesday 11 April 2001 06:15, you wrote: I have installed several Samba printers through Yast2 and it works great. First select add and select Samba/Windows printer. Then enter the hostname of the samba server. Then enter the name of the printer that the samba server knows it as. Then enter your user name and password. (Same as windows network) Then next Under Ghostscript devices choose the appropriate epson driver. Try all until you get the correct output. There is also Generic Epson drivers you can try those as well. Then give it a name on next screen anything you want. Then on the next screen choose monochrome or color if it is a color printer then click on resolution and choose a resolution. then click on paper size and choose letter. Then test and you should have a decent printout. Repeat process for HP 4L its driver is listed under Hewlett Packard. Good Luck Scarlett -- Scarlett Gately Network Administrator Excelco
On Wednesday 11 April 2001 06:15, you wrote:
I have installed several Samba printers through Yast2 and it works great. First select add and select Samba/Windows printer. Then enter the hostname of the samba server. Then enter the name of the printer that the samba server knows it as. Then enter your user name and password. (Same as windows network) Then next Under Ghostscript devices choose the appropriate epson driver. Try all until you get the correct output. There is also Generic Epson drivers you can try those as well. Then give it a name on next screen anything you want. Then on the next screen choose monochrome or color if it is a color
Hi Scarlett, printer
then click on resolution and choose a resolution. then click on paper size and choose letter. Then test and you should have a decent printout. Repeat process for HP 4L its driver is listed under Hewlett Packard. Good Luck Scarlett -- Scarlett Gately Network Administrator Excelco Unfortunately, what you describe is exactly what I did first time round. It worked under SuSE 7.0, but not under 7.1
Ah, wait a minute - I didn't try the ghostscript devices I used every single one I found under Epson heading and generic printers. I will go try the ghostscript ones. regards, Mark
participants (3)
-
Mark Daglish
-
Purple Shirt
-
Scarlett Gately