====== Information ======
* FreeBSD ((https://www.freebsd.org/))
* 15.1
* Alira = Dell Precision M6500 ((Legacy/MBR))
* 2026/03/04: [[https://bsd-hardware.info/?probe=3f1d390265|hw-probe]]
uname -aKU
ssh '192.168.1.152' -T 'uname -aKU'
FreeBSD Alira 15.1-PRERELEASE FreeBSD 15.1-PRERELEASE stable/15-n283063-43caeea1eac8 GENERIC amd64 1500507 1500507
====== Download ======
* https://download.freebsd.org/snapshots/amd64/amd64/ISO-IMAGES/15.0/
FreeBSD-15.0-STABLE-amd64-20260416-e4f02a72f7f6-283007-memstick.img
====== Installation Notes ======
* Packages (Tech Preview)
===== Partitioning =====
* https://docs.freebsd.org/en/books/handbook/bsdinstall/#bsdinstall-partitioning
* Auto (UFS)
* MBR
DEVICE MAJ:MIN SIZE TYPE LABEL MOUNT
ada0 0:111 466G MBR - -
-:- 512 - - -
ada0s1 0:113 466G BSD gpt/freebsd -
ada0s1a 0:117 462G freebsd-ufs - /
ada0s1b 0:119 4G freebsd-swap - SWAP
===== System Components =====
* https://docs.freebsd.org/en/books/handbook/bsdinstall/#bsdinstall-components
* ''[x]'' base
* ''[x]'' optional
===== System Configuration =====
* https://docs.freebsd.org/en/books/handbook/bsdinstall/#bsdinstall-sysconf
* ''[x]'' sshd
* ''[x]'' powerd
===== System Hardening =====
* https://docs.freebsd.org/en/books/handbook/bsdinstall/#bsdinstall-hardening
* ''[x]'' Everything
===== User =====
* Invite to other groups: ''wheel''
* Shell: ''sh''
===== Network =====
* Manual Ethernet (''bge0'')
* Static IPv4
* No IPv6
====== Initial Set-up ======
* Continue from ''ssh''
===== Time Sync =====
su -
ntpd -g -q
===== Update =====
su -
pkg update -f
pkg upgrade
sync && shutdown -r 'now'
====== Software ======
===== General =====
su -
pkg install en-freebsd-doc htop libressl
===== Specs =====
* [[bsd:notes:misc#hw-probe]]
fastfetch lsblk
clear && fastfetch -l 'freebsd_small' && uname -aKU && date
ssh '192.168.1.152' -t 'clear && fastfetch -l 'freebsd_small' && uname -aKU && date'
===== Non-Debug Kernel =====
* [[https://man.freebsd.org/cgi/man.cgi?query=malloc.conf&apropos=0&sektion=0&manpath=FreeBSD+16.0-CURRENT&format=html|malloc.conf]]
su -
echo 'abort:false,confirm_conf:false,abort_conf:false,percpu_arena:phycpu,dirty_decay_ms:-1,muzzy_decay_ms:-1,stats_print:false,junk:false,zero:false,utrace:false,xmalloc:false,zero_realloc:free,trust_madvise:true,retain:true' | tee '/etc/malloc.conf' > '/dev/null'
====== Settings ======
===== loader.conf =====
==== Alira ====
su -
ee '/boot/loader.conf'
console="nullconsole"
autoboot_delay="1"
hw.bge.allow_asf="0"
==== Default ====
****
security.bsd.allow_destructive_dtrace=0
===== rc.conf =====
==== Alira ====
su -
ee '/etc/rc.conf'
clear_tmp_enable="YES"
syslogd_flags="-ss"
hostname="Alira"
ifconfig_bge0="inet 192.168.1.152 netmask 255.255.255.0"
defaultrouter="192.168.1.1"
sshd_enable="YES"
powerd_enable="YES"
moused_nondefault_enable="NO"
# Set dumpdev to "AUTO" to enable crash dumps, "NO" to disable
dumpdev="NO"
nginx_enable="YES"
php_fpm_enable="YES"
vsftpd_enable="YES"
mysql_enable="YES"
===== Drive Maintenance =====
==== UFS ====
* TODO
====== Scripts ======
===== Updater =====
* [[servers:bsd:vsftpd]] ((''service'' can be included and ran in script before install))
* :!: Following few commands are done from regular user and **not** ''root''
exit
mkdir -p ~/'.local/scripts' && ee ~/'.local/scripts/freebsd-updater.sh' && chmod +x ~/'.local/scripts/freebsd-updater.sh'
#!/bin/sh
'/usr/sbin/ntpd' -g -q > '/dev/null'
'/usr/sbin/pkg' update -f
'/usr/sbin/pkg' upgrade -y
'/usr/sbin/pkg' autoremove -y
'/usr/sbin/service' 'vsftpd' stop
'/bin/sync'
'/sbin/shutdown' -r 'now' 'FreeBSD OS Updater'
# End
su 'root' -c ~/'.local/scripts/freebsd-updater.sh'
ssh '192.168.1.152' -t "su 'root' -c ~/'.local/scripts/freebsd-updater.sh'"
====== cron ======
===== Updater =====
* Daily ''06:00:00 AM'' (Alira)
su -
ee '/etc/cron.d/freebsd-updater'
#
SHELL=/bin/sh
0 6 * * * root '/home/espionage724/.local/scripts/freebsd-updater.sh'
# End
====== Notable Folders and Commands ======
* See [[bsd;notes;misc]]