After minimizing the installation of FreeBSD, in order to allow the system to support the kernel and use the Ports installation application, run the system configuration program to install kernel compilation support and ports.
First log in as root, run
# / stand / sysinstall
After the system configuration interface, after select Configure, the FreeBSD Configuration Menu appears, then select Distributions, "Select the Distributions You Wish To Install window, select SYS and PORTS, install (Slightly Details).
After the installation is complete, go to the kernel file directory:
#CD / USR / SRC / SYS / I386 / CONF
Find generic, I copied a copy, renamed mykernel, edit the kernel file, novice can use EE to edit, I don't really like Vi (because I am not familiar with operation, rookie ^ ^)
#ee mykernel
When the kernel file is configured, find Ident Generic, modify generic to your kernel file name, my bekernel, is ident mykernel, other configurations are added or deleted according to their needs. Specific configuration details, you can refer to the online information (the kernel file is too long, I am lazy ... ^ _ ^)
After configuring, compile and install the new kernel
# / usr / sbin / config mykernel // mykernel is your kernel file name
After the end, you prompt you to generate the kernel file path to switch to this directory.
#make depend
This takes a period of time, after completion.
#make
#make install
Restart FreeBSD
#reboot