Difference between pages "Web Browsers" and "Pt-br/Funtoo 1.0 Profile"

(Difference between pages)
(moved mozplugger info to own package page)
 
(O que é um profile?)
 
Line 1: Line 1:
Funtoo Linux offers a number of possibilities when it comes to Web browsers. This page is intended to give you an overview of what is available, their various trade-offs, and also provide tutorial-style instructions on how to set them up so they offer full functionality. Additionally, instructions are provided on how to set up the Oracle Java Runtime Environment for running Java applets.
+
== O que é um profile? ==
  
==== Prerequisites ====
+
No Gentoo e no Funtoo Linux, profiles são utilizado para definir as configurações do sistema base (base system settings), e historicamente tem um monte de potenciais inexplorados. No Funtoo Linux, eu quis tirar vantagem de alguns desses potenciais para permitir aos usuários de Funtoo Linux facilmente planejar seu sistema para vários tipos de funções. entre o novo  Funtoo profile system.
  
Before installing a Web browser, ensure that you have a functioning X environment or desktop environment set up.
+
== What It Is ==
  
== Google Chrome (binary) ==
+
Historically, users have had to add a ton of settings to <code>/etc/[[make.conf]]</code> to customize their Gentoo or Funtoo Linux system, which made setup of the operating system more difficult than it should be.
  
The Google Chrome (binary) ebuild is <tt>www-client/google-chrome</tt>. Google Chrome is a very good Web browser. This browser is a great option for those who want a full-featured browser up and running quickly without a lot of complication.
+
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.
  
==== Advantages ====
+
In Funtoo Linux, multiple profiles can be enabled at the same time. These include:
  
* It's very fast to install, because it does not need to be built from source.  
+
* '''arch''' - one arch profile is enabled, at build time, and is not changed. This defines CPU architecture-specific settings.
* It includes support for Adobe Flash and PDF viewing built-in, which works right away with no additional configuration.  
+
* '''build''' - one build profile is enabled, at build time, and is generally not changed. It defines the type of build, such as 'current' or 'stable', and associated settings.
* It works well with [[PulseAudio]] with no additional configuration required.
+
* '''flavor''' - one flavor is enabled per system, and can be changed by the user. This defines the general use of the system, such as 'minimal', 'core', 'workstation' or 'desktop'
* Overall, the browser looks fantastic and is very fast.
+
* '''mix-in''' - zero or more mix-ins can be enabled that enable settings specific to a particular subset of features, such as 'gnome', 'kde', 'media', 'mate', 'X', 'hardened'
  
==== Disadvantages ====
+
{{note|1=
 +
See [[Flavors and Mix-ins]] for a complete list of all flavors and mix-ins available in Funtoo Linux, along with descriptions of what each one does.}}
  
* Included Flash does not support Amazon Video on Demand, which requires older DRM support. See Firefox as an option for this.
+
=== Origins and Benefits ===
* It's based on a binary for Debian systems, and sometimes depends on outdated versions of ebuilds to run.
+
  
=== Google Chrome Installation ===
+
This new system is really a completion of the original cascading profile design that was designed by Daniel Robbins 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:
  
As root, you first need to accept the Google Chrome license, as follows:
+
* 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.
  
<console>
+
{{note|See [[Custom Profiles]] for information on how to extend the profile system.}}
# ##i##emerge google-chrome --autounmask-write
+
== Switch to the Funtoo 1.0 Profile ==
</console>
+
  
Now, run <tt>etc-update</tt> and accept the changes made to <tt>/etc/portage/package.license</tt>. Now, emerge:
+
=== Using eselect ===
 +
The preferred method of adding and removing profiles is to use [[eselect|eselect profile]]. This will ensure that profiles are added correctly and in the proper order. The order is imperative for things to work right.
  
 +
Type the following to view a list of available options for '''eselect profile''':
 
<console>
 
<console>
# ##i##emerge -a google-chrome
+
###i## eselect profile help
 
</console>
 
</console>
  
