maxbet
Dabbler
- Joined
 - Oct 4, 2014
 
- Messages
 - 12
 
Long time lurker (FreeNAS 8.01 ....) but first time poster.
I needed to add print server function to my FreeNAS and share my HP Deskjet 2020HC on the home network.
After a 2 days struggle with CUPS, jails and the related permission issues, I finally gave up. The reason being (correct me if I am wrong) these issues could be overcome only by altering the basic setup of FreeNAS and I did not want to do that.
I found a solution in using a small print server software designed for diskless applications and recently ported to FreeBSD : p910nd.
Installation was painless, the printer started working immediately and there were no permission issues whatsoever. Now all my workstations (Linux Mint and Win7) are printing on the Deskjet.
Here is a brief guide on how I did it :
Max
	
		
			
		
		
	
			
			I needed to add print server function to my FreeNAS and share my HP Deskjet 2020HC on the home network.
After a 2 days struggle with CUPS, jails and the related permission issues, I finally gave up. The reason being (correct me if I am wrong) these issues could be overcome only by altering the basic setup of FreeNAS and I did not want to do that.
I found a solution in using a small print server software designed for diskless applications and recently ported to FreeBSD : p910nd.
Installation was painless, the printer started working immediately and there were no permission issues whatsoever. Now all my workstations (Linux Mint and Win7) are printing on the Deskjet.
Here is a brief guide on how I did it :
- Enable SSH access in FreeNAS
 - Create a portsjail on FreeNAS
 - Give the portsjail a static IP address, disable VIMAGE
 - Open FreeNAS shell
 - Type :
 
jls
- Note the number of the jail and then type :
 
jexec [number] sh
- Install nano editor (or others, as you prefer) :
 
pkg install nano
- Install p910nd :
 
pkg install p910nd
- Plug the printer in the USB port and check dmesg :
 
dmesg
   note the USB device number associated to the printer  (eg. /dev/ulpt0)
- Edit the file /etc/rc.conf adding the following lines :
 
p910nd_enable="YES"
p910nd_flags="-i 192.168.3.13 -f /dev/ulpt0 -b 0"
  where the flags have the following meaning :p910nd_flags="-i 192.168.3.13 -f /dev/ulpt0 -b 0"
-i <listening address> (eg. Jail IPv4 address)
-f <device name> (eg. /dev/ulpt0)
-b <0/1> (Bidirectional printing on 1 / off 0)
-f <device name> (eg. /dev/ulpt0)
-b <0/1> (Bidirectional printing on 1 / off 0)
- Restart the jail using the web interface
 - Configure clients (please refer to this link )
 
- Raw printing : that means all clients should have printer drivers installed.
 - Bidirectional printing has to be investigated.
 - Installation completely contained within jail.
 - Mac OsX need further investigation.
 
Max