Re: connect to a network printer to be able to print
On Wednesday 27 February 2013 09:45:15 Antonio Olivares wrote: Dear folks, I am trying to connect a network printer to be able to print to it. I know the make/model of the printer: HP Color LaserJet CP4520 and the ip address it is on 10.155.135.3 1st you need to define a host name for the printer in /etc/hosts, add the next line to /etc/hosts 10.155.135.3hplj-cp4520 Then verify network conectivity with ping ping -c 4 hplj-cp4520 Now, create the spool directory and errors-log file mkdir -p /var/spool/lpd/LaserJetCP4520 chmod 770 /var/spool/lpd/LaserJetCP4520 touch /var/spool/lpd/LaserJetCP4520/errors-log chmod 660 /var/spool/lpd/LaserJetCP4520/errors-log chown -R daemon:daemon /var/spool/lpd/LaserJetCP4520 Next, add the printer definition to /etc/printcap LaserJetCP4520|lp|HP LaserJet CP4520:\ :banner.disable:max.blocks#0:tty.device=:\ :remote.host=hplj-cp4520:remote.queue=raw:\ :spool.dir=/var/spool/lpd/LaserJetCP4520:\ :spool.log=/var/spool/lpd/LaserJetCP4520/errors-log: Since the HP Color Laserjet Enterprise CP4520 accept the languages HP PCL 6 HP PCL 5c HP postscript level 3 emulation Direct PDF printing version 1.4 You should test with one file of that languages, I do not know if plain text can be printed without a text filter (input-filter) ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: connect to a network printer to be able to print
On Thu, 28 Feb 2013, Trond Endrestøl wrote: The rm (remote machine) property in /etc/printcap should be changed to 10.155.135.3, i.e. :rm=10.155.135.3:\ Then it's simply a matter of restarting lpd, i.e. /etc/rc.d/lpd restart If you're lucky, your first print job should appear as hardcopy. lpd(8) really wants DNS to be working. I forget the exact symptoms, but using raw IP addresses does not always work. It's not clear why just adding an entry to /etc/hosts is not possible, but that or an entry in the DNS server is generally the best way.___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: connect to a network printer to be able to print
On Wed, 27 Feb 2013 10:45-0600, Antonio Olivares wrote: Dear folks, I am trying to connect a network printer to be able to print to it. I know the make/model of the printer: HP Color LaserJet CP4520 and the ip address it is on 10.155.135.3 I want to use lpd/lpr to be able to print as is specified in http://www.wonkity.com/~wblock/docs/html/lpdprinting.html I read the instructions on the handbook, but it does not specify how to use the ip address or specify it to print to it. How can I set this printer up? I have setup /etc/printcap with the following: lp:\ :lp=:\ :sh:\ :mx#0:\ :rm=HP_Color_LaserJet_CP4520:\ :rp=raw:\ :sd=/var/spool/lpd/lp:\ :lf=/var/log/lpd-errs: but there is no ip adress where the communication can exist. How can I do this? Do I setup the printer with CUPS? or can it be done with lpr which is what I use with a local HP 1200 printer, but this one is a network printer. Thanks, Antonio Does the name HP_Color_LaserJet_CP4520 resolve to its IP address? What about using a FQDN? Does the name exist in your local DNS zone or does the name exist in the local /etc/hosts file? Either make sure the name is resolvable, or specify the IP address in the /etc/printcap file. Your HP printer should be equipped with a JetDirect card, and you should be able to print a configuration page revealing the current settings. If the settings doesn't match your network, then you need to input the desired settings. I guess this would be possible through the use of the LCD display and the buttons nearby. Best of luck, Trond. -- +---++ | Vennlig hilsen, | Best regards, | | Trond Endrestøl, | Trond Endrestøl, | | IT-ansvarlig, | System administrator, | | Fagskolen Innlandet, | Gjøvik Technical College, Norway, | | tlf. mob. 952 62 567, | Cellular...: +47 952 62 567, | | sentralbord 61 14 54 00. | Switchboard: +47 61 14 54 00. | +---++___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: connect to a network printer to be able to print
On Wed, Feb 27, 2013 at 11:23 AM, Trond Endrestøl trond.endres...@fagskolen.gjovik.no wrote: On Wed, 27 Feb 2013 10:45-0600, Antonio Olivares wrote: Dear folks, I am trying to connect a network printer to be able to print to it. I know the make/model of the printer: HP Color LaserJet CP4520 and the ip address it is on 10.155.135.3 I want to use lpd/lpr to be able to print as is specified in http://www.wonkity.com/~wblock/docs/html/lpdprinting.html I read the instructions on the handbook, but it does not specify how to use the ip address or specify it to print to it. How can I set this printer up? I have setup /etc/printcap with the following: lp:\ :lp=:\ :sh:\ :mx#0:\ :rm=HP_Color_LaserJet_CP4520:\ :rp=raw:\ :sd=/var/spool/lpd/lp:\ :lf=/var/log/lpd-errs: but there is no ip adress where the communication can exist. How can I do this? Do I setup the printer with CUPS? or can it be done with lpr which is what I use with a local HP 1200 printer, but this one is a network printer. Thanks, Antonio Does the name HP_Color_LaserJet_CP4520 resolve to its IP address? it seems it does not :( grullahighschool# lpq Warning: unable to get address list for remote machine HP_Color_LaserJet_CP4520: hostname nor servname provided, or not known Warning: no daemon present Rank Owner Job Files Total Size 1stolivares 0(standard input) 239208 bytes You have new mail. grullahighschool# What about using a FQDN? Does the name exist in your local DNS zone or does the name exist in the local /etc/hosts file? Either make sure the name is resolvable, or specify the IP address in the /etc/printcap file. how do I do this? any examples out there? Your HP printer should be equipped with a JetDirect card, and you should be able to print a configuration page revealing the current settings. If the settings doesn't match your network, then you need to input the desired settings. I guess this would be possible through the use of the LCD display and the buttons nearby. Best of luck, Trond. -- +---++ | Vennlig hilsen, | Best regards, | | Trond Endrestøl, | Trond Endrestøl, | | IT-ansvarlig, | System administrator, | | Fagskolen Innlandet, | Gjøvik Technical College, Norway, | | tlf. mob. 952 62 567, | Cellular...: +47 952 62 567, | | sentralbord 61 14 54 00. | Switchboard: +47 61 14 54 00. | +---++ Dear Trond, I have run a test using an example by W. Block on another site: http://www.howtofixcomputers.com/forums/printers/printer-without-driver-266629-4.html and I have sent data to the printer and it prints: # printf This is a test\r\n\f | nc 10.155.135.3 9100 How do I set this up in /etc/printcap, so that this printer can be the one? Thanks for your help. I am close to get it to work. Best Regards, Antonio ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: connect to a network printer to be able to print
On Wed, 27 Feb 2013, Antonio Olivares wrote: Dear folks, I am trying to connect a network printer to be able to print to it. I know the make/model of the printer: HP Color LaserJet CP4520 and the ip address it is on 10.155.135.3 I want to use lpd/lpr to be able to print as is specified in http://www.wonkity.com/~wblock/docs/html/lpdprinting.html I read the instructions on the handbook, but it does not specify how to use the ip address or specify it to print to it. How can I set this printer up? I have setup /etc/printcap with the following: lp:\ :lp=:\ :sh:\ :mx#0:\ :rm=HP_Color_LaserJet_CP4520:\ :rp=raw:\ :sd=/var/spool/lpd/lp:\ :lf=/var/log/lpd-errs: but there is no ip adress where the communication can exist. How can I do this? Do I setup the printer with CUPS? or can it be done with lpr which is what I use with a local HP 1200 printer, but this one is a network printer. If your local DNS does not have a name for the printer, define it in /etc/hosts: 10.155.135.3HP_Color_LaserJet_CP4520 ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: connect to a network printer to be able to print
On Wed, Feb 27, 2013 at 12:47 PM, Warren Block wbl...@wonkity.com wrote: On Wed, 27 Feb 2013, Antonio Olivares wrote: Dear folks, I am trying to connect a network printer to be able to print to it. I know the make/model of the printer: HP Color LaserJet CP4520 and the ip address it is on 10.155.135.3 I want to use lpd/lpr to be able to print as is specified in http://www.wonkity.com/~wblock/docs/html/lpdprinting.html I read the instructions on the handbook, but it does not specify how to use the ip address or specify it to print to it. How can I set this printer up? I have setup /etc/printcap with the following: lp:\ :lp=:\ :sh:\ :mx#0:\ :rm=HP_Color_LaserJet_CP4520:\ :rp=raw:\ :sd=/var/spool/lpd/lp:\ :lf=/var/log/lpd-errs: but there is no ip adress where the communication can exist. How can I do this? Do I setup the printer with CUPS? or can it be done with lpr which is what I use with a local HP 1200 printer, but this one is a network printer. If your local DNS does not have a name for the printer, define it in /etc/hosts: 10.155.135.3HP_Color_LaserJet_CP4520 Dear Warren all, I have succeeded ! I got it to work by using the last example in your page, copied it over to /etc/printcap: lp:\ :lp=9100@netlaser:\ :sh:\ :mx#0:\ :sd=/var/spool/lpd/lp:\ :lf=/var/log/lpd-errs: then ran # sed -i 's|9100@netlaser|9100@10.155.135.3|g' and it has printed successfully :) Now I will do this with two other machines to be able to print to this network printer. Thanks to all who helped figure this out. I had not even tried to connect, but reading on another site that it was not hard to do, I tried it and it has succeeded! Best Regards, Antonio ___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org
Re: connect to a network printer to be able to print
On Wed, 27 Feb 2013 11:44-0600, Antonio Olivares wrote: On Wed, Feb 27, 2013 at 11:23 AM, Trond Endrestøl trond.endres...@fagskolen.gjovik.no wrote: On Wed, 27 Feb 2013 10:45-0600, Antonio Olivares wrote: Dear folks, I am trying to connect a network printer to be able to print to it. I know the make/model of the printer: HP Color LaserJet CP4520 and the ip address it is on 10.155.135.3 I want to use lpd/lpr to be able to print as is specified in http://www.wonkity.com/~wblock/docs/html/lpdprinting.html I read the instructions on the handbook, but it does not specify how to use the ip address or specify it to print to it. How can I set this printer up? I have setup /etc/printcap with the following: lp:\ :lp=:\ :sh:\ :mx#0:\ :rm=HP_Color_LaserJet_CP4520:\ :rp=raw:\ :sd=/var/spool/lpd/lp:\ :lf=/var/log/lpd-errs: but there is no ip adress where the communication can exist. How can I do this? Do I setup the printer with CUPS? or can it be done with lpr which is what I use with a local HP 1200 printer, but this one is a network printer. Thanks, Antonio Does the name HP_Color_LaserJet_CP4520 resolve to its IP address? it seems it does not :( grullahighschool# lpq Warning: unable to get address list for remote machine HP_Color_LaserJet_CP4520: hostname nor servname provided, or not known Warning: no daemon present Rank Owner Job Files Total Size 1stolivares 0(standard input) 239208 bytes You have new mail. grullahighschool# What about using a FQDN? Does the name exist in your local DNS zone or does the name exist in the local /etc/hosts file? Either make sure the name is resolvable, or specify the IP address in the /etc/printcap file. how do I do this? any examples out there? Your HP printer should be equipped with a JetDirect card, and you should be able to print a configuration page revealing the current settings. If the settings doesn't match your network, then you need to input the desired settings. I guess this would be possible through the use of the LCD display and the buttons nearby. Best of luck, Trond. Dear Trond, I have run a test using an example by W. Block on another site: http://www.howtofixcomputers.com/forums/printers/printer-without-driver-266629-4.html and I have sent data to the printer and it prints: # printf This is a test\r\n\f | nc 10.155.135.3 9100 How do I set this up in /etc/printcap, so that this printer can be the one? Thanks for your help. I am close to get it to work. The rm (remote machine) property in /etc/printcap should be changed to 10.155.135.3, i.e. :rm=10.155.135.3:\ Then it's simply a matter of restarting lpd, i.e. /etc/rc.d/lpd restart If you're lucky, your first print job should appear as hardcopy. Mind you, lpd uses the LPR/LPD protocol running on TCP port 515, not the HP JetDirect raw submission on TCP port 9100. Normally the LPD protocol would be enabled, but must be reenabled on the printer if this is not the case. The aforementioned configuration page should list such a setting. -- +---++ | Vennlig hilsen, | Best regards, | | Trond Endrestøl, | Trond Endrestøl, | | IT-ansvarlig, | System administrator, | | Fagskolen Innlandet, | Gjøvik Technical College, Norway, | | tlf. mob. 952 62 567, | Cellular...: +47 952 62 567, | | sentralbord 61 14 54 00. | Switchboard: +47 61 14 54 00. | +---++___ freebsd-questions@freebsd.org mailing list http://lists.freebsd.org/mailman/listinfo/freebsd-questions To unsubscribe, send any mail to freebsd-questions-unsubscr...@freebsd.org