|
|
|
Mac OS X and the HP Deskjet 722C |
|
|
|
|
Written by Lane Craig Thompson
|
This document describes "How to Set Up Mac OS X to Work Over the Network with an HP Deskjet Printer 722C Shared on a Microsoft Windows PC."
How to Set Up Mac OS X to Work Over the Network with an HP Deskjet Printer 722C Shared on a Microsoft Windows PC
There are two options:
OPTION #1
This document assumes that you have a Windows PC with a printer attached, the printer is working, and the printer is properly shared with a share-level password. For this document, we assume username=guest and password="whateveryouchoseforthesharepassword."
Read this page for some general background first: http://homepage.mac.com/william_white/print_to_windows.html, but don't follow all the steps until reading through this document.
Per William White's article, follow this information:
QUOTE Since the 03-24-03 security update, the smbclient and smbspool commands are broken. Printing to Windows relies on smbspool. Unfortunately, smbspool is still broken in 10.2.5 and 10.2.6.
This can be fixed by installing the prior versions of both which can be found in my file sharing area at http://homepage.mac.com/william_white/FileSharing3.html . After downloading smbspool, you need to copy it to the /usr/bin folder as root. You do this logged in as root, either from the GUI, logged in as root, or you can do it from the terminal. Make sure the binary ends up with the correct ownership (root:wheel) and permissions (owner = read/ write/ execute, group and others = read/ execute). Also, see http://www.macwindows.com/jaguar.html - 033103 for a great deal of background and various step-by-step information.
In the Mac Terminal (The Terminal may be found under /Applications/Utilities in OS X): type the following command as a user with administrative privileges
sudo ln -s /usr/bin/smbspool /usr/libexec/cups/backend/smb
Answer “yes” to any lesson about do you know what you're doing, and enter your admin password when prompted. If you're unsure of the command, copy the above text string and paste it into the Terminal window. There is no informative message if the command is successful, just a new Terminal command prompt. Type exit.
1.2. Make sure Windows File Sharing is enabled in the System Preferences Sharing pane. END QUOTE
Download the pnm2ppa tools from http://sourceforge.net/projects/pnm2ppa/ (source) or http://www.linuxprinting.org/macosx/pnm2ppa/ (Mac disk image).
Download and install ESP Ghostscript. This is an open-source PostScript interpreter that includes integrated support for the CUPS printing system in Mac OS X Jaguar (there is no need to install this version of ESP GS more than once if you have already done so in the past).
The following quote is edited/copied from http://www.linuxprinting.org/pipermail/macosx-list/2003q4/000854.html :
QUOTE Open a Terminal session and type the following commands:
cd /usr/share/cups/model ls
Since you already installed ESP Ghostscript and pnm2ppa-foomatic, you should see the 6 HP printer PPDs listed:
HP-DeskJet_1000C-pnm2ppa.ppd.gz HP-DeskJet_710C-pnm2ppa.ppd.gz HP-DeskJet_712C-pnm2ppa.ppd.gz HP-DeskJet_720C-pnm2ppa.ppd.gz HP-DeskJet_722C-pnm2ppa.ppd.gz HP-DeskJet_820C-pnm2ppa.ppd.gz
Let's start with the 722C PPD. Unzip it:
sudo gunzip HP-DeskJet_722C-pnm2ppa.ppd.gz
Now you need to edit the PPD with a Unix editor like vi, emacs, pico, or something else. I'll use vi as an example:
sudo vi HP-DeskJet_722C-pnm2ppa.ppd
Search the file for: 'proto' => ' -v %s -f /etc/pnm2ppa.conf', and change it to: 'proto' => ' -f /etc/pnm2ppa.conf -v %s',
Save the file and quit. Then zip it back up:
sudo gzip HP-DeskJet_722C-pnm2ppa.ppd END QUOTE
Next, edit the /etc/pnm2ppa.conf file itself using pico, vi or another editor. For some reason, my Mac would still NOT recognize the printer driver version being passed along the command line. By editing this file, you can hard code which HP Deskjet you are wishing to connect to.
Look for the line that says 'version ...' and make sure all are commented out except 'version 720.' Save and exit the file.
Open up the Print Center utility. Hold down the Option/Alt key and click the Add Printer button in the Print Center. Choose Advanced from the menu. Select "Windows Printer via SAMBA." Then type in a device name (for selecting in your applications you wish to print from). Next, type in a network path (URI) such as: smb://user:password@workgroup/machine/printersharename. Finally, select HP as the Model and scroll down through the list and select HP Deskjet 722C, Foomatic + pnm2ppa.
If you try to print to the Windows printer and it still does not work, you may need to edit the printer preferences on the Windows PC itself and turn OFF bidirectional support (this will generate an error message that will keep the printer from working at all until the machine itself is REBOOTED!). Reboot the PC and try to print again. Mine worked. I hope yours does, too.
OPTION #2 Buy another printer besides the braindead Deskjet 1000C, 710C, 712C, 720C, 722C or 820C printers and hook it to your Windows PC for sharing.
|
|
Newsfeeds
Mission Network News
Sat, 05 Jul 2008 00:56
In the Faith - News Service
Sat, 05 Jul 2008 00:56
|