Errors NGINX, DHCP, boot, NTPD, NTPDATE random errors with repairs December 14, 2023

Errors NGINX,  DHCP, boot, NTPD, NTPDATE   random errors with repairs.   updated December 14, 2023

edit /boot/loader.conf file


 ifconfig_genet0="DCHP"   DCHP does not work  DHCP does work

su -
mkdir -p /var/log/nginx

Need a directory to create and save nginx configuration files, on the Development Workstation.

NTPD,  NTPDATE   ntpd -q -g       or How to update, when clock is years off kilter, time?


~~~~~~~~~~~~~~~~~~~~~~
mountroot> ufs:/dev/da0p3/
Trying to mount root from ufs:/dev/da0p3/ []...
mountroot: waiting for device /dev/da0p3/...
Mounting from ufs:/dev/da0p3/ failed with error 19.

mountroot> ?

List of GEOM managed disk devices:
  diskid/DISK-FBBEB3E9875A4AA4p3 diskid/DISK-FBBEB3E9875A4AA4p2 diskid/DISK-FBBEB3E9875A4AA4p1 ufs/rootfs ufsid/656281af65b8e289 gptid/f0d5702b-8beb-1
1ee-a71e-dca632d53d76 gpt/rootfs gptid/f0d5701f-8beb-11ee-a71e-dca632d53d76 gpt/swapfs msdosfs/EFISYS_RPI4 gptid/f0d56fde-8beb-11ee-a71e-dca632d53d76 
gpt/esp diskid/DISK-FBBEB3E9875A4AA4 da0p3 da0p2 da0p1 da0

mountroot> ufs:rootfs
Trying to mount root from ufs:rootfs []...
mountroot: waiting for device rootfs...
Mounting from ufs:rootfs failed with error 19.

mountroot> ufs:/dev/rootfs
Trying to mount root from ufs:/dev/rootfs []...
mountroot: waiting for device /dev/rootfs...
Mounting from ufs:/dev/rootfs failed with error 19.

mountroot> ufs:/dev/gpt/rootfs/
Trying to mount root from ufs:/dev/gpt/rootfs/ []...
Mounting from ufs:/dev/gpt/rootfs/ failed with error 2: unknown file system.

mountroot> ufs:/dev/gpt/rootfs
Trying to mount root from ufs:/dev/gpt/rootfs []...
Warning: no time-of-day clock registered, system time will not be set accurately
Dual Console: Video Primary, Serial Secondary
start_init: trying /sbin/init
genet0: link state changed to UP
lo0: link state changed to UP
genet0: link state changed to DOWN
genet0: link state changed to UP
uhid0 on uhub1
uhid0: <NOVATEK USB NETVISTA FULL WIDTH KEYBOARD, class 0/0, rev 1.10/1.04, addr 3> on usbus0
ums0 on uhub1
ums0: <PixArt Dell MS116 USB Optical Mouse, class 0/0, rev 2.00/1.00, addr 4> on usbus0
ums0: 3 buttons and [XYZ] coordinates ID=0
Security policy loaded: MAC/ntpd (mac_ntpd)

FreeBSD/arm64 (rpi-fred4B_Ghost14) (ttyu0)

~~~~~~~~~~~~~~~~~~~~~~
Boot   have to edit 4 files  /boot/loader.con /boot/defaults/loader.conf  /etc/rc.conf /etc/fstab
Fred Finster, [12/4/23 9:56 AM]
for the ghostbsd machine and the /dev/da1 usb flash drive, 
 ls -lh /dev/gpt     I am google searching for the line to enable  gpt   maybe it is  cat /boot/loader.conf | grep gpt on the GhostBSD machine

Fred Finster, [12/4/23 10:03 AM]
Edit file  /mnt/rootfs/boot/loader.conf  add this single line And this for GPT disks, running UFS file system.  Set to "0" for ZFS file system:

kern.geom.label.gptid.enable="1"
   
