bsd:freebsd_16.0_xfce
Table of Contents
Information
- FreeBSD
- CURRENT
- Xfce
- 16.0
- Hailrake = Dell Inspiron 24 5459 AIO 1)
uname -aKU
FreeBSD Hailrake 16.0-CURRENT FreeBSD 16.0-CURRENT main-n290191-02971f200083 GENERIC-NODEBUG amd64 1600028 1600028
TODOs
- Android file transfers with MTP (mount_mtp)
- Disable
Geoclue Demo agentin Xfce start + conf (misc) compat.linuxkpi.skb.mem_limit(info)
sysrc 'ifconfig_ue0'='inet 192.168.1.151 netmask 255.255.255.0'
Download
FreeBSD-16.0-CURRENT-amd64-20261012-3ceb5f150bc1-290063-memstick.img
FreeBSD-16.0-CURRENT-amd64-20261019-041802b362aa-290219-memstick.img
Installation Notes
- Packages
Network
- Manual (
re0) - No IPv6
Partitioning
System Components
[x]base[x]optional
System Configuration
[ ]Everything (nothing checked)
System Hardening
FreeBSD Firmware Installation
[x]Everything
User
- Invite to other groups:
wheel - Shell:
sh
Initial Set-up
Log-in as
root
Time Sync
ntpd -g -q
Update
Firmware
fwget -v
Non-Debug Kernel
Reboot and change kernel (
6at boot loader)
pkg install 'FreeBSD-kernel-generic-nodebug'
uname -a
Xorg
pkg install xorg 'drm-61-kmod'
pw groupmod video -m espionage724
sysrc kld_list+=i915kms
Xfce
pkg install xfce
sysrc dbus_enable=YES
echo '. /usr/local/etc/xdg/xfce4/xinitrc' > /home/espionage724/.xinitrc
chown espionage724:espionage724 /home/espionage724/.xinitrc
Etc
firefox-esrat endexitat end to log-into regular user before reboot
pkg install xdg-user-dirs filezilla firefox-esr
sync && exit
XDG User Dirs
- Ctrl + Alt + Del to reboot
Change kernel (
6at boot loader)
espionage724
xdg-user-dirs-update --force
sync && exit
Login
- Username → Password →
startx
startx
Software
Remove Debug Kernel
su -
pkg remove 'FreeBSD-kernel-generic'
General
2026/10/05:
keepassxc=keepassxc276
su -
pkg install evince-lite filezilla foliate gbrainy gimp keepassxc276 libreoffice mate-calc thunderbird-esr transmission-gtk viewnior vlc thunar-archive-plugin xfce4-screensaver xfce4-screenshooter-plugin xfce4-whiskermenu-plugin xvkbd 7-zip android-tools aria2 cups en-freebsd-doc en-hunspell fastfetch gnome-keyring gstreamer1-plugins-good gstreamer1-plugins-ugly gstreamer1-libav gtk-sharp30 htop libressl mesa-demos mesa-dri mesa-libs noto rsync unar wget xarchiver xrandr yt-dlp
Intel
libva-intel-driver
Games
Tor Browser
tor-browser
Specs
clear && fastfetch && uname -aKU && date
Settings
Groups
su -
pw groupmod 'operator' -m 'espionage724'
pw groupmod 'u2f' -m 'espionage724'
pw groupmod 'audio' -m 'espionage724'
MIME
Documents
gio mime 'text/plain' 'org.xfce.mousepad.desktop' && gio mime 'application/pdf' 'org.gnome.Evince.desktop' && gio mime 'application/epub+zip' 'com.github.johnfactotum.Foliate.desktop'
Images
gio mime 'image/jpeg' 'viewnior.desktop' && gio mime 'image/png' 'viewnior.desktop' && gio mime 'image/bmp' 'viewnior.desktop'
Xfce
Appearance
Desktop
- Menus → Desktop Menu →
[ ]Include applications menu on desktop right click - Menus → Window List Menu →
[ ]Show window list menu on desktop middle click - Toggle Background → Color to
Horizontal gradientand back toSolid color
Power Manager
- Display →
Blank afterandPut to sleep after: Never - Display → Switch off after: 5 minutes
Terminal
xfconf-query --channel 'xfce4-terminal' --property '/font-use-system' --type 'bool' --set 'false' --create && xfconf-query --channel 'xfce4-terminal' --property '/misc-cursor-blinks' --type 'bool' --set 'true' --create && xfconf-query --channel 'xfce4-terminal' --property '/misc-show-unsafe-paste-dialog' --type 'bool' --set 'false' --create && xfconf-query --channel 'xfce4-terminal' --property '/scrolling-lines' --type 'int' --set '10000' --create
Window Manager Tweaks
Accessibility → Key used to grab and move windows 2)
- Accessibility →
[ ]Use mouse wheel on the title bar to roll up the window - Accessibility →
[x]Notify of urgency by making window's decoration blink - Workspaces →
[ ]Use the mouse wheel on the desktop to switch workspaces - Compositor →
[ ]Enable display compositing
Screensaver
- TODO
Settings
xfconf-query --channel 'xsettings' --property '/Xft/DPI' --type 'int' --set '96' --create && xfconf-query --channel 'xfwm4' --property '/general/use_compositing' --type 'bool' --set 'false' --create && xfconf-query --channel 'xfwm4' --property '/general/vblank_mode' --type 'string' --set 'off' --create && xfconf-query --channel 'xfce4-session' --property '/general/SaveOnExit' --type 'bool' --set 'false' --create
Fonts
xfconf-query --channel 'xsettings' --property '/Xft/Antialias' --type 'int' --set '1' --create && xfconf-query --channel 'xsettings' --property '/Xft/HintStyle' --type 'string' --set 'hintnone' --create && xfconf-query --channel 'xsettings' --property '/Xft/Hinting' --type 'int' --set '0' --create && xfconf-query --channel 'xsettings' --property '/Xft/RGBA' --type 'string' --set 'none' --create
Hostname
su -
echo '127.0.0.1 Hailrake' | tee -a '/etc/hosts' > '/dev/null'
Keyboard
Behavior
xfconf-query --channel 'keyboards' --property '/Default/KeyRepeat/Delay' --type 'int' --set '400' --create && xfconf-query --channel 'keyboards' --property '/Default/KeyRepeat/Rate' --type 'int' --set '30' --create
Shortcuts
xfce4-keyboard-settings
'/bin/sh' -c "'/usr/local/bin/secret-tool' lookup 'keepass' 'default' | LIBGL_ALWAYS_SOFTWARE='1' '/usr/local/bin/keepassxc' --pw-stdin ~/'Documents/keepass.kdbx'"
'/bin/sh' -c "'/usr/local/bin/xfce4-terminal' -T 'FreeBSD Updater' -I '/boot/images/freebsd-logo-rev.png' --working-directory='/tmp' -x su 'root' -c ~/'.local/scripts/freebsd-updater.sh'"
xfconf-query
xfconf-query --channel 'xfce4-keyboard-shortcuts' --property '/commands/custom/Super_L' --type 'string' --set "'/usr/local/bin/xfce4-popup-whiskermenu'" --create && xfconf-query --channel 'xfce4-keyboard-shortcuts' --property '/commands/custom/AudioRaiseVolume' --type 'string' --set "'/usr/sbin/mixer' 'vol'='+5%'" --create && xfconf-query --channel 'xfce4-keyboard-shortcuts' --property '/commands/custom/AudioLowerVolume' --type 'string' --set "'/usr/sbin/mixer' 'vol'='-5%'" --create && xfconf-query --channel 'xfce4-keyboard-shortcuts' --property '/commands/custom/AudioMute' --type 'string' --set "'/usr/sbin/mixer' 'vol'.'mute'='toggle'" --create
Backlight
xfconf-query --channel 'xfce4-keyboard-shortcuts' --property '/commands/custom/MonBrightnessUp' --type 'string' --set "'/usr/bin/backlight' incr '10'" --create && xfconf-query --channel 'xfce4-keyboard-shortcuts' --property '/commands/custom/MonBrightnessDown' --type 'string' --set "'/usr/bin/backlight' decr '10'" --create
EFI Loader
su -
efibootmgr -v
efibootmgr --delete --bootnum 0001
efibootmgr --create --activate --loader '/boot/efi/EFI/freebsd/loader.efi' --label 'FreeBSD' --set-timeout '0'
loader.conf
Hailrake
sysctl -a | grep 'kern.hz'
su -
ee '/boot/loader.conf'
machdep.max_ldt_segment="2048" autoboot_delay="2" kernel="kernel.GENERIC-NODEBUG" efi_max_resolution="1920x1080" kern.hz="137438" kern.eventtimer.periodic="1" kern.eventtimer.idletick="1" kern.sched.name="4BSD" machdep.max_ldt_segment="2048" hw.acpi.video.lcd0.fullpower="100" hw.dri.poll="0" compat.linuxkpi.drm_edid_fixup="0" compat.linuxkpi.drm_vblankoffdelay="-1" compat.linuxkpi.skb.mem_limit="1" hw.i915kms.modeset="1" hw.i915kms.nuclear_pageflip="0" hw.i915kms.fastboot="0" hw.i915kms.enable_psr="0" hw.i915kms.enable_psr2_sel_fetch="0" hw.i915kms.panel_use_ssc="0" hw.i915kms.enable_ips="0" hw.i915kms.enable_fbc="0" hw.i915kms.enable_dc="0" hw.i915kms.disable_power_well="0" hw.i915kms.enable_guc="0" hw.i915kms.guc_log_level="0" hw.i915kms.verbose_state_checks="0" hw.i915kms.error_capture="0" hw.i915kms.request_timeout_ms="0" hw.i915kms.enable_hangcheck="0" compat.linuxkpi.iwlwifi_mld_power_scheme="1" compat.linuxkpi.iwlwifi_mvm_power_scheme="1" compat.linuxkpi.iwlwifi_disable_11be="0" compat.linuxkpi.iwlwifi_disable_11ax="0" compat.linuxkpi.iwlwifi_led_mode="3" compat.linuxkpi.iwlwifi_bt_coex_active="0"
Other
hw.syscons.disable="1" hw.vga.textmode="1" speaker_load="YES" kern.vt.enable_bell="1"
Wine
- 2026/10/05:
machdep.max_ldt_segmentfixed WC3 installer 4BSDseems to fix WC3 audio-stutter (uleshouldn't affect)
kern.sched.name="4BSD" kern.sched.ule.preempt_thresh="224" machdep.max_ldt_segment="2048"
rc.conf
Spinesnap
Hailrake
su -
sysrc ifconfig_re0+="tso -wol"
ee '/etc/rc.conf'
clear_tmp_enable="YES" syslogd_flags="-ss" hostname="Hailrake" ifconfig_re0="inet 192.168.1.150 netmask 255.255.255.0 tso -wol" defaultrouter="192.168.1.1" moused_nondefault_enable="NO" dumpdev="NO" kld_list="i915kms acpi_video" dbus_enable="YES" webcamd_enable="YES"
sysctl.conf
Spinesnap
hw.snd.default_unit=2sets HDMI audio default 3)
su -
ee '/etc/sysctl.conf'
machdep.idle="hlt" machdep.idle_mwait="0" dev.hwpstate_intel.0.epp="0" kern.coredump="0" machdep.mitigations.flush_rsb_ctxsw="0" machdep.mitigations.rngds.enable="0"
Hailrake
hw.snd.default_unit=1sets Line-in (rear) audio default
su -
ee '/etc/sysctl.conf'
machdep.mitigations.zenbleed.enable="0" machdep.mitigations.rngds.enable="0" machdep.mitigations.flush_rsb_ctxsw="0" machdep.idle="hlt" machdep.idle_mwait="0" dev.hwpstate_intel.0.epp="0" kern.coredump="0" kern.sched.4bsd.ipiwakeup.enabled="0" kern.sched.4bsd.ipiwakeup.useloop="1" kern.sched.4bsd.ipiwakeup.usemask="0" hw.snd.default_unit="1" hw.snd.latency_profile="0" hw.snd.latency="2" dev.re.0.int_rx_mod="0"
device.hints
Spinesnap
- For built-in speaker and 3.5mm headphone jack auto-switch
su -
ee '/boot/device.hints'
hint.hdac.0.cad0.nid20.config="as=1 seq=0" hint.hdac.0.cad0.nid33.config="as=1 seq=15 device=Headphones"
Backlight
- Also enables side-buttons Hailrake
su -
sysrc kld_list+="acpi_video"
Printer
CUPS
su - root -c 'service cupsd onestart'
su - root -c 'service cupsd onestop'
Printer
- Log-in as regular user (not
root)
- Internet Printing Protocol (ipp)
- HP
- IPP Everywhere ™
- Output Mode: DeviceGray
- Duplex: DuplexNoTumble 4)
ipp://192.168.1.164/ipp/print
Kole
KeePassXC
Settings
- General → [ ] Load previous databases on startup
- Security → [x] Use DuckDuckGo service to download website icons
Database Password on Keyring
'/usr/local/bin/secret-tool' store --label='KeePass' 'keepass' 'default'
Xorg
xvkbd
'/usr/local/bin/xvkbd' -geometry '900'x'280' -no-sync -no-jump-pointer -no-back-pointer -secure
ln -s -f '/dev/null' ~/'.xvkbd.words'
Drive Maintenance
UFS
Boot to Single User (
2at boot loader)exitat end to continue boot
fsck_ffs -E -f -R -r -z -y /
Script
su -
ee '/ufs-m.sh' && chmod +x '/ufs-m.sh'
#!/bin/sh cd '/tmp' '/sbin/fsck_ffs' -E -f -R -r -z -y '/' # End
/ufs-m.sh
Tweaks
General
2026/10/14:
MESA_NO_ERROR=1caused WC3 and WoW to crash on-start
su -
ee '/usr/local/etc/profile.d/general-tweaks.sh'
# General export LD_BIND_NOW='1' export HISTFILE='' # Mozilla export MOZ_CRASHREPORTER_DISABLE='1' export MOZ_USE_XINPUT2='1' # GTK export GDK_DEBUG='gl-prefer-gl' export GDK_RENDERING='image' export GSK_RENDERER='cairo' export GTK_A11Y='none' export NO_AT_BRIDGE='1' export GTK_OVERLAY_SCROLLING='0' # Intel export ANV_NO_GPL='1' export anv_disable_link_time_optimization='true' export ANV_QUEUE_OVERRIDE='c=0,b=0' export INTEL_DEBUG='noccs,noccs-modifier' export MESA_GL_VERSION_OVERRIDE='4.6COMPAT' export force_guc_low_latency='false' export allow_compressed_fallback='true' # Mesa export MESA_DEBUG='silent' #export MESA_NO_ERROR='1' export mesa_glthread='false' export vblank_mode='0' export MESA_VK_WSI_PRESENT_MODE='immediate' export allow_higher_compat_version='true' export block_on_depleted_buffers='true' export disable_throttling='true' export force_integer_tex_nearest='true' export vk_wsi_force_bgra8_unorm_first='true' export vk_x11_ignore_suboptimal='true' export vk_xwayland_wait_ready='false' # Shader Cache export MESA_SHADER_CACHE_DISABLE='false' export MESA_SHADER_CACHE_MAX_SIZE='10G' export MESA_DISK_CACHE_SINGLE_FILE='1' export MESA_DISK_CACHE_MULTI_FILE='0' export MESA_DISK_CACHE_DATABASE='0' export MESA_DISK_CACHE_COMBINE_RW_WITH_RO_FOZ='1' # End
jemalloc
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'
fstab
su -
ee '/etc/fstab'
UFS
,noatime
EFI
,noatime
UFS
Boot to Single User (
2at boot loader)exitat end to continue boot
tunefs -j disable /
tunefs -J disable /
tunefs -n disable /
tunefs -t enable /
tunefs -o time /
Script
su -
ee '/ufs-tweaks.sh' && chmod +x '/ufs-tweaks.sh'
#!/bin/sh cd '/tmp' '/sbin/tunefs' -j disable '/' '/sbin/tunefs' -J disable '/' '/sbin/tunefs' -n disable '/' '/sbin/tunefs' -t enable '/' '/sbin/tunefs' -o time '/' # End
/ufs-tweaks.sh
Clean-up
su -
rm -fv '/ufs-tweaks.sh'
Check
tunefs -p '/'
Firefox
- Also Thunderbird
sndio
Install
su -
pkg install 'sndio'
Autostart
[ ]PulseAudio Sound System- Trigger:
on login
xfce4-session-settings
'/usr/local/bin/sndiod'
Firefox
- String
about:config
media.cubeb.backend
sndio
xrandr
Hailrake
- Trigger:
on login
xfce4-session-settings
'/usr/local/bin/xrandr' --output 'eDP-1' --set 'scaling mode' 'Full aspect' --set 'Colorspace' 'RGB_Wide_Gamut_Floating_Point' --set 'max bpc' '12' --set 'Broadcast RGB' 'Full'
Scripts
Updater
mkdir -p ~/'.local/scripts' && ee ~/'.local/scripts/freebsd-updater.sh' && chmod +x ~/'.local/scripts/freebsd-updater.sh'
#!/bin/sh cd '/tmp' '/usr/sbin/ntpd' -g -q > '/dev/null' '/usr/sbin/pkg' update -f '/usr/sbin/pkg' upgrade '/usr/sbin/pkg' autoremove '/usr/sbin/pkg' clean -a -q -y '/usr/local/bin/rsync' -a --no-times --checksum --checksum-choice='sha1' '/boot/loader.efi' '/boot/efi/EFI/freebsd/loader.efi' '/usr/local/bin/rsync' -a --no-times --checksum --checksum-choice='sha1' '/boot/loader.efi' '/boot/efi/EFI/boot/bootx64.efi' '/usr/sbin/fwget' -v '/usr/sbin/newsyslog' -CC -F -a '/tmp' '/bin/rm' -f '/var/log/'*'.old' '/var/log/'*'.0' '/var/log/'*'.bz2' '/usr/bin/su' $USER -c "'/bin/rm' -Rf ~/'.cache/mesa_shader_cache/'* ~/'.cache/thumbnails/'* ~/'.cache/mozilla/firefox/'* ~/'.cache/thunderbird/'*" '/bin/sync' read -p 'Done. Press Enter to exit.' 'x' '/bin/sleep' '2' # End
su 'root' -c ~/'.local/scripts/freebsd-updater.sh'
Notable Folders and Commands
- See misc
xrefresh
Sound TODO
mixer -f '/dev/mixer0' 'rec'.'mute'='on' mixer -f '/dev/mixer0' 'rec'='0' mixer -f '/dev/mixer0' 'monitor'.'mute'='on' mixer -f '/dev/mixer0' 'monitor'='0'
/srv/www/wiki/data/pages/bsd/freebsd_16.0_xfce.txt · Last modified: by Sean Rhone