*New 11.3 series Release:
2019-10-19: XigmaNAS 11.3.0.4.7014 - released

*New 12.0 series Release:
2019-10-05: XigmaNAS 12.0.0.4.6928 - released!

*New 11.2 series Release:
2019-09-23: XigmaNAS 11.2.0.4.6881 - released!

We really need "Your" help on XigmaNAS https://translations.launchpad.net/xigmanas translations. Please help today!

Producing and hosting XigmaNAS costs money. Please consider donating for our project so that we can continue to offer you the best.
We need your support! eg: PAYPAL

Add packages to embedded

XigmaNAS Packages
Forum rules
Set-Up GuideFAQsForum Rules
Post Reply
danzi
Starter
Starter
Posts: 66
Joined: 11 Nov 2012 23:24
Location: Budapest
Status: Offline

Add packages to embedded

#1

Post by danzi » 24 Aug 2017 23:22

Hi All,

I am trying to add some additional packages to an embedded 11.1.0.4 - Atomics (revision 4528) install. I use zip to manage files from the command line with some scripting.

as root in an SSH session I update, get info and then install... but install does nothing. It worked fine before. I don't mind reinstalling at a reboot, since that is a rare occasion, but why won't pkg install zip anymore? It says latest versions are installed, but command is not found after logout-login...

srv01: /# pkg update
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.


srv01: /# pkg info zip
zip-3.0_1
Name : zip
Version : 3.0_1
Installed on : Sun Aug 20 21:00:37 2017 UTC
Origin : archivers/zip
Architecture : FreeBSD:11:amd64
Prefix : /usr/local
Categories : archivers
Licenses : BSD3CLAUSE
Maintainer : ler@FreeBSD.org
WWW : http://www.info-zip.org/Zip.html
Comment : Create/update ZIP files compatible with PKZIP
Options :
DOCS : on
Annotations :
repo_type : binary
repository : FreeBSD
Flat size : 729KiB
Description :
Zip is a compression and file packaging utility. It is compatible with
PKZIP 2.04g (Phil Katz ZIP) for MSDOS systems. There is a companion to zip
called unzip (of course) which you can also install from the ports/package
system.

WWW: http://www.info-zip.org/Zip.html

---

srv01: /# pkg install zip
Updating FreeBSD repository catalogue...
FreeBSD repository is up to date.
All repositories are up to date.
Checking integrity... done (0 conflicting)
The most recent version of packages are already installed
----------------------------------------------
Dell T130 - 32Gb ECC - ESXi 6.7
VM Full Instal - 11.2.0.4 - Omnius (revision 6005)
HP/LSI 9121-4i SAS2008 Pass Through mode
2 x 2Tb ZFS mirror
1 x 3Tb UFS
----------------------------------------------

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4921
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: Add packages to embedded

#2

Post by raulfg3 » 24 Aug 2017 23:34

Is not possible to add packages to embeded because run in RAM And packages are lost on reboot, If You really need to install packages, consider to use full install.
12.0.0.4 (revision 6766)+OBI on SUPERMICRO X8SIL-F 8GB of ECC RAM, 12x3TB disk in 3 vdev in RaidZ1 = 32TB Raw size only 22TB usable

Wiki
Last changes

jamaroney
Advanced User
Advanced User
Posts: 217
Joined: 13 Aug 2012 17:32
Location: Stroudsburg, PA
Status: Offline

Re: Add packages to embedded

#3

Post by jamaroney » 17 Sep 2017 23:49

You can add packages to an embedded - the way I do it is via an additional small thumb drive (4GB is good) which is mounted in tandem with your RAM via mount_unionfs.

I have many packages installed on my embedded this way. There are some who will say there are limitations or problems, but I've experienced absolutely none over 5 years - for me, it's been incredibly easy and very smooth-running.

After mounting the additional new drive (e.g., "/mnt/HDD"), create the following folders on it and make them writable:
/mnt/HDD/extensions
/mnt/HDD/extensions/usr
/mnt/HDD/extensions/usr/local
/mnt/HDD/extensions/var
/mnt/HDD/extensions/var/db
/mnt/HDD/extensions/var/db/pkg

Run the following commands :
mount_unionfs -o w /mnt/HDD/extensions/usr/local/ /usr/local/
mount_unionfs -o w /mnt/HDD/extensions/var/db/pkg /var/db/pkg

You're all set to install packages.

But then you MUST have the two mount_unionfs commands be the very first PostInit commands when you startup N4F (do so via the WebGUI under System → Advanced → Command Scripts).

Jails are perhaps possible as well. They're supposedly more secure, but they seem very cumbersome to set up, and as I mentioned, the mount_unionfs method has been so easy and reliable for me.

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4921
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: Add packages to embedded

