3 Simple Ways to
Share What You Make

With Instructables you can share what you make with the world — and tap into an ever-growing community of creative experts.

PhotosPhotos

Share one or more photos of a project, recipe, or whatever you've made, quickly and easily.

Step by StepStep-By-Step

Share your step-by-step photos with text instructions of what you made so others can do it too!

VideoVideo

Share your how-to video. You'll need your embed code from a video site such as YouTube.

FreeNAS as a Print Server

Step 4Install LPRng

We will be using a package called LPRng. To install it, type:

pkg_add -r LPRng

Let that chug away for a bit while it downloads and installs the necessary bits.
« Previous StepDownload PDFView All StepsNext Step »
15 comments
Jan 8, 2012. 11:04 AMeckiw-1 says:
Hi,
I reached this point: by changing pkg_add -r LPRng to:
pkg_add -r ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-7.4-release/Latest/LPRng.tbz
But at the end it says:
pkg_add: pkg_add of dependency 'gettext-0.18.1.1' failed!
Does this mean a problem? or can I ignore it?
Mar 6, 2012. 11:01 AMweecho77 says:
did you ever find out the workaround to this problem? i'm stuck at the same point, if i go ahead like it's no problem i can't do the next step... i thought maybe because i'm running an AMD Sempron i should get the amd64 port rather than i386 but it didn't make any difference.
Somebody help please!
Jun 24, 2011. 1:36 AMghost128k says:
good morning, i´ll try to install but when done download file .tbz i can see in the screen:
Last login: Fri Jun 24 08:27:39 2011 from 80.26.36.12
Copyright (c) 1980, 1983, 1986, 1988, 1990, 1991, 1993, 1994
The Regents of the University of California. All rights reserved.

Welcome to FreeNAS!

freenas:~# pkg_add -r LPRng
Fetching ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-7.3-release/Lates
t/LPRng.tbz... Done.

/: write failed, filesystem is full
bin/lpr: Write failed: No space left on device: No space left on device
bin/lprm: Write failed: No space left on device: No space left on device
bin/lpstat: Write failed: No space left on device: No space left on device
lib/liblpr.a: Write failed: No space left on device: No space left on device
libexec/filters/lpbanner: Write failed: No space left on device: No space left o
n device

/: write failed, filesystem is full
libexec/filters/lpf: Write failed: No space left on device: No space left on dev
ice
libexec/filters/psbanner: Write failed: No space left on device: No space left o
n device
sbin/checkpc: Write failed: No space left on device: No space left on device
...
tar: Error exit delayed from previous errors.
pkg_add: leave_playpen: can't chdir back to ''
freenas:~#

i have installed freenas in a datatravel pendrive usb with 8 gb of capacity, but when i execute df, the command shown:
freenas:~# df
Filesystem 1K-blocks Used Avail Capacity Mounted on
/dev/md0 190190 190188 2 100% /
devfs 1 1 0 100% /dev
procfs 4 4 0 100% /proc
/dev/md1 31470 1292 27662 4% /var
/dev/ad4p1 473018108 12433064 422743596 3% /mnt/cosas
/dev/da0a 71062 66786 4276 94% /cf

What i can do for install the pakage?
Thanks
Sep 16, 2011. 5:10 PMjimchest says:
If it is a memstick has plenty of memory try

mount -uw /

My stick was set to read only.

Jun 12, 2011. 6:20 PMalique says:
I'm not sure if this is an error but i'm getting this...


tar: Error exit delayed from previous errors.
pkg_add: leave_playpen: can't chdir back to ''


is it ok?
Jan 16, 2011. 9:29 PMrstrawsb says:
Looks like the package moved, This is how I got around the error.

pkg_add -r ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages/Latest/LPRng.tbz
May 9, 2010. 6:43 AMizakw. says:
hello,
to solve the problem with ftp fetch:
Error: FTP Unable to get ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-7.2-release/Latest/LPRng.up.tbz: No address record
pkg_add: unable to fetch 'ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-7.2-release/Latest/LPRng.up.tbz' by URL

i have set the domian in freenas webgui: system->general setup from "local" to "com"
and now everythings fine.



