Print Server on FreeBSD

So, the Xerox Phaser 3117 printer was removed from the negligent technical support for bad behavior. Since I use FreeBSD as a desktop (and not only) at work, it became necessary to fasten this printer to this OS. And since it’s not just me who uses the printer, I need to share it over the network like that.

Having studied a million Google links, it became clear that sharing a printer through SAMBA is not an option. For in the office of 40 Windows machines, only two.
Through LPR, too, it didn’t really appeal. I decided to stay on the http connection. As it turned out not in vain.

So what have I done.

I connected the printer. He successfully decided: Then we put the CUPS print management system. Put from the ports:
[anton@raccoon ~]$ bzcat /var/log/messages.0.bz2|grep ulp
Mar 15 16:04:01 raccoon kernel: ulpt0: on uhub1
Mar 15 16:04:01 raccoon kernel: ulpt0: using bi-directional mode



[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, then 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, go to http: // localhost: 631 / and see CUPS.

Try to add a printer. “Administration” - “Add a printer”. I select "USB Printer # 1". I 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 for informational purposes. We set the checkbox for sharing. Click Next again.

And then in the next window a small plug appeared. There are no Xerox printers. Anyway, it’s somehow meager in models. Okay, there’s also the option to pop a ppd file. First climbed to the Xerox website. The firewood was only Linux, but the pdd file was in them. However, surprisingly, it did not start.

After another yaw in the vast 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 : After that we restart CUPS and successfully add the printer. Trying to print a test page. it doesn’t print and writes in the task log that the problem is solved simply. I correct the file: I change the line to After which I try to send the test page to print. And everything starts to work and print.
[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



canceled at
Thu Mar 15 16:51:46 2012
"Unable to open device file: Permission denied"




mcedit /usr/local/etc/cups/printers.conf


DeviceURI usb:/dev/ulpt0

DeviceURI file:/dev/ulpt0



After that, the question “what to do for those who want to print over the network?” Arose. Everything is very simple. They need to add an http printer at the following address: http: // myhost: 631 / printers / printername

printername in this case, the name of the printer that you gave when setting up.
myhost - DNS or IP of the machine on which we are configuring.

However, to give access over the network, in the file
/usr/local/etc/cups/cupsd.conf
in the section,


you must either register the IP addresses of specific machines or fully open access for printing. Intuitively, everything is clear there. Very similar to htaccees.

If we want to print to this printer from FreeBSD, then on the client machine we install CUPS and splix 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, the printer was added and spat out the test page as a native.
From Win, as usual, add a network printer. Printing is successful. Previously, I just downloaded the drivers for the printer for this OS and indicated it during installation.

PS: you can connect through cups-client, but so far it does not work. I will finish the mana and unsubscribe

Also popular now: