Difference between revisions of "Convert a FreeBSD System to PC-BSD®/9.2"
|Line 82:||Line 82:|
Revision as of 08:11, 26 December 2013
PC-BSD® utilities dealing with software installation and upgrades use, FreeBSD's Next Generation package management tool. Part of this change included the creation of a custom PC-BSD® package repository which contains all of the packages that can be built using pkgng. FreeBSD users who use pkgng are also welcome to use the PC-BSD® package repository.
This package repository contains a custom package, called pcbsd-base, which can be used to easily convert an existing FreeBSD installation into a PC-BSD® desktop. It also contains a custom package called trueos-base which can be used to convert an existing FreeBSD installation into a TrueOS® server. The converted desktop will contain all of the graphical utilities that come with PC-BSD® and the converted server will contain all of their command line equivalents.
This section describes how to:
- Configure a FreeBSD or PC-BSD® system to use the pkgng repository.
- Convert a FreeBSD system to a PC-BSD® desktop.
- Convert a FreeBSD system to a TrueOS® server.
Switching to the PC-BSD® pkgng Repository
If you are running PC-BSD® 9.2-RELEASE or FreeBSD 9.2 or higher, type pkg in order to automatically install the software that is required. NOTE: PKGNG will need to be version 1.2.x or higher!
Then, run the command pkg2ng to import your existing package database from the old format to the new pkgng format.
Next, configure access to the PC-BSD® repository. Start by creating the file /usr/local/etc/pkg/repos/pcbsd.conf with the following contents:
Next, create the following directories:
mkdir /usr/local/etc/pkg/fingerprints/pcbsd/revoked mkdir /usr/local/etc/pkg/fingerprints/pcbsd/trusted
Now download the repository's fingerprint file, and copy it to /usr/local/etc/pkg/fingerprints/pcbsd/trusted/.
The system is now configured and you now update your packages to the latest versions from the pkgng repository 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. This command differs in usage from the original package format version. You can learn more about how to use this command 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:
rehash pbreg set /PC-BSD/SysType PCBSD pc-extractoverlay desktoppc-extractoverlay ports
Next, reboot the system and the PC-BSD® login manager will start, allowing you to login to the desktop. If you want the PC-BSD® display wizard and first boot wizards to run first, run these commands before rebooting:
touch /var/.pcbsd-firstboottouch /var/.pcbsd-firstgui
Converting FreeBSD to a TrueOS® Server
If you wish to convert a FreeBSD server to TrueOS®, use the following commands:
rehash pbreg set /PC-BSD/SysType TRUEOS pc-extractoverlay serverpc-extractoverlay ports
The installation of the trueos-base package will install the following: PBI Manager, the command line version of warden, and the command line versions of most of the Control Panel utilities. You will find those utilities in /usr/local/bin/pc-*. It also installs .