FreeBSD 11 Development Desktop on Dell XPS13
Installation
With one exception the installation runs as normal, the one exception is when setting up the wireless interface. When the installation gets to the network configuration step, it will not find any interfaces. To make the interface available follow these steps:
- Press Alt-F4 to go to the installation console.
- kldload if_iwm
- Press Alt-F1 to go back to the installation.
You may need to press enter a few times to cycle through the network configuration steps to get "back" to the interface selection menu, where you should now have iwm as an option and can complete the installation normally.
When the installation is finished, just before rebooting, you will be given the choice to open a console in the new environment, say Yes to this and complete the following:
- echo 'if_iwm_load="YES"' >> /boot/loader.conf
- echo 'iwm7260fw_load="YES"' >> /boot/loader.conf
- exit
It is important that the commands contain TWO '>' signs! Adding only one will overwrite the loader.conf file and your system is likely to fail to boot.
Reboot the system and remember to remove the installation media.
Post-Installation Configuration
FreeBSD comes with sane defaults, but a number of improvements can be made to improve language and hardware support.
Language and Character Set Support
The default locale in FreeBSD is 'C', to change that to English language with UTF-8 encoding do the following:
- vi /etc/login.conf
To make English language with UTF-8 encoding the default, without changing default accounts in the system, change the standard login class. Find the following part of the file.
standard:\ :tc=default: xuser:\
Insert TWO lines to make the text snippet look like this:
standard:\ :charset=UTF-8:\ :lang=en_GB.UTF-8:\ :tc=default: xuser:\
Close the editor and run the following command to create the precompiled version of the login.conf settings, which will be read by the system on startup.
- cap_mkdb /etc/login.conf
Boot Options
There are a number of drivers for hardware in the XPS13 which are not loaded by default, adding these to /boot/loader.conf will load them at boot time. There are also a number of tweaks to kernel settings which can be added. Note that some drivers (modules) and tweaks which will be added elsewhere.
Edit /boot/loader.conf to match the content below. Be aware that the first four lines only apply if running on ZFS.
# Setup ZFS kern.geom.label.disk_ident.enable="0" kern.geom.label.gptid.enable="0" zfs_load="YES" # Load Wireless Interface Driver if_iwm_load="YES" iwm7260fw_load="YES" # Set console hw.vga.textmode=1 # Added userspace character device. cuse_load="YES" # Load AESNI (cryptography) support. aesni_load="YES" # Enable power save for the GPU drm.i915.enable_rc6=7 # Enable hardware performance monitor hwpmc_load="YES" # Disable power throttling to reduce heat at the expense of power. hint.p4tcc.0.disabled="1" hint.acpi_throttle.0.disabled="1" hw.acpi.cpu.cx_lowest="cmax" # Temperature monitor coretemp_load="YES" # Turn off terminal bell kern.vt.enable_bell=0
Mail Aliases
Set an alias for system email.
- vi /etc/aliases
Locate the below line.
root: me@example.com
Replace me@example.com with your email address, save and close the file. Now run the following command to update the alias database.
- newaliases
Software Update
With the basic settings done it's time to make sure our operating system is up-to-date as well as bootstrapping the software manager pkg. These steps require a working internet connection.
- freebsd-update fetch
- Looking up update.FreeBSD.org mirrors... 4 mirrors found.
- Fetching metadata signature for 11.0-RELEASE from update5.freebsd.org... done.
- Fetching metadata index... done.
- Fetching 2 metadata patches.. done.
- Applying metadata patches... done.
- Inspecting system... done.
- Preparing to download files... done.
- Fetching 5 patches... done.
- Applying patches... done.
- freebsd-update install
- Installing updates... done.
- pkg