You’ll have all your drive symlinks back upon rebooting.

https://man.freebsd.org/cgi/man.cgi?loader.conf(5)  Manual page on loader.conf file
https://forums.freebsd.org/threads/missing-dev-gpt.77360/  Missing /dev/gpt directory.   Note, that whatever identifier system you first use, other identifier systems DISAPPEAR!!   So do not look to use them, like gptid,diskid,ufs  ZFS does NOT use GPT,GPTID,DISKID.  Set all geom labels enable="0" for ZFS
 



Try adding these lines to your /boot/loader.conf: for only UFS filesystem Not ZFS

kern.geom.label.disk_ident.enable=0
kern.geom.label.gptid.enable=0
kern.geom.label.gpt.enable=1
kern.geom.label.ufs.enable=0

Also, change your /etc/fstab line back to:

/dev/gpt/rootfs   /       ufs     rw       1       1
Give it a reboot, and comment below on your results.

/boot/loader.conf  contents:
~~~~~~~~~~~~~~~~~~~~~~~

~~~~~~~~~~~~~~~~~~~~~~~

DO NOT Edit these lines in /boot/defaults/loader.conf for Arm64

"NO" for these 3 modules, crypto geom aesni in /boot/loader.conf
https://wiki.ghostbsd.org/index.php//boot/loader.conf
GhostBSD wiki answers to each line



 # Load geom support
# crypto_load="YES"
# geom_eli_load="YES"

# Enable hardware crypto
# aesni_load="YES"

# Set ipfw to default accept
net.inet.ip.fw.default_to_accept="1"

# Set the brand/loader logo
loader_brand="ghostbsd"
loader_logo="glogo"
loader_menu_title="Welcome to GhostBSD-ARM64"
#  boot_mute="YES"
boot_mute="NO"


Test Output from Ghost14_selfbuilt

