Project

General

Profile

Support #774

Updated by Daniel Curtis almost 9 years ago

This is a guide on converting a FreeBSD 10 installation to a PCBSD desktop. 

 h2. Prepare the Environment 

 * Make sure the system is up to date: 
 <pre> 
 pkg update && pkg upgrade 
 </pre> 

 * Then, disable the FreeBSD package repository:  
 <pre> 
 mv /etc/pkg/FreeBSD.conf /root/FreeBSD.conf-old 
 </pre> 

 * Now create the pkg repos directory:  
 <pre> 
 mkdir -p /usr/local/etc/pkg/repos 
 </pre> 

 * Then, create the PCBSD repo file: 
 <pre> 
 vi /usr/local/etc/pkg/repos/pcbsd.conf 
 </pre> 
 #* And add the following:  
 <pre> 
 pcbsd: { 
        url: "http://pkg.cdn.pcbsd.org/10.0-RELEASE/amd64", 
        signature_type: "fingerprints", 
        fingerprints: "/usr/local/etc/pkg/fingerprints/pcbsd", 
        enabled: true 
       } 
 </pre> 

 * Next, create the pkg fingerprints directories:  
 <pre> 
 mkdir -p /usr/local/etc/pkg/fingerprints/pcbsd/revoked 
 mkdir -p /usr/local/etc/pkg/fingerprints/pcbsd/trusted 
 </pre> 

 * Then, download the repository's fingerprint file:  
 <pre> 
 cd /usr/local/etc/pkg/fingerprints/pcbsd/trusted/ 
 https://raw.githubusercontent.com/pcbsd/pcbsd/master/src-sh/pcbsd-utils/pc-extractoverlay/ports-overlay/usr/local/etc/pkg/fingerprints/pcbsd/trusted/pkg.cdn.pcbsd.org.20131209 
 </pre> 

 * Update the package database and any installed packages:  
 <pre> 
 pkg upgrade -fy 
 </pre> 
 
 h2. Converting FreeBSD to a PC-BSD Desktop  

 * Once the repository configuration is complete install the base components:  
 <pre> 
 fetch --no-verify-peer -o /etc/freebsd-update.conf 'https://github.com/pcbsd/freebsd/raw/master/etc/freebsd-update.conf' 
 freebsd-update fetch 
 freebsd-update install 
 </pre> 

 * Then setup the installation to be a PC-BSD desktop 
 <pre> 
 pkg install -fy pcbsd-base 
 rehash 
 pbreg set /PC-BSD/SysType PCBSD 
 pc-extractoverlay ports 
 pc-extractoverlay desktop 
 </pre> 

 * Install a desktop environment: 
 <pre> 
 pkg install pcbsd-meta-lxde 
 </pre> 

 * Setup the first boot scripts: 
 <pre> 
 touch /var/.runxsetup 
 touch /var/.pcbsd-firstboot 
 touch /var/.pcbsd-firstgui 
 </pre> 

 * Then, reboot the system: 
 <pre> 
 reboot 
 </pre> 

 *NOTE*: If you are using NVIDIA video hardware, load the driver before rebooting into the display wizard: 
 <pre> 
 pkg install pcbsd-meta-nvidia pcbsd-meta-nvidia. 
 </pre>  

 h2. Resources 

 * https://forums.pcbsd.org/thread-20411.html

Back