So, the Xerox Phaser 3117 printer was removed from a careless tech support for bad behavior. Since I use the FreeBSD desktop (and not only) at work (and not only me) using FreeBSD, it became necessary to screw this printer to this OS. And since I use the printer not only, I have to share it over the network like that.
Having studied Google’s million links, it became clear that sharing a printer via SAMBA is not an option. For in the office of 40 machines Windows only two.
Through LPR, too, it didn’t like much. I decided to stay on the http connection. As it turned out not in vain.
So what I did.
Connect the printer. He successfully determined:
[anton@raccoon ~]$ bzcat /var/log/messages.0.bz2|grep ulp
Mar 15 16:04:01 raccoon kernel: ulpt0: <Xerox Corporation Xerox Phaser 3117, class 0/0, rev 1.10/1.00, addr 2> on uhub1
Mar 15 16:04:01 raccoon kernel: ulpt0: using bi-directional mode
Then we put the print management system CUPS. Put from ports:
[root@raccoon ~]# whereis cups
cups: /usr/ports/print/cups
[root@raccoon ~]# cd /usr/ports/print/cups
[root@raccoon /usr/ports/print/cups]# make install
When everything is set, we try to add a printer to the system. To do this, add the line cupsd_enable = "YES" to rc.conf
[root@raccoon /usr/ports/print/cups]#echo 'cupsd_enable= «YES»' >> /etc/rc.conf
Run CUPS
[root@raccoon /usr/ports/print/cups]# /usr/local/etc/rc.d/cupsd start
If everything went well, then go to
http: // localhost: 631 / and see CUPS
')
We try to add a printer. "Administration" - "Add a printer." I select "USB Printer # 1". Click "Next". In the next menu, everything seems to be clear. The main thing is to enter the name. Location and comments are not very important. They are more informative. Checkbox for set up set. Again, click "Next."
And then in the next window there was a small plug. No Xerox printers. And in general, as it is poorly by model. Well, there is also an opportunity to throw a ppd-file. First of all I got on the Xerox website. Firewood was only Linux, but there was a pdd file in it. However, surprisingly, but did not start.
After another yaw across the expanses of the global network, it turned out that there is such a splix port, which has drivers for my printer. And not only for mine. We put:
[root@raccoon /usr/ports/print/cups]# whereis splix
splix: /usr/ports/print/splix
[root@raccoon /usr/ports/print/cups]# cd /usr/ports/print/splix
[root@raccoon /usr/ports/print/splix]# make install
Then restart CUPS and successfully add the printer. I try to print a test page. does not print and writes in the task log
canceled at
Thu Mar 15 16:51:46 2012
"Unable to open device file: Permission denied"
The problem is solved simply
I correct the file:
mcedit /usr/local/etc/cups/printers.conf
Changing the string
DeviceURI usb:/dev/ulpt0
on
DeviceURI file:/dev/ulpt0
Then I try to print a test page. And everything starts to work and print.
After that, the question “what should those who want to print on the network do?” Arose. Everything is very simple. They need to add http-printer to the following address:
http: // myhost: 631 / printers / printernameprintername in this case is the name of the printer that you gave when setting up.
myhost - DNS or IP of the machine on which we configure.
However, to give access over the network, in the file
/usr/local/etc/cups/cupsd.conf
in section
<Location />
you must either register the ip-addresses of specific machines or fully open access to print. Intuitively, everything is clear. Very similar to htaccees.
If we want to print to this printer from FreeBSD, then we install CUPS and splix on the client machine and add the printer via http.
I did not try to print from Linux, since it is not at hand, but I think that there will be no problems.
From the MAC printer was added and spat out the test page as a native one.
From Win, as usual, add a network printer. The print is successful. Previously I just downloaded the drivers for the printer for this OS and indicated it during installation.
PS: you can connect via cups-client, but so far it’s not working. I finish my mana and accomplish my goal