root@rpi-fred4B_Ghost14:~ # ls
.cshrc          .k5login        .login          .profile        .shrc
root@rpi-fred4B_Ghost14:~ # ntpd -g -q
25 Nov 23:59:20 ntpd[1370]: ntpd 4.2.8p16-a (1): Starting
25 Nov 23:59:20 ntpd[1370]: Command line: ntpd -g -q
25 Nov 23:59:20 ntpd[1370]: ----------------------------------------------------
25 Nov 23:59:20 ntpd[1370]: ntp-4 is maintained by Network Time Foundation,
25 Nov 23:59:20 ntpd[1370]: Inc. (NTF), a non-profit 501(c)(3) public-benefit
25 Nov 23:59:20 ntpd[1370]: corporation.  Support and training for ntp-4 are
25 Nov 23:59:20 ntpd[1370]: available at https://www.nwtime.org/support
25 Nov 23:59:20 ntpd[1370]: ----------------------------------------------------
25 Nov 23:59:20 ntpd[1370]: proto: precision = 0.148 usec (-23)
25 Nov 23:59:20 ntpd[1370]: basedate set to 2018-08-07
25 Nov 23:59:20 ntpd[1370]: gps base set to 2018-08-12 (week 2014)
25 Nov 23:59:20 ntpd[1370]: leapsecond file ('/var/db/ntpd.leap-seconds.list'): good hash signature
25 Nov 23:59:20 ntpd[1370]: leapsecond file ('/var/db/ntpd.leap-seconds.list'): loaded, expire=2023-12-28T00:00:00Z last=2017-01-01T00:00:00Z ofs=37
25 Nov 23:59:20 ntpd[1370]: unable to bind to wildcard address :: - another process may be running - EXITING
root@rpi-fred4B_Ghost14:~ # service ntpd stop
Stopping ntpd.
Waiting for PIDS: 1268.
root@rpi-fred4B_Ghost14:~ # ntpd -g -q
25 Nov 23:59:43 ntpd[1381]: ntpd 4.2.8p16-a (1): Starting
25 Nov 23:59:43 ntpd[1381]: Command line: ntpd -g -q
25 Nov 23:59:43 ntpd[1381]: ----------------------------------------------------
25 Nov 23:59:43 ntpd[1381]: ntp-4 is maintained by Network Time Foundation,
25 Nov 23:59:43 ntpd[1381]: Inc. (NTF), a non-profit 501(c)(3) public-benefit
25 Nov 23:59:43 ntpd[1381]: corporation.  Support and training for ntp-4 are
25 Nov 23:59:43 ntpd[1381]: available at https://www.nwtime.org/support
25 Nov 23:59:43 ntpd[1381]: ----------------------------------------------------
25 Nov 23:59:43 ntpd[1381]: proto: precision = 0.130 usec (-23)
25 Nov 23:59:43 ntpd[1381]: basedate set to 2018-08-07
25 Nov 23:59:43 ntpd[1381]: gps base set to 2018-08-12 (week 2014)
25 Nov 23:59:43 ntpd[1381]: leapsecond file ('/var/db/ntpd.leap-seconds.list'): good hash signature
25 Nov 23:59:43 ntpd[1381]: leapsecond file ('/var/db/ntpd.leap-seconds.list'): loaded, expire=2023-12-28T00:00:00Z last=2017-01-01T00:00:00Z ofs=37
25 Nov 23:59:43 ntpd[1381]: Listen and drop on 0 v6wildcard [::]:123
25 Nov 23:59:43 ntpd[1381]: Listen and drop on 1 v4wildcard 0.0.0.0:123
25 Nov 23:59:43 ntpd[1381]: Listen normally on 2 genet0 192.168.1.10:123
25 Nov 23:59:43 ntpd[1381]: Listen normally on 3 lo0 [::1]:123
25 Nov 23:59:43 ntpd[1381]: Listen normally on 4 lo0 [fe80::1%2]:123
25 Nov 23:59:43 ntpd[1381]: Listen normally on 5 lo0 127.0.0.1:123
25 Nov 23:59:43 ntpd[1381]: Listening on routing socket on fd #26 for interface updates
25 Nov 23:59:44 ntpd[1381]: error resolving pool 0.freebsd.pool.ntp.org: Name does not resolve (8)
25 Nov 23:59:45 ntpd[1381]: error resolving pool 2.freebsd.pool.ntp.org: Name does not resolve (8)
^C25 Nov 23:59:51 ntpd[1381]: ntpd exiting on signal 2 (Interrupt)
root@rpi-fred4B_Ghost14:~ # ping -c 3 he.net
ping: Unknown host
root@rpi-fred4B_Ghost14:~ # 



/etc/rc.conf: 23 lines, 635 characters.
root@rpi-fred4B_Ghost14:~ # cat /etc/rc.conf
# https://gist.github.com/yarwelp/3cae5db566f643437fa2  setup Raspiberry Pi B

hostname="rpi-fred4B_Ghost14_Dec12_3"

  ifconfig_DEFAULT="DHCP"
# ifconfig_genet0="DHCP"
# set a static address
# ifconfig_genet0="inet 192.168.1.10 netmask 255.255.255.0"
# ifconfig_ue0="inet 10.42.0.47 netmask 255.255.255.0"
# defaultrouter="10.42.0.1"

sshd_enable="YES"
sendmail_enable="NONE"
sendmail_submit_enable="NO"
sendmail_outbound_enable="NO"
sendmail_msp_queue_enable="NO"
ntpd_flags="-g -q"
       ntpd_enable="YES"
       ntpdate_enable="YES"
      snd_uaudio_load="YES"
      #growfs_enable="YES"
      snd_uaudio="YES"
 
 
root@rpi-fred4B_Ghost14:~ # 


root@rpi-fred4B_Ghost14:~ # cat /boot/loader.conf
boot_multicons="YES"
# boot_serial="YES"
boot_serial="NO"
# console="comconsole"
# console="comconsole,efi"
console="comconsole,vidconsole"

