FreeBSD Installation & Config Guide
Step 1: Base Installation
- Download the FreeBSD ISO from the official page.
- Boot the installer and follow the standard "next-next" prompts to configure your disks and network.
- Add a standard user to the
wheelgroup during the post-install prompt, or run:adduser
Step 2: System Update & Graphics Drivers
- Ensure your package repository is up to date:
pkg upg - Identify your graphics hardware:
pciconf -lv | grep -B4 VGA - Install the DRM kernel modules (assuming Intel
i915kms):pkg install drm-kmod sysrc kld_list+=i915kms
Step 3: Desktop Environment (KDE)
- Install Xorg, KDE, and essential drivers/utilities using
pkg:pkg install libva-intel-driver mesa-libs mesa-dri pkg install --quiet --yes kde5 plasma5-sddm-kcm sddm xorg pkg install xf86-video-intel konsole dolphin falkon fastfetch htop - Enable required services to start on boot:
sysrc dbus_enable+="YES" && service dbus start sysrc sddm_enable+="YES" && service sddm start - Configure your local
.xinitrcand shell aliases:echo "exec startkde5" > ~/.xinitrc echo "alias ls='ls -alrt --color=auto'" > /etc/profile.d/shaliases.sh . /etc/profile.d/shaliases.sh
Step 4: Linux Compatibility Layer
- Enable the Linux subsystem to run compatible binaries:
sysrc kld_list+=linux sysrc kld_list+=linux64 sysrc linux_enable="YES"
Step 5: Hardware Configurations (Xorg & Polkit)
- Create the Intel Xorg configuration at
/usr/local/etc/X11/xorg.conf.d/20-intel.conf:Section "Device" Identifier "Card0" Driver "intel" EndSection - Create the Monitor configuration at
/usr/local/etc/X11/xorg.conf.d/10-monitor.conf:Section "Screen" Identifier "Screen0" Device "Card0" SubSection "Display" Modes "1024x768" EndSubSection EndSection - Grant the
wheelgroup admin permissions by creating/usr/local/etc/polkit-1/rules.d/40-wheel-group.rules:polkit.addRule(function(action, subject) { if (subject.isInGroup("wheel")) { return polkit.Result.YES; } });
Step 6: Fonts & Display Manager (Ly)
- Install and configure URW fonts:
Add the following topkg install urwfonts mkfontscale/usr/local/etc/X11/xorg.conf.d/90-fonts.conf:Section "Files" FontPath "/usr/local/share/fonts/urwfonts/" EndSection - Install the
lydisplay manager:pkg install ly - Add the configuration hints to
/etc/gettytab:Ly:\ :lo=/usr/local/bin/ly:\ :al=root: - Modify the
ttyv1line in/etc/ttysto match this:ttyv1 "/usr/libexec/getty Ly" xterm onifexists secure - Reboot your system to apply all changes:
reboot