Difference between pages "Install/Profiles" and "Install/Stage3"

< Install(Difference between pages)
(Removed page from translation)
 
(Removed page from translation)
 
Line 1: Line 1:
 
<noinclude>
 
<noinclude>
{{InstallPart|initial system configuration using Funtoo Linux profiles}}
+
{{InstallPart|the process of installing the Stage3 tarball}}
</noinclude>=== Profiles ===
+
</noinclude>==== Setting the Date ====
  
Once you have rebooted into Funtoo Linux, you can further customize your system to your needs by using Funtoo Profiles.
+
{{Important|If your system's date and time are too far off (typically by months or years,) then it may prevent Portage from properly downloading source tarballs. This is because some of our sources are downloaded via HTTPS, which use SSL certificates and are marked with an activation and expiration date. However, if your system time is relatively close to correct, you can probably skip this step for now.}}
  
[[Funtoo 1.0 Profile|Funtoo profiles]] are used to define defaults for Portage specific to your needs. There are five basic profile types: arch, build, subarch, [[Flavors and Mix-ins|flavor, and mix-ins]]:
+
Now is a good time to verify the date and time are correctly set to UTC. Use the {{c|date}} command to verify the date and time:
  
;arch: typically <code>x86-32bit</code> or <code>x86-64bit</code>, this defines the processor type and support of your system. This is defined when your stage was built and should not be changed.
+
{{console|body=
;build: defines whether your system is a <code>current</code>, <code>stable</code> or <code>experimental</code> build. <code>current</code> systems will have newer packages unmasked than <code>stable</code> systems. This is defined when your stage is built and is typically not changed.
+
###i## date
;subarch: Defines optimizations for your CPU. The subarch is set at the time the stage3 is built, but can be changed later to better settings if necessary. Be sure to pick a setting that is compatible with your CPU.
+
Fri Jul 15 19:47:18 UTC 2011
;flavor: defines the general type of system, such as <code>server</code> or <code>desktop</code>, and will set default USE flags appropriate for your needs.
+
}}
;mix-ins: define various optional settings that you may be interested in enabling.
+
If the date and/or time need to be corrected, do so using {{c|date MMDDhhmmYYYY}}, keeping in mind {{c|hhmm}} are in 24-hour format. The example below changes the date and time to "July 16th, 2011 @ 8:00PM" UTC:
  
One arch, build and flavor must be set for each Funtoo Linux system, while mix-ins are optional and you can enable more than one if desired.
+
{{console|body=
 +
###i## date 071620002011
 +
Fri Jul 16 20:00:00 UTC 2011
 +
}}
 +
Once you have set the system clock, it's a very good idea to copy the time to the hardware clock, so it persists across reboots:
  
Remember that profiles can often be inherited. For example, the <code>desktop</code> flavor inherits the <code>workstation</code> flavor settings, which in turn inherits the <code>X</code> and <code>audio</code> mix-ins. You can view this by using {{c|epro}}:
+
{{console|body=###i## hwclock --systohc}}
  
{{console|body=
+
=== Installing the Stage 3 tarball ===
(chroot) # ##i### epro show
+
  
=== ##g##Enabled Profiles##!g##: ===
+
Now that filesystems are created and your hardware and system clock are set, the next step is downloading the initial Stage 3 tarball. The Stage 3 is a pre-compiled system used as a starting point to install Funtoo Linux.  Notice: if you're using virtual machines (like Vbox) generic stage3 images are preferred rather than cpu-optimized ones.
  
        arch: ##c##x86-64bit
+
To download the correct build of Funtoo Linux for your system, head over to the [[Subarches]] page. Subarches are builds of Funtoo Linux that are designed to run on a particular type of CPU, to offer the best possible performance. They also take advantage of the instruction sets available for each CPU.
      build: ##c##current
+
    subarch: ##c##intel64-haswell
+
      flavor: ##c##desktop
+
    mix-ins: ##c##gnome
+
  
 +
The [[Subarches]] page lists all CPU-optimized versions of Funtoo Linux. Find the one that is appropriate for the type of CPU that your system has, and then click on its name in the first column (such as {{c|corei7}}, for example.) You will then go to a page dedicated to that subarch, and the available stage3's available for download will be listed.
  
=== ##g##All inherited flavors from desktop flavor##!g##: ===
+
For most subarches, you will have several stage3's available to choose from. This next section will help you understand which one to pick.
  
                    ##c##workstation (from desktop flavor)
+
==== Which Build? ====
                            ##c##core (from workstation flavor)
+
                        ##c##minimal (from core flavor)
+
  
=== ##g##All inherited mix-ins from desktop flavor##!g##: ===
+
'''If you're not sure, pick {{c|funtoo-current}}.'''
  
                              ##c##X##!c## (from workstation flavor)
+
Funtoo Linux has various different 'builds':
                          ##c##audio##!c## (from workstation flavor)
+
                            ##c##dvd##!c## (from workstation flavor)
+
                          ##c##media##!c## (from workstation flavor)
+
      ##c##mediadevice-audio-consumer##!c## (from media mix-in)
+
                ##c##mediadevice-base##!c## (from mediadevice-audio-consumer mix-in)
+
      ##c##mediadevice-video-consumer##!c## (from media mix-in)
+
                ##c##mediadevice-base##!c## (from mediadevice-video-consumer mix-in)
+
        ##c##mediaformat-audio-common##!c## (from media mix-in)
+
          ##c##mediaformat-gfx-common##!c## (from media mix-in)
+
        ##c##mediaformat-video-common##!c## (from media mix-in)
+
                  ##c##console-extras##!c## (from workstation flavor)
+
                          ##c##print##!c## (from desktop flavor)
+
}}
+
  
To view available profiles:
+
{{TableStart}}
{{console|body=
+
<tr><th class="info">Build</th><th class="info">Description</th></tr>
(chroot) # ##i##epro list
+
<tr><td>{{c|funtoo-current}}</td><td>The most commonly-selected build of Funtoo Linux. Receives rapid updates and preferred by desktop users.</td></tr>
}}
+
<tr><td>{{c|funtoo-stable}}</td><td>Emphasizes less-frequent package updates and trusted, reliable versions of packages over the latest versions.</td></tr>
 +
{{TableEnd}}
  
Enabled profiles will be highlighted in cyan. Directly enabled profiles will be in bold and have a {{c|*}} appended.
+
==== Which Variant? ====
 +
 
 +
'''If you're not sure, pick {{c|standard}}.'''
 +
 
 +
Our "regular" stage3's are listed with a variant of {{c|standard}}. The following variant builds are available:
 +
 
 +
{{TableStart}}
 +
<tr><th class="info">Variant</th><th class="info">Description</th></tr>
 +
<tr><td>{{c|standard}}</td><td>The "standard" version of Funtoo Linux</td></tr>
 +
<tr><td>{{c|pure64}}</td><td>A 64-bit build that drops multilib (32-bit compatibility) support. Can be ideal for server systems.</td></tr>
 +
<tr><td>{{c|hardened}}</td><td>Includes PIE/SSP toolchain for enhanced security. PIE does require the use of PaX in the kernel, while SSP works with any kernel, and provides enhanced security in user-space to avoid stack-based exploits. For expert users.</td></tr>
 +
{{TableEnd}}
 +
 
 +
==== Download the Stage3 ====
 +
 
 +
Once you have found the stage3 that you would like to download, use {{c|wget}} to download the Stage 3 tarball you have chosen to use as the basis for your new Funtoo Linux system. It should be saved to the {{f|/mnt/funtoo}} directory as follows:
  
To change the profile flavor:
 
 
{{console|body=
 
{{console|body=
(chroot) # ##i##epro flavor desktop
+
###i## cd /mnt/funtoo
 +
###i## wget http://build.funtoo.org/funtoo-current/x86-64bit/generic_64/stage3-latest.tar.xz
 
}}
 
}}
 +
Note that 64-bit systems can run 32-bit or 64-bit stages, but 32-bit systems can only run 32-bit stages. Make sure that you select a Stage 3 build that is appropriate for your CPU. If you are not certain, it is a safe bet to choose the {{c|generic_64}} or {{c|generic_32}} stage. Consult the [[Subarches]] page for more information.
  
To add a mix-in:
+
Once the stage is downloaded, extract the contents with the following command, substituting in the actual name of your stage 3 tarball:
 
+
 
{{console|body=
 
{{console|body=
(chroot) # ##i##epro mix-in +gnome
+
###i## tar xpf stage3-latest.tar.xz
 
}}
 
}}
 +
{{Important|It is very important to use {{c|tar's}} "{{c|'''p'''}}" option when extracting the Stage 3 tarball - it tells {{c|tar}} to ''preserve'' any permissions and ownership that exist within the archive. Without this option, your Funtoo Linux filesystem permissions will be incorrect.}}

Latest revision as of 20:34, July 16, 2015


Note

This is a template that is used as part of the Installation instructions which covers: the process of installing the Stage3 tarball. Templates are being used to allow multiple variant install guides that use most of the same re-usable parts.

Setting the Date

Important

If your system's date and time are too far off (typically by months or years,) then it may prevent Portage from properly downloading source tarballs. This is because some of our sources are downloaded via HTTPS, which use SSL certificates and are marked with an activation and expiration date. However, if your system time is relatively close to correct, you can probably skip this step for now.

Now is a good time to verify the date and time are correctly set to UTC. Use the date command to verify the date and time:

# date
Fri Jul 15 19:47:18 UTC 2011

If the date and/or time need to be corrected, do so using date MMDDhhmmYYYY, keeping in mind hhmm are in 24-hour format. The example below changes the date and time to "July 16th, 2011 @ 8:00PM" UTC:

# date 071620002011
Fri Jul 16 20:00:00 UTC 2011

Once you have set the system clock, it's a very good idea to copy the time to the hardware clock, so it persists across reboots:

# hwclock --systohc


Installing the Stage 3 tarball

Now that filesystems are created and your hardware and system clock are set, the next step is downloading the initial Stage 3 tarball. The Stage 3 is a pre-compiled system used as a starting point to install Funtoo Linux. Notice: if you're using virtual machines (like Vbox) generic stage3 images are preferred rather than cpu-optimized ones.

To download the correct build of Funtoo Linux for your system, head over to the Subarches page. Subarches are builds of Funtoo Linux that are designed to run on a particular type of CPU, to offer the best possible performance. They also take advantage of the instruction sets available for each CPU.

The Subarches page lists all CPU-optimized versions of Funtoo Linux. Find the one that is appropriate for the type of CPU that your system has, and then click on its name in the first column (such as corei7, for example.) You will then go to a page dedicated to that subarch, and the available stage3's available for download will be listed.

For most subarches, you will have several stage3's available to choose from. This next section will help you understand which one to pick.

Which Build?

If you're not sure, pick funtoo-current.

Funtoo Linux has various different 'builds':

BuildDescription
funtoo-currentThe most commonly-selected build of Funtoo Linux. Receives rapid updates and preferred by desktop users.
funtoo-stableEmphasizes less-frequent package updates and trusted, reliable versions of packages over the latest versions.

Which Variant?

If you're not sure, pick standard.

Our "regular" stage3's are listed with a variant of standard. The following variant builds are available:

VariantDescription
standardThe "standard" version of Funtoo Linux
pure64A 64-bit build that drops multilib (32-bit compatibility) support. Can be ideal for server systems.
hardenedIncludes PIE/SSP toolchain for enhanced security. PIE does require the use of PaX in the kernel, while SSP works with any kernel, and provides enhanced security in user-space to avoid stack-based exploits. For expert users.

Download the Stage3

Once you have found the stage3 that you would like to download, use wget to download the Stage 3 tarball you have chosen to use as the basis for your new Funtoo Linux system. It should be saved to the /mnt/funtoo directory as follows:

# cd /mnt/funtoo
# wget http://build.funtoo.org/funtoo-current/x86-64bit/generic_64/stage3-latest.tar.xz

Note that 64-bit systems can run 32-bit or 64-bit stages, but 32-bit systems can only run 32-bit stages. Make sure that you select a Stage 3 build that is appropriate for your CPU. If you are not certain, it is a safe bet to choose the generic_64 or generic_32 stage. Consult the Subarches page for more information.

Once the stage is downloaded, extract the contents with the following command, substituting in the actual name of your stage 3 tarball:

# tar xpf stage3-latest.tar.xz
Important

It is very important to use tar's "p" option when extracting the Stage 3 tarball - it tells tar to preserve any permissions and ownership that exist within the archive. Without this option, your Funtoo Linux filesystem permissions will be incorrect.