# Sleep Walker, [10/3/23 11:19 AM]  PersonalBSD
# https://github.com/pftf/RPi4/releases



# boot_multicons="YES"           #<<<< What this does is allow multiple consoles. IE. Screen and Serial Port >>>>#
# boot_serial="YES"             #<<<< This is the only line needed. This is the trigger >>>>#
# comconsole_speed="115200"       #<<<< This setting is actually the default so it is not needed in most cases >>>>#
# console="comconsole,vidconsole"     #<<<< This sets the multi console interfaces for legacy BIOS >>>>#
# console="comconsole,efi"         #<<<< This sets the multi console interfaces for EFI BIOS >>>>#


snd_uaudio_load="YES"


kern.geom.label.disk_ident.enable=0
kern.geom.label.gptid.enable=0
kern.geom.label.gpt.enable=1
kern.geom.label.ufs.enable=0

 # Load geom support
 crypto_load="NO"
 geom_eli_load="NO"  #maybe YES in this option


# Enable hardware crypto
 aesni_load="NO"

 
 
Special Message. Probably using /boot/defaults/boot/loader.conf
 
Out:   vidconsole
Err:   vidconsole
Net:   eth0: ethernet@7d580000
PCIe BRCM: link up, 5.0 Gbps x1 (SSC)
starting USB...
Bus xhci_pci: Register 5000420 NbrPorts 5
Starting the controller
USB XHCI 1.00
scanning bus xhci_pci for devices... 4 USB Device(s) found
       scanning usb for storage devices... 1 Storage Device(s) found
Hit any key to stop autoboot:  0
Card did not respond to voltage select! : -110
MMC Device 1 not found
no mmc device at slot 1

Device 0: Vendor: Verbatim Rev: PMAP Prod: ClickUSB        
            Type: Removable Hard Disk

