bsd:server:freebsd_15.1
This is an old revision of the document!
Table of Contents
Information
- FreeBSD 1)
- 15.1
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
FreeBSD-15.0-STABLE-amd64-20260416-e4f02a72f7f6-283007-memstick.img
Installation Notes
- Packages (Tech Preview)
Partitioning
- Auto (UFS)
- MBR
DEVICE MAJ:MIN SIZE TYPE LABEL MOUNT
ada0 0:111 466G MBR - -
<FREE> -:- 512 - - -
ada0s1 0:113 466G BSD gpt/freebsd -
ada0s1a 0:117 462G freebsd-ufs - /
ada0s1b 0:119 4G freebsd-swap - SWAP
System Components
[x]base[x]optional
System Configuration
[x]sshd[x]powerd
System Hardening
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
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
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'
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
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 misc
/usr/local/www/wiki/data/attic/bsd/server/freebsd_15.1.1776801659.txt.gz · Last modified: by Sean Rhone
