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

From PC-BSD Wiki
Jump to: navigation, search
(Getting Started)
(19 intermediate revisions by 3 users not shown)
Line 1: Line 1:
{{NavHome|custompagename=Turn FreeBSD into PC-BSD{{r}}}}
+
{{NavHome|custompagename=Turn FreeBSD into PC-BSD{{r}}|custompagecategory={{PAGENAME}}}}
Here is a more complete Howto:
+
  
Make sure you have these ports installed, using pkg_add or ports:
+
== Introduction ==
  
{{txtbox|box=
+
With the changeover to PKGNG as the backend in PC-BSD / TrueOS, it is now easier than ever to convert a FreeBSD system into a PC-BSD desktop or TrueOS server.
devel/subversion
+
devel/cmake
+
devel/cmake-gui
+
devel/gmake
+
devel/qt4-assistant
+
devel/qt4-assistant-adp
+
devel/qt4-designer
+
misc/qt4-doc
+
devel/qt4-libqtassistantclient
+
devel/qt4-linguist
+
devel/qt4-moc
+
devel/qmake4
+
devel/qt4-rcc
+
devel/qt4-qtsolutions-singleapplication
+
}}
+
  
Then run:
+
Our PKGNG repos can also be used by FreeBSD users who just want access to a full package repo, with frequent updates.
  
{{txtbox|box=
+
 
# svn co <nowiki>svn://</nowiki>svn.pcbsd.org/pcbsd/current current<br>
+
 
# cd current/src-sh<br>
+
== Getting Started ==
# make<br>
+
 
# make install<br>
+
On your FreeBSD system, you will first need to install the latest pkgng binaries, located in the ports tree under [http://www.freshports.org/ports-mgmt/pkg/ ports-mgmt/pkg]
# cd ../src-qt4/libpcbsd<br>
+
 
# qmake-qt4 *.pro<br>
+
After installing PKGNG, you'll probably want to run the command "'''pkg2ng'''" to import your existing packages.
# make<br>
+
 
# make install<br>
+
Next, you will need to setup access to the PC-BSD repository. Start by creating the file '''/usr/local/etc/pkg.conf''' to look like example below:
# cd ..<br>
+
 
# qmake-qt4 *.pro<br>
+
{{txtbox|box=packagesite: {{ftp}}mirrors.isc.org/pub/pcbsd/packages/9.1-RELEASE/amd64/
# make<br>
+
PUBKEY: /usr/local/etc/pkg-pubkey.cert
# make install
+
PKG_CACHEDIR: /usr/local/tmp}}
}}
+
 
[http://forums.pcbsd.org/showthread.php?p=96451#post96451 source]
+
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.
 +
 
 +
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], and copy it to '''/usr/local/etc/pkg-pubkey.cert'''.
 +
 
 +
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:
 +
 
 +
{{txtbox|box={{pound}} pkg upgrade -fy}}
 +
 
 +
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.
 +
 
 +
 
 +
=== 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:
 +
 
 +
{{txtbox|box={{pound}} pkg install -yf pcbsd-base
 +
{{pound}} rehash
 +
{{pound}} pbreg set /PC-BSD/SysType PCBSD
 +
{{pound}} pc-extractoverlay desktop
 +
{{pound}} 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:
 +
 
 +
{{txtbox|box={{pound}} touch /var/.runxsetup
 +
{{pound}} touch /var/.pcbsd-firstboot
 +
{{pound}} 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:
 +
 
 +
{{txtbox|box={{pound}} 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:
 +
 
 +
{{txtbox|box={{pound}} pkg install -yf trueos-base
 +
{{pound}} rehash
 +
{{pound}} pbreg set /PC-BSD/SysType TRUEOS
 +
{{pound}} pc-extractoverlay server
 +
{{pound}} pc-extractoverlay ports}}

Revision as of 03:01, 27 March 2013

Contents

Introduction

With the changeover to PKGNG as the backend in PC-BSD / TrueOS, it is now easier than ever to convert a FreeBSD system into a PC-BSD desktop or TrueOS server.

Our PKGNG repos can also be used by FreeBSD users who just want access to a full package repo, with frequent updates.


Getting Started

On your FreeBSD system, you will first need to install the latest pkgng binaries, located in the ports tree under ports-mgmt/pkg

After installing PKGNG, you'll probably want to run the command "pkg2ng" to import your existing packages.

Next, you will need to setup access to the PC-BSD repository. Start by creating the file /usr/local/etc/pkg.conf to look like example below:

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

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

PKG_CACHEDIR: /usr/local/tmp

You will want to change the packagesite: variable to a particular 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 here to get a list of mirrors & package sets available.

Next you will need to download our repo's public key, and copy it to /usr/local/etc/pkg-pubkey.cert.

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:

# pkg upgrade -fy

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.


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 -yf 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 -yf trueos-base

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

# pc-extractoverlay ports