# pkg install vim-console
% ssh-keygen -t ed25519
% ssh 192.168.1.1
Enter passphrase for key '/home/kraileth/.ssh/id_ed25519':----------------------------------------------| Hello, this is OPNsense 21.1 | @@@@@@@@@@@@@@@| | @@@@ @@@@| Website: https://opnsense.org/ | @@@\\\ ///@@@| Handbook: https://docs.opnsense.org/ | )))))))) ((((((((| Forums: https://forum.opnsense.org/ | @@@/// \\\@@@| Code: https://github.com/opnsense | @@@@ @@@@| Twitter: https://twitter.com/opnsense | @@@@@@@@@@@@@@@----------------------------------------------%
% sudo -i
*** OPNsense.localdomain: OPNsense 21.1.1 (amd64/LibreSSL) ***
0) Logout 7) Ping host 1) Assign interfaces 8) Shell 2) Set interface IP address 9) pfTop 3) Reset the root password 10) Firewall log 4) Reset to factory defaults 11) Reload all services 5) Power off system 12) Update from console 6) Reboot system 13) Restore a backupEnter an option:
# opnsense-code ports
# make -C /usr/ports/ports-mgmt/poudriere install clean
# mkdir -p /usr/opnsense-dist/pub/FreeBSD/releases/amd64/amd64/21.1-RELEASE
# opnsense-code src
# cd /usr/src && git checkout 21.1 && cd -
# tar -C / -cvJf /usr/opnsense-dist/pub/FreeBSD/releases/amd64/amd64/21.1-RELEASE/src.txz --exclude-vcs usr/src
# fetch https://pkg.opnsense.org/FreeBSD:12:amd64/21.1/sets/base-21.1-amd64.txz -o /usr/opnsense-dist/pub/FreeBSD/releases/amd64/amd64/21.1-RELEASE/base.txz
# opnsense-code tools
# env SRCBRANCH=HEAD make -C /usr/tools -j 5 base
# cp /usr/obj/usr/src/amd64.amd64/release/base.txz /usr/opnsense-dist/pub/FreeBSD/releases/amd64/amd64/21.1-RELEASE
# cd /usr/opnsense-dist/pub/FreeBSD/releases/amd64/amd64/21.1-RELEASE && /usr/src/release/scripts/make-manifest.sh base.txz src.txz > MANIFEST
# zpool list
NAME SIZE ALLOC FREE CKPOINT EXPANDSZ FRAG CAP DEDUP HEALTH ALTROOTzroot 472G 2.65G 469G - - 0% 0% 1.00x ONLINE -
# cp /usr/local/etc/poudriere.conf.sample /usr/local/etc/poudriere.conf# vi /usr/local/etc/poudriere.conf
FREEBSD_HOST=file:///usr/opnsense-dist
# echo ALLOW_UNSUPPORTED_SYSTEM=yes > /usr/local/etc/poudriere.d/make.conf
# echo DEFAULT_VERSIONS+= ssl=libressl >> /usr/local/etc/poudriere.d/make.conf
# poudriere jail -c -j opnsense211 -v 21.1-RELEASE[00:00:00] Creating opnsense211 fs at /usr/local/poudriere/jails/opnsense211... done[00:00:00] Fetching MANIFEST for FreeBSD 21.1-RELEASE amd64/usr/local/poudriere/jails/opnsense211/fromftp 222 B 307 kBps 00s[00:00:00] Fetching base for FreeBSD 21.1-RELEASE amd64/usr/local/poudriere/jails/opnsense211/fromftp 172 MB 79 MBps 02s[00:00:09] Extracting base... done[00:01:32] Fetching src for FreeBSD 21.1-RELEASE amd64/usr/local/poudriere/jails/opnsense211/fromftp 157 MB 63 MBps 03s[00:01:40] Extracting src... done[00:03:45] Cleaning up... done[00:03:45] Recording filesystem state for clean... done[00:03:45] Upgrading using ftp/etc/resolv.conf -> /usr/local/poudriere/jails/opnsense211/etc/resolv.confsed: /usr/local/poudriere/jails/opnsense211/usr/sbin/freebsd-update: No such file or directory12.1--HBSD[00:03:46] Recording filesystem state for clean... done[00:03:46] Jail opnsense211 12.1--HBSD amd64 is ready to be used
# poudriere ports -c -m null -M /usr/ports -p opnports[00:00:00] Imported ports tree "opnports" from /usr/ports
# echo devel/ccache > /usr/local/etc/poudriere.d/opnsense211-opnports-customsense-pkglist
# poudriere bulk -j opnsense211 -p opnports -z customsense -f /usr/local/etc/poudriere.d/opnsense211-opnports-customsense-pkglist[00:00:00] Creating the reference jail... done[00:00:01] Mounting system devices for opnsense211-opnports-customsense[00:00:01] Mounting ports/packages/distfiles[...][00:00:19] Starting/Cloning builders[00:00:19] Hit CTRL+t at any time to see build progress and stats[00:00:20] [01] [00:00:00] Building ports-mgmt/pkg | pkg-1.15.10_3[00:09:55] [01] [00:09:35] Finished ports-mgmt/pkg | pkg-1.15.10_3: Success[00:09:56] [01] [00:00:00] Building devel/ccache | ccache-3.7.1_1[00:11:12] [01] [00:01:16] Finished devel/ccache | ccache-3.7.1_1: Success[00:11:14] Stopping 2 builders[00:11:14] Creating pkg repository[...]
# ls /usr/local/poudriere/data/packages/opnsense211-opnports-customsense/Allccache-3.7.1_1.txz pkg-1.15.10_3.txz
# pkg add /usr/local/poudriere/data/packages/opnsense211-opnports-customsense/All/ccache-3.7.1_1.txzInstalling ccache-3.7.1_1...Extracting ccache-3.7.1_1: 100%[...]
# mkdir -p /var/cache/ccache/poudriere
# echo max_size = 5.0G > /var/cache/ccache/poudriere/ccache.conf
# vi /usr/local/etc/poudriere.conf
CCACHE_DIR=/var/cache/ccache/poudriere
# echo ports-mgmt/poudriere >> /usr/local/etc/poudriere.d/opnsense211-opnports-customsense-pkglist
# whereis cbsdcbsd: /usr/ports/sysutils/cbsd
# echo sysutils/cbsd >> /usr/local/etc/poudriere.d/opnsense211-opnports-customsense-pkglist
# poudriere bulk -j opnsense211 -p opnports -z customsense -f /usr/local/etc/poudriere.d/opnsense211-opnports-customsense-pkglist
# cat /usr/local/etc/pkg/repos/FreeBSD.confFreeBSD: { enabled: no }
# vi /usr/local/etc/pkg/repos/custom.conf
Custom: { url : file:///usr/local/poudriere/data/packages/opnsense211-opnports-customsense, priority : 20, enabled : yes}
# pkg update
# pkg install cbsd
# poudriere options -j opnsense211 -p opnports -z customsense -f /usr/local/etc/poudriere.d/opnsense211-opnports-customsense-pkglist===> Setting user-specified options for cbsd-13.0.0 and dependencies
# ls /usr/local/etc/poudriere.d/opnsense211-opnports-customsense-options/| wc -l 275
# make -C /usr/ports/sysutils/cbsd config
# mkdir -p /usr/local/etc/poudriere.d/opnsense211-opnports-customsense-options# cp -r /var/db/ports/* /usr/local/etc/poudriere.d/opnsense211-opnports-customsense-options/
# cd /usr/ports && git pull && cd -
# pkg upgrade
[.....]install -m 0644 /wrkdirs/usr/ports/ports-mgmt/pkg/work/pkg-1.16.3/NEWS /wrkdirs/usr/ports/ports-mgmt/pkg/work/stage/usr/local/share/doc/pkg/NEWS====> Compressing man pages (compress-man)===> Installing ldconfig configuration file==================================================================================================<phase: package >===============================> Building package for pkg-1.16.3cp: /wrkdirs/usr/ports/ports-mgmt/pkg/work/pkg/pkg-1.16.3.pkg: No such file or directory*** Error code 1
[00:00:02] [01] [00:00:00] Building ports-mgmt/pkg | pkg-1.16.3[00:01:38] [01] [00:01:36] Finished ports-mgmt/pkg | pkg-1.16.3: Failed: package
install -m 0644 /wrkdirs/usr/ports/ports-mgmt/pkg/work/pkg-1.16.3/NEWS /wrkdirs/usr/ports/ports-mgmt/pkg/work/stage/usr/local/share/doc/pkg/NEWS====> Compressing man pages (compress-man)===> Installing ldconfig configuration file==================================================================================================<phase: package >===============================> Building package for pkg-1.16.3cp: /wrkdirs/usr/ports/ports-mgmt/pkg/work/pkg/pkg-1.16.3.pkg: No such file or directory*** Error code 1Stop.make[1]: stopped in /usr/ports/ports-mgmt/pkg*** Error code 1Stop.make: stopped in /usr/ports/ports-mgmt/pkg=>> Cleaning up wrkdir===> Cleaning for pkg-1.16.3build of ports-mgmt/pkg | pkg-1.16.3 ended at Wed Oct 20 09:23:26 EEST 2021build time: 00:01:36!!! build failure encountered !!!