Turn FreeBSD into PC-BSD®
An existing FreeBSD 10.x installation can be easily converted to either a PC-BSD® desktop or server. This can happen through the installation of a package which is available from the PC-BSD® package repository. The converted desktop will contain all of the graphical utilities that come with PC-BSD®. The converted server will contain all of their command line equivalents.
Switching to the PC-BSD® pkgng Repository
This section demonstrates how to configure a FreeBSD 10.x system to use the PC-BSD® pkgng repository. Once this configuration is complete, you can then convert that FreeBSD system to either a PC-BSD® desktop or a TrueOS® server as described in the next two sections.
Before switching to the PC-BSD® repository, make sure that pkg is installed on the FreeBSD system! If it is not yet installed, you will see the following when you type pkg. Type in y to install it.
The package management tool is not yet installed on your system.Do you want to fetch and install it now? [y/N]: y
If pkg is already installed, you will instead get the error message "not enough arguments" if you just type pkg.
Next, make sure that pkgng is bootstrapped:
Then, disable the FreeBSD package repository:
Now create this directory:
Then, create the file /usr/local/etc/pkg/repos/pcbsd.conf with the following contents. When the repository is used, it will automatically grab the correct package set to match the operating system version.
Next, create the following directories:
Then, download the repository's fingerprint file:
Finally, update the package database and any installed packages using the following command:
Depending upon what is already installed, you may have to resolve some error messages in order to successfully upgrade all packages. To install and delete packages, use the pkg command as described in.
Converting FreeBSD to a PC-BSD® Desktop
Once the repository configuration is complete, it is now easy to convert a FreeBSD system into a PC-BSD® desktop using the following commands as the superuser:
freebsd-update fetch freebsd-update install pkg install -fy pcbsd-base rehash pbreg set /PC-BSD/SysType PCBSD pc-extractoverlay portspc-extractoverlay desktop
Next, reboot the system. The PC-BSD® login manager will start, allowing you to login to the desktop. If you want to set the PC-BSD® display wizard and first boot wizards to run first, run these commands before rebooting:
Converting FreeBSD to a TrueOS® Server
If you wish to convert a FreeBSD server to TrueOS®, install the server package instead, then extract the installed utilities:
rehash pbreg set /PC-BSD/SysType TRUEOS pc-extractoverlay portspc-extractoverlay server
These steps will install the following: [[PBI Manager/en|Translations:PBI Manager/Page display title/en]], the command line version of Warden®, and the command line versions of most of the [[Control Panel/en|Translations:Control Panel/Page display title/en]] utilities. You will find those utilities in /usr/local/bin/pc-*.