== Chromium ==
+
For a start, let's see what the default configuration has to offer. Get an overview using the '''list''' command:
 
+
Chromium (<tt>www-client/chromium</tt>) is the from-source version of Google Chrome, and is a very good option for people who like Google Chrome but who want to build from source. Like most modern Web browsers, it does take a '''very long''' time to build -- up to ''several hours'' on a dual-core system, and about an hour on a 4-6 core system.
+
 
+
After emerging, it requires a special helper package <tt>www-plugins/chrome-binary-plugins</tt> for Adobe Flash as well as PDF viewing support.
+
 
+
==== Advantages ====
+
 
+
* It is built from source, so it has fewer issues with dependencies than Google Chrome, yet it is very similar in functionality.
+
* It looks great, and works well.
+
* With an easy emerge of <tt>www-plugins/chrome-binary-plugins</tt>, it provides identical functionality to Chrome in regards to Adobe Flash and PDF support.
+
 
+
==== Disadvantages ====
+
 
+
* It takes a very long time to build, even on a modern system, so be prepared to wait.
+
 
+
=== Installing Chromium ===
+
 
+
To install Chromium, you will need to enable the <tt>minizip</tt> USE flag for <tt>sys-libs/zlib</tt>, and I also recommend enabling <tt>aura</tt> for Chromium itself, which is a new GPU-accelerated architecture. Add the following lines to  <tt>/etc/portage/package.use</tt>:
+
 
+
<pre>
+
sys-libs/zlib minizip
+
www-client/chromium aura
+
</pre>
+
 
+
Okay, now it's time to emerge Chromium:
+
 
+
 
<console>
 
<console>
# ##i## emerge -a www-client/chromium
+
###i## eselect profile list
 +
##b####g##Currently available arch profiles:
 +
  ##b##[1]  funtoo/1.0/linux-gnu/arch/x86-64bit##!b## *
 +
  ##b##[2]##!b##  funtoo/1.0/linux-gnu/arch/pure64
 +
##b####g##Currently available build profiles:
 +
  ##b##[3]##!b##  funtoo/1.0/linux-gnu/build/stable
 +
  ##b##[4]  funtoo/1.0/linux-gnu/build/current##!b## *
 +
  ##b##[5]##!b##  funtoo/1.0/linux-gnu/build/experimental
 +
##b####g##Currently available flavor profiles:
 +
  ##b##[6]##!b##  funtoo/1.0/linux-gnu/flavor/minimal
 +
  ##b##[7]  funtoo/1.0/linux-gnu/flavor/core##!b## *
 +
  ##b##[8]##!b##  funtoo/1.0/linux-gnu/flavor/desktop
 +
  ##b##[9]##!b##  funtoo/1.0/linux-gnu/flavor/workstation
 +
  ##b##[10]##!b##  funtoo/1.0/linux-gnu/flavor/hardened
 +
##b####g##Currently available mix-ins profiles:
 +
  ##b##[11]##!b##  funtoo/1.0/linux-gnu/mix-ins/audio
 +
  ##b##[12]##!b##  funtoo/1.0/linux-gnu/mix-ins/cinnamon
 +
  ##b##[13]##!b##  funtoo/1.0/linux-gnu/mix-ins/console-extras
 +
  ##b##[14]##!b##  funtoo/1.0/linux-gnu/mix-ins/dvd
 +
  ##b##[15]##!b##  funtoo/1.0/linux-gnu/mix-ins/gnome
 +
  ##b##[16]##!b##  funtoo/1.0/linux-gnu/mix-ins/kde
 +
  ##b##[17]##!b##  funtoo/1.0/linux-gnu/mix-ins/mate
 +
  ##b##[18]##!b##  funtoo/1.0/linux-gnu/mix-ins/media
 +
  ##b##[19]##!b##  funtoo/1.0/linux-gnu/mix-ins/print
 +
  ##b##[20]##!b##  funtoo/1.0/linux-gnu/mix-ins/python3-only
 +
  ##b##[21]##!b##  funtoo/1.0/linux-gnu/mix-ins/rhel5-compat
 +
  ##b##[22]##!b##  funtoo/1.0/linux-gnu/mix-ins/server-db
 +
  ##b##[23]##!b##  funtoo/1.0/linux-gnu/mix-ins/server-mail
 +
  ##b##[24]##!b##  funtoo/1.0/linux-gnu/mix-ins/server-web
 +
  ##b##[25]##!b##  funtoo/1.0/linux-gnu/mix-ins/X
 +
  ##b##[26]##!b##  funtoo/1.0/linux-gnu/mix-ins/xfce
 +
  ##b##[27]##!b##  funtoo/1.0/linux-gnu/mix-ins/vmware-guest
 +
  ##b##[28]##!b##  funtoo/1.0/linux-gnu/mix-ins/hardened
 
</console>
 
</console>
  
This will take a long time to complete. After you're done, emerge Chrome helper programs to enable Adobe Flash and PDF viewing support. First, review and accept the license:
+
As in several other Funtoo utilities, a star ('''*''') on the right indicates an active item (your case may differ from the example above).
 +
In most cases you will want to set your "flavor" first. Remember that you can only set ''one'' flavor at time.
  
<console>
+
To choose your favorite flavor use the '''set-flavor''' command including your selection. In this example, we will set the '''desktop''' flavor:
# ##i##emerge www-plugins/chrome-binary-plugins --autounmask-write
+
{{note|You ''must'' use numbers to reference to the profiles you want.}}
 +
<console>###i## eselect profile set-flavor 8</console>
 +
View the result:
 +
<console>###i## eselect profile list
 +
##b####g##Currently available arch profiles:
 +
  ##b##[1]  funtoo/1.0/linux-gnu/arch/x86-64bit##!b## *
 +
  ##b##[2]##!b##  funtoo/1.0/linux-gnu/arch/pure64
 +
##b####g##Currently available build profiles:
 +
  ##b##[3]##!b##  funtoo/1.0/linux-gnu/build/stable
 +
  ##b##[4]  funtoo/1.0/linux-gnu/build/current##!b## *
 +
  ##b##[5]##!b##  funtoo/1.0/linux-gnu/build/experimental
 +
##b####g##Currently available flavor profiles:
 +
  ##b##[6]##!b##  funtoo/1.0/linux-gnu/flavor/minimal
 +
  ##b##[7]##!b##  funtoo/1.0/linux-gnu/flavor/core
 +
  ##b##[8]  funtoo/1.0/linux-gnu/flavor/desktop##!b## *
 +
  ##b##[9]##!b##  funtoo/1.0/linux-gnu/flavor/workstation
 +
  ##b##[10]##!b##  funtoo/1.0/linux-gnu/flavor/hardened
 +
##b####g##Currently available mix-ins profiles:
 +
  ##b##[11]  funtoo/1.0/linux-gnu/mix-ins/audio (auto)
 +
  ##b##[12]##!b##  funtoo/1.0/linux-gnu/mix-ins/cinnamon
 +
  ##b##[13]  funtoo/1.0/linux-gnu/mix-ins/console-extras (auto)
 +
  ##b##[14]  funtoo/1.0/linux-gnu/mix-ins/dvd (auto)
 +
  ##b##[15]##!b##  funtoo/1.0/linux-gnu/mix-ins/gnome
 +
  ##b##[16]##!b##  funtoo/1.0/linux-gnu/mix-ins/kde
 +
  ##b##[17]##!b##  funtoo/1.0/linux-gnu/mix-ins/mate
 +
  ##b##[18]  funtoo/1.0/linux-gnu/mix-ins/media (auto)
 +
  ##b##[19]  funtoo/1.0/linux-gnu/mix-ins/print (auto)
 +
  ##b##[20]##!b##  funtoo/1.0/linux-gnu/mix-ins/python3-only
 +
  ##b##[21]##!b##  funtoo/1.0/linux-gnu/mix-ins/rhel5-compat
 +
  ##b##[22]##!b##  funtoo/1.0/linux-gnu/mix-ins/server-db
 +
  ##b##[23]##!b##  funtoo/1.0/linux-gnu/mix-ins/server-mail
 +
  ##b##[24]##!b##  funtoo/1.0/linux-gnu/mix-ins/server-web
 +
  ##b##[25]  funtoo/1.0/linux-gnu/mix-ins/X (auto)
 +
  ##b##[26]##!b##  funtoo/1.0/linux-gnu/mix-ins/xfce
 +
  ##b##[27]##!b##  funtoo/1.0/linux-gnu/mix-ins/vmware-guest
 +
  ##b##[28]##!b##  funtoo/1.0/linux-gnu/mix-ins/hardened
 
</console>
 
</console>
 +
As you see by the '''(auto)''' entries, the '''desktop''' flavor already pre-set some mix-ins for you.
  
Now, run <tt>etc-update</tt> and accept the changes that it made to <tt>/etc/portage/package.license</tt>. Now, emerge the plugins for real:
+
Now, let's head over and add some mix-ins. To add, say, the mix-ins '''gnome''' and '''kde''' we'd have to enter:
  
 
<console>
 
<console>
# ##i##emerge www-plugins/chrome-binary-plugins
+
###i## eselect profile add 15
 +
###i## eselect profile add 16
 
</console>
 
</console>
  
=== Making Chromium Look Sexier ===
+
Or, in a one-shot:
 
+
If you like the default "blue" look of Chrome, and want Chromium to look like that, go to the hamburger ("3 bar") menu in the upper right, go to '''Settings''', and under '''Appearance''', click  '''Use Classic theme'''. Flash some gang signs to imaginary onlookers, and you are done.
+
 
+
== Firefox (binary) ==
+
 
+
The Firefox binary Web browser, <tt>www-client/firefox-bin</tt> is another good option. It is more feature-rich as opposed to the "lean and mean" Chrome/Chromium.
+
 
+
==== Advantages ====
+
 
+
* Firefox is a great, full-featured Web browser.
+
* It is quick to install, because it is a binary.
+
* Can easily be made to support Amazon Video on Demand (Amazon Prime.)
+
 
+
==== Disadvantages ====
+
 
+
* It works well with [[ALSA]] by default, but requires tweaks to get working with [[PulseAudio]].
+
* A separate merge of <tt>www-plugins/adobe-flash</tt> is required for Adobe Flash support.
+
 
+
=== Installing Firefox ===
+
 
+
First, emerge Firefox itself. This is quick:
+
  
 
<console>
 
<console>
# ##i## emerge www-client/firefox-bin
+
###i## eselect profile add 15 16
 
</console>
 
</console>
  
By default, Firefox does not support Adobe Flash. Let's fix this:
+
If we want to remove a mix-in, for example '''gnome''', simply enter:
  
 
<console>
 
<console>
# ##i## emerge www-plugins/adobe-flash --autounmask-write
+
###i## eselect profile remove 15
 
</console>
 
</console>
  
Now, run <tt>etc-update</tt> and accept the changes that Portage made to <tt>/etc/portage/package.license</tt>. Now, let's get Flash installed:
+
Verification:
  
<console>
+
<console>###i## eselect profile list
# ##i## emerge www-plugins/adobe-flash
+
##b####g##Currently available arch profiles:
 +
  ##b##[1]  funtoo/1.0/linux-gnu/arch/x86-64bit##!b## *
 +
  ##b##[2]##!b##  funtoo/1.0/linux-gnu/arch/pure64
 +
##b####g##Currently available build profiles:
 +
  ##b##[3]##!b##  funtoo/1.0/linux-gnu/build/stable
 +
  ##b##[4]  funtoo/1.0/linux-gnu/build/current##!b## *
 +
  ##b##[5]##!b##  funtoo/1.0/linux-gnu/build/experimental
 +
##b####g##Currently available flavor profiles:
 +
  ##b##[6]##!b##  funtoo/1.0/linux-gnu/flavor/minimal
 +
  ##b##[7]##!b##  funtoo/1.0/linux-gnu/flavor/core
 +
  ##b##[8]  funtoo/1.0/linux-gnu/flavor/desktop##!b## *
 +
  ##b##[9]##!b##  funtoo/1.0/linux-gnu/flavor/workstation
 +
  ##b##[10]##!b##  funtoo/1.0/linux-gnu/flavor/hardened
 +
##b####g##Currently available mix-ins profiles:
 +
  ##b##[11]  funtoo/1.0/linux-gnu/mix-ins/audio (auto)
 +
  ##b##[12]##!b##  funtoo/1.0/linux-gnu/mix-ins/cinnamon
 +
  ##b##[13]  funtoo/1.0/linux-gnu/mix-ins/console-extras (auto)
 +
  ##b##[14]  funtoo/1.0/linux-gnu/mix-ins/dvd (auto)
 +
  ##b##[15]##!b##  funtoo/1.0/linux-gnu/mix-ins/gnome
 +
  ##b##[16]  funtoo/1.0/linux-gnu/mix-ins/kde *
 +
  ##b##[17]##!b##  funtoo/1.0/linux-gnu/mix-ins/mate
 +
  ##b##[18]  funtoo/1.0/linux-gnu/mix-ins/media (auto)
 +
  ##b##[19]  funtoo/1.0/linux-gnu/mix-ins/print (auto)
 +
  ##b##[20]##!b##  funtoo/1.0/linux-gnu/mix-ins/python3-only
 +
  ##b##[21]##!b##  funtoo/1.0/linux-gnu/mix-ins/rhel5-compat
 +
  ##b##[22]##!b##  funtoo/1.0/linux-gnu/mix-ins/server-db
 +
  ##b##[23]##!b##  funtoo/1.0/linux-gnu/mix-ins/server-mail
 +
  ##b##[24]##!b##  funtoo/1.0/linux-gnu/mix-ins/server-web
 +
  ##b##[25]  funtoo/1.0/linux-gnu/mix-ins/X (auto)
 +
  ##b##[26]##!b##  funtoo/1.0/linux-gnu/mix-ins/xfce
 +
  ##b##[27]##!b##  funtoo/1.0/linux-gnu/mix-ins/vmware-guest
 +
  ##b##[28]##!b##  funtoo/1.0/linux-gnu/mix-ins/hardened
 
</console>
 
</console>
  
To support Amazon Video on Demand, the following package needs to be installed:
+
No magic here, whatever you add gets put into the <code>/etc/portage/make.profile/parent</code> file by portage.
  
 +
In our case, this file contains:
 
<console>
 
<console>
# ##i## emerge media-libs/hal-flash
+
###i## cat /etc/portage/make.profile/parent
 +
gentoo:funtoo/1.0/linux-gnu/arch/x86-64bit
 +
gentoo:funtoo/1.0/linux-gnu/build/current
 +
gentoo:funtoo/1.0/linux-gnu/flavor/desktop
 +
gentoo:funtoo/1.0/linux-gnu/mix-ins/kde
 
</console>
 
</console>
 +
{{fancywarning|Please, do not add anything manually into <code>parent</code> file. This may result in profile breakage.}}
  
Firefox is now installed!
+
== For Developers ==
  
=== Firefox and Audio ===
+
=== Define the profile sub-sets you will use ===
  
{{Note|This doesn't seem to be required anymore with Firefox and recent versions of PulseAudio, which can use an ALSA sink to funnel audio automagically into PulseAudio.}}
+
So far in Funtoo we have used the exact same profiles as Gentoo thus Funtoo/2008.0 was strictly the same thing as Gentoo/2008.0 or the barely the same 10.0. This (monolithic) profile was set though a symbolic link named <code>/etc/make.profile</code> pointing on a complex directory architecture located somewhere under <code>/usr/portage/profiles</code>. This is no longer valid with the Funtoo 1.0 profiles as they are split in several smaller bricks which are then glued together via the  <code>/etc/portage/make.profile/parent</code> file (You do not need to include everything, just use the "bricks" you need). Those bricks belongs to several categories:
 
+
By default, Firefox will try to use an ALSA device for audio. To get Firefox to use PulseAudio, create an <tt>.asoundrc</tt> file in your Firefox user's home directory that looks like this:
+
 
+
<pre>
+
pcm.!default
+
{    type pulse
+
    hint.description "Default Audio Device"
+
}
+
ctl.!default {
+
    type pulse
+
}
+
</pre>
+
 
+
This will route ALSA to PulseAudio by default -- I believe you may need to restart your X session to get these changes to apply.  
+
 
+
I also recommend emerging <tt>media-sound/pavucontrol</tt> -- the PulseAudio Volume Control app. Some casual tweaking in here to set the output device for Firefox should result in audio working for you.
+
 
+
=== Firefox and gstreamer ===
+
 
+
Firefox-bin is currently compiled against gstreamer 0.10.x so if you wish to use sites like soundcloud or bandcamp without flash then you will need to have media-libs/gst-plugins-good, media-libs/gst-plugins-bad, media-libs/gst-plugins-ugly, media-plugins/gst-plugins-ffmpeg and media-plugins/gst-plugins-mad installed (version 0.10.x for all). If you are compiling firefox yourself (non -bin version) then gst-plugins 1.x versions can be used to build against.
+
 
+
=== Watching videos with embedded mpv ===
+
 
+
Mpv can be used as an embedded media player inside firefox. See [[Package:Mozplugger|mozplugger]] for more information.
+
<!--
+
== dwb - a webkit browser ==
+
 
+
The dwb Web browser, <tt>www-client/dwb</tt>, is one of the minimal browsers utilizing webkit-gtk and gtk+. It can be operated by vim-style keyboard shortcuts.
+
 
+
==== Advantages ====
+
 
+
* very clean interface with maxed-out screen estate for the actual website content
+
* plugin system for forms, userscripts, adblock, speeddial etc.
+
* vim-style control
+
* choose between gtk2 and gtk3 (useflag)
+
* configuration through web interface (setting: Ss; keyboard: Sk)
+
 
+
==== Disadvantages ====
+
 
+
* the webkit-gtk engine crashes occasionally
+
* takes long time to build webkit-gtk
+
* A separate merge of <tt>www-plugins/adobe-flash</tt> is required for Adobe Flash support.
+
 
+
=== Installing dwb ===
+
 
+
It is suggested to use www-client/dwb-9999 to stay ahead of development.
+
<console>
+
# ##i## echo "=www-client/dwb-9999 **" >> /etc/portage/package.keywords
+
# ##i## emerge www-client/dwb
+
</console>
+
 
+
By default, dwb does not support Adobe Flash. Let's fix this:
+
 
+
<console>
+
# ##i## emerge www-plugins/adobe-flash --autounmask-write
+
</console>
+
 
+
Now, run <tt>etc-update</tt> and accept the changes that Portage made to <tt>/etc/portage/package.license</tt>. Now, let's get Flash installed:
+
 
+
<console>
+
# ##i## emerge www-plugins/adobe-flash
+
</console>
+
 
+
dwb is now installed!
+
-->
+
 
+
== Oracle Java Runtime Environment ==
+
 
+
Enabling a Java Runtime Environment isn't a must-have for everyone, but it's nice to have installed in case you need it. And some of us have a need to run a Java app now and again, so let's look at getting it installed. It's quite easy to get going.
+
 
+
First, let's accept the Oracle Java SE License:
+
 
+
<console>
+
# ##i##emerge dev-java/oracle-jre-bin --autounmask-write
+
</console>
+
   
+
Now, run <tt>etc-update</tt> and accept the changes it made to <tt>/etc/portage/package.license</tt>. Now, let's emerge the Oracle JRE:
+
 
+
{{fancyimportant|1=
+
Please ensure that the <tt>nsplugin</tt> USE flag is enabled when you run <tt>emerge</tt>, below. This enables the Web browser plugin.}}
+
 
+
<console>
+
# ##i##emerge -a dev-java/oracle-jre-bin</console>
+
 
+
The Oracle JRE is now installed.
+
 
+
=== Running Java Applets ===
+
 
+
If your Web browser prompts you for an application to run <tt>.jnlp</tt> files, instruct it to use <tt>/opt/oracle-jre-bin-1.7.0.51/bin/javaws</tt> (also known as "Java Web Start".) You can also use <tt>javaws</tt> to run <tt>.jnlp</tt> files from an xterm.
+
 
+
=== Java and Security ===
+
 
+
Starting with Oracle JRE 1.7.0.51 and higher, Java has enhanced security settings and may refuse to run some Java applets. Normally, this is fine and good, unless you absolutely need to run an app and Java is refusing to run it. To get around this, open up an xterm as your browser user and go to the Java bin dir, and run <tt>ControlPanel</tt> as follows:
+
 
+
<console>
+
$ ##i##cd /opt/oracle-jre-bin-1.7.0.51/bin
+
$ ##i##./ControlPanel
+
</console>
+
  
Now, go to the '''Security''' tab and click the '''Edit Site List...''' button. Add a URL for the site from which you are downloading the Java Applet. Now click '''OK''' and save your changes, and try running the Java applet again. It should now be allowed to run.
+
# MANDATORY -- An "arch" profile which defines settings for a particular architecture. You'll want to set this to whatever arch your system is and leave it alone. '''Setting it to a different arch than your system could severely break it.'''
 +
# MANDATORY -- A "build" profile which should match the tree you wish to use. '''Stable''', '''Current''' (~arch), or '''Experimental''' (use it if you are brave enough and find '''current''' too stable).
 +
# MANDATORY -- A "flavor" profile (what was previously known as ''profiles'' is still known as such in Gentoo) which describes the kind of system you want:
 +
#* minimal - Be warned, minimal is exactly what it says, the minimal profile stuff you need for a usable system, nothing else. This is really for people who know what they're doing.
 +
#* core - This is the core profile. This is for stuff that affects both desktops and servers.
 +
#* desktop - Exactly what it says. If you're using a desktop, you should set this as your flavor.
 +
#* server - If you're running a server, you should set this as your flavor.
 +
# OPTIONAL -- One or more "mix-ins" profiles which describe optional add-ons. 'mix-ins' are the heart of the Funtoo 1.0 profiles. Unlike the monolithic profiles which sets a massive amount of use flags and options for you, we've split them into logical add-on profiles. For instance if you want support for gnome, you would add the gnome mix-in to your current profiles. That mix-in sets all the proper use flags and such for gnome. Same with others. Want dvd support? Add that one in. Using a rhel5 kernel which requires special versions of packages such as udev? There's a mix-in for that too. Run a mail server? web server? There's mix-ins for those also. Expect this category to grow in the future as new mix-ins are created.
  
=== "Java Not Allowed" in Chrome-Based Browsers ===
+
The contents of <code>/etc/portage/make.profile/parent</code> for a basic setup might look like this:
If you load a Web page with a Java applet on it, you may see a Java logo with text underneath that says "Java not allowed". To resolve this issue, visit the following URL in your browser:
+
  
<code>chrome://plugins</code>
+
{{file|name=/etc/portage/make.profile/parent|body=
 +
gentoo:funtoo/1.0/linux-gnu/arch/x86-64bit
 +
gentoo:funtoo/1.0/linux-gnu/build/current
 +
gentoo:funtoo/1.0/linux-gnu/flavor/core
 +
}}
  
This will display a list of all plugins enabled in Chrome. You should see a plugin called something like this:
+
A more rounded setup for a desktop might look like this:
  
<code>Java(TM) - Version: 10.45.2 </code>
+
{{file|name=/etc/portage/make.profile/parent|body=
 +
gentoo:funtoo/1.0/linux-gnu/arch/x86-64bit
 +
gentoo:funtoo/1.0/linux-gnu/build/current
 +
gentoo:funtoo/1.0/linux-gnu/flavor/desktop
 +
gentoo:funtoo/1.0/linux-gnu/mix-ins/dvd
 +
gentoo:funtoo/1.0/linux-gnu/mix-ins/media
 +
}}
  
<code>Next Generation Java Plug-in 10.45.2 for Mozilla browsers</code>
+
== Related ==
 +
* [[Flavors and Mix-ins]]
  
Check the "Always Enable" checkbox and then reload the page with the Java applet, and it should load properly.[[Category:First Steps]]
+
[[Category:Funtoo features]]
[[Category:Tutorial]]
+
[[Category:Portage]]
[[Category:Desktop]]
+
[[Category:Labs]]
 +
[[Category:HOWTO]]
 +
[[Category:Official Documentation]]

Revision as of 20:43, March 14, 2015

O que é um profile?

No Gentoo e no Funtoo Linux, profiles são utilizado para definir as configurações do sistema base (base system settings), e historicamente tem um monte de potenciais inexplorados. No Funtoo Linux, eu quis tirar vantagem de alguns desses potenciais para permitir aos usuários de Funtoo Linux facilmente planejar seu sistema para vários tipos de funções. entre o novo Funtoo profile system.

What It Is

Historically, users have had to add a ton of settings to /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.

In Funtoo Linux, multiple profiles can be enabled at the same time. These include:

  • arch - one arch profile is enabled, at build time, and is not changed. This defines CPU architecture-specific settings.
  • build - one build profile is enabled, at build time, and is generally not changed. It defines the type of build, such as 'current' or 'stable', and associated settings.
  • flavor - one flavor is enabled per system, and can be changed by the user. This defines the general use of the system, such as 'minimal', 'core', 'workstation' or 'desktop'
  • mix-in - zero or more mix-ins can be enabled that enable settings specific to a particular subset of features, such as 'gnome', 'kde', 'media', 'mate', 'X', 'hardened'
Note

See Flavors and Mix-ins for a complete list of all flavors and mix-ins available in Funtoo Linux, along with descriptions of what each one does.

Origins and Benefits

This new system is really a completion of the original cascading profile design that was designed by Daniel Robbins 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:

  • Fewer settings in /etc/make.conf. CHOST and ARCH no longer set in /etc/make.conf.
  • 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.
Note

See Custom Profiles for information on how to extend the profile system.

Switch to the Funtoo 1.0 Profile

Using eselect

The preferred method of adding and removing profiles is to use eselect profile. This will ensure that profiles are added correctly and in the proper order. The order is imperative for things to work right.

Type the following to view a list of available options for eselect profile:

# eselect profile help

For a start, let's see what the default configuration has to offer. Get an overview using the list command:

# eselect profile list
Currently available arch profiles:
  [1]   funtoo/1.0/linux-gnu/arch/x86-64bit * 
  [2]   funtoo/1.0/linux-gnu/arch/pure64
Currently available build profiles:
  [3]   funtoo/1.0/linux-gnu/build/stable
  [4]   funtoo/1.0/linux-gnu/build/current * 
  [5]   funtoo/1.0/linux-gnu/build/experimental
Currently available flavor profiles:
  [6]   funtoo/1.0/linux-gnu/flavor/minimal
  [7]   funtoo/1.0/linux-gnu/flavor/core *
  [8]   funtoo/1.0/linux-gnu/flavor/desktop
  [9]   funtoo/1.0/linux-gnu/flavor/workstation
  [10]  funtoo/1.0/linux-gnu/flavor/hardened
Currently available mix-ins profiles:
  [11]  funtoo/1.0/linux-gnu/mix-ins/audio
  [12]  funtoo/1.0/linux-gnu/mix-ins/cinnamon
  [13]  funtoo/1.0/linux-gnu/mix-ins/console-extras
  [14]  funtoo/1.0/linux-gnu/mix-ins/dvd
  [15]  funtoo/1.0/linux-gnu/mix-ins/gnome
  [16]  funtoo/1.0/linux-gnu/mix-ins/kde
  [17]  funtoo/1.0/linux-gnu/mix-ins/mate
  [18]  funtoo/1.0/linux-gnu/mix-ins/media
  [19]  funtoo/1.0/linux-gnu/mix-ins/print
  [20]  funtoo/1.0/linux-gnu/mix-ins/python3-only
  [21]  funtoo/1.0/linux-gnu/mix-ins/rhel5-compat
  [22]  funtoo/1.0/linux-gnu/mix-ins/server-db
  [23]  funtoo/1.0/linux-gnu/mix-ins/server-mail
  [24]  funtoo/1.0/linux-gnu/mix-ins/server-web
  [25]  funtoo/1.0/linux-gnu/mix-ins/X
  [26]  funtoo/1.0/linux-gnu/mix-ins/xfce
  [27]  funtoo/1.0/linux-gnu/mix-ins/vmware-guest
  [28]  funtoo/1.0/linux-gnu/mix-ins/hardened

As in several other Funtoo utilities, a star (*) on the right indicates an active item (your case may differ from the example above). In most cases you will want to set your "flavor" first. Remember that you can only set one flavor at time.

To choose your favorite flavor use the set-flavor command including your selection. In this example, we will set the desktop flavor:

Note

You must use numbers to reference to the profiles you want.

# eselect profile set-flavor 8

View the result:

# eselect profile list
Currently available arch profiles:
  [1]   funtoo/1.0/linux-gnu/arch/x86-64bit * 
  [2]   funtoo/1.0/linux-gnu/arch/pure64
Currently available build profiles:
  [3]   funtoo/1.0/linux-gnu/build/stable
  [4]   funtoo/1.0/linux-gnu/build/current * 
  [5]   funtoo/1.0/linux-gnu/build/experimental
Currently available flavor profiles:
  [6]   funtoo/1.0/linux-gnu/flavor/minimal
  [7]   funtoo/1.0/linux-gnu/flavor/core
  [8]   funtoo/1.0/linux-gnu/flavor/desktop *
  [9]   funtoo/1.0/linux-gnu/flavor/workstation
  [10]  funtoo/1.0/linux-gnu/flavor/hardened
Currently available mix-ins profiles:
  [11]  funtoo/1.0/linux-gnu/mix-ins/audio (auto)
  [12]  funtoo/1.0/linux-gnu/mix-ins/cinnamon
  [13]  funtoo/1.0/linux-gnu/mix-ins/console-extras (auto)
  [14]  funtoo/1.0/linux-gnu/mix-ins/dvd (auto)
  [15]  funtoo/1.0/linux-gnu/mix-ins/gnome
  [16]  funtoo/1.0/linux-gnu/mix-ins/kde
  [17]  funtoo/1.0/linux-gnu/mix-ins/mate
  [18]  funtoo/1.0/linux-gnu/mix-ins/media (auto)
  [19]  funtoo/1.0/linux-gnu/mix-ins/print (auto)
  [20]  funtoo/1.0/linux-gnu/mix-ins/python3-only
  [21]  funtoo/1.0/linux-gnu/mix-ins/rhel5-compat
  [22]  funtoo/1.0/linux-gnu/mix-ins/server-db
  [23]  funtoo/1.0/linux-gnu/mix-ins/server-mail
  [24]  funtoo/1.0/linux-gnu/mix-ins/server-web
  [25]  funtoo/1.0/linux-gnu/mix-ins/X (auto)
  [26]  funtoo/1.0/linux-gnu/mix-ins/xfce
  [27]  funtoo/1.0/linux-gnu/mix-ins/vmware-guest
  [28]  funtoo/1.0/linux-gnu/mix-ins/hardened

As you see by the (auto) entries, the desktop flavor already pre-set some mix-ins for you.

Now, let's head over and add some mix-ins. To add, say, the mix-ins gnome and kde we'd have to enter:

# eselect profile add 15
# eselect profile add 16

Or, in a one-shot:

# eselect profile add 15 16

If we want to remove a mix-in, for example gnome, simply enter:

# eselect profile remove 15

Verification:

# eselect profile list
Currently available arch profiles:
  [1]   funtoo/1.0/linux-gnu/arch/x86-64bit * 
  [2]   funtoo/1.0/linux-gnu/arch/pure64
Currently available build profiles:
  [3]   funtoo/1.0/linux-gnu/build/stable
  [4]   funtoo/1.0/linux-gnu/build/current * 
  [5]   funtoo/1.0/linux-gnu/build/experimental
Currently available flavor profiles:
  [6]   funtoo/1.0/linux-gnu/flavor/minimal
  [7]   funtoo/1.0/linux-gnu/flavor/core
  [8]   funtoo/1.0/linux-gnu/flavor/desktop *
  [9]   funtoo/1.0/linux-gnu/flavor/workstation
  [10]  funtoo/1.0/linux-gnu/flavor/hardened
Currently available mix-ins profiles:
  [11]  funtoo/1.0/linux-gnu/mix-ins/audio (auto)
  [12]  funtoo/1.0/linux-gnu/mix-ins/cinnamon
  [13]  funtoo/1.0/linux-gnu/mix-ins/console-extras (auto)
  [14]  funtoo/1.0/linux-gnu/mix-ins/dvd (auto)
  [15]  funtoo/1.0/linux-gnu/mix-ins/gnome
  [16]  funtoo/1.0/linux-gnu/mix-ins/kde *
  [17]  funtoo/1.0/linux-gnu/mix-ins/mate
  [18]  funtoo/1.0/linux-gnu/mix-ins/media (auto)
  [19]  funtoo/1.0/linux-gnu/mix-ins/print (auto)
  [20]  funtoo/1.0/linux-gnu/mix-ins/python3-only
  [21]  funtoo/1.0/linux-gnu/mix-ins/rhel5-compat
  [22]  funtoo/1.0/linux-gnu/mix-ins/server-db
  [23]  funtoo/1.0/linux-gnu/mix-ins/server-mail
  [24]  funtoo/1.0/linux-gnu/mix-ins/server-web
  [25]  funtoo/1.0/linux-gnu/mix-ins/X (auto)
  [26]  funtoo/1.0/linux-gnu/mix-ins/xfce
  [27]  funtoo/1.0/linux-gnu/mix-ins/vmware-guest
  [28]  funtoo/1.0/linux-gnu/mix-ins/hardened

No magic here, whatever you add gets put into the /etc/portage/make.profile/parent file by portage.

In our case, this file contains:

# cat /etc/portage/make.profile/parent
gentoo:funtoo/1.0/linux-gnu/arch/x86-64bit
gentoo:funtoo/1.0/linux-gnu/build/current
gentoo:funtoo/1.0/linux-gnu/flavor/desktop
gentoo:funtoo/1.0/linux-gnu/mix-ins/kde
Warning

Please, do not add anything manually into parent file. This may result in profile breakage.

For Developers

Define the profile sub-sets you will use

So far in Funtoo we have used the exact same profiles as Gentoo thus Funtoo/2008.0 was strictly the same thing as Gentoo/2008.0 or the barely the same 10.0. This (monolithic) profile was set though a symbolic link named /etc/make.profile pointing on a complex directory architecture located somewhere under /usr/portage/profiles. This is no longer valid with the Funtoo 1.0 profiles as they are split in several smaller bricks which are then glued together via the /etc/portage/make.profile/parent file (You do not need to include everything, just use the "bricks" you need). Those bricks belongs to several categories:

  1. MANDATORY -- An "arch" profile which defines settings for a particular architecture. You'll want to set this to whatever arch your system is and leave it alone. Setting it to a different arch than your system could severely break it.
  2. MANDATORY -- A "build" profile which should match the tree you wish to use. Stable, Current (~arch), or Experimental (use it if you are brave enough and find current too stable).
  3. MANDATORY -- A "flavor" profile (what was previously known as profiles is still known as such in Gentoo) which describes the kind of system you want:
    • minimal - Be warned, minimal is exactly what it says, the minimal profile stuff you need for a usable system, nothing else. This is really for people who know what they're doing.
    • core - This is the core profile. This is for stuff that affects both desktops and servers.
    • desktop - Exactly what it says. If you're using a desktop, you should set this as your flavor.
    • server - If you're running a server, you should set this as your flavor.
  4. OPTIONAL -- One or more "mix-ins" profiles which describe optional add-ons. 'mix-ins' are the heart of the Funtoo 1.0 profiles. Unlike the monolithic profiles which sets a massive amount of use flags and options for you, we've split them into logical add-on profiles. For instance if you want support for gnome, you would add the gnome mix-in to your current profiles. That mix-in sets all the proper use flags and such for gnome. Same with others. Want dvd support? Add that one in. Using a rhel5 kernel which requires special versions of packages such as udev? There's a mix-in for that too. Run a mail server? web server? There's mix-ins for those also. Expect this category to grow in the future as new mix-ins are created.

The contents of /etc/portage/make.profile/parent for a basic setup might look like this:

/etc/portage/make.profile/parent
gentoo:funtoo/1.0/linux-gnu/arch/x86-64bit
gentoo:funtoo/1.0/linux-gnu/build/current
gentoo:funtoo/1.0/linux-gnu/flavor/core

A more rounded setup for a desktop might look like this:

/etc/portage/make.profile/parent
gentoo:funtoo/1.0/linux-gnu/arch/x86-64bit
gentoo:funtoo/1.0/linux-gnu/build/current
gentoo:funtoo/1.0/linux-gnu/flavor/desktop
gentoo:funtoo/1.0/linux-gnu/mix-ins/dvd
gentoo:funtoo/1.0/linux-gnu/mix-ins/media

Related