#4

Post by raulfg3 » 18 Sep 2017 00:25

ok, possible but not recomended.

PD: jamaroney, perhaps do you want to test latest ZFSonRoot ( full install with webGUI updates like embeded , and aditional snapshot of every updates to roll back in case of fail).
12.0.0.4 (revision 6766)+OBI on SUPERMICRO X8SIL-F 8GB of ECC RAM, 12x3TB disk in 3 vdev in RaidZ1 = 32TB Raw size only 22TB usable

Wiki
Last changes

jamaroney
Advanced User
Advanced User
Posts: 217
Joined: 13 Aug 2012 17:32
Location: Stroudsburg, PA
Status: Offline

Re: Add packages to embedded

#5

Post by jamaroney » 22 Sep 2017 00:48

raulfg3, I do not know about ZFSonRoot. I assume it requires ZFS format - my discs are UFS.

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4921
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: Add packages to embedded

#6

Post by raulfg3 » 22 Sep 2017 07:34

jamaroney wrote:
22 Sep 2017 00:48
raulfg3, I do not know about ZFSonRoot. I assume it requires ZFS format - my discs are UFS.
yes boot disk must be format as ZFS, but Data disck are untouched.

Please read more about this new boot option/install

viewtopic.php?p=75523#p75523
12.0.0.4 (revision 6766)+OBI on SUPERMICRO X8SIL-F 8GB of ECC RAM, 12x3TB disk in 3 vdev in RaidZ1 = 32TB Raw size only 22TB usable

Wiki
Last changes

User avatar
tony1
Moderator
Moderator
Posts: 172
Joined: 14 Jul 2016 19:04
Status: Offline

Re: Add packages to embedded

#7

Post by tony1 » 23 Sep 2017 23:15

if you want to extract a *.zip file use the "tar" command. "tar -xf file.zip"
if you really need the zip utility fetch the pkg and extract it to a persistent directory and call it with the full path.
the more complex the application the harder it gets but zip is just a simple binary.
for clarity tar will also create zip files.

paulj
Starter
Starter
Posts: 25
Joined: 12 Mar 2015 01:48
Status: Offline

Re: Add packages to embedded

#8

Post by paulj » 05 Dec 2017 22:23

Along the line of this post I've been building and installing packages inside a jail on Nas4Free for several months and it seemed to be working fine. The jail lives on my data drive.

I've built Sabnzbdplus and Sonarr previously. Sonarr is able to update internally but I've been unable to build any new packages for Plex recently as well as other FreeBSD packages.

I can install binaries using pkg but make keeps failing with:
Ports Collection support for your FreeBSD version has ended, and no ports are
guaranteed to build on this system. Please upgrade to a supported release.
I'm running the latest release.

Code: Select all

pkg version -l "<" 
returns a bunch of packages having updates but when I try to update them it says all packages are up-to-date.

Any ideas?
Xigmanas 11.2.0.4 - Omnius (revision 6315)
Supermicro A1SRi x64-full on Intel(R) Atom(TM) CPU C2758 @ 2.40GHz 16GB ECC memory
ZFS on Root Install

User avatar
raulfg3
Site Admin
Site Admin
Posts: 4921
Joined: 22 Jun 2012 22:13
Location: Madrid (ESPAÑA)
Contact:
Status: Offline

Re: Add packages to embedded

#9

Post by raulfg3 » 06 Dec 2017 07:32

Do you update BSD inside the jail?.

Please use the Update features of "Thebrig"
12.0.0.4 (revision 6766)+OBI on SUPERMICRO X8SIL-F 8GB of ECC RAM, 12x3TB disk in 3 vdev in RaidZ1 = 32TB Raw size only 22TB usable

Wiki
Last changes

paulj
Starter
Starter
Posts: 25
Joined: 12 Mar 2015 01:48
Status: Offline

Re: Add packages to embedded

#10

Post by paulj » 06 Dec 2017 07:50

Do you update BSD inside the jail?.
Yes. I'm at release 11.1 b5

I would have to build packages though from the command line of the jail wouldn't I?

Trying to build from the Brig GUI would be cumbersome.

The error gets thrown on any make on the ports tree from the command line. It used to work, now it doesn't.

Edit…

There's this from the GUI page of the Brig/Updates/Central Ports:
Please note: Selecting a jail to have access to the portstree will result in a non-standard make.conf
It's possible the problem may be related to this?
Xigmanas 11.2.0.4 - Omnius (revision 6315)
Supermicro A1SRi x64-full on Intel(R) Atom(TM) CPU C2758 @ 2.40GHz 16GB ECC memory
ZFS on Root Install

Post Reply

Return to “Packages”