Jan 29, 2010. 12:13 PMlietotajs says:
why it says to me
Error: FTP Unable to get ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-7.2-release/Latest/LPRng.tbz: No address record
pkg_add: unable to fetch 'ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-7.2-release/Latest/LPRng.tbz' by URL
whats wrong?
Jan 29, 2010. 4:37 PMacereced says:
Same problem here

can get beyond that point

any ideas
Apr 6, 2010. 7:31 AMgaracs says:
Here's the output of the commands you asked:

freenas:~# echo $PACKAGESITE $PACKAGEROOT
PACKAGEROOT: Undefined variable.

freenas:~# cat /etc/resolv.conf
domain XXX (my domain name)
nameserver 208.67.222.222
nameserver 208.67.220.220

freenas:~# host ftp.freebsd.org
Nameserver not responding
ftp.freebsd.org A record not found, try again

What's wrong with it?
Mar 31, 2010. 7:12 AMkellogs1980 says:
by this  Error: FTP Unable to get ftp://ftp.....
It is for ver. 0.69

# setenv PACKAGESITE ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-6-stable/Latest/
Mar 29, 2010. 3:44 AMgaracs says:
Obviously it was 8GB, and not 8BG...

Anyway, I found also the original forum thread from sbrizzy, at this link:

http://sourceforge.net/apps/phpbb/freenas/viewtopic.php?f=15&t=1332

but when I follow his instructions, I get this error instead:

freenas:~# pkg_add .r lprng .P /mnt/xxxxxx/app/lprng
pkg_add: can't stat package file '.r'
pkg_add: can't stat package file 'lprng'
pkg_add: can't stat package file '.P'
pkg_add: can't stat package file '/mnt/xxxxxx/app/lprng'

What am I doing wrong?
Mar 29, 2010. 3:39 AMgaracs says:
I managed to bypass the error the other users had:

Error: FTP Unable to get ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-7.2-release/Latest/LPRng.tbz: No address record
pkg_add: unable to fetch 'ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-7.2-release/Latest/LPRng.tbz' by URL

simply modifying the DNS servers under System|General Setup, inserting the OpenDNS servers:

IPv4 DNS servers: 208.67.222.222 / 208.67.220.220

I have another problem, though:

share/doc/LPRng/LPRng-Reference.html: Write failed: No space left on device: No space left on device
share/doc/LPRng/LPRng-Reference.pdf: Write failed: No space left on device: No space left on device

My Freenas is a clean install, embedded, on a 8BG hard disk. How come I ran out of space?
Mar 19, 2010. 6:55 PMran1wil says:
i cannot get the package
this is the message:

Error: FTP Unable to get ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-7.2-release/Latest/LPRng.tbz: No address record
pkg_add: unable to fetch 'ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-7.2-release/Latest/LPRng.tbz' by URL

Please help
Feb 8, 2010. 6:09 AMilbomac says:
hello,
I'm not american, so my english is not verry well.
I hope you understand my problems with install print server.
I put the file ulpt.ko to the /boot/kernel repository using FTP filezilla.
After i connect with PuTTY in root to may freenas. The problem is that I can't installa on 4step the right file. I've this message:
ilbomac:~# pkg_add -r LPRng.up.tbz
Error: FTP Unable to get ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-7.2-release/Latest/LPRng.up.tbz: No address record
pkg_add: unable to fetch 'ftp://ftp.freebsd.org/pub/FreeBSD/ports/i386/packages-7.2-release/Latest/LPRng.up.tbz' by URL
If I write: echo $PACKAGESITE $PACKAGEROOT
cat /etc/resolv.conf
host ftp.freebsd.org
I have this:
ilbomac:~# echo $PACKAGESITE $PACKAGEROOT cat/etc/resolv.conf host ftp.freebsd.org
PACKAGESITE: Undefined variable.

What is wrong and how do I must to do?

Scuse-me for my orefull english! :)
Thncyou




Pro

Get More Out of Instructables

Already have an Account?

close

All Steps Viewing
View all steps of an Instructable on the same page when you're a Pro Member.

Upgrade to Pro today!
3
Followers
1
Author:Tau_Zero(Napkin Diagrams)
Twitter: @Tau_Zero