/   ____ _               _    ____   _____ _____  
   / ___| |             | |_ |  _ \ / ____|  __ \
  | |   | |__   ___  ___| __|| |_) | (___ | |  | |
  | |  _| '_ \ / _ \/ __| |  |  _ < \___ \| |  | |
  | |_| | | | | (_) \__ \ |_ | |_) |____) | |__| |
   \____|_| |_|\___/|___/\__||____/|_____/|_____/
                                                              ,gggggg.   
                                                           ,agg9*   .g)  
 ╔══════════ Welcome to GhostBSD ══════════╗             .agg* ._.,gg*   
 ║                                         ║           ,gga*  (ggg*'     
 ║  1. Boot Multi user [Enter]             ║          ,ga*      ,ga*     
 ║  2. Boot Single user                    ║         ,ga'     .ag*       
 ║  3. Escape to loader prompt             ║        ,ga'   .agga'        
 ║  4. Reboot                              ║        9g' .agg'g*,a        
 ║  5. Cons: Dual (Serial primary)         ║        'gggg*',gga'         
 ║                                         ║             .gg*'           
 ║  Options:                               ║           .gga*             
 ║  6. Kernel: default/kernel (1 of 1)     ║         .gga*               
 ║  7. Boot Options                        ║        (ga*                 
 ║                                         ║
 ║                                         ║
 ╚═════════════════════════════════════════╝
   Autoboot in 0 seconds. [Space] to pause

Loading kernel...
/boot/kernel/kernel text=0x2a8 text=0x9c9f90 text=0x26356c data=0x14d4b8 data=0x0+0x316000 0x8+0x14d7b0+0x8+0x175b72/
Loading configured modules...
/etc/hostid size=0x25
/boot/entropy size=0x1000
can't find 'aesni'
/boot/kernel/geom_eli.ko text=0x541b text=0xb4b4 data=0x1098+0x170 0x8+0x2358+0x8+0x1a13
/boot/kernel/snd_uaudio.ko text=0x6680 text=0xa400 data=0x1250+0xc 0x8+0x2100+0x8+0x1bc9
Using DTB provided by EFI at 0x7ef0000.
EFI framebuffer information:
addr, size     0x3e40f000, 0x6d8c00
dimensions     1824 x 984
stride         1824
masks          0x00ff0000, 0x0000ff00, 0x000000ff, 0xff000000
 
 
note: aesni, geom_eli.ko, crypto  These three x86-64 kernel modules should not be loaded for aarch64 , arm64 kernel.  Just comment them out for now, or change "YES" to "NO" for aesni_load="NO".

or 
please don't edit /boot/defaults/loader.conf though, that should not be necessary.  So do edit /boot/loader.conf file


root@rpi-fred4B_Ghost14:~ # date
Sun Dec 10 03:48:05 UTC 2023
root@rpi-fred4B_Ghost14:~ # ghostbsd-version -fkov
14.0-STABLE
1400500
pkg: No packages installed
24.01.1

root@rpi-fred4B_Ghost14:~ #
root@rpi-fred4B_Ghost14:~ # cat /boot/defaults/loader.conf


 
/boot/defaults/loader.conf  file contents need to be left alone.  Just make changes to /boot/loader.conf  file contents need to be edited.

cat /boot/defaults/loader.conf
# This is loader.conf - a file full of useful variables that you can
# set to change the default load behavior of your system. You should
# not edit this file!  Put any overrides into one of the
# loader_conf_files instead and you will be able to update these
# defaults later without spamming your local configuration information.
#
# All arguments must be in double quotes.
#

###  Basic configuration options  ############################
exec="echo Loading /boot/defaults/loader.conf"

kernel="kernel"         # /boot sub-directory containing kernel and modules
bootfile="kernel"       # Kernel name (possibly absolute path)
kernel_options=""       # Flags to be passed to the kernel
loader_conf_files="/boot/device.hints /boot/loader.conf /boot/loader.conf.local"
loader_conf_dirs="/boot/loader.conf.d"
nextboot_conf="/boot/nextboot.conf"
# verbose_loading="NO"            # Set to YES for verbose loader output
verbose_loading="YES"           # Set to YES for verbose loader output

###  Splash screen configuration  ############################
splash_bmp_load="NO"            # Set this to YES for bmp splash screen!
splash_pcx_load="NO"            # Set this to YES for pcx splash screen!
splash_txt_load="NO"            # Set this to YES for TheDraw splash screen!
vesa_load="NO"                  # Set this to YES to load the vesa module
bitmap_load="NO"                # Set this to YES if you want splash screen!
bitmap_name="splash.bmp"        # Set this to the name of the file
bitmap_type="splash_image_data" # and place it on the module_path

###  Screen saver modules  ###################################
# This is best done in rc.conf
screensave_load="NO"            # Set to YES to load a screensaver module
screensave_name="green_saver"   # Set to the name of the screensaver module

###  Early hostid configuration ############################
hostuuid_load="YES"
hostuuid_name="/etc/hostid"
hostuuid_type="hostuuid"

###  Random number generator configuration  ##################
# See rc.conf(5). The entropy_boot_file config variable must agree with the
# settings below.
entropy_cache_load="YES"                # Set this to NO to disable loading
                                        # cached entropy at boot time
entropy_cache_name="/boot/entropy"      # Set this to the name of the file
entropy_cache_type="boot_entropy_cache" # Required for the kernel to find
                                        # the boot-time entropy cache. This
                                        # must not change value even if the
                                        # _name above does change!
entropy_efi_seed="YES"          # Set this to NO to disable loading
                                        # entropy from the UEFI hardware random number generator API

###  RAM Blacklist configuration  ############################
ram_blacklist_load="NO"                 # Set this to YES to load a file
                                        # containing a list of addresses to
                                        # exclude from the running system.
ram_blacklist_name="/boot/blacklist.txt" # Set this to the name of the file
ram_blacklist_type="ram_blacklist"      # Required for the kernel to find
                                        # the blacklist module

###  Microcode loading configuration  ########################
cpu_microcode_load="NO"                 # Set this to YES to load and apply a
                                        # microcode update file during boot.
cpu_microcode_name="/boot/firmware/ucode.bin" # Set this to the microcode
                                              # update file path.
cpu_microcode_type="cpu_microcode"      # Required for the kernel to find
                                        # the microcode update file.

###  ACPI settings  ##########################################
acpi_dsdt_load="NO"             # DSDT Overriding
acpi_dsdt_type="acpi_dsdt"      # Don't change this
acpi_dsdt_name="/boot/acpi_dsdt.aml"
                                # Override DSDT in BIOS by this file
acpi_video_load="NO"            # Load the ACPI video extension driver

###  Audit settings  #########################################
audit_event_load="NO"           # Preload audit_event config
audit_event_name="/etc/security/audit_event"
audit_event_type="etc_security_audit_event"

###  Initial memory disk settings  ###########################
#mdroot_load="YES"              # The "mdroot" prefix is arbitrary.
#mdroot_type="md_image"         # Create md(4) disk at boot.
#mdroot_name="/boot/root.img"   # Path to a file containing the image.
#rootdev="ufs:/dev/md0"         # Set the root filesystem to md(4) device.

###  Loader settings  ########################################
#loader_delay="3"               # Delay in seconds before loading anything.
                                # Default is unset and disabled (no delay).
#autoboot_delay="10"            # Delay in seconds before autobooting,
                                # -1 for no user interrupts, NO to disable
#password=""                    # Prevent changes to boot options
#bootlock_password=""           # Prevent booting (see check-password.4th(8))
#geom_eli_passphrase_prompt="NO" # Prompt for geli(8) passphrase to mount root
bootenv_autolist="YES"          # Auto populate the list of ZFS Boot Environments
#beastie_disable="NO"           # Turn the beastie boot menu on and off
efi_max_resolution="1x1"        # Set the max resolution for EFI loader to use:
                                # 480p, 720p, 1080p, 2160p/4k, 5k, or specify
                                # WidthxHeight (e.g. 1920x1080)
#kernels="kernel kernel.old"    # Kernels to display in the boot menu
kernels_autodetect="YES"        # Auto-detect kernel directories in /boot
#loader_logo="orbbw"            # Desired logo: orbbw, orb, fbsdbw, beastiebw, beastie, none
#comconsole_speed="115200"      # Set the current serial console speed
#console="vidconsole"           # A comma separated list of console(s)
#currdev="disk1s1a"             # Set the current device
module_path="/boot/modules;/boot/dtb;/boot/dtb/overlays"        # Set the module search path
module_blacklist="drm drm2 radeonkms i915kms amdgpu"    # Loader module blacklist
#prompt="\\${interpret}"        # Set the command prompt
#root_disk_unit="0"             # Force the root disk unit number
#rootdev="disk1s1a"             # Set the root filesystem
#dumpdev="disk1s1b"             # Set a dump device early in the boot process
#tftp.blksize="1428"            # Set the RFC 2348 TFTP block size.
                                # If the TFTP server does not support RFC 2348,
                                # the block size is set to 512. Valid: (8,9007)
#twiddle_divisor="16"           # >16 slows down the progress indicator;
                                # <16 speeds up the progress indicator.

###  Kernel settings  ########################################
# The following boot_ variables are enabled by setting them to any value.
# Their presence in the kernel environment (see kenv(1)) has the same
# effect as setting the given boot flag (see boot(8)).
#boot_askname=""        # -a: Prompt the user for the name of the root device
#boot_cdrom=""          # -C: Attempt to mount root file system from CD-ROM
#boot_ddb=""            # -d: Instructs the kernel to start in the DDB debugger
#boot_dfltroot=""       # -r: Use the statically configured root file system
#boot_gdb=""            # -g: Selects gdb-remote mode for the kernel debugger
#boot_multicons=""      # -D: Use multiple consoles
#boot_mute=""           # -m: Mute the console
#boot_pause=""          # -p: Pause after each line during device probing
#boot_serial=""         # -h: Use serial console
#boot_single=""         # -s: Start system in single-user mode
#boot_verbose=""        # -v: Causes extra debugging information to be printed
#init_path="/sbin/init:/sbin/oinit:/sbin/init.bak:/rescue/init"
                        # Sets the list of init candidates
#init_shell="/bin/sh"   # The shell binary used by init(8).
#init_script=""         # Initial script to run by init(8) before chrooting.
#init_chroot=""         # Directory for init(8) to chroot into.

###  Kernel tunables  ########################################
#hw.physmem="1G"                # Limit physical memory. See loader(8)
#kern.dfldsiz=""                # Set the initial data size limit
#kern.dflssiz=""                # Set the initial stack size limit
#kern.hz="100"                  # Set the kernel interval timer rate
#kern.maxbcache=""              # Set the max buffer cache KVA storage
#kern.maxdsiz=""                # Set the max data size
#kern.maxfiles=""               # Set the sys. wide open files limit
#kern.maxproc=""                # Set the maximum # of processes
#kern.maxssiz=""                # Set the max stack size
#kern.maxswzone=""              # Set the max swmeta KVA storage
#kern.maxtsiz=""                # Set the max text size
#kern.maxusers="32"             # Set size of various static tables
#kern.msgbufsize="65536"        # Set size of kernel message buffer
#kern.nbuf=""                   # Set the number of buffer headers
#kern.ncallout=""               # Set the maximum # of timer events
#kern.ngroups="1023"            # Set the maximum # of supplemental groups
#kern.sgrowsiz=""               # Set the amount to grow stack
#kern.cam.boot_delay="10000"    # Delay (in ms) of root mount for CAM bus
                                # registration, useful for USB sticks as root
#kern.cam.scsi_delay="2000"     # Delay (in ms) before probing SCSI
#kern.ipc.maxsockets=""         # Set the maximum number of sockets available
#kern.ipc.nmbclusters=""        # Set the number of mbuf clusters
#kern.ipc.nsfbufs=""            # Set the number of sendfile(2) bufs
#net.inet.tcp.tcbhashsize=""    # Set the value of TCBHASHSIZE
#vfs.root.mountfrom=""          # Specify root partition
#vm.kmem_size=""                # Sets the size of kernel memory (bytes)
#debug.kdb.break_to_debugger="0" # Allow console to break into debugger.
#debug.ktr.cpumask="0xf"        # Bitmask of CPUs to enable KTR on
#debug.ktr.mask="0x1200"        # Bitmask of KTR events to enable
#debug.ktr.verbose="1"          # Enable console dump of KTR events

###  Module loading syntax example  ##########################
#module_load="YES"              # loads module "module"
#module_name="realname"         # uses "realname" instead of "module"
#module_type="type"             # passes "-t type" to load
#module_flags="flags"           # passes "flags" to the module
#module_before="cmd"            # executes "cmd" before loading the module
#module_after="cmd"             # executes "cmd" after loading the module
#module_error="cmd"             # executes "cmd" if load fails

##############################################################
###  GhostBSD defaults              ##########################
##############################################################

# Accept the wifi firmware license
legal.intel_ipw.license_ack=1
legal.intel_iwi.license_ack=1
legal.realtek.license_ack=1

# Show keystokes for passphrases
kern.geom.eli.visible_passphrase=2

# Skip the often slow memory tests in VMs
hw.memtest.tests=0

# don't waste time on probing USB at early boot
hw.usb.no_boot_wait="1"

# Supports most touchpad
hw.psm.synaptics_support="1"

# Load geom support
# crypto_load="YES"
# geom_eli_load="YES"

# Enable hardware crypto
# aesni_load="YES"

# Set ipfw to default accept
net.inet.ip.fw.default_to_accept="1"

# Set the brand/loader logo
loader_brand="ghostbsd"
loader_logo="glogo"
loader_menu_title="Welcome to GhostBSD-ARM64"
#  boot_mute="YES"
boot_mute="NO"

# Speed up boot time
autoboot_delay="5"
root@rpi-fred4B_Ghost14:~ # 
root@rpi-fred4B_Ghost14:~ # netstat -rn4
Routing tables

Internet:
Destination        Gateway            Flags     Netif Expire
default            192.168.1.1        UGS      genet0
127.0.0.1          link#2             UH          lo0
192.168.1.0/24     link#1             U        genet0
192.168.1.7        link#2             UHS         lo0
root@rpi-fred4B_Ghost14:~ #


root@rpi-fred4B_Ghost14:~ # sockstat -4
USER     COMMAND    PID   FD  PROTO  LOCAL ADDRESS         FOREIGN ADDRESS      
root     sshd        1518 4   tcp4   192.168.1.7:22        43.130.62.221:41290
root     sshd        1518 5   udp4   192.168.1.7:33709     192.168.1.1:53
sshd     sshd        1511 4   tcp4   192.168.1.7:22        221.130.59.248:3025
root     sshd        1510 4   tcp4   192.168.1.7:22        221.130.59.248:3025
root     sshd        1333 4   tcp4   *:22                  *:*
root     syslogd     1229 7   udp4   *:514                 *:*
root@rpi-fred4B_Ghost14:~ #

Boot into Single User Mode, first from menu item '2'.   Then issue this command.
mount -u -o rw /
 
Next  edit 2 files on this disc:
  /boot/loader.conf     /etc/rc.conf   leave alone /boot/defaults/loader.conf
 
cat /usr/local/etc/pkg/repos/PersonalBSD.conf
# cat /usr/local/etc/pkg/repos/PersonalBSD.conf
#
# My FreeBSD repo
#
PersonalBSD: {
        url: "http://pkg.personalbsd.org/${ABI}-default",
        priority: 1
        enabled: yes
}
#  root@NanoPC-T6:~ #
cat /usr/local/etc/pkg/repos/FreeBSD.conf
$ cat FreeBSD.conf
# $FreeBSD$
#
# To disable this repository, instead of modifying or removing this file,
# create a /usr/local/etc/pkg/repos/FreeBSD.conf file:
#
#   mkdir -p /usr/local/etc/pkg/repos
#   echo "FreeBSD: { enabled: no }" > /usr/local/etc/pkg/repos/FreeBSD.conf
#

FreeBSD: {
#   url: "pkg+http://pkg.FreeBSD.org/${ABI}/latest",
   url: "http://pkg.FreeBSD.org/${ABI}/latest",
#   url: "pkg+http://pkg.FreeBSD.org/FreeBSD:14:aarch64/latest",
#   url: "http://pkg.FreeBSD.org/FreeBSD:14:aarch64/latest",
  mirror_type: "srv",
  signature_type: "fingerprints",
  fingerprints: "/usr/share/keys/pkg",
  enabled: yes
}

# Echo Method to install package  .conf files and update in this order to set SQL data  to search first GhostBSD, then PersonalBSD, and last FreeBSD repositories
ghostbsd-version -fkov
pkg -d update
pkg -N
pkg search - | wc
cp -p PersonalBSD.conf /usr/local/etc/pkg/repos/
pkg -d update
pkg search - | wc
cp -p FreeBSD.conf /usr/local/etc/pkg/repos/
pkg -d update
pkg search - | wc



Comments

Popular posts from this blog

FreeBSD 14.0 Compiling kernel for Raspberry Pi 4B

HDMI Audio sound patches into GhostBSD source code /usr/ghost14/ghostbsd-src SOLVED Jan20 2024

How to install GhostBSD-Arm64 into a USB Flash Drive stick April 24, 2024 update edition.