Difference between revisions of "Install/es"

From Funtoo
Jump to navigation Jump to search
(Created page with "Instalar")
 
(Updating to match new version of source page)
Tag: Replaced
 
(555 intermediate revisions by 22 users not shown)
Line 1: Line 1:
<languages/>
<div lang="en" dir="ltr" class="mw-content-ltr">
{{Note|Translators: Thank you for your help! Please use the {{Install|section-by-section guide}} as the basis for your translations. Thanks again!}}
{{DISPLAYTITLE:Funtoo Linux Installation Guide}}
</div>
{{#widget:AddThis}}
{{#widget:AddThis}}
= Install Funtoo Linux =
{{translated_subpage|Install|Introduction}}
__NOTITLE__
{{translated_subpage|Install|Download LiveCD}}
<languages/>
{{translated_subpage|Install|Prepare Disk}}
{{Announce|To help us translate this documentation, {{CreateAccount}}, log in to the wiki. Then go to Actions -> Translate in the menu, or click the "Translate this page" link, above. You will be able to select small parts of the install docs and translate these parts to your native language.}}
{{translated_subpage|Install|MBR Partitioning}}
== Introduction ==
{{translated_subpage|Install|GPT Partitioning}}
{{translated_subpage|Install|Creating Filesystems}}
{{translated_subpage|Install|Mounting Filesystems}}
{{translated_subpage|Install|Setting the Date}}
{{translated_subpage|Install|Download and Extract Stage3}}
{{translated_subpage|Install|Chroot}}
{{translated_subpage|Install|Download Portage Tree}}
{{translated_subpage|Install|Configuration Files}}
{{translated_subpage|Install|Introducing Portage}}
{{translated_subpage|Install|Kernel}}
{{translated_subpage|Install|Bootloader}}
{{translated_subpage|Install|Network}}
{{translated_subpage|Install|Finishing}}
{{translated_subpage|Install|Profiles}}
{{translated_subpage|Install|Done}}


This document was written to help you install Funtoo Linux on PC-compatible systems, while keeping distracting options regarding system configuration to a minimum.
[[Category:HOWTO]]
 
[[Category:Install]]
If you've had previous experience installing Gentoo Linux then a lot of steps will be familiar, but you should still read through as there are a few differences. If you're new to installing a Gentoo-based Linux, or new to Linux entirely -- welcome! We have attempted to make these installation instructions understandable to new users as well.
[[Category:Official Documentation]]
 
{{Note|If you are installing Funtoo Linux on [[Funtoo Linux Installation on ARM|ARM]] architecture, please see [[Funtoo Linux Installation on ARM]] for notable differences regarding ARM support. }}
 
== Installation Overview ==
 
This is a basic overview of the Funtoo installation process:
 
# [[#Live CD|Download and boot the live CD of your choice]].
# [[#Prepare Hard Disk|Prepare your disk]].
# [[#Creating filesystems|Create]] and [[#Mounting filesystems|mount]] filesystems.
# [[#Installing the Stage 3 tarball|Install the Funtoo stage tarball]] of your choice.
# [[#Chroot into Funtoo|Chroot into your new system]].
# [[#Downloading the Portage tree|Download the Portage tree]].
# [[#Configuring your system|Configure your system]] and [[#Configuring your network|network]].
# [[#Configuring and installing the Linux kernel|Install a kernel]].
# [[#Installing a Bootloader|Install a bootloader]].
# [[#Finishing Steps|Complete final steps]].
# [[#Restart your system|Reboot and enjoy]].
 
=== Live CD ===
 
In order to install Funtoo Linux, you will first need to boot your computer using a Linux-based Live CD or USB stick. We recommend the Gentoo-based [http://www.sysresccd.org/ System Rescue CD] as it contains lots of tools and utilities and supports both 32-bit and 64-bit systems. It can be burned to CD/DVD or installed on a USB stick. Download it here:
 
* Download from '''[http://ftp.osuosl.org/pub/funtoo/distfiles/sysresccd/systemrescuecd-x86-4.5.0.iso osuosl.org]'''
* Download from '''[http://build.funtoo.org/distfiles/sysresccd/systemrescuecd-x86-4.5.0.iso funtoo.org]'''
 
{{Note|If using an older version of System Rescue CD, '''be sure to select the <code>rescue64</code> kernel at the boot menu if you are installing a 64-bit system'''. By default, System Rescue CD used to boot in 32-bit mode though the latest version attempts to automatically detect 64-bit processors.}}
 
==== Network Access ====
 
Once you have booted System Rescue CD, see if you have Internet access. Internet access is required for installing Funtoo Linux:
 
<console>
# ##i##ping www.google.com
PING www.google.com (216.58.217.36) 56(84) bytes of data.
64 bytes from den03s10-in-f4.1e100.net (216.58.217.36): icmp_seq=1 ttl=57 time=30.1 ms
</console>
 
If the ping is successful (you see <code>64 bytes</code> messages as above,) then your Network is set up. Hit Control-C to stop the ping.
 
If you need to set up a WiFi connection for Internet access, then this needs to be done using the System Rescue CD graphical environment. Run <code>startx</code> to start a graphical session:
<console>
# ##i##startx
</console>
 
[[File:NetworkManagerIcon.PNG|left|caption]]
 
Then, use the NetworkManager applet (icon in lower right of graphical session, in taskbar) to connect to a WiFi network of your choice. Next, open a terminal inside your graphical environment, and you should be able to use the terminal to complete the rest of the steps.
 
==== Remote Install ====
 
Alternatively, you can log into System Rescue CD over the network via SSH to perform the install from another computer, and this may be more convenient way to install Funtoo Linux.
 
If you'd like to complete the install remotely, here's how. First, you will need to ensure that System Rescue CD has a functioning network connection. Then, you will need to set a root password for System Rescue CD:
{{console|body=
###i## passwd
New password: ##i##********
Retype new password: ##i##********
passwd: password updated successfully
}}
Once you have typed in a password, you will now need to determine the IP address of System Rescue CD, and then you can use {{c|ssh}} to connect to it. To determine the IP address currently being used by System Rescue CD, type {{c|ifconfig}}:
 
{{console|body=
###i## ifconfig
}}
One of the interfaces should have an IP address (listed as {{c|inet addr:}}) from your LAN. You can then connect remotely, from another system on your LAN, to System Rescue CD, and perform steps from the comfort of an existing OS. On your remote system, type the following, replacing {{c|1.2.3.4}} with the IP address of System Rescue CD. Connecting from an existing Linux or MacOS system would look something like this:
 
{{console|body=
(remote system) $ ##i##ssh root@1.2.3.4
Password: ##i##**********}}
{{Note|If you'd like to connect remotely from an existing Microsoft Windows system, you'll need to download an SSH client for Windows, such as [http://www.chiark.greenend.org.uk/~sgtatham/putty/ PuTTY].}}
 
After you've logged in via SSH, you're now connected remotely to System Rescue CD and can perform the installation steps.
 
=== Prepare Hard Disk ===
 
In this section, we'll learn about the different ways that Funtoo Linux can boot from a hard disk. By "boot", we mean the process by which Linux starts after you press the power button on your desktop, laptop or server. You can think of "booting" as a process that starts with your computer's firmware (built-in software) running, and then "finding" the Linux kernel and running it. The Linux kernel then takes over, identifies all your hardware, and starts.
 
==== Background ====
 
{{Note|If you are an absolute beginner to Linux, you may be less confused if you skip to the next section, [[#Which to Use?|Which to Use?]]}}
 
In earlier times, there was only one way to boot a PC-compatible computer. All of our desktops and servers had standard firmware called the "PC BIOS," all our hard drives used Master Boot Records at the beginning of the disk, where the PC BIOS would "look" to find boot loader code which would in turn load Linux, and our hard drives were partitioned into different regions using the standard MBR partition scheme. That was just how it was done. And we liked it that way!
 
Then, along came EFI and UEFI, which are new-style firmware designed to boot systems, along with GPT partition tables to define disk partitions on disks larger than 2.2TB. All of the sudden, we had a variety of options for installing and booting Linux systems, turning what once was a one-method-fits-all approach into something a lot more complex.
 
Let's take a moment to review the options available to you for configuring a hard drive to boot Funtoo Linux. This Install Guide uses, and recommends, the old-school method of BIOS booting and using an MBR. It works and (except for rare cases) is universally supported. There's nothing wrong with it. If your system disk is 2TB or smaller in size, it won't prevent you from using all of your disk's capacity, either.
 
But, there are some situations where the old-school method isn't optimal. If you have a system disk >2TB in size, then MBR partitions won't allow you to access all your storage. So that's one reason. Another reason is that there are some so-called "PC" systems out there that don't support BIOS booting anymore, and force you to use UEFI to boot. So, out of compassion for people who fall into this predicament, this Install Guide documents UEFI booting too.
 
Our recommendation is still to go old-school unless you have reason not to. The boot loader we will be using to load the Linux kernel in this guide is called GRUB, so we call this method the '''BIOS + GRUB (MBR)''' method. It's the traditional method of setting up a PC-compatible system to boot Linux.
 
If you need to use UEFI to boot, we recommend not using the MBR at all for booting, as some systems support this, but others don't. Instead, we recommend using UEFI to boot GRUB, which in turn will load Linux. We refer to this method as the '''UEFI + GRUB (GPT)''' method.
 
And yes, there are even more methods, some of which are documented on the [[Boot Methods]] page. We used to recommend a '''BIOS + GRUB (GPT)''' method but it is not consistently supported across a wide variety of hardware.
 
==== Which to Use? ====
 
'''The big question is -- which boot method should you use?''' Here's how to tell.
 
;Principle 1 - Old School: If you can reliably boot System Rescue CD and it shows you an initial light blue menu, you are booting the CD using the BIOS, and it's likely that you can thus boot Funtoo Linux using the BIOS. So, go old-school and use BIOS booting, ''unless'' you have some reason to use UEFI, such as having a >2.2TB system disk. In that case, see Principle 2, as your system may also support UEFI booting.
 
;Principle 2 - New School: If you can reliably boot System Rescue CD and it shows you an initial black and white menu -- congratulations, your system is configured to support UEFI booting. This means that you are ready to install Funtoo Linux to boot via UEFI. Your system may still support BIOS booting, but just be trying UEFI first. You can poke around in your BIOS boot configuration and play with this.
 
{{Note|'''Advanced Users May Wonder:''' What's the Big Difference between Old School and New School?: Here's the deal. If you go with old-school MBR partitions, your {{f|/boot}} partition will be an ext2 filesystem, and you'll use {{c|fdisk}} to create your MBR partitions. If you go with new-school GPT partitions and UEFI booting, your {{f|/boot}} partition will be a vfat filesystem, because this is what UEFI is able to read, and you will use {{c|gdisk}} to create your GPT partitions. And you'll install GRUB a bit differently. That's about all it comes down to, in case you were curious.}}
 
To install Funtoo Linux to boot via the New School UEFI method, you must boot System Rescue CD using UEFI. If you successfully boot sysresccd with UEFI, you will see an initial black and white screen to select the mode in which you will boot system rescue cd. Otherwise, if you see a blue screen with black text, UEFI will not be active and you will not be able to set up UEFI booting later in the install process!
 
{{Note|'''Some motherboards may appear to support UEFI, but don't.''' Do your research. For example, the Award BIOS in my Gigabyte GA-990FXA-UD7 rev 1.1 has an option to enable UEFI boot for CD/DVD. '''This is not sufficient for enabling UEFI boot for hard drives and installing Funtoo Linux.''' UEFI must be supported for both removable media (so you can boot System Rescue CD using UEFI) as well as fixed media (so you can boot your new Funtoo Linux installation.) It turns out that later revisions of this board (rev 3.0) have a new BIOS that fully supports UEFI boot.  This may point to a third principle -- know thy hardware.}}
 
==== Old-School (BIOS/MBR) Method ====
 
{{Note|Use this method if you are booting using your BIOS, and if your System Rescue CD initial boot menu was light blue. If you're going to use the new-school method, [[#New-School (UEFI/GPT) Method|click here to jump down to UEFI/GPT.]]}}
 
First, it's a good idea to make sure that you've found the correct hard disk to partition. Try this command and verify that {{f|/dev/sda}} is the disk that you want to partition:
{{console|body=
###i## fdisk -l /dev/sda
 
Disk /dev/sda: 640.1 GB, 640135028736 bytes, 1250263728 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: gpt
 
#        Start          End    Size  Type            Name
1        2048  1250263694  596.2G  Linux filesyste Linux filesystem
}}
Now, it is recommended that you erase any existing MBR or GPT partition tables on the disk, which could confuse the system's BIOS at boot time. We accomplish this using {{c|sgdisk}}:
{{Warning|This will make any existing partitions inaccessible! You are '''strongly''' cautioned and advised to backup any critical data before proceeding.}}
 
{{console|body=
###i## sgdisk --zap-all /dev/sda
 
Creating new GPT entries.
GPT data structures destroyed! You may now partition the disk using fdisk or
other utilities.
}}
This output is also nothing to worry about, as the command still succeded:
 
{{console|body=
***************************************************************
Found invalid GPT and valid MBR; converting MBR to GPT format
in memory.
***************************************************************
}}Now we will use {{c|fdisk}} to create the MBR partition table and partitions:
{{console|body=
###i## fdisk /dev/sda
}}
Within {{c|fdisk}}, follow these steps:
 
'''Empty the partition table''':
{{console|body=
Command (m for help): ##i##o ↵
}}
'''Create Partition 1''' (boot):
 
{{console|body=
Command (m for help): ##i##n ↵
Partition type (default p): ##i##↵
Partition number (1-4, default 1): ##i##↵
First sector: ##i##↵
Last sector: ##i##+128M ↵
}}
'''Create Partition 2''' (swap):
 
{{console|body=
Command (m for help): ##i##n ↵
Partition type (default p): ##i##↵
Partition number (2-4, default 2): ##i##↵
First sector: ##i##↵
Last sector: ##i##+2G ↵
Command (m for help): ##i##t ↵
Partition number (1,2, default 2): ##i## ↵
Hex code (type L to list all codes): ##i##82 ↵
}}
'''Create the root partition:'''
 
{{console|body=
Command (m for help): ##i##n ↵
Partition type (default p): ##i##↵
Partition number (3,4, default 3): ##i##↵
First sector: ##i##↵
Last sector: ##i##↵
}}
'''Verify the partition table:'''


{{console|body=
{{#css:
Command (m for help): ##i##p
firstHeading {
 
   display: none;
Disk /dev/sda: 298.1 GiB, 320072933376 bytes, 625142448 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x82abc9a6
 
Device    Boot    Start      End    Blocks  Id System
/dev/sda1          2048    264191    131072  83 Linux
/dev/sda2        264192  4458495   2097152  82 Linux swap / Solaris
/dev/sda3        4458496 625142447 310341976  83 Linux
}}
'''Write the parition table to disk:'''
 
{{console|body=Command (m for help): ##i##w}}
Your new MBR partition table will now be written to your system disk.
 
{{Note|You're done with partitioning! Now, jump over to [[#Creating filesystems|Creating filesystems]].}}
 
==== New-School (UEFI/GPT) Method ====
 
{{Note|Use this method if you are interested in booting using UEFI, and if your System Rescue CD initial boot menu was black and white. If it was light blue, this method will not work.}}
 
The {{c|gdisk}} commands to create a GPT partition table are as follows. Adapt sizes as necessary, although these defaults will work for most users. Start {{c|gdisk}}:
{{console|body=###i## gdisk /dev/sda}}
Within {{c|gdisk}}, follow these steps:
 
'''Create a new empty partition table''' (This ''will'' erase all data on the disk when saved):
{{console|body=
Command: ##i##o ↵
This option deletes all partitions and creates a new protective MBR.
Proceed? (Y/N): ##i##y ↵
}}
'''Create Partition 1''' (boot):
 
{{console|body=
Command: ##i##n ↵
Partition Number: ##i##1 ↵
First sector: ##i##↵
Last sector: ##i##+500M ↵
Hex Code: ##i##EF00 ↵
}}
'''Create Partition 2''' (swap):
 
{{console|body=
Command: ##i##n ↵
Partition Number: ##i##2 ↵
First sector: ##i##↵
Last sector: ##i##+4G ↵
Hex Code: ##i##8200 ↵
}}
'''Create Partition 3''' (root):
 
{{console|body=
Command: ##i##n ↵
Partition Number: ##i##3 ↵
First sector: ##i##↵
Last sector: ##i##↵##!i## (for rest of disk)
Hex Code: ##i##↵
}}
Along the way, you can type "{{c|p}}" and hit Enter to view your current partition table. If you make a mistake, you can type "{{c|d}}" to delete an existing partition that you created. When you are satisfied with your partition setup, type "{{c|w}}" to write your configuration to disk:
 
'''Write Partition Table To Disk''':
{{console|body=
Command: ##i##w ↵
Do you want to proceed? (Y/N): ##i##Y ↵
}}The partition table will now be written to the disk and {{c|gdisk}} will close.
 
Now, your GPT/GUID partitions have been created, and will show up as the following ''block devices'' under Linux:
 
* {{c|/dev/sda1}}, which will be used to hold the {{c|/boot}} filesystem,
 
* {{c|/dev/sda2}}, which will be used for swap space, and
 
* {{c|/dev/sda3}}, which will hold your root filesystem.
 
{{Tip|You can verify that the block devices above were correctly created by running the command {{c|lsblk}}.}}
==== Creating filesystems ====
 
{{Note|This section covers both BIOS ''and'' UEFI installs. Don't skip it!}}
 
Before your newly-created partitions can be used, the block devices that were created in the previous step need to be initialized with filesystem ''metadata''. This process is known as ''creating a filesystem'' on the block devices. After filesystems are created on the block devices, they can be mounted and used to store files.
 
Let's keep this simple. Are you using old-school MBR partitions? If so, let's create an ext2 filesystem on {{f|/dev/sda1}}:
{{console|body=###i## mkfs.ext2 /dev/sda1}}
If you're using new-school GPT partitions for UEFI, you'll want to create a vfat filesystem on {{c|/dev/sda1}}, because this is what UEFI is able to read:
{{console|body=###i## mkfs.vfat -F 32 /dev/sda1}}
Now, let's create a swap partition. This partition will be used as disk-based virtual memory for your Funtoo Linux system.
 
You will not create a filesystem on your swap partition, since it is not used to store files. But it is necessary to initialize it using the {{c|mkswap}} command. Then we'll run the {{c|swapon}} command to make your newly-initialized swap space immediately active within the live CD environment, in case it is needed during the rest of the install process:
{{console|body=
# ##i##mkswap /dev/sda2
# ##i##swapon /dev/sda2
}}Now, we need to create a root filesystem. This is where Funtoo Linux will live. We generally recommend ext4 or XFS root filesystems. If you're not sure, choose ext4. Here's how to create a root ext4 filesystem:
 
{{console|body=###i## mkfs.ext4 /dev/sda3}}
...and here's how to create an XFS root filesystem, if you prefer to use XFS instead of ext4:
 
{{console|body=###i## mkfs.xfs /dev/sda3}}
Your filesystems (and swap) have all now been initialized, so that that can be mounted (attached to your existing directory heirarchy) and used to store files. We are ready to begin installing Funtoo Linux on these brand-new filesystems.
 
{{Warning|When deploying an OpenVZ host, please use ext4 exclusively. The Parallels development team tests extensively with ext4, and modern versions of {{c|openvz-rhel6-stable}} are '''not''' compatible with XFS, and you may experience kernel bugs.}}
 
==== Mounting filesystems ====
 
Mount the newly-created filesystems as follows, creating {{c|/mnt/funtoo}} as the installation mount point:
{{console|body=
###i## mkdir /mnt/funtoo
###i## mount /dev/sda3 /mnt/funtoo
###i## mkdir /mnt/funtoo/boot
###i## mount /dev/sda1 /mnt/funtoo/boot
}}
Optionally, if you have a separate filesystem for {{f|/home}} or anything else:
 
{{console|body=
###i## mkdir /mnt/funtoo/home
###i## mount /dev/sda4 /mnt/funtoo/home
}}
If you have {{f|/tmp}} or {{f|/var/tmp}} on a separate filesystem, be sure to change the permissions of the mount point to be globally-writeable after mounting, as follows:
{{console|body=###i## chmod 1777 /mnt/funtoo/tmp}}
==== 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 {{c|date}} command to verify the date and time:
{{console|body=
###i## date
Fri Jul 15 19:47:18 UTC 2011
}}
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:
 
{{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:
 
{{console|body=###i## 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 {{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.
 
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 {{c|funtoo-current}}.'''
 
Funtoo Linux has various different 'builds':
 
{{TableStart}}
{{2ColHead|Build|Description}}
<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}}
 
==== 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}}
{{2ColHead|Variant|Description}}
<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:
{{console|body=
###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.
 
Once the stage is downloaded, extract the contents with the following command, substituting in the actual name of your stage 3 tarball:
{{console|body=
###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.}}
 
=== Chroot into Funtoo ===
To install Funtoo Linux, the {{c|chroot}} command is first used. The chroot command will "switch into" the new Funtoo Linux system, so the commands you execute after running "chroot" will run within your newly-extracted Funtoo Linux system.
 
Before chrooting, there are a few things that need to be done to set up the chroot environment. You will need to mount {{f|/proc}}, {{f|/sys}} and {{f|/dev}} inside your new system. Use the following commands to do so:
{{console|body=
# ##i##cd /mnt/funtoo
# ##i##mount -t proc none proc
# ##i##mount --rbind /sys sys
# ##i##mount --rbind /dev dev
}}You'll also want to copy over {{f|resolv.conf}} in order to have proper resolution of Internet hostnames from inside the chroot:
{{console|body=
# ##i##cp /etc/resolv.conf /mnt/funtoo/etc/
}}Now you can chroot into your new system. Use <code>env</code> before <code>chroot</code> to ensure that no environment settings from the installation media are pulled in to your new system:
 
{{console|body=###i## env -i HOME=/root TERM=$TERM chroot . bash -l}}
{{Note|For users of live CDs with 64-bit kernels installing 32-bit systems: Some software may use {{c|uname -r}} to check whether the system is 32 or 64-bit. You may want append linux32 to the chroot command as a workaround, but it's generally not needed.}}
{{Important|If you receive the error "{{c|chroot: failed to run command `/bin/bash': Exec format error}}", it is most likely because you are running a 32-bit kernel and trying to execute 64-bit code. Make sure that you have selected the proper type of kernel when booting SystemRescueCD.}}
 
It's also a good idea to change the default command prompt while inside the chroot. This will avoid confusion if you have to change terminals. Use this command:
{{console|body=# ##i##export PS1="(chroot) $PS1"}}
Test internet name resolution from within the chroot:
{{console|body=###i## ping -c 5 google.com}}
If you can't ping, make sure {{f|/etc/resolv.conf}} doesn't contain things like {{c|127.0.x.x}} addresses, if it does, change the {{c|127.0.x.x}} entry to {{c|8.8.8.8}} -- Google's public dns address.  Make sure to replace this with your dns of choice once the system is installed.
 
 
Congratulations! You are now chrooted inside a Funtoo Linux system. Now it's time to get Funtoo Linux properly configured so that Funtoo Linux will start successfully, without any manual assistance, when your system is restarted.
=== Downloading the Portage tree ===
 
{{note|For an alternative way to do this, see [[Installing Portage From Snapshot]].}}
Now it's time to install a copy of the Portage repository, which contains package scripts (ebuilds) that tell portage how to build and install thousands of different software packages. To create the Portage repository, simply run <code>emerge --sync</code> from within the chroot. This will automatically clone the portage tree from [https://github.com/funtoo/ports-2012 GitHub]:
 
{{console|body=
(chroot) ###i## emerge --sync
}}
{{important|If you receive the error with initial {{c|emerge --sync}} due to git protocol restrictions, set the {{c|SYNC}} variable in {{c|/etc/portage/make.conf}} to
{{c|"https://github.com/funtoo/ports-2012.git"}}
}}
 
=== Configuring your system ===
As is expected from a Linux distribution, Funtoo Linux has its share of configuration files. The one file you are absolutely required to edit in order to ensure that Funtoo Linux boots successfully is {{f|/etc/fstab}}. The others are optional.
 
==== Using Nano ====
 
The default editor included in the chroot environment is called {{c|nano}}. To edit one of the files below, run nano as follows:
 
{{console|body=
(chroot) ###i## nano /etc/fstab
}}
When in the editor, you can use arrow keys to move the cursor, and common keys like backspace and delete will work as expected. To save the file, press Control-X, and answer {{c|y}} when prompted to save the modified buffer if you would like to save your changes.
 
==== Configuration Files ====
 
Here are a full list of files that you may want to edit, depending on your needs:
{{TableStart}}
{{3ColHead|File|Do I need to change it?|Description}}
<tr  class="danger">
<td>{{c|/etc/fstab}}</td>
<td>'''YES - required'''</td>
<td>Mount points for all filesystems to be used at boot time. This file must reflect your disk partition setup. We'll guide you through modifying this file below.</td>
</tr><tr>
<td>{{c|/etc/localtime}}</td>
<td>''Maybe - recommended''</td>
<td>Your timezone, which will default to UTC if not set. This should be a symbolic link to something located under /usr/share/zoneinfo (e.g. /usr/share/zoneinfo/America/Montreal) </td>
</tr><tr>
<td>{{c|/etc/make.conf}} (symlink) - also known as:<br/>{{c|/etc/portage/make.conf}}</td>
<td>''Maybe - recommended''</td>
<td>Parameters used by gcc (compiler), portage, and make. It's a good idea to set MAKEOPTS. This is covered later in this document.</td>
</tr><tr>
<td>{{c|/etc/conf.d/hostname}}</td>
<td>''Maybe - recommended''</td>
<td>Used to set system hostname. Set the {{c|hostname}} variable to the fully-qualified (with dots, ie. {{c|foo.funtoo.org}}) name if you have one. Otherwise, set to the local system hostname (without dots, ie. {{c|foo}}). Defaults to {{c|localhost}} if not set.</td>
</tr><tr>
<td>{{c|/etc/hosts}}</td>
<td>''No''</td>
<td> You no longer need to manually set the hostname in this file. This file is automatically generated by {{c|/etc/init.d/hostname}}.</td>
</tr><tr>
<td>{{c|/etc/conf.d/keymaps}}</td>
<td>Optional</td>
<td>Keyboard mapping configuration file (for console pseudo-terminals). Set if you have a non-US keyboard. See [[Funtoo Linux Localization]].</td>
</tr><tr>
<td>{{c|/etc/conf.d/hwclock}}</td>
<td>Optional</td>
<td>How the time of the battery-backed hardware clock of the system is interpreted (UTC or local time). Linux uses the battery-backed hardware clock to initialize the system clock when the system is booted.</td>
</tr><tr>
<td>{{c|/etc/conf.d/modules}}</td>
<td>Optional</td>
<td>Kernel modules to load automatically at system startup. Typically not required. See [[Additional Kernel Resources]] for more info.</td>
</tr><tr>
<td>{{c|/etc/conf.d/consolefont}}</td>
<td>Optional</td>
<td>Allows you to specify the default console font. To apply this font, enable the consolefont service by running rc-update add consolefont.</td>
</tr><tr>
<td>{{c|profiles}}</td>
<td>Optional</td>
<td>Some useful portage settings that may help speed up intial configuration.</td>
</tr>
{{TableEnd}}
 
If you're installing an English version of Funtoo Linux, you're in luck, as most of the configuration files can be used as-is. If you're installing for another locale, don't worry. We will walk you through the necessary configuration steps on the [[Funtoo Linux Localization]] page, and if needed, there's always plenty of friendly, helpful support available. (See [[#Community portal|Community]])
 
Let's go ahead and see what we have to do. Use {{c|nano -w <name_of_file>}} to edit files -- the "{{c|-w}}" argument disables word-wrapping, which is handy when editing configuration files. You can copy and paste from the examples.
 
{{Warning|It's important to edit your {{c|/etc/fstab}} file before you reboot! You will need to modify both the "fs" and "type" columns to match the settings for your partitions and filesystems that you created with {{c|gdisk}} or {{c|fdisk}}. Skipping this step may prevent Funtoo Linux from booting successfully.}}
 
==== /etc/fstab ====
 
{{f|/etc/fstab}} is used by the {{c|mount}} command which is run when your system boots. Lines in this file inform {{c|mount}} about filesystems to be mounted and how they should be mounted. In order for the system to boot properly, you must edit {{f|/etc/fstab}} and ensure that it reflects the partition configuration you used earlier in the install process. If you can't remember the partition configuration that you used earlier, the {{c|lsblk}} command may be of help to you:
{{console|body=
(chroot) ###i## nano -w /etc/fstab
}}
{{file|name=/etc/fstab|desc=An example fstab file|body=
# The root filesystem should have a pass number of either 0 or 1.
# All other filesystems should have a pass number of 0 or greater than 1.
#
# NOTE: If your BOOT partition is ReiserFS, add the notail option to opts.
#
# See the manpage fstab(5) for more information.
#
# <fs>     <mountpoint>  <type>  <opts>        <dump/pass>
 
/dev/sda1    /boot        ext2    noauto,noatime 1 2
/dev/sda2    none          swap    sw            0 0
/dev/sda3    /            ext4    noatime        0 1
#/dev/cdrom  /mnt/cdrom    auto    noauto,ro      0 0
}}
{{Note|Currently, our default {{f|/etc/fstab}}file  has the root filesystem as {{c|/dev/sda4}} and the swap partition as {{c|/dev/sda3}}. These will need to be changed to {{c|/dev/sda3}} and {{c|/dev/sda2}}, respectively.}}
 
{{Note|If you're using UEFI to boot, change the {{f|/dev/sda1}} line so that it says {{c|vfat}} instead of {{c|ext2}}. Similarly, make sure that the {{f|/dev/sda3}} line specifies either {{c|xfs}} or {{c|ext4}}, depending on which filesystem you chose earlier on in the installation process when you created filesystems.}}
 
==== /etc/localtime ====
 
{{f|/etc/localtime}} is used to specify the timezone that your machine is in, and defaults to UTC. If you would like your Funtoo Linux system to use local time, you should replace {{f|/etc/localtime}} with a symbolic link to the timezone that you wish to use.
 
{{console|body=
(chroot) ###i## ln -sf /usr/share/zoneinfo/MST7MDT /etc/localtime
}}
The above sets the timezone to Mountain Standard Time (with daylight savings). Type {{c|ls /usr/share/zoneinfo}} to list available timezones. There are also sub-directories containing timezones described by location.
 
==== /etc/portage/make.conf ====
 
{{c|MAKEOPTS}} can be used to define how many parallel compilations should occur when you compile a package, which can speed up compilation significantly. A rule of thumb is the number of CPUs (or CPU threads) in your system plus one. If, for example, you have a dual core processor without [[wikipedia:Hyper-threading|hyper-threading]], then you would set {{c|MAKEOPTS}} to 3:
 
<pre>
MAKEOPTS="-j3"
</pre>
 
If you are unsure about how many processors/threads you have, then use {{c|nproc}} to help you.
{{console|body=
(chroot) ###i## nproc
16
}}
Set {{c|MAKEOPTS}} to this number plus one:
 
<pre>
MAKEOPTS="-j17"
</pre>
 
{{c|USE}} flags define what functionality is enabled when packages are built. It is not recommended to add a lot of USE flags during installation; you should wait until you have a working, bootable system before changing your USE flags. A USE flag prefixed with a minus ("{{c|-}}") sign tells Portage not to use the flag when compiling.  A Funtoo guide to USE flags will be available in the future. For now, you can find out more information about USE flags in the [http://www.gentoo.org/doc/en/handbook/handbook-amd64.xml?part=2&chap=2 Gentoo Handbook].
 
{{c|LINGUAS}} tells Portage which local language to compile the system and applications in (those who use LINGUAS variable like OpenOffice). It is not usually necessary to set this if you use English. If you want another language such as French (fr) or German (de), set LINGUAS appropriately:
 
<pre>
LINGUAS="fr"
</pre>
 
==== /etc/conf.d/hwclock ====
If you dual-boot with Windows, you'll need to edit this file and change the value of '''clock''' from '''UTC''' to '''local''', because Windows will set your hardware clock to local time every time you boot Windows. Otherwise you normally wouldn't need to edit this file.
{{console|body=
(chroot) ###i## nano -w /etc/conf.d/hwclock
}}
==== Localization ====
 
By default, Funtoo Linux is configured with Unicode (UTF-8) enabled, and for the US English locale and keyboard. If you would like to configure your system to use a non-English locale or keyboard, see [[Funtoo Linux Localization]].
 
=== Introducing Portage ===
 
Portage, the Funtoo Linux package manager has a command called <code>emerge</code> which is used to build and install packages from source. It also takes care of installing all of the package's dependencies. You call emerge like this:
 
<console>
(chroot) # ##i##emerge packagename
</console>
 
When you install a package by specifying its name in the command-line, Portage records its name in the <code>/var/lib/portage/world</code> file. It does so because it assumes that, since you have installed it by name, you want to consider it part of your system and want to keep the package updated in the future. This is a handy feature, since when packages are being added to the <code>world</code> set, we can update our entire system by typing:
 
<console>
(chroot) # ##i##emerge --sync
(chroot) # ##i##emerge -auDN @world
</console>
 
This is the "official" way to update your Funtoo Linux system. Above, we first update our Portage tree using git to grab the latest ebuilds (scripts), and then run an emerge command to update the <code>world</code> set of packages. The options specified tell <code>emerge</code> to:
 
* '''<code>a</code>''' - show us what will be emerged, and '''ask''' us if we want to proceed
* '''<code>u</code>''' - '''update''' the packages we specify -- don't emerge them again if they are already emerged.
* '''<code>D</code>''' - Consider the entire dependency tree of packages when looking for updates. In other words, do a '''deep''' update.
* '''<code>N</code>''' - Update any packages that have changed ('''new''') USE settings.
 
You should also consider passing <code>--with-bdeps=y</code> when emerging @world, at least once in a while. This will update build dependencies as well.
 
Of course, sometimes we want to install a package but not add it to the <code>world</code> file. This is often done because you only want the package installed temporarily or because you know the package in question is a dependnecy of another package. If this behavior is desired, you call emerge like this:
 
<console>
(chroot) # ##i##emerge -1 packagename
</console>
 
Advanced users may be interested in the [[Emerge]] wiki page.
 
==== Updating World ====
 
Now is actually a very good time to update the entire system and it can be a good idea to do so prior to first boot.
 
<console>
(chroot) # ##i##emerge --sync
(chroot) # ##i##emerge -auDN @world
</console>
 
{{fancyimportant|1=
Make sure you read any post emerge messages and follow their instructions. This is especially true if you have upgraded perl or python.}}
 
=== Kernel ===
 
Starting mid-May 2015, Funtoo Linux stage3's include a pre-built {{c|debian-sources}} kernel to make installation faster and easier. To see if debian-sources is installed, type:
{{console|body=
(chroot) # ##i##emerge -s debian-sources
Searching...   
[ Results for search key : ##b##debian-sources##!b## ]
[ Applications found : ##b##1##!b## ]
 
*  ##b##sys-kernel/debian-sources##!b##
      ##g##Latest version available:##!g## 3.19.3
      ##g##Latest version installed:##!g## 3.19.3
      ##g##Size of files:##!g## 81,292 kB
      ##g##Homepage:##!g##      http://www.debian.org
      ##g##Description:##!g##  Debian Sources (and optional binary kernel)
      ##g##License:##!g##      GPL-2
}}
If a version is listed under {{c|Latest version installed}}, then debian-sources is already pre-built for you and you can skip the rest of the Kernel section, and proceed to the [[#Installing a Bootloader|Installing a Bootloader section]].
 
==== Building the Kernel ====
 
If you need to build a kernel for Funtoo Linux, please follow these steps:
 
{{Fancynote|1=
See [[Funtoo Linux Kernels]] for a full list of kernels supported in Funtoo Linux. We recommend <code>debian-sources</code> for new users.}}
 
{{fancyimportant|1=
<code>debian-sources</code> with <code>binary</code> USE flag requires at least 14GB free in <code>/var/tmp</code> and takes around 1 hour to build on a Intel Core i7 Processor.}}
 
Let's emerge our kernel:
 
<console>
(chroot) # ##i##emerge debian-sources
</console>
 
Once <code>emerge</code> completes, you'll have a brand new kernel and initramfs installed to <code>/boot</code>, plus kernel headers installed in <code>/usr/src/linux</code>, and you'll be ready to configure the boot loader to load these to boot your Funtoo Linux system.
 
{{warning|If you have a RAID in your machine, the kernel installation will pull in the <code>mdadm</code> tool as a dependency. It is important to edit the <code>/etc/mdadm.conf</code> file prior to rebooting the machine so the RAID is properly recognised and set up before the kernel attempts to mount it in the tree. Failing to do so can result in an unusable or even unbootable system! For specific details, consult the mdadm man page <code>man mdadm</code> or the [[Package:Mdadm|mdadm]] ebuild page.}}
 
{{fancynote|NVIDIA card users: the <code>binary</code> USE flag installs the Nouveau drivers which cannot be loaded at the same time as the proprietary drivers, and cannot be unloaded at runtime because of KMS. You need to blacklist it under <code>/etc/modprobe.d/</code>.}}
 
{{fancynote|For an overview of other kernel options for Funtoo Linux, see [[Funtoo Linux Kernels]]. There may be modules that the Debian kernel doesn't include, a situation where [http://www.funtoo.org/wiki/Funtoo_Linux_Kernels#Using_Debian-Sources_with_Genkernel genkernel] would be useful. Also be sure to see [[:Category:Hardware Compatibility|hardware compatibility]] information.}}
 
=== Installing a Bootloader ===
 
These install instructions show you how to use GRUB to boot using BIOS (old-school) or UEFI (new-school). As of boot-update-1.7.2, now in Portage, the steps are very similar.
 
First, emerge <code>boot-update</code>. This will also cause <code>grub-2</code> and {{c|efibootmgr}} to be merged, since they are dependencies:
 
<console>
(chroot) # ##i##emerge boot-update
</console>
 
Then, edit <code>/etc/boot.conf</code> using {{c|nano}} and specify "<code>Funtoo Linux genkernel</code>" as the <code>default</code> setting at the top of the file, replacing <code>"Funtoo Linux"</code>.
 
<code>/etc/boot.conf</code> should now look like this:
{{file|name=/etc/boot.conf|body=
boot {
generate grub
default "Funtoo Linux genkernel"
timeout 3
}
 
"Funtoo Linux" {
kernel bzImage[-v]
}
 
"Funtoo Linux genkernel" {
kernel kernel[-v]
initrd initramfs[-v]
params += real_root=auto
}
 
"Funtoo Linux better-initramfs" {
kernel vmlinuz[-v]
initrd /initramfs.cpio.gz
}
}
}}
}}
If you are booting a custom or non-default kernel, please read <code>man boot.conf</code> for information on the various options available to you.
==== Old School (BIOS) MBR ====
When using "old school" BIOS booting, run the following command to install GRUB to your MBR, and generate the {{c|/boot/grub/grub.cfg}} configuration file that GRUB will use for booting:
<console>
(chroot) # ##i##grub-install --target=i386-pc --no-floppy /dev/sda
(chroot) # ##i##boot-update
</console>
==== New School (UEFI) Boot Entry ====
If you're using "new school" UEFI booting, run of the following sets of commands, depending on whether you are installing a 64-bit or 32-bit system. This will add GRUB as a UEFI boot entry.
For x86-64bit systems:
<console>
(chroot) # ##i##grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id="Funtoo Linux [GRUB]" --recheck /dev/sda
(chroot) # ##i##boot-update
</console>
For x86-32bit systems:
<console>
(chroot) # ##i##grub-install --target=i386-efi --efi-directory=/boot --bootloader-id="Funtoo Linux [GRUB]" --recheck /dev/sda
(chroot) # ##i##boot-update
</console>
==== First Boot, and in the future... ====
OK -- you are ready to boot!
You only need to run <code>grub-install</code> when you first install Funtoo Linux, but you need to re-run <code>boot-update</code> every time you modify your <code>/etc/boot.conf</code> file or add new kernels to your system. This will regenerate {{c|/boot/grub/grub.cfg}} so that you will have new kernels available in your GRUB boot menu, the next time you reboot.
=== Configuring your network ===
It's important to ensure that you will be able to connect to your local-area network after you reboot into Funtoo Linux. There are three approaches you can use for configuring your network: NetworkManager, dhcpcd, and the [[Funtoo Linux Networking]] scripts. Here's how to choose which one to use based on the type of network you want to set up.
==== Wi-Fi ====
For laptop/mobile systems where you will be using Wi-Fi, roaming, and connecting to various networks NetworkManager is strongly recommended. 
Since Wi-Fi cards require firmware to operate, it is also recommended that you emerge the linux-firmware ebuild:
{{console|body=(chroot) # ##i##emerge linux-firmware networkmanager
(chroot) ###i## rc-update add NetworkManager default
}}
The above command will ensure that NetworkManager starts after you boot into Funtoo Linux. Once you've completed these installation steps and have booted into Funtoo Linux, you can use the {{c|addwifi}} command to connect to a Wi-Fi access point:
{{console|body=# ##i##addwifi -S wpa -K 'wifipassword' mywifinetwork}}
For more information about NetworkManager, see the [[Package:NetworkManager|NetworkManager package page]].
{{Note|wpa_supplicant is also a good choice for wireless network connections. See the {{package|net-wireless/wpa_supplicant}} package for steps involved in setting up wpa_supplicant.}}
==== Desktop (Wired DHCP) ====
For a home desktop or workstation with wired Ethernet that will use DHCP, the simplest and most effective option to enable network connectivity is to simply add {{c|dhcpcd}} to the default runlevel:
{{console|body=
(chroot) # ##i##rc-update add dhcpcd default}}
When you reboot, {{c|dhcpcd}} will run in the background and manage all network interfaces and use DHCP to acquire network addresses from a DHCP server.
If your upstream DHCP server is dnsmasq, it can be configured to assign addresses via mac address to make servers on DHCP feasible.
==== Server (Static IP) ====
For servers, the [[Funtoo Linux Networking]] scripts are recommended. They are optimized for static configurations and things like virtual ethernet bridging for virtualization setups. See [[Funtoo Linux Networking]] for information on how to use Funtoo Linux's template-based network configuration system.
==== Hostname ====
By default Funtoo uses "localhost" as hostname. Although the system will work perfectly fine using this name, some ebuilds refuse to install when detecting localhost as hostname. It also may create confusion if several systems use the same hostname. Therefore, it is advised to change it to a more meaningful name. The hostname itself is arbitrary, meaning you can choose almost any combination of characters, as long as it makes sense to the system administrator. To change the hostname, edit
{{console|body=
(chroot) # ##i##nano /etc/conf.d/hostname
}}
Look for the line starting with hostname and change the entry between the quotes. Save the file, on the next boot Funtoo will use the new hostname.
{{warning|Do not use special characters in the hostname, as the shell may interpret these, leading to unpredictable results. Use the Latin alphabet: a-z, A-Z, 0-9}}
{{tip|Use short hostnames (up to 8 or 10 characters) to prevent the terminal screen being filled with the hostname, leaving little space for the command itself. This become particularly poignant when coding long command strings in various programming languages like Bash, Python, SQL and Perl}}
=== Finishing Steps ===
==== Set your root password ====
It's imperative that you set your root password before rebooting so that you can log in.
<console>
(chroot) # ##i##passwd
</console>
===Restart your system ===
Now is the time to leave chroot, to unmount Funtoo Linux partitions and files and to restart your computer. When you restart, the GRUB boot loader will start, load the Linux kernel and initramfs, and your system will begin booting.
Leave the chroot, change directory to /mnt, unmount your Funtoo partitions, and reboot.
<console>
(chroot) # ##i##exit
# ##i##cd /mnt
# ##i##umount -lR funtoo
# ##i##reboot
</console>
{{fancynote|System Rescue CD will gracefully unmount your new Funtoo filesystems as part of its normal shutdown sequence.}}
You should now see your system reboot, the GRUB boot loader appear for a few seconds, and then see the Linux kernel and initramfs loading. After this, you should see Funtoo Linux itself start to boot, and you should be greeted with a <code>login:</code> prompt. Funtoo Linux has been successfully installed!
=== Profiles ===
Once you have rebooted into Funtoo Linux, you can further customize your system to your needs by using [[Funtoo Profiles]]. A quick introduction to profiles is included below -- consult the [[Funtoo Profiles]] page for more detailed information. There are five basic profile types: arch, build, subarch, flavors and mix-ins:
{{TableStart}}
{{2ColHead|Sub-Profile Type|Description}}
{{2Col|{{c|arch}}|Typically {{c|x86-32bit}} or {{c|x86-64bit}}, this defines the processor type and support of your system. This is defined when your stage was built and should not be changed.}}
{{2Col|{{c|build}}|Defines whether your system is a {{c|current}}, {{c|stable}} or {{c|experimental}} build. {{c|current}} systems will have newer packages unmasked than {{c|stable}} systems. This is defined when your stage is built and is typically not changed.}}
{{2Col|{{c|subarch}}|Defines CPU optimizations for your system. 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.}}
{{2Col|{{c|flavor}}|Defines the general type of system, such as {{c|server}} or {{c|desktop}}, and will set default USE flags appropriate for your needs.}}
{{2Col|{{c|mix-ins}}|Defines various optional settings that you may be interested in enabling.}}
{{TableEnd}}
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. Often, flavors and mix-ins inherit settings from other sub-profiles. Use {{c|epro show}} to view your current profile settings, in addition to any inheritance information:
{{console|body=
(chroot) # ##i## epro show
=== ##g##Enabled Profiles##!g##: ===
        arch: ##c## x86-64bit
      build: ##c## current
    subarch: ##c## intel64-haswell
      flavor: ##c## desktop
    mix-ins: ##c## gnome
=== ##g##All inherited flavors from desktop flavor##!g##: ===
                    ##c##workstation##!c## (from desktop flavor)
                            ##c##core##!c## (from workstation flavor)
                        ##c##minimal##!c## (from core flavor)
=== ##g##All inherited mix-ins from desktop flavor##!g##: ===
                              ##c##X##!c## (from workstation flavor)
                          ##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)
}}
Here are some basic examples of {{c|epro}} usage:
{{TableStart}}
{{2ColHead|Description|Command}}
{{2Col|View available profiles. Enabled profiles will be highlighted in cyan. Directly enabled profiles will be in bold and have a {{c|*}} appended.|{{console|body=(chroot) # ##i##epro list}}}}
{{2Col|Change the system flavor.|{{console|body=(chroot) # ##i##epro flavor desktop}}}}
{{2Col|Add a mix-in.|{{console|body=(chroot) # ##i##epro mix-in +gnome}}}}
{{TableEnd}}
===Next Steps===
If you are brand new to Funtoo Linux and Gentoo Linux, please check out [[Funtoo Linux First Steps]], which will help get you acquainted with your new system. We also have a category for our [[:Category:Official Documentation|official documentation]], which includes all docs that we officially maintain for installation and operation of Funtoo Linux.
We also have a number of pages dedicated to setting up your system. See [[:Category:First Steps|First Steps]] for a list of these pages.
If your system did not boot correctly, see [[Installation Troubleshooting]] for steps you can take to resolve the problem.
[[Category:HOWTO]]
[[Category:Install]]
[[Category:Official Documentation]]

Latest revision as of 04:07, November 21, 2021

Other languages:
Deutsch • ‎English • ‎Türkçe • ‎español • ‎français • ‎italiano • ‎polski • ‎português • ‎slovenčina • ‎Ελληνικά • ‎русский • ‎українська • ‎հայերեն • ‎עברית • ‎ไทย • ‎中文(中国大陆)‎ • ‎中文(台灣)‎ • ‎日本語 • ‎한국어
   Note

Translators: Thank you for your help! Please use the section-by-section guide as the basis for your translations. Thanks again!

Introducción

root # ¡Bienvenido a Funtoo Linux!

¡Bienvenido a Funtoo Linux! Esta guía fue escrita para ayudarte a instalar Funtoo Linux en sistemas para PC compatibles, mientras mantiene al mínimo las opciones de configuración del sistema que distraen al lector.

Si eres nuevo instalando una distribución Linux basada en Gentoo, o eres completamente nuevo en Linux -- ¡Bienvenido!

Nos hemos esforzado en hacer que estas instrucciones de instalación sean comprensibles para los nuevos usuarios. Animamos a todos los nuevos usuarios a leer la Filosofía de la Manada de Lobos para entender algunos de los distintivos de la comunidad Funtoo.

Antes de comenzar, por favor revisa la siguiente información que es importante:

Nuestras fases (stages) de entornos de escritorio (GNOME, Cinnamon, etc.) ahora tienen soporte para una instalación completa en máquinas virtuales VMware Workstation Pro. Recomendamos encarecidamente que habilite Aceleración de Vídeo 3D en su VM, pues está deshabilitado por defecto. Click aquí para más información.
Versión actual
La versión actual de Funtoo Linux es 1.4, a veces denominada 1.4-release o 1.4-release-std. Este es en realidad un lanzamiento (principalmente) continuo con énfasis en la estabilidad. También tenemos next disponible, que es una versión continua (rolling release) con paquetes principales actualizados y es el predeterminado para Raspberry Pi 4 stage y SiFive U740 RISC-V stage.
Modelo de desarrollo
Funtoo Linux es una meta-distribución Linux desarrollada por la comunidad. Si utilizas Funtoo Linux, puedes contribuir a su desarrollo via code.funtoo.org, sin pasar por procesos de aprobación complejos. Lee la Guía de desarrollo para obtener más información sobre cómo puede contribuir a Funtoo. También tenemos video tutoriales en YouTube para ayudarte.
Matriz de Soporte
Por favor, usa la Matriz de Soporte para familiarizarte con las tecnologías a las que damos soporte, y las que no.
Estilos de Documentación
Ahora ofrecemos la posibilidad de ver y navegar la Guía de Instalación sección por sección. Los usuarios en línea pueden considerar esta opción como la más conveniente.
Ejecutando Steam
Hemos liberado recientemente imágenes oficiales de Steam en Docker y el soporte para Steam on Flatpak. Estas son consideradas las formas oficiales de ejecutar Steam en Funtoo. Visita Steam para más información.
Contenedores
La gestión de contenedores LXD al igual que Docker tienen soporte oficial en Funtoo. Por favor visita Chroot y Contenedores para consultar una lista creciente, aunque incompleta, de tecnologías de contenedores disponibles, además de incluir enlaces a su documentación.
La herramienta Fchroot
Nuestra nueva herramienta fchroot ahora está disponible para ejecutar entornos ARM y RISCV en hardware compatible con PC. Esta herramienta es muy efectiva cuando se trata de acelerar la construcción de software grande en sistemas ARM cuyos recursos son menores. Por favor. visita la página de fchroot en code.funtoo.org, Frankenchroot y Frankenchroot/Live_NFS_Frankenchroot para información sobre su configuración.

¡Después de revisar la información de introducción más importante sobre Funtoo, ¡es hora de iniciar la instalación de Funtoo Linux!

Descripción general de la instalación

Esta es una guía detallada del proceso de instalación de Funtoo Linux:

  1. Familiarícese con la Cultura y la Matriz de soporte de Funtoo.
  2. Descargue y arranque el live CD de su elección.
  3. Prepare el disco.
  4. Particionado con MBR.
  5. Particionado con GPT.
  6. Crear y montar sistemas de archivos.
  7. Configurar la fecha.
  8. Instalar el Tarball de su elección.
  9. Ingresar con Chroot a nuestro sistema.
  10. Descargar nuestro árbol de Portage.
  11. Configurar el sistema.
  12. Introducción a Portage.
  13. Instalar un Kernel.
  14. Instalar un cargador de arranque.
  15. Configurar la red.
  16. Pasos finales.
  17. Configuración del perfil.
  18. ¡Todo Listo! ¡A disfrutar!

Descargar el Live CD

Para instalar Funtoo Linux, primero deberá iniciar su computadora con una imagen basada en Linux. Esta imagen se llama "LiveCD" por razones históricas, porque históricamente las personas iniciaban Linux en nuevos sistemas grabando una imagen ISO en un CD o DVD usando una grabadora de CD/DVD. Todavía es posible hacerlo, si prefiere usar este método. Sin embargo, la mayoría de las personas en estos días, se tenderá a usar medios flash USB (también conocidos como "memorias USB") por conveniencia, que se pueden escribir usando el comando estándar dd.

Al instalar Funtoo Linux en x86-64bit, recomendamos enfáticamente el LiveCD/LiveUSB oficial de Funtoo Linux, que siempre se puede descargar aquí:

Si bien cualquier imagen de arranque de Linux moderna debería ser suficiente para instalar Funtoo Linux, Funtoo LiveCD tiene varias ventajas sobre otras opciones. Debido a que ejecuta de forma nativa Funtoo Linux e incluye nuestro núcleo oficial de debian-sources con muy buen soporte de hardware, el hardware que admite coincidirá con el hardware que admite Funtoo Linux, lo que le permite identificar cualquier problema de compatibilidad de hardware de inmediato.

Además, nuestro LiveCD se actualiza periódicamente e incluye NetworkManager, que permite el uso del sencillo comando nmtui para configurar su red. También incluye nuestra innovadora herramienta Fchroot, que le permite usar QEMU para hace "chroot" en sistemas que no son x86, como arm-64bit y riscv-64bit. ¡Esto permite que Funtoo LiveCD se use incluso para rescatar y configurar sistemas con diferentes conjuntos de instrucciones!

Una vez descargado, para copiarlo en una unidad flash USB para arrancar, use el siguiente comando:

root # dd if=https://build.funtoo.org/livecd/funtoo-livecd-20220715-1607.iso of=/dev/sdX bs=4k status=progress oflag=sync

Por supuesto, deberá cambiar /dev/sdX para que apunte al dispositivo de bloqueo de la memoria USB en su sistema.


Para poseer una terminal con distribución de teclado en español escribir:

root #  loadkeys es

Acceso a la Red

Para conocer los pasos para configurar el acceso a la red desde el LiveCD, consulte la página Funtoo:New Install Experience/LiveCD.


Puede utilizar net-setup, para acceder a la configuración de la red.

root # net-setup

Puede probar el acceso a la red con ping -c 3 www.funtoo.org, si se transmitieron y recibieron 3 paquetes, estará todo correcto:

root # ping -c 3 www.funtoo.org

Instalación Remota

Alternativamente, puede iniciar sesión en su entorno de arranque a través de la red a través de SSH para realizar la instalación desde otra computadora, y esta puede ser una forma más conveniente de instalar Funtoo Linux.

Primero asegúrese de que sshd se esté ejecutando. Deberá iniciar sshd de la siguiente manera:

root # /etc/init.d/sshd start

Si desea completar la instalación de forma remota, así es como se hace. Primero, deberá asegurarse de que su imagen de CD/USB de arranque tenga una conexión de red que funcione. Luego, deberá establecer una contraseña de root:

root # passwd
New password: ********
Retype new password: ********
passwd: password updated successfully


Una vez que haya ingresado una contraseña, ahora deberá determinar la dirección IP del sistema de arranque, y luego podrá usar ssh para conectarse a él. Para determinar la dirección IP que utiliza actualmente el LiveCD, escriba ifconfig:

root # ifconfig

Alternativamente, es posible determinar una dirección IP con la herramienta iproute2 ip:

root # ip addr show

Una de las interfaces debe tener una dirección IP (listada como inet addr:) de su LAN. Luego puede conectarse de forma remota, desde otro sistema en su LAN, su entorno de arranque y realizar los pasos desde la comodidad de un sistema operativo existente. En su sistema remoto, escriba lo siguiente, reemplazando 1.2.3.4 con la dirección IP del LiveCD. La conexión desde un sistema Linux o MacOS existente se vería así:

remote system $ ssh root@1.2.3.4
Password: **********
   Note

Si desea conectarse de forma remota desde un sistema Microsoft Windows existente, deberá descargar un cliente SSH para Windows, como OpenSSH.

Después de iniciar sesión a través de SSH, ahora está conectado de forma remota al LiveCD y puede realizar los pasos de instalación.

Prepare el Disco

En esta sección, deberá elegir un formato de disco para usar para arrancar y particionar, ya sea MBR o UEFI/GPT. Si no está familiarizado con las diferencias entre estas opciones, consulte nuestra página Formatos de disco para obtener una descripción general de cada opción y las ventajas y desventajas. En general, es seguro elegir el método MBR heredado para discos de sistema de menos de 2 TB de tamaño y la mayoría de los sistemas de PC modernos admiten MBR y arranque UEFI.

Si no se realizó anteriormente, para cargar la distribución de teclado escribir:

Español españa:

root #  loadkeys es

Español latinoamericano:

root #  loadkeys la-latin1

MBR is the traditional way of booting a PC. It works by installing executable code on the boot sector of your hard drive, which starts the boot process. When you use MBR to boot, you must have BIOS booting enabled in your BIOS, use traditional MBR partitions on your disk which are created using the fdisk tool.

UEFI is the more modern way to boot a PC. It works using a boot loader that is built into your computer. Boot entries are created and stored in your computer's non-volatile memory. When you use UEFI to boot, you must have UEFI enabled in your BIOS, and use more modern GPT partitions which are created using the gdisk tool.

Generally, it's usually safe to pick the legacy MBR method for system disks under 2TB in size and most modern PC systems support MBR as well as UEFI booting.

   Note

For more information on differences between MBR and UEFI, see our Disk Formats page for an overview of each option and the trade-offs.

Pero Primero...

Antes de hacer cualquier cosa a sus discos, asegúrese de estar particionando el disco correcto. Use el comando lsblk para ver una lista de todos los dispositivos de bloque en su sistema, así como las particiones en estos dispositivos de bloque:

root # lsblk
NAME          MAJ:MIN RM  SIZE RO TYPE MOUNTPOINT
sda             8:0    0  1.8T  0 disk 
├─sda1          8:1    0  512M  0 part 
├─sda2          8:2    0    8G  0 part [SWAP]
└─sda3          8:3    0  1.8T  0 part 
  ├─main-root 254:0    0  500G  0 lvm  /
  └─main-data 254:1    0  1.3T  0 lvm  /home
   Note

Si no está seguro de qué discos son cuáles, puede usar lsblk -o MODEL,NAME,SIZE para mostrar los modelos de dispositivos que coinciden con los nombres /dev/sd?.

Asegúrese de no sobrescribir ningún dato importante y de haber elegido el dispositivo /dev/sd? correcto.

Arriba, puede ver que el disco SATA sda contiene tres particiones, sda1, sda2 y sda3, y que sda3 contiene volúmenes LVM.

Si está utilizando un disco NVME, entonces puede ver nvme0n1 como su disco, y sus particiones (si aún existen) se llamarán nvme0n1p1, nvme0n1p2, etc.

Si está instalando en una tarjeta microSD para Raspberry Pi, su disco probablemente será mmcblk0 y las particiones tendrán sufijos p1, p2, etc.

Una vez que haya verificado dos veces su dispositivo de bloque de destino y se haya asegurado de particionar el disco correcto, continúe con el siguiente paso.

Particionado MBR

Método para BIOS/MBR

   Note

Utilice este método si está arrancando mediante su BIOS y si el menú de inicio del LiveCD de Funtoo fue de color azul claro. Si va a utilizar el formato de disco UEFI / GPT, continúe con la siguiente sección.

Primero, es buena idea asegurarse de haber encontrado el disco duro correcto para la partición. Pruebe este comando y verifique que /dev/sdX es el disco que desea particionar:

root # fdisk -l /dev/sda

Disk /dev/sda: 640.1 GB, 640135028736 bytes, 1250263728 sectors
Units = sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disk label type: gpt

#         Start          End    Size  Type            Name
 1         2048   1250263694  596.2G  Linux filesyste Linux filesystem

Ahora, se recomienda que borre la tabla de partición MBR o GPT existente en el disco, para evitar confundir el BIOS del sistema en el momento del arranque. Use el comando sgdisk para logar esto:

   Warning

¡Esto hará que cualquier partición existente sea inaccesible! Usted siempre debe realizar una copia de seguridad de los datos críticos antes de continuar.

root # sgdisk --zap-all /dev/sda

Crear nuevas entradas GPT.
Estructuras de datos GPT destruidas! Ahora puede particionar el disco usando fdisk u otras utilidades.

Esta salida no es algo de lo que deba preocuparse porque el comando tuvo éxito:

***************************************************************
Found invalid GPT and valid MBR; converting MBR to GPT format
in memory. 
***************************************************************

Crear particiones MBR

Ahora vamos a usar fdisk /dev/sda ó con cfdisk /dev/sda para crear la tabla de partición MBR y las particiones siguientes:

  • /dev/sda1 Partición de boteo (arranque)
  • /dev/sda2 Partición de intercambio swap
  • /dev/sda3 Partición de root (/)
root # cfdisk /dev/sda

Con fdisk sería lo siguiente:

root # fdisk /dev/sda

Dentro de fdisk, siga los siguientes pasos:

Vaciar la tabla de particiones:

Command (m for help): o ↵

Crear la Partición 1 (boot):

Command (m for help): n ↵
Partition type (default p): 
Partition number (1-4, default 1): 
First sector: 
Last sector: +128M ↵

Crear la Partición 2 (swap):

Command (m for help): n ↵
Partition type (default p): 
Partition number (2-4, default 2): 
First sector: 
Last sector: +2G ↵
Command (m for help): t ↵ 
Partition number (1,2, default 2): 
Hex code (type L to list all codes): 82 ↵

Crear la partición de root:

Command (m for help): n ↵
Partition type (default p): 
Partition number (3,4, default 3): 
First sector: 
Last sector: 

Verificar la tabla de particiones:

Command (m for help): p

Disk /dev/sdX: 298.1 GiB, 320072933376 bytes, 625142448 sectors
Units: sectors of 1 * 512 = 512 bytes
Sector size (logical/physical): 512 bytes / 512 bytes
I/O size (minimum/optimal): 512 bytes / 512 bytes
Disklabel type: dos
Disk identifier: 0x82abc9a6

Device    Boot     Start       End    Blocks  Id System
/dev/sda1           2048    264191    131072  83 Linux
/dev/sda2         264192   4458495   2097152  82 Linux swap / Solaris
/dev/sda3        4458496 625142447 310341976  83 Linux

Escribir la tabla de particiones al disco:

Command (m for help): w

Su nueva tabla de particiones MBR se escribirá ahora en su disco del sistema.

   Note

¡Ya terminó con las particiones! Ahora, vaya a Crear el sistema de archivos en la Guía de instalación.

Particionado GPT

Método UEFI/GPT

   Note

Utilice este método si está interesado en arrancar mediante UEFI, y si el menú de inicio de su LiveCD de Funtoo fue de color blanco y negro, o el sistema arranca sin un menú de arranque. Si era azul claro, este método no funcionará. En su lugar, use las instrucciones de la sección anterior y sáltese esta sección, o reinicie el LiveCd en modo UEFI primero.

   Note

Puede construir el modo legado o heredado en su tabla de particionado GPT, pero esto requiere una partición de arranque BIOS. Visita Talk:Install/GPT_Partitioning

Los comandos de gdisk para crear una tabla de particiones GPT son los siguientes. Adapte los tamaños según sea necesario, aunque estos valores predeterminados funcionarán para la mayoría de los usuarios. Inicie gdisk:

root # gdisk /dev/sda

Dentro de gdisk, siga estos pasos:

Crear una nueva tabla de particiones vacía (Esto borrará todos los datos del disco cuando se guarden):

Command: o ↵
This option deletes all partitions and creates a new protective MBR.
Proceed? (Y/N): y ↵

Crear la Partición 1 (boot):

Command: n ↵
Partition Number: 1 ↵
First sector: 
Last sector: +128M ↵
Hex Code: EF00 ↵

Crear la Partición 2 (swap):

Command: n ↵
Partition Number: 2 ↵
First sector: 
Last sector: +4G ↵
Hex Code: 8200 ↵

Crear la Partición 3 (root):

Command: n ↵
Partition Number: 3 ↵
First sector: 
Last sector:  (for rest of disk)
Hex Code: 

Durante este proceso puede teclear "p" y presionar Enter para visualizar la tabla de particiones actual. Si comete algún error, puede teclear "d" para borrar una partición existente que fue creada previamente. Cuando esté satisfecho con las particiones creadas teclee "w" para grabar la configuración en el disco:

Escribir la Tabla de Particiones en el Disco:

Command: w ↵
Do you want to proceed? (Y/N): Y ↵

La tabla de particiones ahora se escribirá en el disco y gdisk se cerrará.


Alternativamente se puede utilizar cfdisk para crear las particiones. Ejecútelo con el siguiente comando:

root # cfdisk /dev/sda

Ahora, sus particiones GPT/GUID han sido creadas y se mostrarán como los siguientes dispositivos de bloque bajo Linux:

  • /dev/sda1, que se usará para almacenar el sistema de archivos /boot,
  • /dev/sda2, que se utilizará para el espacio de intercambio, y
  • /dev/sda3, que contendrá su sistema de archivos raíz.
   Tip

Puede verificar que los dispositivos de bloque anteriores se hayan creado de manera correcta ejecutando el comando lsblk.

Creando el sistema de archivos

   Note

Esta sección cubre instalaciones con BIOS y con UEFI. ¡No se la salte!

Antes de poder utilizar las particiones recién creadas, los dispositivos de bloque que fueron creados en el paso anterior necesitan ser inicializados con un sistema de archivos de "metadatos". Este proceso se conoce como la "creación de un sistema de archivos" en los dispositivos de bloque. Una vez que el dispositivo de bloque tenga un sistema de archivos, estos pueden ser montados y usados para almacenar archivos.

Particiones MBR

Vamos a mantener esto simple:

  • /dev/sda1 Partición de Boteo (Aarranque)
  • /dev/sda2 Partición de Intercambio (Swap)
  • /dev/sda3 Partición de Root (/)
root # mkfs.ext2 /dev/sda1

Particiones GPT para UEFI

Si está usando las particiones GPT para UEFI, o instalando en una Raspberry Pi, querrá crear un sistema de archivos vfat en su primera partición /dev/sda1. Este será mmcblk0p1 en el caso de Raspberry Pi:

root # mkfs.vfat -F 32 /dev/sda1

Ahora, vamos a crear una partición de intercambio "swap". Esta partición será usada como memoria virtual basada en disco para su sistema Funtoo Linux.

Crear partición de intercambio (swap)

No creará un sistema de archivos en su partición de intercambio, ya que no se utiliza para almacenar archivos. Pero es necesario inicializarla usando el comando mkswap.

Después ejecutaremos el comando swapon para que el espacio de intercambio recién inicializado esté activo inmediatamente en el entorno del Live CD, en caso de que sea necesario durante el resto del proceso de instalación.

root # mkswap /dev/sda2
root # swapon /dev/sda2

Sistema de archivos Root

Ahora, necesitamos crear un sistema de archivos root. Aquí es donde vivirá Funtoo Linux. Generalmente recomendamos sistemas de archivos root en formato ext4 o XFS. Tenga en cuenta que algunos sistemas de archivos requerirán que algunas herramientas adicionales del sistema de archivos estén instaladas con emerge antes de reiniciar. Por favor, consulte la siguiente tabla para más información:

Sistema de archivo¿es recomendado como sistema de archivos root?Herramientas adicionales requeridas
ext4Ninguna
XFSsys-fs/xfsprogs
reiserfsSí -- necesitará encender el soporte desde el kernelsys-fs/reiserfsprogs
zfsNo - solo usuarios avanzadossys-fs/zfs
btrfsNo - solo usuarios avanzadossys-fs/btrfs-progs
   Important

No recomendamos que los usuarios configuren ZFS o BTRFS como su sistema de archivos root. Esto es mucho más complejo y generalmente no es necesario.

En su lugar, elija XFS o ext4. "Soportamos ZFS o BTRFS como sistemas de archivos no root", y esto es mucho más fácil de configurar. Consulte ZFS y BTRFS una vez que haya terminado de configurar su sistema Funtoo Linux para configurar ZFS o BTRFS para almacenamiento secundario adicional.

Si no está seguro, le recomendamos seleccionar ext4. Así es cómo se crea un sistema de archivos raíz ext4:

root # mkfs.ext4 /dev/sda3

y así es cómo se crea un sistema de archivos raíz XFS, si prefiere usar XFS en lugar de ext4:

root # mkfs.xfs /dev/sda3

Sus sistemas de archivos (y swap) ya han sido inicializados, de modo que pueden ser montados (adjuntos a su jerarquía de directorios existente) y usados para guardar archivos. Estamos listos para comenzar a instalar Funtoo Linux en estos nuevos sistemas de archivos.

Sistemas de Archivos Adicionales

   Note

¡Esto puede ser útil en sistemas Raspberry Pi!

Tal vez quiera crear sistemas de archivos adicionales para diferentes partes de su árbol de sistemas de archivos de Funtoo.

Es común colocar /home o /var en sistemas de archivos diferentes.

Para los usuarios de Raspberry Pi, es posible que usted no tenga espacio suficiente en su tarjeta microSD. En este caso, es altamente recomendado mover su sistema de archivos /var a un disco duro externo o a una unidad de estado sólido. Esto no solo asegurará que no se quede sin espacio disponible, también puede aumentar el rendimiento de manera significativa pues las operaciones de escritura en una microSD no son particularmente rápidas.

Para hacer esto usted querrá usar fdisk o gdisk' para crear una partición en su disco externo, y luego utilizar los comandos mkfs.xfs o mkfs.ext4 para crear un sistema de archivos en sus nuevas particiones. Montaremos este nuevo sistema de archivos en el siguiente paso, antes de extraer nuestro tarball Stage3.

Montar el sistema de archivos

No olvidar las particiones:

  • /dev/sda1 Partición de Boteo (Arranque)
  • /dev/sda2 Partición de Intercambio (Swap)
  • /dev/sda3 Partición de Root (/)

Monte los sistemas de archivos recién creados de la siguiente manera, primero cree /mnt/funtoo como el punto de montaje de la instalación:

BIOS/MBR

root # mkdir /mnt/funtoo
root # mount /dev/sda3 /mnt/funtoo
root # mkdir /mnt/funtoo/boot
root # mount /dev/sda1 /mnt/funtoo/boot

UEFI/GPT

root # mkdir /mnt/funtoo
root # mount /dev/sda3 /mnt/funtoo
root # mkdir /mnt/funtoo/boot
root # mkdir /mnt/funtoo/boot/efi
root # mount /dev/sda1 /mnt/funtoo/boot/efi

Si tiene sistemas de archivos adicionales (como /home o /var), debería montarlos ahora, de esta manera cuando se descomprima el stage3 (cosa que haremos en un paso próximo) éste poblará a estos sistemas de archivos con los archivos necesarios. Esto puede hacerse de la siguiente manera:

root # mkdir /mnt/funtoo/var
root # mount /dev/sdb1 /mnt/funtoo/var

Configurando la fecha

   Important

Si la fecha y hora del sistema están desfasados por mucho tiempo (típicamente por meses o años), esto puede impedir que Portage descargue correctamente las tarballs fuente. Esto se debe a que algunas de nuestras fuentes se descargan a través de HTTPS, las cuales utilizan certificados SSL y están marcadas con una fecha de activación y expiración. Sin embargo, si la hora del sistema está relativamente cercana a la hora correcta, probablemente puede saltarse este paso por ahora.

Ahora es un buen momento para verificar que la fecha y hora estén correctamente configurados a UTC. Utilice el comando date para verificar estos valores:

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

Si es necesario corregir la fecha y/o la hora, hágalo usando date MMDDhhmmYYYY, tenga en cuenta que hhmm esta en formato de 24 horas. El siguiente ejemplo cambia la fecha y la hora a "July 16th, 2011 @ 8:00PM" UTC:

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

Una vez haya configurado el reloj del sistema, es una muy buena idea copiar la hora en el reloj del hardware, para que sea persiste en los reinicios:

root # hwclock --systohc

Descargar y extraer el Stage3

Ahora que el sistema de archivos está listo, su hardware y reloj del sistema están establecidos, el siguiente paso es descargar el Stage 3 tarball inicial. El Stage 3 es un sistema precompilado utilizado como un punto de partida para instalar Funtoo Linux.

Para descargar la construcción correcta de Funtoo Linux para su sistema, primero familiarizece con la Matiz de Soporte, en particular con la sección Entornos de Escritorio, para poder tomar una desición en cuanto al escritorio que va a utilizar (recomendamos GNOME para usuarios nuevos). Luego consulte la página Subarquitecturas. Las subarquitecturas son construcciones de Funtoo Linux que están designadas para ejecutar sobre un tipo de CPU particular de, y ofrecer el mejor rendimiento posible. También aprovechan los conjuntos de instrucciones disponibles para cada CPU.

¿Qué es Subarch?

De la lista de todas las Subarquitecturas, seleccione el nivel adecuado de optimización. Un sistema construido específicamente para su sistema será más rápido y eficiente que uno que no lo sea. Para un sistema moderno basado en Intel o AMD, es seguro seleccionar el nivel exacto de optimización, teniendo en cuenta la familia específica de su CPU. Si usted hace esto, obtendrá el mejor nivel de rendimiento en su sistema.

Si usted está usando tecnología de virtualización para ejecutar Funtoo Linux y su VM puede ser configurado para diferentes tipos de hardware, en este caso recomendamos que use stage3. Stage 3 fue optimizada para trabajar con el conjunto de instrucciones más antiguas sobre el cual su VM se ejecutará. Otra opción es usar una imagen genérica porque esta puede ejecutarse en procesadores Intel y AMD.

Para la mayoría de las Subarquitecturas, se tendrán varios stage3 disponibles para elegir. La siguiente sección le ayudará a entender cuál es la mejor opción para usted.

¿Cuál Imagen?

Nuestras fases (stages) de entornos de escritorio (GNOME, Cinnamon, etc.) ahora tienen soporte para una instalación completa en máquinas virtuales VMware Workstation Pro. Recomendamos encarecidamente que habilite Aceleración de Vídeo 3D en su VM, pues está deshabilitado por defecto. Click aquí para más información.

Usted puede seleccionar manualmente una imagen de instalación vía https://build.funtoo.org así como usando la página de Subarquitecturas. Aquí encontrará una guía básica para seleccionar la mejor imagen .tar.xz para descargar en su caso.

Tipo de procesador

Para conocer el tipo de procesador, para después buscar en Google por ejemplo, ejecutar lspci:

root # lspci

Y en la primera línea se conoce el procesador.

También puede utilizar lspcu, para conocer el modelo de procesador. Ejecute la orden:

root # lscpu

En donde describe Model name (línea 9) del procesador a buscar. Esta última opción es más específica para conocer nuestro procesador.


Cuando esté seleccionando una imagen:

Elija next.
Esta es la versión 1.4 de Funtoo Linux, nuestra versión actual.
Seleccione la subrama (subarch) adecuada para el CPU del sistema que usted está instalando.
Esto ofrecerá el mejor rendimiento.
Seleccione stage3...
la imagen stage3 es más tradicional y se recomienda para instalaciones mínimas y no-gráficas de Funtoo. Después, usted tendrá que construir su sistema con emerge.
Elija gnome para...
La imagen de instalación de gnome, si está disponible, incluye el entorno completo de GNOME así como Firefox ya optimizado para su hardware . Luego puede continuar personalizando aún más su sistema después de la instalación. Consulte la sección Matriz de soporte#Entornos de escritorio|Entornos de escritorio de nuestra Matriz de soporte para obtener más opciones de escritorio.
La imagen lxd para...
La imagen lxd se usa con LXD y no se usa para instalar directamente en una computadora de escritorio o portátil, por lo que no debe seleccionar esta opción para instalaciones regulares. Para instalar, primero descargue y luego lxc image import <name>.tar.xz --alias funtoo y luego puede lxc iniciar funtoo my_container.

Descargar el Stage 3

Una vez haya encontrado el stage3 que desea descargar, utilice wget para descargar el el archivo empaquetado en tarball del Stage3 que ha elegido como base para su nuevo sistema Funtoo Linux. Este será guardado en el directorio /mnt/funtoo como sigue:

   Note

If you are using the Funtoo LiveCD, you can use a text-based browser to download your preferred stage. Type links https://build.funtoo.org rather than the wget command below. Hit enter to select the appropriate directories and stage3.

root # cd /mnt/funtoo
root # wget https://build.funtoo.org/next/x86-64bit/generic_64/stage3-latest.tar.xz


Tenga en cuenta que los sistemas de 64 bits pueden ejecutar stage3 de 32 bits o de 64 bits, pero los sistemas de 32 bits solo pueden ejecutar stage3 de 32 bits. Asegúrese de seleccionar una compilación de stage3 que sea adecuada para su CPU. Si no está seguro, es una apuesta segura elegir la etapa generic_64 o generic_32. Consulte la página Subarquitecturas para más información.

Verificar tarball descargado

Los tarballs de escenario de Funtoo Linux están firmados con GPG por el servidor de compilación en el que están construidos. Es una buena práctica verificar autenticidad e integridad de los archivos descargados cuando sea posible. Para obtener instrucciones sobre cómo importar y confiar en las claves GPG, consulte nuestra página wiki sobre firmas GPG.

Luego, puede descargar la firma GPG de stage3 y usar el comando gpg --verify para verificar su tarball:

root # wget https://build.funtoo.org/next/x86-64bit/generic_64/stage3-latest.tar.xz.gpg
root # gpg --verify stage3-latest.tar.xz.gpg stage3-latest.tar.xz

Una vez descargada y verificada la etapa, extraiga el contenido con el siguiente comando, sustituyendo el nombre real de su tarball de Etapa 3:

root # tar --numeric-owner --xattrs --xattrs-include='*' -xpvf stage3-latest.tar.xz
   Important

Es muy importante usar todas las opciones incluidas arriba. Vea a continuación para obtener más detalles.

Esto es lo que hacen las opciones para tar:

--numeric-owner
sin esta opción, tar asignará la propiedad y la propiedad del grupo en función de las asignaciones de UID a usuario y de GID a grupo, tal como se define en el LiveCD. No queremos esto, queremos que los "valores numéricos" de los UID y GID en el tarball se conserven en el disco, de modo que cuando su sistema Funtoo Linux se inicie, los UID y GID estén configurados correctamente para Funtoo. Eso es lo que esta opción le dice a tar que haga.
--xattrs --xattrs-include='*'
Funtoo Linux usa atributos extendidos del sistema de archivos para configurar las capacidades de Linux, lo que permite que ciertos programas como ping tengan mejoras privilegios sin tener que ser completamente 'suid root'. Incluso con la opción -p, tar no restaurará los atributos extendidos que necesitamos a menos que se especifiquen estas dos opciones.
-xpvf
Esto le indica a tar que extraiga (x), conserve los permisos y la propiedad regulares (p) y use el nombre de archivo (f) especificado. (v) especifica la opción verbose, para mostrar la acción de extracción de archivos.

Chroot en Funtoo

Para configurar su sistema Funtoo Linux, debemos "ingresar" antes de iniciar. Si está utilizando Funtoo Linux LiveCD, esto se puede hacer fácilmente con el comando fchroot:

root # fchroot /mnt/funtoo /bin/bash --login
fchroot #

El comando fchroot se encargará de todos los pasos necesarios para ingresar a su nuevo sistema Funtoo Linux, así como de limpiar las cosas cuando salga de fchroot escribiendo salir o ctrl-D.

Si está usando otro Live CD o medio USB para instalar Funtoo, puede hacer chroot manualmente usando el siguiente conjunto de comandos:

root # cd /mnt/funtoo
root # mount --rbind /proc proc
root # mount --rbind /sys sys
root # mount --rbind /dev dev
root # cp /etc/resolv.conf /mnt/funtoo/etc/
root # # chroot . /bin/su --login
chroot #
   Note

Para usuarios de Live CD con kernels de 64 bits que instalan sistemas de 32 bits: algunos programas pueden usar uname -r para verificar si el sistema es de 32 o 64 bits. Es posible que desee agregar linux32 al comando chroot como solución alternativa, pero generalmente no es necesario.

   Important

Si recibe el error "chroot: no se pudo ejecutar el comando `/bin/bash': error de formato Exec", lo más probable es que esté ejecutando un kernel de 32 bits e intentando ejecutar código de 64 bits. Asegúrese de haber seleccionado el tipo de kernel adecuado al iniciar su LiveCD.

Pruebe la resolución de nombres de Internet desde el chroot:

chroot # # ping -c 5 google.com

Si no puede hacer ping, asegúrese de que /etc/resolv.conf especifique una dirección IP válida para un servidor de nombres accesible en su configuración nameserver.

¡Felicidades! Ahora está chrooteado dentro de un sistema Funtoo Linux. Ahora es el momento de configurar correctamente Funtoo Linux para que Funtoo Linux se inicie correctamente, sin ninguna ayuda manual, cuando se reinicie el sistema.

Descargar el Árbol de Portage

Ahora es el momento de instalar el repositorio de Portage, que contiene scripts de paquetes (ebuilds) que le indican a Portage cómo compilar e instalar miles de paquetes de software diferentes. Para crear el repositorio de Portage, simplemente ejecute ego sync desde el chroot. Esto clonará automáticamente el árbol de Portage de GitHub y todos los kits:

chroot # ego sync

Archivos de Configuración

Como se espera de una distribución de Linux, Funtoo Linux tiene su parte de archivos de configuración. El único archivo que debe editar absolutamente para garantizar que Funtoo Linux se inicie correctamente es /etc/fstab. Los demás son opcionales.

Usando Nano

El editor predeterminado incluido en el entorno chroot se llama nano. Para editar uno de los archivos a continuación, ejecute nano de la siguiente manera:

chroot # nano -w /etc/fstab

Cuando esté en el editor, puede usar las teclas de flecha para mover el cursor, y las teclas comunes como retroceso y eliminar funcionarán como se esperaba. Para guardar el archivo, presione Control-X y responda y cuando se le solicite guardar el búfer modificado si desea guardar sus cambios.

When in the editor, you can use arrow keys to move the cursor, and common keys like backspace and delete will work as expected. To save the file, press Control-X, and answer y when prompted to save the modified buffer if you would like to save your changes.

We will edit the /etc/fstab file later, when we set up the boot loader.

Archivos de Configuración

Aquí hay una lista completa de archivos que puede editar, según sus necesidades:

File¿Necesito cambiarlo?Descripción
/etc/fstab SÍ - requerido Puntos de montaje para todos los sistemas de archivos que se utilizarán en el momento del arranque. Este archivo debe reflejar la configuración de la partición de su disco. Lo guiaremos a través de la modificación de este archivo a continuación.
/etc/localtime Tal vez - recomendado Su zona horaria, que será UTC predeterminada si no se configura. Este debería ser un enlace simbólico a algo ubicado en /usr/share/zoneinfo (por ejemplo, /usr/share/zoneinfo/America/Montreal)
/etc/make.conf NO - no requerido ni recomendado A diferencia de Gentoo, es normal y correcto que este archivo esté vacío en Funtoo Linux, ya que la configuración se migró a nuestro sistema de perfil mejorado. Agregar configuraciones de este archivo hará que su sistema se considere una configuración no estándar y no admitida oficialmente. Si cree que necesita agregar algo a este archivo, asegúrese de solicitar orientación en Discord, Telegram o los foros. Probablemente no.
/etc/hosts No Ya no necesita establecer manualmente el nombre de host en este archivo. Este archivo es generado automáticamente por /etc/init.d/hostname.
/etc/conf.d/nombre de host Tal vez - recomendado Se utiliza para establecer el nombre de host del sistema. Establezca la variable hostname en el nombre completo (con puntos, es decir, foo.funtoo.org) si tiene uno. De lo contrario, establezca el nombre de host del sistema local (sin puntos, es decir, foo). El valor predeterminado es localhost si no se establece.
/etc/conf.d/mapas de teclas Opcional Archivo de configuración de asignación de teclado (para pseudo-terminales de consola). Configúrelo si tiene un teclado que no sea de EE. UU. Consulte Localización de Funtoo Linux.
/etc/conf.d/hwclock Opcional Cómo se interpreta la hora del reloj de hardware respaldado por batería del sistema (UTC u hora local). Linux usa el reloj de hardware respaldado por batería para inicializar el reloj del sistema cuando se inicia el sistema.
/etc/conf.d/modules Opcional Módulos del kernel para cargar automáticamente al iniciar el sistema. Normalmente no se requiere. Consulte Recursos adicionales del núcleo para obtener más información.
/etc/conf.d/consolefont Opcional Le permite especificar la fuente de consola predeterminada. Para aplicar esta fuente, habilite el servicio de fuente de consola ejecutando rc-update add consolefont.
/etc/conf.d/swap Opcional Cuando se usa un archivo de intercambio que no está en el sistema de archivos raíz, el servicio de montaje local debe configurarse para que dependa del servicio de intercambio.
perfiles Opcional Algunas configuraciones útiles de Portage que pueden ayudar a acelerar la configuración inicial.

Si está instalando una versión en inglés de Funtoo Linux, tiene suerte, ya que la mayoría de los archivos de configuración se pueden usar tal cual. Si está instalando para otra configuración regional, no se preocupe. Lo guiaremos a través de los pasos de configuración necesarios en la página Localización de Funtoo Linux y, si es necesario, siempre hay disponible un montón de soporte amable y útil. (Consulte Obteniendo Ayuda)

Sigamos adelante y veamos qué tenemos que hacer. Use nano -w <nombre_del_archivo> para editar archivos -- el argumento "-w" desactiva el ajuste de palabras, lo cual es útil cuando se editan archivos de configuración. Puede copiar y pegar de los ejemplos.

   Warning

¡Es importante editar su archivo /etc/fstab antes de reiniciar! Deberá modificar las columnas "fs" y "type" para que coincidan con la configuración de sus particiones y sistemas de archivos que creó con gdisk o fdisk. Omitir este paso puede evitar que Funtoo Linux se inicie correctamente.

/etc/localtime

/etc/localtime se usa para especificar la zona horaria en la que se encuentra su máquina y el valor predeterminado es UTC. Si desea que su sistema Funtoo Linux use la hora local, debe reemplazar /etc/localtime con un enlace simbólico a la zona horaria que desea usar.

chroot # ln -sf /usr/share/zoneinfo/MST7MDT /etc/localtime

Lo anterior establece la zona horaria en la hora estándar de la montaña (con horario de verano). Escriba ls /usr/share/zoneinfo para ver las zonas horarias disponibles. También hay subdirectorios que contienen zonas horarias descritas por ubicación.

/etc/conf.d/hwclock

Si realiza un arranque dual con Windows, deberá editar este archivo y cambiar el valor de reloj de UTC a local, porque Windows configurará su reloj de hardware a la hora local cada vez que inicia Windows. De lo contrario, normalmente no necesitaría editar este archivo.

chroot # nano -w /etc/conf.d/hwclock

Localización

De manera predeterminada, Funtoo Linux está configurado con Unicode (UTF-8) habilitado y para la configuración regional y el teclado en inglés de EE.UU. Si desea configurar su sistema para usar una configuración regional o un teclado que no sea inglés, consulte Localización de Funtoo Linux.

Introduccion a Portage

Portage, el administrador de paquetes de Funtoo Linux tiene un comando llamado emerge que se usa para construir e instalar paquetes desde la fuente. También se encarga de instalar todas las dependencias del paquete. Usted llama a emerge así:

chroot # emerge NombreDelPaquete

Cuando instala un paquete especificando su nombre en la línea de comandos, Portage registra su nombre en el archivo /var/lib/portage/world. Lo hace porque asume que, dado que lo ha instalado por su nombre, desea considerarlo parte de su sistema y desea mantener el paquete actualizado en el futuro. Esta es una función útil, ya que cuando se agregan paquetes al conjunto world, podemos actualizar todo nuestro sistema escribiendo:

chroot # ego sync
chroot # emerge -auDN @world

Esta es la forma "oficial" de actualizar su sistema Funtoo Linux. Arriba, primero actualizamos nuestro árbol de Portage usando git para obtener los últimos ebuilds (scripts), y luego ejecutamos un comando emerge para actualizar el conjunto de paquetes world. Las opciones especificadas le dicen a emerge que:

  • a - nos muestra lo que se emerged y nos pregunta si queremos continuar
  • u - actualiza los paquetes que especificamos -- no mostrarlos de nuevo si ya han aparecido.
  • D - Tenga en cuenta todo el árbol de dependencias de los paquetes cuando busque actualizaciones. En otras palabras, haz una actualización profunda.
  • N - Actualiza cualquier paquete que haya cambiado (nuevo) la configuración de USE.

Por supuesto, a veces queremos instalar un paquete pero no agregarlo al archivo world. Esto se hace a menudo porque solo desea que el paquete se instale temporalmente o porque sabe que el paquete en cuestión es una dependencia de otro paquete. Si desea este comportamiento, llame a emerge así:

chroot # emerge -1 NombreDelPaquete

Los usuarios avanzados pueden revisar la página wiki de Emerge.

Preparar el Disco

El stage3 de Funtoo Linux incluye un núcleo debian-sources prediseñado para que la instalación sea más rápida y sencilla. Para ver qué versión del núcleo está preinstalada, escriba:

chroot # emerge -s debian-sources
Searching...    
[Results for search key : debian-sources]
[Applications found : 1]

*  sys-kernel/debian-sources
      Latest version available: 5.9.6_p1
      Latest version installed: 5.9.6_p1
      Size of files: 118,723 kB
      Homepage:      https://packages.debian.org/unstable/kernel/
      Description:   Debian Sources (and optional binary kernel)
      License:       GPL-2

Firmware

En este punto, es aconsejable generar el paquete sys-kernel/linux-firmware más reciente, ya que varios controladores se basan en instrucciones y blobs de firmware. El hardware como tarjetas Wi-Fi, tarjetas gráficas, tarjetas de red y otros no funcionarán correctamente o no funcionarán si el firmware no está disponible. Si usa la imagen stage3, realice lo siguiente para instalarla. linux-firmware ya estará instalado si usa la imagen gnome:

chroot # emerge -av linux-firmware

Gestor de Arranque

How Booting Works

In order for Funtoo Linux to boot, it must detect the boot filesystem, root filesystem and swap. The most reliable way to do this is to use the UUID, or unique identifier, of the partitions holding these filesystems. We will use these UUID values in the /etc/fstab, which we will set up next.

The UUID allows Linux to find the right filesystem, even if it detects the disks differently or you move them around in your computer. Funtoo Linux uses a Linux kernel and initial RAM disk to boot, and to get everything set up, we need to set up /etc/fstab correctly, and then install the GRUB boot loader -- and there are two different commands for this, depending on whether you are using MBR or UEFI. Then, finally, we run ego boot update which is a Funtoo command that configures everything for us.

Label partitions

To see the UUIDs for your existing filesystems, type the following command:

root # ls -l /dev/disk/by-uuid/
total 0
lrwxrwxrwx 1 root root 10 Jan 27 13:42 6883428138129353569 -> ../../sdb1
lrwxrwxrwx 1 root root 15 Jan 27 13:42 CE4B-855D -> ../../nvme0n1p1
lrwxrwxrwx 1 root root 15 Jan 27 13:42 ac280eb5-1ea7-4742-9e71-9c7addd35c54 -> ../../nvme0n1p2
lrwxrwxrwx 1 root root 15 Jan 27 13:42 e5a76428-8b3f-4349-81af-cbe29c7f7d09 -> ../../nvme0n1p3

The UUIDs are listed to the left-hand side of the ->. Use these values for setting up the /etc/fstab file, below.

/etc/fstab

/etc/fstab is used by the mount command which is run when your system boots. Lines in this file inform mount about filesystems to be mounted and how they should be mounted. In order for the system to boot properly, you must edit /etc/fstab and ensure that it reflects the partition configuration you used earlier in the install process. If you can't remember the partition configuration that you used earlier:

chroot # nano -w /etc/fstab
   /etc/fstab - An example fstab file
UUID=CE4B-855D                                  /boot         vfat    noauto,noatime  1 2
UUID=ac280eb5-1ea7-4742-9e71-9c7addd35c54       none          swap    sw              0 0
UUID=e5a76428-8b3f-4349-81af-cbe29c7f7d09       /             ext4    noatime         0 1
   Important

Be sure to use the actual UUIDs from your system, not the example values above!

   Note

If you mounted a /var or /home partition, add them to your fstab, or your system may not boot correctly.

boot.conf

/etc/boot.conf controla la configuración del cargador de arranque en Funtoo. Esto es lo que está en el archivo por defecto:

Here is what is in the file by default:

   /etc/boot.conf
boot {
	generate grub
	default "Funtoo Linux"
	timeout 3
}

"Funtoo Linux" {
	kernel kernel[-v]
	initrd initramfs[-v]
	params += real_root=auto rootfstype=auto
}

"Funtoo Linux (nomodeset)" {
	kernel kernel[-v]
	initrd initramfs[-v]
	params += real_root=auto rootfstype=auto nomodeset
}

Si está iniciando un núcleo personalizado o no predeterminado, lea man boot.conf para obtener información sobre las diversas opciones disponibles para usted.

nomodeset

Notará después de arrancar que habrá una opción de arranque en el menú de GRUB para un modo "nomodeset". No recomendamos que utilice este modo de forma predeterminada, pero está disponible para usted por un par de buenas razones:

  • Para usuarios con pantallas HiDPI (4K+), especialmente computadoras portátiles: si no ha configurado un entorno gráfico, cuando el núcleo cambia automáticamente los modos de gráficos, la fuente de la consola puede ser pequeña e ilegible.
  • Para usuarios con tarjetas gráficas incompatibles: Algunas tarjetas gráficas no manejan la configuración de modo correctamente y esto puede resultar en una pantalla en blanco después de reiniciar. Utilice esta opción de arranque como una solución temporal.

Para usar la opción nomodeset, simplemente seleccione esa opción en el menú de GRUB cuando arranque su sistema.

rootwait

Si está utilizando una partición raíz en un dispositivo nvme, agregue el parámetro de núcleo rootwait para obligar al núcleo a esperar a que se inicialice de forma asíncrona o el núcleo entrará en pánico en algún hardware.

Intel Microcode

ego boot se asegurará de que tenga el microcódigo de CPU Intel más reciente instalado en su sistema si emerges los siguientes paquetes:

chroot # emerge intel-microcode iucode_tool

Esto no es necesario para los sistemas AMD.

Vieja Escuela (BIOS) MBR

Cuando use el arranque de BIOS "old school" (vieja escuela), ejecute el siguiente comando para instalar GRUB en su MBR y genere el archivo de configuración /boot/grub/grub.cfg que GRUB usará para arrancar:

chroot # grub-install --target=i386-pc --no-floppy /dev/sda
chroot # ego boot update

Nueva Escuela (UEFI) Boot Entry

Si está utilizando el arranque UEFI de "nueva escuela", ejecute los siguientes conjuntos de comandos, dependiendo de si está instalando un sistema de 64 bits o de 32 bits. Esto agregará GRUB como una entrada de arranque UEFI.

Para sistemas x86-64bit:

chroot # mount -o remount,rw /sys/firmware/efi/efivars
chroot # grub-install --target=x86_64-efi --efi-directory=/boot --bootloader-id="Funtoo Linux [GRUB]" --recheck /dev/sda
chroot # ego boot update

Para sistemas x86-32bit:

chroot # mount -o remount,rw /sys/firmware/efi/efivars
chroot # grub-install --target=i386-efi --efi-directory=/boot --bootloader-id="Funtoo Linux [GRUB]" --recheck /dev/sda
chroot # ego boot update

Ego!

Now, let's run Funtoo's ego boot update command to get everything configured. This will detect the current kernel(s) on your system and create the necessary GRUB boot entries to get your system booted:

chroot # ego boot update

Solo necesita ejecutar grub-install cuando instala Funtoo Linux por primera vez, pero debe volver a ejecutar ego boot update cada vez que modifique su /etc/boot.conf o agregue nuevos núcleos a su sistema. Esto regenerará /boot/grub/grub.cfg para que tenga nuevos núcleos disponibles en su menú de inicio de GRUB en su próximo reinicio.

Solución de problemas de UEFI posteriores al reinicio

En caso de que falte la entrada de arranque UEFI NVRAM en BIOS y grub no se inicie, puede intentar mover un ejecutable GRUB EFI ya instalado a la ruta predeterminada/de reserva (default/fallback path)

chroot # mv -v '/boot/EFI/Funtoo Linux [GRUB]' /boot/EFI/BOOT
chroot # mv -v /boot/EFI/BOOT/grubx64.efi /boot/EFI/BOOT/BOOTX64.EFI

Primer Arranque y nota para el futuro...

Bien, ¡ya estás casi está listo para arrancar!

Redes

Es importante asegurarse de que podrá conectarse a su red de área local después de reiniciar Funtoo Linux. Hay tres enfoques que puede usar para configurar su red: NetworkManager, dhcpcd y los scripts Funtoo Linux Networking. Aquí se explica cómo elegir cuál usar según el tipo de red que desea configurar.

Wi-Fi

   Note

Si usa la imagen de instalación gnome, linux-firmware y NetworkManager ya están instalados y disponibles. Puede usar nmtui para activar Wi-Fi si necesita conectividad de red antes de que X y GNOME estén completamente en funcionamiento. Además, las búsquedas de DNS de multidifusión de ZeroConf/Bonjour están habilitadas de forma predeterminada. Ambas cosas no se configurarán todavía si está utilizando la imagen stage3.

Para sistemas portátiles/móviles donde se usará Wi-Fi, roaming y se conectará a varias redes, se recomienda NetworkManager. Dado que las tarjetas Wi-Fi requieren un firmware para funcionar, también se recomienda que haga emerge al linux-firmware si aún no lo ha hecho:

chroot # emerge linux-firmware networkmanager
chroot # rc-update add NetworkManager default

El comando anterior garantizará que NetworkManager se inicie después de iniciar Funtoo Linux. Una vez que haya completado estos pasos de instalación y haya iniciado Funtoo Linux, puede usar el comando nmtui (que tiene una interfaz basada en consola fácil de usar) para configurar NetworkManager para que se conecte ( y volver a conectarse automáticamente, después de reiniciar) a un punto de acceso Wi-Fi:

chroot # nmtui

Para más información sobre NetworkManager, consulte la página del paquete NetworkManager.

Escritorio (DHCP con Cable)

Para una computadora de escritorio o estación de trabajo doméstica con Ethernet por cable que usará DHCP, la opción más simple y efectiva para habilitar la conectividad de red es simplemente agregar dhcpcd al nivel de ejecución predeterminado:

chroot # rc-update add dhcpcd default

Cuando reinicie, dhcpcd se ejecutará en segundo plano y administrará todas las interfaces de red y usará DHCP para adquirir direcciones de red de un servidor DHCP.

Si su servidor DHCP ascendente es dnsmasq, se puede configurar para asignar direcciones a través de la dirección mac para que los servidores en DHCP sean factibles.

Servidor (IP Estática)

Para los servidores, los scripts de Redes Funtoo Linux son la opción admitida para la configuración de la red y tienen su propia documentación. Están optimizados para configuraciones estáticas y cosas como puentes Ethernet virtuales para configuraciones de virtualización. Consulte Redes Funtoo Linux (en inglés) para obtener información sobre cómo utilizar el sistema de configuración de red basado en plantillas de Funtoo Linux.

Hostname

Por defecto, Funtoo usa "localhost" como hostname. Aunque el sistema funcionará perfectamente bien con este nombre, algunos ebuilds se niegan a instalarse cuando detectan localhost como nombre de host. También puede crear confusión si varios sistemas usan el mismo nombre de host. Por lo tanto, se recomienda cambiarlo por un nombre más significativo. El nombre de host en sí es arbitrario, lo que significa que puede elegir casi cualquier combinación de caracteres, siempre que tenga sentido para el administrador del sistema. Para cambiar el hostname, edite

chroot # nano /etc/conf.d/hostname

Busque la línea que comienza con hostname y cambie la entrada entre comillas. Guarde el archivo; en el próximo arranque, Funtoo utilizará el nuevo hostname

   Warning

Los hostname's pueden tener hasta 63 caracteres y pueden usar los siguientes caracteres: a-z, 0-9 y guiones (-). Sin embargo, el guión (-) puede no ser el primer o el último carácter.

Finalizando

Establezca su contraseña de root

Es imperativo que establezca su contraseña de root antes de reiniciar para que pueda iniciar sesión.

chroot # passwd
New password: **********
Retype new password: **********
passwd: password updated successfully

Crear un Usuario Regular

También es una buena idea crear un usuario regular para uso diario. Si está utilizando GNOME, este es un requisito ya que no puede iniciar sesión en GDM (GNOME Display Manager) como raíz. Esto se puede lograr de la siguiente manera:

chroot # useradd -m drobbins

drobbins es un nombre usuario de ejemplo (del creador de Funtoo Linux)

Es probable que también desee agregar su usuario principal a uno o más grupos complementarios. Aquí hay una lista de grupos importantes y su efecto:

GrupoDescripción
wheelPermite que su cuenta de usuario 'su' sea root. Recomendado en su cuenta de usuario principal para facilitar el mantenimiento. También se usa con sudo.
audioPermite que su cuenta de usuario acceda directamente a los dispositivos de audio. Requerido si usa ALSA; de lo contrario opcional.
videoPermite que su cuenta de usuario acceda directamente a los dispositivos de video. Requerido para ciertos controladores de video y cámaras web.
plugdevPermite que su cuenta de usuario funcione con varios dispositivos extraíbles. Permite agregar una red WiFi en GNOME sin proporcionar una contraseña de root. Recomendado para usuarios de escritorio.
portagePermite el uso prolongado de Portage como usuario habitual. Recomendado.

Para agregar su usuario a varios grupos, use el comando usermod, especificando una lista completa de grupos:

chroot # usermod -G wheel,audio,video,plugdev,portage drobbins

Al igual que con su cuenta raíz, no olvide establecer una contraseña:

chroot # passwd drobbins
New password: **********
Retype new password: **********
passwd: password updated successfully

drobbins es un nombre usuario de ejemplo (del creador de Funtoo Linux)

Instalar un Entropy Generator

El núcleo Linux utiliza varias fuentes, como la entrada del usuario, para generar entropía, que a su vez se utiliza para generar números aleatorios. Las comunicaciones encriptadas pueden usar mucha entropía y, a menudo, la cantidad de entropía generada por su sistema no será suficiente. Esto suele ser un problema en los sistemas de servidores sin cabeza, que también pueden incluir sistemas ARM como Raspberry Pi, y puede resultar en conexiones ssh más lentas que las normales, entre otros problemas.

Para compensar esto, se puede generar y habilitar un generador de entropía en el espacio del usuario en el momento del arranque.

Usaremos haveged en este ejemplo, aunque hay otros disponibles, como rng-tools.

chroot # emerge haveged
chroot # rc-update add haveged default

Haveged ahora comenzará en el arranque y aumentará el grupo de entropía del núcleo Linux

Reiniciar su sistema

Ahora es el momento de salir de fchroot, desmontar las particiones y archivos de Funtoo Linux y reiniciar su computadora. Cuando reinicie, se iniciará el cargador de arranque GRUB, cargará el kernel de Linux e initramfs, y su sistema comenzará a arrancar.

Para salir de fchroot, simplemente escriba exit y volverá a su shell de LiveCD.

Si usó pasos manuales de chroot, puede usar la siguiente secuencia de comandos para prepararse para reiniciar:

chroot # exit
root # cd /mnt
root # umount -lR funtoo

Ahora, está listo para reiniciar en Funtoo:

root # reboot

Ahora debería ver que su sistema se reinicia, el cargador de arranque GRUB aparece durante unos segundos y luego ve el núcleo Linux y la carga de initramfs. Después de esto, debería ver que Funtoo Linux comienza a arrancar, y debería recibir un mensaje de login:. Funtoo Linux has been successfully installed! (¡Funtoo Linux se ha instalado correctamente!).

Perfiles

Una vez haya reiniciado Funtoo Linux, puede ajustar más su sistema a sus necesidades usando Perfiles de Funtoo. Abajo se incluye una breve introducción a los perfiles - consulte la página Perfiles de Funtoo para información más detallada. Hay cinco tipos básicos de perfiles: arch, build, subarch, flavors y mix-ins.

Tipo de subperfilDescripción
archTípicamente x86-32bit o x86-64bit, esto define el tipo de procesador y el soporte de su sistema. Esto se definió cuando se creó su etapa y no debe cambiarse.
buildDefine si su sistema es current, stable o experimental build. Por el momento, todas las compilaciones de Funtoo Linux usan el perfil de compilación funtoo-current.
subarchDefine las optimizaciones de CPU para su sistema. El subarco se establece en el momento en que se construye el escenario3, pero se puede cambiar más tarde a mejores configuraciones si es necesario. Asegúrese de elegir un configuración que sea compatible con su CPU.
flavorDefine el tipo general de sistema, como server o desktop, y establecerá indicadores USE predeterminados adecuados para sus necesidades.
mix-insDefine varias configuraciones opcionales que puede interesarle habilitar.

Se debe configurar un arco, una compilación y un tipo para cada sistema Funtoo Linux, mientras que los complementos son opcionales y puede habilitar más de uno si lo desea. A menudo, los sabores y las mezclas heredan configuraciones de otros subperfiles. Use epro show para ver la configuración de su perfil actual, además de cualquier información de herencia.

   Note

Se recomienda que ejecute este comando ahora, especialmente si está utilizando la imagen de instalación gnome, para familiarizarse con la configuración actual del perfil en su sistema.

root # epro show

=== Perfiles Habilitados: ===

        arch:  x86-64bit
       build:  current
     subarch:  intel64-haswell
      flavor:  desktop
     mix-ins:  gnome


=== Todos los sabores heredados del sabor de escritorio: ===

                     estación de trabajo (del estilo de escritorio)
                             core (del tipo de estación de trabajo)
                          minimal (del sabor central)

=== Todos los complementos heredados del sabor de escritorio: ===

                               X (del tipo de estación de trabajo)
                            audio (del tipo de estación de trabajo)
                              dvd (del tipo de estación de trabajo)
                            media (del tipo de estación de trabajo)
       mediadevice-audio-consumer (de la combinación de medios)
                 mediadevice-base (de la combinación mediadevice-audio-consumer)
       mediadevice-video-consumer (de la combinación de medios)
                 mediadevice-base (de la combinación mediadevice-video-consumer)
         mediaformat-audio-common (de la combinación de medios)
           mediaformat-gfx-common (de la combinación de medios)
         mediaformat-video-common (de la combinación de medios)
                   console-extras (del tipo de estación de trabajo)
                            print (del tipo de escritorio)

Estos son algunos ejemplos básicos del uso de epro:

DescripciónComando
Ver perfiles disponibles. Los perfiles habilitados se resaltarán en cian. Los perfiles habilitados directamente estarán en negrita y tendrán un * adjunto.epro list
Cambiar el tipo de sistema.escritorio de tipo epro
Añadir un complemento.epro mix-in +gnome

Configuración de Gráficos

   Note

La imagen de instalación gnome tendrá soporte gráfico adicional ya habilitado para usted, pero aún necesitará configurar X y su administrador de pantalla (que se trata en la siguiente sección).

Funtoo Linux 1.4 presenta los siguientes complementos para permitir una configuración simplificada de la configuración de gráficos. Se recomienda usar estos complementos en lugar de colocar manualmente las configuraciones USE y VIDEO_CARDS en /etc/make.conf. Puede obtener más información sobre la configuración de gráficos de Funtoo y el enfoque de diseño de estos ajustes en la página make.conf/VIDEO_CARDS.

Funtoo Graphics Mix-Ins

gfxcard-intel
This mix-in is equivalent to gfxcard-intel-classic or gfxcard-intel-iris, depending on the release you're running. Currently, it defaults to gfxcard-intel-classic on 1.4-release and to gfxcard-intel-classic on Next release. Do not enable more than 1 gfxcard-intel* mix-in at the same time. The result is not what you might expect.
gfxcard-intel-classic
This mix-in enables Intel graphics support based on the older i915 mesa driver (not to be confused with the i915 kernel driver). Choose this if you have a Gen3 or older chipset.
gfxcard-intel-iris
This mix-in enables Intel graphics support for cards with glamor modesetting support (drivers i965 or iris), including support OpenGL ES (>=Gen4) and OpenCL and Vulkan (>=Gen7) and video acceleration where available. If your card is >=Gen5, do an emerge libva-intel-driver or emerge media-libs/libva-intel-media-driver (for >=Gen8) afterwards to ensure you have full video acceleration support.
gfxcard-amdgpu
This mix-in enables support for modern Radeon cards, Southern Islands -- GFX Core 6 (see this x.org reference) and greater. Includes Vulkan and video acceleration where available. Drivers are built for both the Gallium framework (modern replacement for DRI framework) and DRI framework. Glamor is used to accelerate 2D operations.
gfxcard-radeon
This mix-in enables support for modern Radeon cards, R600 through Northern Islands -- GFX Core 4 and 5 (see this x.org reference). Drivers are built for the Gallium framework (modern replacement for DRI framework) as well as DRI framework. Glamor is used to accelerate 2D operations.
gfxcard-older-ati
Use this mix-in to enable support for R300 up to (but not including) R600 Radeon cards -- -- GFX Core 3 (see this x.org reference). DRI as well as Gallium-based drivers are enabled.
gfxcard-ancient-ati
Use this mix-in to enable support pre-R300 cards -- GFX Core 1 and 2 (see this x.org reference). These drivers are DRI-based.
gfxcard-nvidia
Use this to enable support for proprietary NVIDIA drivers. You will also need to emerge nvidia-kernel-modules, blacklist nouveau and add yourself to the video group. See this documentation for more details. Note that Funtoo now has two catpkgs for NVIDIA proprietary graphics -- nvidia-drivers and nvidia-kernel-modules -- to aid the use of NVIDIA acceleration on containers.
gfxcard-nvidia-legacy
Proprietary NVIDIA drivers like above, but the legacy version of the driver that supports older hardware. See https://www.nvidia.com/en-us/drivers/unix/ and browse the specific driver version that emerge is installing to get detailed compatibility information.
gfxcard-nouveau
Use this mix-in to enable support for Open Source nouveau drivers.

Habilite las opciones de gráficos apropiadas para su hardware de la siguiente manera:

root # epro mix-in +gfxcard-intel

Una vez hecho esto, proceda a configurar X, KDE, GNOME u otro entorno de escritorio en su sistema, según lo desee. Consulte la siguiente sección para obtener más información al respecto.

¡Listo!

Si es nuevo en Funtoo Linux y Gentoo Linux, consulte Funtoo Linux: Primeros pasos, que lo ayudará a familiarizarse con su nuevo sistema.

   Important

Si está utilizando la imagen de instalación de gnome, por favor lea el artículo "Algunos toques finales" de los documentos de instalación de GNOME que le ayudarán a configurar su nuevo entorno gráfico.

También te pueden interesar los siguientes recursos:

  • Chroot_and_Containers (en inglés) - configurar contenedores de 32 bits para ejecutar Wine y STEAM.
  • Security (en inglés) - consejos para asegurar su sistema
  • Btrfs - una guía simple para configurar btrfs en su nuevo sistema Funtoo Linux.
  • documentación oficial (en inglés), que incluye todos los documentos que mantenemos oficialmente para la instalación y operación de Funtoo Linux.

También tenemos varias páginas dedicadas a configurar su sistema. Consulte la Categoría: Primeros pasos (en inglés) para obtener una lista de estas páginas.

Si su sistema no se inició correctamente, consulte [[|Installation Troubleshooting|Solución de Problemas de Instalación]] para conocer los pasos que puede seguir para resolver el problema.