Difference between revisions of "Convert a FreeBSD System to PC-BSD®/9.2"

From PC-BSD Wiki
Jump to: navigation, search
Line 25: Line 25:
  
 
<!--T:8-->
 
<!--T:8-->
Next, configure access to the PC-BSD repository. Start by creating the file '''/usr/local/etc/pkg.conf''' to look like example below:
+
Next, configure access to the PC-BSD® repository. Start by creating the file ''/usr/local/etc/pkg.conf'' with the following contents:
  
<!--T:9-->
 
 
{{txtbox|box=packagesite: {{ftp}}ftp.pcbsd.org/pub/mirror/packages/9.1-RELEASE/amd64/
 
{{txtbox|box=packagesite: {{ftp}}ftp.pcbsd.org/pub/mirror/packages/9.1-RELEASE/amd64/
 
PUBKEY: /usr/local/etc/pkg-pubkey.cert
 
PUBKEY: /usr/local/etc/pkg-pubkey.cert
Line 33: Line 32:
  
 
<!--T:10-->
 
<!--T:10-->
You will want to change the packagesite: variable to a particular [http://www.pcbsd.org/getmirrors.php?url=packages PC-BSD mirror] close to your location, and in addition change the 9.1-RELEASE / amd64 to the release / architecture you want to use. Click [http://www.pcbsd.org/getmirrors.php?url=packages here] to get a list of mirrors & package sets available.
+
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 you will need to download our repo'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 [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''.
  
 
<!--T:12-->
 
<!--T:12-->
With this in place, you will probably want to start by updating your packages to the latest versions from the repo. You may do so by running the following command:
+
The system is now configured and you now update your packages to the latest versions from the pkgng repository using the following command:
  
 
<!--T:13-->
 
<!--T:13-->
{{txtbox|box={{pound}} pkg upgrade -fy}}
+
{{txtbox|box={{pound}} '''pkg upgrade -fy'''}}
 
+
  
 
<!--T:14-->
 
<!--T:14-->
You should perhaps first resolve some issues, before this command finish successfully.
+
Depending upon what is already installed, you may have to resolve some error messages in order to successfully upgrade all packages.
 
+
  
 
<!--T:15-->
 
<!--T:15-->
When that command finishes, you should be good to go! You may now use the '''pkg''' command normally to install / remove / upgrade packages from our repo.
+
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].
  
 
== Converting to PC-BSD == <!--T:16-->
 
== Converting to PC-BSD == <!--T:16-->

Revision as of 11:44, 18 April 2013

(Sorry for the inconvenience)

Contents

Beginning in February, 2013, the PC-BSD® utilities dealing with software installation and upgrades were converted to 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.

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.

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, you will need to first install the ports-mgmt/pkg port or package.

After installing pkg, 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:

packagesite: ftp://ftp.pcbsd.org/pub/mirror/packages/9.1-RELEASE/amd64/

PUBKEY: /usr/local/etc/pkg-pubkey.cert

PKG_CACHEDIR: /usr/local/tmp

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 here to get a list of the available mirrors and package sets.

Next, download the repository's public key cert file, and copy it to /usr/local/etc/pkg-pubkey.cert.

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.

Converting to PC-BSD

With your initial repo setup complete, it is now easy to convert your system into a PC-BSD desktop using the following commands:

# pkg install -fy pcbsd-base

# rehash # pbreg set /PC-BSD/SysType PCBSD # pc-extractoverlay desktop

# pc-extractoverlay ports

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:

# touch /var/.runxsetup

# touch /var/.pcbsd-firstboot

# touch /var/.pcbsd-firstgui

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.

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

PBI_FBSDMAJOR: 9

TIP!

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

# pc-metapkgmanager add NVIDIA

Converting to TrueOS

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

# pkg install -fy trueos-base

# rehash # pbreg set /PC-BSD/SysType TRUEOS # pc-extractoverlay server

# pc-extractoverlay ports
Personal tools
Namespaces

Variants
Actions
Navigation
Toolbox