{{NavHeader|back=Install a Server |forward=Using a Rolling Release|custompagename=Convert a FreeBSD System to PC-BSD{{R}}|custompagecategory=Convert a FreeBSD System to PC-BSD{{RM}}}}</noinclude>

−

Beginning in February, 2013, the PC-BSD® utilities dealing with software installation and upgrades were converted to [https://wiki.freebsd.org/pkgng pkgng], 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. Since the FreeBSD project does not yet have an official pkgng repository, FreeBSD users who wish to use pkgng are welcome to use the PC-BSD® package repository.

+

<!--T:29-->

+

PC-BSD® utilities dealing with software installation and upgrades use {{citelink|fbsdh|url=pkgng-intro.html|txt=pkgng}}, 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 also contains a custom package which can be used to easily convert an existing FreeBSD installation into either a PC-BSD® desktop or 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.

+

<!--T:30-->

+

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.

+

<!--T:31-->

This section describes how to:

This section describes how to:

+

<!--T:32-->

* Configure a FreeBSD or PC-BSD® system to use the pkgng repository.

* Configure a FreeBSD or PC-BSD® system to use the pkgng repository.

+

<!--T:33-->

* Convert a FreeBSD system to a PC-BSD® desktop.

* Convert a FreeBSD system to a PC-BSD® desktop.

+

<!--T:34-->

* Convert a FreeBSD system to a TrueOS® server.

* Convert a FreeBSD system to a TrueOS® server.

−

== Switching to the PC-BSD® pkgng Repository == <!--T:5-->

+

== Switching to the PC-BSD{{R}} pkgng Repository == <!--T:5-->

<!--T:6-->

<!--T:6-->

−

If you are running PC-BSD® 9.1-RELEASE or FreeBSD 9.1, you will need to first install the [http://www.freshports.org/ports-mgmt/pkg/ ports-mgmt/pkg] port or package.

+

If you are running PC-BSD® 9.1-RELEASE or FreeBSD 9.1 or higher, type '''pkg''' in order to automatically install the software that is required.

<!--T:7-->

<!--T:7-->

−

After installing pkg, run the command '''pkg2ng''' to import your existing package database from the old format to the new pkgng format.

+

Then, run the command '''pkg2ng''' to import your existing package database from the old format to the new pkgng format.

<!--T:8-->

<!--T:8-->

Next, configure access to the PC-BSD® repository. Start by creating the file ''/usr/local/etc/pkg.conf'' with the following contents:

Next, configure access to the PC-BSD® repository. Start by creating the file ''/usr/local/etc/pkg.conf'' with the following contents:

Note that the ''packagesite:'' variable should be changed to a PC-BSD® mirror close to your geographic location. Additionally, ''9.1-RELEASE'' and ''amd64'' can be changed to indicate the release version and architecture you want to use. Click [http://www.pcbsd.org/getmirrors.php?url=packages here] to get a list of the available mirrors and package sets.

<!--T:11-->

<!--T:11-->

−

Next, download the repository's [http://trac.pcbsd.org/export/21629/pcbsd/current/src-sh/pc-extractoverlay/desktop-overlay/usr/local/etc/pkg-pubkey.cert public key cert file], and copy it to ''/usr/local/etc/pkg-pubkey.cert''.

+

Next, download the repository's {{citelink|url=http://trac.pcbsd.org/export/780f3da562b72643c04b47a59d277102a09abbca/src-sh/pc-extractoverlay/desktop-overlay/usr/local/etc/pkg-pubkey.cert|txt=public key cert file}}, and copy it to ''/usr/local/etc/pkg-pubkey.cert''.

<!--T:12-->

<!--T:12-->

Line 41:

Line 45:

<!--T:13-->

<!--T:13-->

−

{{txtbox|box={{pound}} '''pkg upgrade -fy'''}}

+

{{txtbox|box= '''pkg upgrade -fy'''{{nbsp|65}}}}

<!--T:14-->

<!--T:14-->

Line 47:

Line 51:

<!--T:15-->

<!--T:15-->

−

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 [http://www.freebsd.org/doc/en_US.ISO8859-1/books/handbook/pkgng-intro.html Section 5.5.3 of the FreeBSD Handbook].

+

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 {{citelink|fbsdh|url=pkgng-intro.html|txt=Section 5.5.3 of the FreeBSD Handbook}}.

−

== Converting to PC-BSD == <!--T:16-->

+

== Converting FreeBSD to a PC-BSD{{R}} Desktop == <!--T:16-->

<!--T:17-->

<!--T:17-->

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:

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:

−

<!--T:18-->

+

<!--T:36-->

−

{{txtbox|box={{pound}} '''pkg install -fy pcbsd-base'''

+

{{txtbox|box= '''pkg install -fy pcbsd-base'''{{nbsp|54}}

'''rehash'''

'''rehash'''

'''pbreg set /PC-BSD/SysType PCBSD'''

'''pbreg set /PC-BSD/SysType PCBSD'''

Line 61:

Line 65:

'''pc-extractoverlay ports'''}}

'''pc-extractoverlay ports'''}}

−

<!--T:19-->

+

<!--T:37-->

−

With these commands finished, you can now reboot and the GDM login manager will be started automatically bringing you to your desktop. If you want to run the PC-BSD display wizard / first boot wizards you can also trigger that before rebooting:

+

Next, reboot the system and the PC-BSD® login manager will start, allowing you to login to the desktop. If you want the {{local|link=Post Installation Configuration and Installation Troubleshooting |PC-BSD® display wizard and first boot wizards}} to run first, run these commands before rebooting:

−

<!--T:20-->

+

<!--T:38-->

−

{{txtbox|box={{pound}} touch /var/.runxsetup

+

{{txtbox|box= '''touch /var/.runxsetup'''{{nbsp|59}}

−

{{pound}} touch /var/.pcbsd-firstboot

+

'''touch /var/.pcbsd-firstboot'''

−

{{pound}} touch /var/.pcbsd-firstgui}}

+

'''touch /var/.pcbsd-firstgui'''}}

−

<!--T:21-->

+

<!--T:39-->

−

If you are trying to convert a pre-release FreeBSD, such as 10-CURRENT, you may need to specify the PBI version of what to pull from.

+

If you are running FreeBSD 10-CURRENT, specify the PBI version to pull from. To do so, edit ''/usr/local/etc/pbi.conf'' and add this line:

−

+

−

<!--T:22-->

+

−

To do so, edit '''/usr/local/etc/pbi.conf''' and add this line:

+

−

PBI_FBSDMAJOR: 9

+

{{txtbox|box=PBI_FBSDMAJOR: 9{{nbsp|64}}}}

−

<!--T:23-->

+

<!--T:40-->

−

TIP!

+

{{note|icon64= If you are using NVIDIA video hardware, load the driver before rebooting into the display wizard by running the command '''pc-metapkgmanager add NVIDIA'''.}}

−

<!--T:24-->

+

== Converting FreeBSD to a TrueOS{{R}} Server == <!--T:26-->

−

If you are using NVIDIA video hardware you may want to load their driver before rebooting into the display wizard:

+

−

<!--T:25-->

+

<!--T:27-->

−

{{txtbox|box={{pound}} pc-metapkgmanager add NVIDIA}}

+

If you wish to convert a FreeBSD server to TrueOS®, use the following commands:

−

== Converting to TrueOS == <!--T:26-->

+

<!--T:41-->

−

+

{{txtbox|box= '''pkg install -fy trueos-base'''{{nbsp|53}}

−

<!--T:27-->

+

'''rehash'''

−

If you wish to convert your server into TrueOS you can quickly do so using the following commands:

+

'''pbreg set /PC-BSD/SysType TRUEOS'''

+

'''pc-extractoverlay server'''

+

'''pc-extractoverlay ports'''}}

−

<!--T:28-->

+

<!--T:42-->

−

{{txtbox|box={{pound}} pkg install -fy trueos-base

+

The installation of the ''trueos-base'' package will install the following: {{local|link=PBI Manager}}, the command line version of '''{{local|link=Warden®|anchor=Using the Command Line Version of Warden® | warden}}''', and the command line versions of most of the {{local|link=Control Panel}} utilities. You will find those utilities in ''/usr/local/bin/pc-*''. It also installs {{citelink|url=http://trac.pcbsd.org/browser/build-files/ports-overlay/misc/trueos-base/Makefile|txt=these additional shells and utilities}}.

−

{{pound}} rehash

+

−

{{pound}} pbreg set /PC-BSD/SysType TRUEOS

+

−

{{pound}} pc-extractoverlay server

+

−

{{pound}} pc-extractoverlay ports}}

+

</translate>

</translate>

+

<noinclude>

+

{{refheading}}

+

[[category:Convert a FreeBSD System to PC-BSD®]]

+

[[category:Advanced Installation Topics]]

+

[[category:handbook]]

+

<languages/>

+

</noinclude>

Revision as of 21:31, 4 November 2013

(Sorry for the inconvenience)

Editor: please update template:UseTOC/9.2

Translator: please use {{UseTOC{{putVers}}|TOC}}

Protection (edit): sysopEdited by: Tigersharke

PC-BSD® utilities dealing with software installation and upgrades use pkgng[1], 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.1-RELEASE or FreeBSD 9.1 or higher, type pkg in order to automatically install the software that is required.

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.conf with the following contents:

The system is now configured and you now update your packages to the latest versions from the pkgng repository using the following command:

pkg upgrade -fy

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 Section 5.5.3 of the FreeBSD Handbook[1].

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: