đģ FreeBSD Installation
This page was created before 2022
Please refer to the FreeBSD Handbook for up to date installation instructions
user:
rootpassword:
[automatic login]
Boot into the installed system before completing any of the following!
Full installation is covered via FreeBSD Handbook linked above
vim /etc/rc.conf-- ifconfig_em0="DHCP" -- ifconfig_em0_ipv6="inet6 accept_rtadv" ++ wlans_ath0="wlan0" ++ ifconfig_wlan0="WPA SYNCDHCP"ifconfig wlan0 create wlandev ath0ifconfig wlan0 up scanvim /etc/wpa_supplicant.confnetwork={ ssid="myssid" psk="mypsk" }service netif restart
- If using
zfswith < 8GB RAM perhaps install in chunks
e.g. i3WM
pkg install p5-File-Locate vim neofetch py36-ranger w3m-img wget git firefox zsh bash compton redshift bspwm polybar unclutter nitrogen feh musicpd ncmpcpp mpv xorg xinput xf86-input-synaptics xf86-video-ati rxvt-unicode xarchiver thunar thunar-archive-plugin lxde-common lxde-icon-theme lxde-meta subversion gtk-arc-themes slim slim-freebsd-themes sudo htop dbus py27-glances vlc tmux fortune-mod-futurama cowsay sxiv xsel xdg-user-dirs alsa-utils pulseaudio hack-font
- xfce-(current meta package–.e.g. xfce-4.12_1) thunar-(plugins–also don’t forget to search for: freebsd | grep wallpapers) xfce(v)-power-manager alsa-utils pulseaudio xfce(v)-volumed-pulse xfce(v)-pulseaudio-plugin xfce(v)-notifyd xfce(v)-clipman-plugin plank
mate gnome3 vim sudo sxiv htop neofetch w3m py27-ranger cmake automake gcc wget git subversion papirus-icon-theme freebsd-8k-wallpapers firefox mpv vlc yank xsel xf86-input-synaptics xf86-video-ati xdg-user-dirs drm-kmod
xdg-user-dirs-update
FreeBSD / Docs: Chapter 4. Installing Applications: Packages and Ports
Keyboard driven open source web browser
sudov /boot/loader.conf++ hw.psm.synaptics_support="1"sudov /etc/sysctl.conf++ hw.psm.synaptics.vscroll_hor_area=1300 ++ hw.psm.synaptics.min_pressure: 16 ++ hw.psm.synaptics.max_pressure: 220 ++ hw.psm.synaptics.max_width: 10 ++ hw.psm.synaptics.weight_current: 3 ++ hw.psm.synaptics.weight_previous: 6 ++ hw.psm.synaptics.weight_previous_na: 20 ++ hw.psm.synaptics.weight_len_squared: 2000
sudov /boot/loader.conf++ vm.kmem_size="330M" ++ vm.kmem_size_max="330M" ++ vfs.zfs.arc_max="40M" ++ vfs.zfs.vdev.cache.size="5M"
Solution screen tearing with older Radeon cards
Defaults for Acer 5515 laptops
vim /usr/local/etc/X11/xorg.conf.d/driver-radeon.confSection "Device" Identifier "Card0" Driver "radeon" Option "TearFree" "on" EndSectionvim /etc/rc.conf++ kld_list="radeonkms" ++ kld_list="/boot/modules/radeonkms.ko"xorg -configureX -config /root/xorg.conf.newto checksudo pw usermod user -G video
/usr/libexec/locate.updatedbStores file names in a globally accessible database
vim /etc/login.conf-- :umask=022: ++ :umask=022:\ ++ :charset=UTF-8:\ ++ :lang=en_US.UTF-8:cap_mkdb /etc/login.confverify with
localemkdir /usr/local/share/fonts/usercd /usr/local/share/fonts/userwget https://raw.githubusercontent.com/NerdyPepper/scientifica/master/regular/scientifica-11.bdfScientifica Bitmap font
wget https://raw.githubusercontent.com/csmertx/siji/master/bdf/siji.bdfSiji font for symbols and extended unicode characters
vim /etc/X11/xorg.confJust in case
++ Section "Files" ++ FontPath "/usr/local/share/fonts/user" ++ EndSection
cd /usr/local/share/iconssvn checkout https://github.com/KDE/breeze/trunk/cursors/Breeze_Snowsvn checkout https://github.com/KDE/breeze/trunk/cursors/BreezecpormovedirBreeze/cursorsinto/usr/local/share/icons/Breeze_rm -rfdirBreezeRename
Breeze_toBreeze
wget -qO- https://raw.githubusercontent.com/PapirusDevelopmentTeam/papirus-icon-theme/master/install.sh | env DESTDIR="/usr/local/share/icons" sh
vim /usr/local/etc/sudoers-- # %wheel ALL=(ALL) ALL ++ %wheel ALL=(ALL) ALL
vim /etc/defaults++ user ALL=(ALL) NOPASSWD: /sbin/reboot, /sbin/shutdown, /sbin/haltUse sudo before executing reboot, shutdown, or halt
Enable system services including Slim display manager
vim /etc/rc.conf++ ath_enable="YES" ++ dbus_enable="YES" ++ hald_enable="YES" ++ slim_enable="YES"
ls /usr/local/share/slim/themesfind a theme
vim /usr/local/etc/slim.confEdit theme
vim ../themes/theme/slim.themeChange *_x values as needed (dual/multi monitor)
vim ~/.xinitrc> Use LXDE.desktop as template for bspwm (or other tiling WMs like i3WM)cp /usr/local/share/xsessions/LXDE.desktopto/bspwm.desktopvim /usr/local/share/xsessions/bspwm.desktop-- Name=LXDE ++ Name=bspwm -- Exec=/usr/local/bin/lxde ++ Exec=/usr/local/bin/bspwmFor
GNOMEtry/usr/local/bin/gnome-session
Instructions specifically for use with Ranger File Manager
sudoPCManFM for GUI
sudo ranger /usr/local/share/slim/themesyycopy dir/usr/local/share/slim/themes/defaultpppaste dir/usr/local/share/slim/themes/default_dDtrash/usr/local/share/slim/themes/default/*yycopy/usr/local/share/slim/themes/freebsd-simple/*pppaste/usr/local/share/slim/themes/freebsd-simplecwrenamefreebsd-simpletodefault
hack 9fontTerminal size:
85x29See Xresources for
URxvt,xtermor other terminal emulators
chsh -s /usr/local/bin/zsh $USER
Download the tar file from the local cloud to complete the setup
I’m going to leave this here, but I think this was specific to a machine I used in 2018
Escape to loader prompt
Don’t Panic
showRefresher of
/boot/loader.conf&/boot/device.hintssetthat onerandom.optionfrom.internet.0.disable=0And you’ll be saved