Convert a FreeBSD System to PC/9.2/fr

From PC-BSD Wiki
Jump to: navigation, search

(Sorry for the inconvenience)

PC-BSD® utilities dealing with software installation and upgrades use 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 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.

Cette section décrit comment:

  • Configurer un système FreeBSD ou PC-BSD® pour utiliser dépôt pkgng.
  • Convertir un système FreeBSD en bureau PC-BSD®.
  • Convertir un système FreeBSD serveur TrueOS®.

Switching to the PC-BSD® pkgng Repository

Si vous utilisez PC-BSD® 9.1-RELEASE ou FreeBSD 9.1 ou supérieur, indiquez pkg afin d'installer automatiquement le logiciel demandé.

Puis, lancer la commande pkg2ng pour importer votre base de donnée de packets de l'ancien format au nouveau format pkgng.

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


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

PKG_CACHEDIR: /usr/local/tmp

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.

Convertir FreeBSD en Bureau PC-BSD®

Uns fois que la configuration du dépôt est terminée, il est désormais facile de convertir un système FreeBSD en un bureau PC-BSD® en utilisant les commandes suivantes en tant que super utilisateur:

pkg install -fy pcbsd-base

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

pc-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/.runxsetup

touch /var/.pcbsd-firstboot

touch /var/.pcbsd-firstgui

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:

REMARQUE: Si vous utilisez du matériel vidéo NVIDIA, charger le pilote avant de redémarrer dans l assistant d'affichage en tapant la commande pc-metapkgmanager add NVIDIA.

Convertir FreeBSD en serveur TrueOS®

Si vous désirez convertir un serveur FreeBSD en TrueOS®, utilisez les commandes suivantes:

pkg install -fy trueos-base

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

pc-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 Panneau de contrôle utilities. You will find those utilities in /usr/local/bin/pc-*. It also installs this list[1] of additional shells and utilities.



Personal tools