Changes

Jump to: navigation, search

Funtoo Profiles

399 bytes added, 4 years ago
Marked this version for translation
<translate>This page covers the Funtoo Linux profile system -- how it works, what profiles are available, and how to use [[#Using epro|{{c|epro}}]] to set and change profile settings.
== Profile Types ==<!--T:1-->
<!--T:2-->
Historically, users have had to add a large number of settings to [[Make.conf|{{c|/etc/make.conf}}]] to customize their Gentoo or Funtoo Linux system, which made setup of the operating system more difficult than it should be. In Gentoo Linux, it is possible to only define one ''system profile''. Think of a system profile as the default settings that Portage uses for building everything on your system. Funtoo Linux uses multiple sub-profiles per system. The following profile types are available in Funtoo Linux:
<!--T:3-->
{{TableStart}}
{{2ColHead|Sub-Profile|Description}}
{{TableEnd}}
<!--T:4-->
{{Note|Flavors can (and often do) inherit settings from other flavors and mix-ins. Mix-ins can also inherit settings from other mix-ins. For example, {{c|X}} is inherited by {{c|gnome}}. The {{c|epro}} tool will show both as being enabled so there are no surprises.}}
=== Using epro ===<!--T:5-->
<!--T:6-->
{{c|epro show}} will display the current profile settings on your system:
</translate>
##c##print##!c## (from desktop flavor)
}}
<translate><!--T:7-->To view all available sub-profile settings, use {{c|epro list}}:
{{console|body=# ##i## epro list}}
Enabled profiles will be highlighted in cyan. Directly enabled profiles will be in bold and have an asterisk {{c|*}} appended. Sub-profiles enabled via inheritance will be highlighted.
==== Usage Examples ====<!--T:8-->
<!--T:9-->
{{TableStart}}
{{2Col|Add the mix-ins {{c|gnome}} and {{c|kde}}|{{console|body=# ##i## epro mix-ins +gnome +kde}}}}
{{TableEnd}}
== Flavors ==<!--T:10-->
<!--T:11-->
A system can have only one flavor profile enabled at a time. The following flavors are available:
<!--T:12-->
{{TableStart}}
{{2ColHead|Flavor|Description}}
{{TableEnd}}
== Mix-ins ==<!--T:13-->
<!--T:14-->
A system can have any number of mix-ins enabled at a time. The following mix-ins are available:
<!--T:15-->
{{TableStart}}
{{2ColHead|Mix-in|Description}}
{{TableEnd}}
=== Media Device Mix-ins ===<!--T:16-->
<!--T:17-->
Media device mix-ins have been created to support media devices, including external and portable devices, and associated low-level hardware support and hardware-focused codecs. Media devices have been categorized into audio and video categories, and consumer and professional categories. "Consumer" devices are those devices that regular desktop users might typically use, while "professional" devices are those that professionals, hobbyists or enthusiasts would typically use. Here are the new mix-ins for media devices:
<!--T:18-->
{{TableStart}}
{{2ColHead|Media Device Mix-in|Description}}
{{TableEnd}}
=== Media Format Mix-ins ===<!--T:19-->
<!--T:20-->
Media format mix-ins have been created to support media formats for reading, writing, encoding and decoding images, audio and video. They have been organized into a "common" collection, for popular formats, and an "extra" collection, which is intended to include "everything else". Let's look at the new mix-ins:
<!--T:21-->
{{TableStart}}
{{2ColHead|Media Format Mix-in|Description}}
{{TableEnd}}
=== How to Use Media Mix-Ins ===<!--T:22-->
<!--T:23-->
Our existing {{c|media}} mix-in still exists, and is still pulled in by the {{c|desktop}} and {{c|workstation}} flavors automatically. It now includes the following parent mix-ins:
<!--T:24-->
* {{c|mediadevice-audio-consumer}}
* {{c|mediadevice-video-consumer}}
* {{c|mediaformat-video-common}}
<!--T:25-->
In addition, there is a new {{c|media-pro}} mix-in which needs to be enabled manually, which pulls in the following mix-ins:
<!--T:26-->
* {{c|mediadevice-audio-pro}}
* {{c|mediadevice-video-pro}}
<!--T:27-->
So typically, you would enable the {{c|desktop}} or {{c|workstation}} flavor, and if you need professional hardware support, you'd also enable the {{c|media-pro}} mix-in. If you needed any additional media formats support, you could enable one or more of the {{c|mediaformat-*-extra}} mix-ins to add the formats you needed. Of course, it's possible to enable only the specific mix-ins you need, and also complement these mix-ins with specific USE variable settings you might require.
=== How Profile Settings are Stored ===<!--T:28-->
<!--T:29-->
Funtoo Linux stores its profile settings in the {{f|/etc/portage/make.profile/parent}} file. Typically, users don't need to modify this file, instead using {{c|ego}} and {{c|epro}} to make changes, but it can be handy to take a look at what the contents of the file look like. A simple server might have profile settings as follows:
</translate>
}}
<translate>
<!--T:30-->
Profile settings for a desktop might look like this:
</translate>
}}
<translate>
== History and Origins ==<!--T:31-->
<!--T:32-->
This new system is really a completion of the original cascading profile design that was co-designed by Daniel Robbins and Seemant Kulleen and implemented by Seemant Kulleen as part of Portage. Funtoo Profiles designed to leverage the existing cascading profile system and provide something much more useable and maintainable for users and developers alike. Here are some of its benefits:
<!--T:33-->
* Fewer settings in <code>/etc/make.conf</code>. <code>CHOST</code> and <code>ARCH</code> no longer set in <code>/etc/make.conf</code>.
* Separation of concerns -- arch, build, and flavor-related settings are organized together.
* User flexibility - any number of mix-ins can be enabled to tweak masks or USE settings as needed.
<!--T:34-->
{{note|See [[Custom Profiles]] for information on how to extend the profile system.}}
</translate>
Bureaucrats, Administrators, wiki-admins, wiki-staff
6,333
edits

Navigation menu