Funtoo Linux Installation Guide

From Funtoo
Jump to navigation Jump to search
This page is a translated version of the page Install and the translation is 0% complete.
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!

Wprowadzenie

root # Witamy w Funtoo Linux!

Dokument został przygotowany, aby pomóc Tobie w instalacji systemu operacyjnego Funtoo na komputerze typu PC. Konfigurację środowiska ograniczyliśmy do minimum.

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. We encourage all new users to read Wolf Pack Philosophy to understand some of the distinctives of the Funtoo community.

Zanim zaczniemy, przejrzyj następujące ważne informacje:

Our desktop environment stages (GNOME, Cinnamon, etc.) now support seamless installation on VMware Workstation Pro virtual machines. We highly recommend you enable 3D Accelerated Video for your VM, which is not enabled by default. Click here for more info.
Wydanie Aktualne
Obecna wersja 1.4, czasami nazywana 1.4-release lub 1.4-release-std.
Model rozwoju
Funtoo Linux jest to opracowana przez społeczność (kompilująca kod źródłowy) meta-dystrybucja Linuksa.

Używając Funtoo jesteś zaproszony do uczestniczenia w rozwoju systemu. Mile widziani są użytkownicy dołączający do deweloperów za pośrednictwem strony code.funtoo.org, nie ma potrzeby przeprowadzania specjalnej procedury lub skomplikowanego procesu zatwierdzania. Zobacz Development Guide , aby uzyskać więcej informacji. Są też YouTube video tutorials , które pomogą Ci zacząć.

Support Matrix
Please use our Support Matrix to familiarize yourself with the technologies we do -- and do not -- support.
Styl dokumentacji
Proponujemy teraz wybór read and browse the Install Guide section-by-section. Może on być bardziej odpowiedni dla użytkowników "on-line".
Uruchamianie (platformy) Steam
Niedawno zostało wydane oficjalnie wsparcie dla Steam Docker images , tak samo jak wsparcie dla 'Steam' na 'Flatpak' u, są one oficjalnie wspieranym rozwiązaniem umożliwiającym działanie Steam na systemie Funtoo. Zobacz Steam, aby zasięgnąć więcej informacji.
Kontenery
Oficjalnie wspierane jest zarządzanie kontenerami LXD i Docker. Proszę obejrzeć listę wspieranych Chroot and Containers. Nie jest ona kompletna, jednak ciągle rośnie o nowe dostępne technologie kontenerów wraz z linkami do dalszej dokumentacji.
Nowe narzędzie Fchroot
Teraz dostępne jest nasze nowe fchroot tool , które umożliwi Ci uruchamianie środowiska ARM i RISCV na sprzęcie typu PC. Jest to bardzo efektywne narzędzie przyspieszające kompilowanie dużych kawałków programów dla sytemów ARM o ograniczonych zasobach. Zobacz code.funtoo.org page, Frankenchroot i Frankenchroot/Live_NFS_Frankenchroot , żeby uzyskać informacje o konfigurowaniu środowiska.

Teraz, gdy zostały omówione wszystkie ważne informacje, czas zacząć instalacje Funtoo Linux!

Proces Instalacji

Oto podstawowy przegląd procesu instalacji Funtoo:

Pobieranie obrazu LiveCD/DVD/USB

Żeby zainstalować Funtoo Linux, najpierw musisz uruchomić komputer przy użyciu 'Live CD/DVD' lub pamięci USB z systemem Linux. Zalecamy użycie dystrybucji opartej na Funtoo Funtoo:New Install Experience/LiveCD ponieważ zawiera nowoczesne jądro, a także pełne środowisko graficzne. Można ją nagrać na CD / DVD lub zainstalować na USB. Obraz pobierzesz tutaj:

When installing Funtoo Linux on x86-64bit, we highly recommend the official Funtoo Linux LiveCD/LiveUSB, which can always be downloaded here:

While any modern bootable Linux image should be sufficient to install Funtoo Linux, the Funtoo LiveCD has several advantages over other options. Because it natively runs Funtoo Linux, and includes our official debian-sources kernel with very good hardware support, the hardware it supports is going to match the hardware that Funtoo Linux supports -- thus allowing you to identify any hardware compatibility issues immediately.

In addition, our LiveCD is regularly updated, and includes NetworkManager which allows the use of the easy nmtui command to configure your network. It also includes our innovative Fchroot tool, which allows you to use QEMU to "chroot" into non-x86 systems such as arm-64bit and riscv-64bit. This allows the Funtoo LiveCD to be used to even rescue and set up systems with different instruction sets!

Aby skopiować obraz na pamięć USB, użyj następującego polecenia:

root # dd if=funtoo-livecd-area31-5.1-beta.iso of=/dev/sdx bs=4k status=progress

Musisz wstawić /dev/sdx , zamieniając "x" na literę wskazującą na podłączoną pamięć USB (pendrive).

Dostęp do Sieci

For steps on setting up network access from the LiveCD, please see the Funtoo:New Install Experience/LiveCD page.

Instalacja Zdalna

Alternatywną możliwością jest zalogowanie się do Area31 Funtoo LiveCD poprzez sieć za pomocą SSH. Może to być bardziej wygodny sposób przeprowadzenia instalacji z innego komputera.

First ensure that sshd is running. You may need to start sshd as follows:

root # /etc/init.d/sshd start

Jeśli chcesz zainstalować zdalnie Funtoo Linux, oto jak to zrobić. Najpierw musisz upewnić się, że Area31 LiveCD ma działające połączenie sieciowe. Następnie wymagane jest ustawienie hasła root 'a:

root # passwd
Nowe hasło : ********
Proszę ponownie wpisać nowe hasło : ********
passwd: hasło zostało zmienione


Kiedy wpiszesz nowe hasło, niezbędnym jest określenie adresu IP uruchomionego LiveCD/DVD/USB. Później możesz użyć ssh do połączenia się z nim przez sieć. Żeby określić aktualnie używany adres IP, wpisz ifconfig:

root # ifconfig

Inną możliwością ustalenia obecnego adresu IP jest użycie narzędzia ip iproute2:

root # ip addr show

Jeden z interfejsów powinien mieć adres IP (wyświetlony jako inet addr:) z Twojej sieci LAN. W następnym kroku możesz połączyć się zdalnie z LiveCD za pomocą innego komputera i wygodnie podejmować działania z Linuksa albo MacOS. Aby zainicjować połączenie zdalne z systemu "gościa", wpisz następującą komendę, zastępując 1.2.3.4 adresem IP środowiska LiveCD/DVD/USB:

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

Jeśli chciałbyś połączyć się zdalnie z systemu Microsoft Windows, powinieneś zainstalować klienta SSH dla Windows'a, takiego jak OpenSSH.

Po zalogowaniu przy użyciu SSH, jesteś zdalnie połączony z LiveCD/DVD/USB i możesz kontynuować proces instalacji.

Przygotowanie Dysku

W tej sekcji musisz wybrać format dysku używany do uruchomiania systemu (oraz partycjonowania) - MBR lub UEFI/GPT. Jeżeli nie znasz różnic pomiędzy nimi, przejrzyj naszą stronę Disk Formats, żeby zapoznać się z opisem każdej z opcji i możliwych ograniczeń formatu. Zwykle bezpieczniej jest wybrać starszą metodę MBR dla dysków systemowych o rozmiarze mniejszym niż 2 TB. Większość nowoczesnych systemów komputerowych obsługuje zarówno MBR, jak i rozruch z UEFI.

Ale przede wszystkim...

Przed wykonaniem jakichkolwiek czynności na dyskach upewnij się, że partycjonujesz właściwy dysk. Użyj komendy lsblk, aby wyświetlić listę wszystkich urządzeń blokowych w Twoim systemie, jak również partycji na tych urządzeniach blokowych:

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

Jeżeli nie jesteś pewien który dysk jest który, możesz użyć polecenia lsblk -o MODEL,NAME,SIZE aby wyświetlić modele urządzeń przypisane do nazw /dev/sd? a, b, c ...

Upewnij się, że nie nadpiszesz żadnych ważnych danych i że wybrałeś właściwe urządzenie /dev/sd?. Powyżej, możesz zobaczyć, że dysk SATA sda zawiera trzy partycje: sda1, sda2 i sda3; oraz to, że sda3 zawiera woluminy LVM. Jeśli używasz dysku NVME, wtedy możesz zobaczyć opis urządzenia w podobnej postaci: nvme0n1, a Twoje partycje (jeśli istnieją) zostanią nazwane odpowiednio nvme0n1p1, nvme0n1p2, itd. Jeśli instalujesz system na karcie microSD do Raspberry Pi, urządzenie blokowe będzie miało zwykle przypisaną nazwę mmcblk0, a partycje będą miały końcówki (przyrostki) p1, p2, itd.

Po dwukrotnym skontrolowaniu docelowego urządzenia blokowego i upewnieniu się, że partycjonujesz właściwy dysk, przejdź do następnego kroku.

Partycjonowanie (MBR)

Starsza metoda (BIOS/MBR)

   Note

Użyj tej metody, jeżeli uruchamiasz system przy użyciu BIOS-u i jeżeli menu początkowe 'Funtoo LiveCD/DVD/USB' miało kolor jasnoniebieski. Jeśli zamierzasz użyć na dysku formatu UEFI/GPT, przejdź do następnego rozdziału Przewodnika.

Po pierwsze, dobrym pomysłem jest upewnienie się, że wybrałeś właściwy dysk twardy do partycjonowania. Wypróbuj poniższe polecenie i sprawdź, czy /dev/sda odpowiada urządzeniu, które chcesz podzielić na partycje:

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

Teraz zaleca się usunięcie wszelkich istniejących tablic partycji MBR lub GPT na dysku, może to spowodować dezorientację systemu BIOS podczas uruchamiania komputera. Wpisujemy polecenie sgdisk:

   Warning

OSTRZEŻENIE: Spowoduje to, że wszelkie istniejące partycje będą wymazane! Zaleca się utworzenie kopii zapasowej ważnych danych przed kontynuowaniem.

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

Creating new GPT entries.
GPT data structures destroyed! You may now partition the disk using fdisk or
other utilities.

Ta informacja również nie powinna Cię martwić, ponieważ operacja się powiodła:

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

Teraz użyjemy fdisk żeby utworzyć tablicę partycji MBR oraz partycje:

root # fdisk /dev/sda

W programie fdisk, wykonaj następujące kroki:

Utwórz nową tablicę partycji:

Command (m for help): o ↵

Utwórz Partycję Rozruchową (boot):

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

Utwórz Partycję Wymiany (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 ↵

Utwórz Partycję Główną (root):

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

Zweryfikuj poprawność utworzonych partycji (docelowych wpisów w tablicy partycji):

Command (m for help): p

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

Zapisz tablicę partycji na dysk:

Command (m for help): w

Twoja nowa tablica partycji zostanie teraz zapisana na dysk.

   Note

Partycjonowanie zakończone! Teraz, przejdź do rozdziału Tworzenie systemu plików.

Partycjonowanie (MBR)

UEFI/GPT Method

   Note

Use this method if you are interested in booting using UEFI, and if your Funtoo LiveCD initial boot menu was black and white, or the system booted without a boot menu. If it was light blue, this method will not work. Instead, use the instructions in the previous section then skip this section, or reboot LiveCD in UEFI mode first.

   Note

You can build legacy mode into your GPT partition table but it requires a BIOS Boot partition. see Talk:Install/GPT_Partitioning

The gdisk commands to create a GPT partition table are as follows. Adapt sizes as necessary, although these defaults will work for most users. Start gdisk:

root # gdisk /dev/sda

Within gdisk, follow these steps:

Create a new empty partition table (This will erase all data on the disk when saved):

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

Create Partition 1 (boot):

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

Create Partition 2 (swap):

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

Create Partition 3 (root):

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

Along the way, you can type "p" and hit Enter to view your current partition table. If you make a mistake, you can type "d" to delete an existing partition that you created. When you are satisfied with your partition setup, type "w" to write your configuration to disk:

Write Partition Table To Disk:

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

The partition table will now be written to the disk and gdisk will close.

Now, your GPT/GUID partitions have been created, and will show up as the following block devices under Linux:

  • /dev/sda1, which will be used to hold the /boot filesystem,
  • /dev/sda2, which will be used for swap space, and
  • /dev/sda3, which will hold your root filesystem.
   Tip

You can verify that the block devices above were correctly created by running the command lsblk.

Tworzenie systemu plików

   Note

Ten rozdział zawiera instrukcję instalacji dla obydwu formatów dysku: MBR oraz GPT/UEFI. Nie omijaj go!

Przed użyciem nowo utworzonych (w poprzednim rozdziale) partycji muszą być one zainicjowane. Ten proces nazwany jest tworzeniem systemu plików na urządzeniach blokowych. Po utworzeniu metadanych systemu plików na partycjach, można je zamontować i wykorzystać do przechowywania informacji.

Zróbmy to najprościej. Czy korzystasz ze starszego typu tablicy partycji MBR? Jeżeli tak, stwórzmy system plików ext2 na /dev/sda1:

root # mkfs.ext2 /dev/sda1

Jeżeli używasz partycji GPT dla UEFI lub instalujesz system dla Raspberry Pi, będziesz chciał utworzyć system plików vfat na pierwszej partycji (w przypadku Raspberry Pi będzie to mmcblk0p1):

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

Teraz zainicjujmy partycję wymiany. Ta partycja będzie używana jako pamięć wirtualna dla Twojego systemu Funtoo.

Na partycji wymiany nie jest możliwe utworzenie systemu plików, ponieważ nie jest ona używana do przechowywania plików. Inicjujemy ją za pomocą komendy mkswap. Następnie komendą swapon natychmiastowo aktywujemy w naszym środowisku, na wypadek gdyby była potrzebna podczas dalszego procesu instalacji:

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

System plików na partycji głównej (root)

Teraz musimy utworzyć system plików na głównej partycji (root). To tutaj zagości Funtoo. Zalecamy system plików ext4 lub XFS. Pamiętaj, że niektóre systemy plików wymagają kompilacji (emerge) dodatkowych narzędzi przed ponownym uruchomieniem komputera. Więcej informacji znajduje się w poniższej tabeli:

System plikówRekomendowany do użycia na partycji root?Wymagana kompilacja (emerge) dodatkowych narzędzi
ext4TakBrak
XFSTaksys-fs/xfsprogs
reiserfsTak -- zwykle wymaga włączenia wsparcia w jądrze sys-fs/reiserfsprogs
zfsNie - tylko zaawansowani użytkownicysys-fs/zfs
btrfsNie - tylko zaawansowani użytkownicysys-fs/btrfs-progs
   Important

Nie zalecamy użytkownikom ustawiania ZFS lub BTRFS jako głównego systemu plików. Jest to o wiele bardziej złożone i zwykle nie jest konieczne. Zamiast tego wybierz XFS lub ext4. Systemy plików ZFS oraz BTRFS są wspierane na partycjach innych niż partycja główna root ponieważ jest to o wiele, wiele łatwiejsze do skonfigurowania. Zobacz ZFS i BTRFS po zakończeniu konfiguracji systemu Funtoo w celu skonfigurowania ZFS lub BTRFS jako dodatkowego magazynu danych.

Jeśli nie jesteś pewien, wybierz ext4. Oto jak utworzyć główny system plików ext4:

root # mkfs.ext4 /dev/sda3

... a oto jak stworzyć główny system plików XFS, jeśli wolisz używać XFS zamiast ext4:

root # mkfs.xfs /dev/sda3

Wszystkie systemy plików i partycja wymiany pamięci wirtualnej zostały zainicjowane, dzięki czemu można je zamontować (dołączyć do istniejącej hierarchii katalogów) i użyć do przechowywania danych. Jesteśmy gotowi, aby rozpocząć instalację Funtoo Linux na tych nowo utworzonych systemach plików.

Dodatkowe systemy plików

   Note

Może to być bardzo przydatne dla systemów na Raspberry Pi!

You may want to create additional filesystems for various parts of your Funtoo filesystem tree. It is not uncommon to place /home or /var on separate filesystems.

For Raspberry Pi, you may not have a lot of spare room on the card depending on the capacity of your microSD card, and it may make a lot of sense to put the entire /var filesystem on an external hard drive or solid state disk. This will not only ensure you don't run out of disk space, but can also improve performance since writes to the microSD card typically aren't that fast.

To do this, you will want to use fdisk or gdisk to create a partition on your external drive, and then use the mkfs.xfs or mkfs.ext4 commands to create a filesystem on the new partition. We will mount this new filesystem in the next step prior to extracting the stage3 tarball.

Montowanie systemu plików

Zamontuj nowo utworzone systemy plików w następujący sposób, tworząc punkt montowania /mnt/funtoo przeznaczony do instalacji:

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

Jeżeli masz dodatkowe systemy plików utworzone wcześniej (takie jak /home albo /var), powinieneś je teraz zamontować, żeby po rozpakowaniu 'stage3' (co zrobimy w późniejszym etapie) systemy te zostały wypełnione potrzebnymi plikami. Wykonuje się to w następujący sposób:

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

Ustawianie Daty

   Important

WAŻNE: Jeżeli data i godzina w Twoim systemie jest odległa od aktualnej (zwykle o miesiące lub lata), może to uniemożliwić menadżerowi pakietów 'Portage' prawidłowe pobieranie archiwów (tarballs) z kodem źródłowym. Wynika to z faktu, że niektóre paczki są pobierane przez protokół HTTPS, który używa certyfikatów SSL i są one oznaczone datą aktywacji i wygaśnięcia. Jeśli jednak czas systemowy jest stosunkowo bliski poprawnemu, prawdopodobnie na razie możesz pominąć ten krok.

Teraz nastąpił dobry moment na sprawdzenie, czy data i godzina są ustawione poprawnie na czas UTC (Uniwersalny Czas Koordynowany). Użyj polecenia date, aby zweryfikować ustawioną datę i godzinę:

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

Jeżeli data lub godzina wymagają korekty, zrób to używając date MMDDhhmmYYYY, pamiętając o formacie 24-godzinnym. Poniższy przykład zmienia datę i godzinę na „lipiec, 16, godzina 20:00, 2011r.” UTC:

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

Kiedy ustawisz zegar systemowy, bardzo dobrym pomysłem jest skopiowanie ustawień do zegara sprzętowego, żeby były one zachowane po ponownym uruchomieniu komputera:

root # hwclock --systohc

Pobieranie i rozpakowanie 'Stage3'

Teraz, gdy utworzyliśmy system plików oraz ustawiony został zegar sprzętowy i systemowy, następnym krokiem jest pobranie paczki inicjującej 'stage3'. Jest to wstępnie skompilowany system używany jako punkt wyjścia do instalacji Funtoo Linux.

Żeby pobrać poprawną wersję Funtoo dla swojego komputera, przejdź na stronę Subarches. Sub-architektury zawierają kompilacje, które zostały zaprojektowane do działania na określonym typie procesora, aby zapewnić najlepszą możliwą wydajność. Korzystają one również z zestawów instrukcji dostępnych dla danego CPU.

Co to są sub-architektury?

Z listy 'subarch' w Subarches wybierz pożądany poziom optymalizacji. System zbudowany specjalnie dla Twojego procesora będzie działał szybciej niż system mniej zoptymalizowany. W przypadku nowoczesnego systemu Intel lub AMD można bezpiecznie wybrać dokładny poziom optymalizacji dla rodziny posiadanego przez Ciebie procesora (processor family). Zapewni to najlepszą możliwą wydajność.

Jeśli używasz technologii wirtualizacji, aby uruchomić Funtoo i Twoja Maszyna Wirtualna (VM) może być używana na komputerach różnego typu, wtedy zalecane jest użycie paczki 'stage3', która jest zoptymalizowana dla najstarszego typu CPU na którym uruchomi się VM. Bardziej ogólny obraz (generic), jeśli będzie ona uruchamiana na obydwu typach procesora: AMD i Intel.

Jak już znajdziesz odpowiedni 'subarch' w Subarches, prawdopodobnie będziesz miał do wyboru kilka paczek instalacyjnych. Kolejna część pomoże Tobie zrozumieć, którą wybrać.

Która paczka z obrazem systemu?

Our desktop environment stages (GNOME, Cinnamon, etc.) now support seamless installation on VMware Workstation Pro virtual machines. We highly recommend you enable 3D Accelerated Video for your VM, which is not enabled by default. Click here for more info.

Zawsze możesz samemu wybrać obraz instalacyjny za pośrednictwem https://build.funtoo.org, a także korzystając ze strony Subarches . Oto kilka wskazówek dotyczących wyboru najlepszego archiwum .tar.xz do pobrania. Dokonaj wyboru:

Wybierz 1.4-release-std.
Jest to wydanie 1.4 Funtoo, nasze obecne wydanie.
Wybierz odpowiednią sub-architekturę dla rodziny procesora (processor family) posiadanego komputera.
To zapewni najszybsze działanie systemu.
Wybierz stage3, gdy...
Tarball stage3 jest bardziej tradycyjny, cechuje się minimalną instalacją w trybie tekstowym. Następnie kompilujesz system do pożądanej funkcjonalności używając emerge.
Wybierz gnome, gdy...
Paczka obrazu gnome (jeżeli jest dostępna) zawiera pełne środowisko graficzne GNOME, a także przeglądarkę Firefox zoptymalizowaną dla Twojego sprzętu. Po instalacji możesz dodatkowo spersonalizować system.
The lxd image for...
The lxd image is for use with LXD, and is not used for installing directly on a desktop or laptop, so you should not select this option for regular installs. To install, first download and then lxc image import <name>.tar.xz --alias funtoo and then you can lxc launch funtoo my_container.

Pobieranie i rozpakowanie 'stage3'

Gdy tylko znajdziesz odpowiednią paczkę, użyj wget żeby pobrać obraz, który wybrałeś jako podstawę dla nowego systemu Funtoo Linux. Powinien on zostać zapisany w katalogu /mnt/funtoo, co nastąpi po wpisaniu:

   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

Zweryfikuj pobrane archiwum (tarball)

Archiwa 'stage' są podpisane za pomocą GPG przez serwer na którym zostały stworzone. Dobrą praktyką jest weryfikacja authenticity and integrity pobranych plików, jeżeli jest to możliwe. Instrukcję, jak importować i uwierzytelniać klucze GPG, znajdziesz our wiki page about GPG signatures.

Then, you can download the stage3's GPG signature and use the gpg --verify command in order to verify your 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

Po pobraniu 'tarbal'a i jego weryfikacji, wyodrębnij zawartość przy pomocy następującej komendy, zastępując nazwę archiwum rzeczywistą nazwą pobranego pliku:

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

BARDZO WAŻNE jest użycie wszystkich parametrów zawartych wyżej. Zobacz poniżej szczegóły.

Oto, co powoduje dopisanie następującego parametru do programu tar:

--numeric-owner
Without this option, tar will map ownership and group ownership based on the UID to user and GID to group mappings as defined on the LiveCD. We don't want this -- we want the numeric values of the UIDs and GIDs in the tarball to be preserved on disk, so when your Funtoo Linux system boots, the UIDs and GIDs are set correctly for Funtoo. That is what this option tells tar to do.
--xattrs --xattrs-include='*'
Funtoo Linux uses filesystem extended attributes to set Linux capabilities, which allow for certain programs such as ping to have enhanced privileges without having to be fully 'suid root'. Even with the -p option, tar will not restore extended attributes we need unless these two options are specified.
-xpf
This instructs tar to extract (x), preserve regular permissions and ownership (p), and use the filename (f) specified.

'chroot' do nowego systemu

Żeby zainstalować Funtoo, najpierw używamy chroot. Polecenie "przełącza" na nowy system Funtoo Linux. Wpisywane odtąd komendy będą uruchomiać się na nowo rozpakowanym systemie.

root # fchroot /mnt/funtoo
fchroot #

The fchroot command will take care of all necessary steps to enter into your new Funtoo Linux system, as well as clean up things when you exit the fchroot by typing exit or ctrl-D.

If you are using another LiveCD or USB media to install Funtoo, you can manually chroot by using the following set of commands:

Przed 'chroot'owaniem, należy wykonać kilka czynności aby skonfigurować środowisko 'chroot'. Trzeba będzie zamontować /proc, /sys oraz /dev wewnątrz nowego systemu. Aby to zrobić, użyj następujących poleceń:

root # cd /mnt/funtoo
root # mount -t proc none proc
root # mount --rbind /sys sys
root # mount --rbind /dev dev
   Note

For users of live CDs with 64-bit kernels installing 32-bit systems: Some software may use uname -r to check whether the system is 32 or 64-bit. You may want to append linux32 to the chroot command as a workaround, but it's generally not needed.

   Important

If you receive the error "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 your live CD.

Test internet name resolution from within the chroot:

chroot # ping -c 5 google.com

If you can't ping, make sure that /etc/resolv.conf specifies a valid IP address for a reachable nameserver in its nameserver setting.

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.

Pobieranie drzewa menadżera pakietów 'Portage'

Teraz nadszedł czas na zainstalowanie repozytorium - zbioru zawierającego skrypty (ebuild'y) informujące o sposobie kompilacji i instalacji tysięcy różnego rodzaju pakietów oprogramowania. W celu pobrania repozytorium uruchomiamy ego sync Spowoduje to automatyczne sklonowanie GitHub (portage tree and all kits).

chroot # ego sync

Konfiguracja Systemu

Jak można by się spodziewać po dystrybucji Linuksa, pliki konfiguracyjne w Funtoo mają swój udział. Edycja jednego pliku jest absolutnie wymagana, żeby zapewnić pomyślny start systemu Funtoo Linux, jest to /etc/fstab. Pozostałe są opcjonalne.

Używanie edytora Nano

Domyślny edytor zawarty w środowisku 'chroot' nazywa się nano. Aby edytować jeden z plików z tabeli poniżej, uruchom 'nano' w następujący sposób:

chroot # nano -w /etc/fstab

Kiedy jesteś w edytorze, możesz używać klawiszy strzałek aby poruszać kursorem, pospolite klawisze takie jak [BACKSPACE] i [DELETE] działają zgodnie z oczekiwaniem. Aby zapisać plik naciśnij [CTRL-X] i wybierz t kiedy wyświetli się pytanie "Zapisać zmodyfikowany bufor?".

Pliki konfiguracyjne

Oto pełna lista plików, które możesz edytować, w zależności od Twoich potrzeb:

PlikCzy muszę edytować?Opis
/etc/fstab TAK - wymagane Punkty montowania wszystkich systemów plików używanych podczas uruchamiania systemu. Ten plik musi odzwierciedlać konfigurację partycji na dysku. Poniżej poprowadzimy Cię w celu modyfikacji tego pliku.
/etc/localtime Możesz - zalecane Twoja strefa czasowa, która jest domyślnie ustawiona na UTC jeśli nie została zmieniona. Powinien to być symboliczny link do czegoś znajdującego się w /usr/share/zoneinfo (np. /usr/share/zoneinfo/Europe/Warsaw).
/etc/portage/make.conf Możesz - zalecane Parametry używane przez gcc (kompilator), portage i make. "Zauważ że normalnym jest, gdy ten plik jest pusty, ponieważ w Funtoo wiele ustawień przeszło do naszego rozszerzonego Systemu Profili."
/etc/conf.d/hostname Możesz - zalecane Używany do ustawienia systemowej nazwy hosta. Ustaw odpowiednią zmienną hostname, jeżeli taką posiadasz (z kropkami, np. foo.funtoo.org). W przeciwnym wypadku ustaw nazwę lokalnego systemu bez kropek, np. foo. Domyślną nazwą jest localhost jeśli nie została zmieniona.
/etc/hosts NIE You no longer need to manually set the hostname in this file. This file is automatically generated by /etc/init.d/hostname.
/etc/conf.d/keymaps Opcjonalnie Keyboard mapping configuration file (for console pseudo-terminals). Set if you have a non-US keyboard. See Funtoo Linux Localization.
/etc/conf.d/hwclock Opcjonalnie 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.
/etc/conf.d/modules Opcjonalnie Kernel modules to load automatically at system startup. Typically not required. See Additional Kernel Resources for more info.
/etc/conf.d/consolefont Opcjonalnie Allows you to specify the default console font. To apply this font, enable the consolefont service by running rc-update add consolefont.
profiles Opcjonalnie Some useful portage settings that may help speed up intial configuration.

Jeśli instalujesz angielską wersję Funtoo, masz szczęście, ponieważ większość plików konfiguracyjnych może być używana bez żadnych zmian. Jeżeli instalujesz system dla innego języka, nie martw się. Przeprowadzimy Cię przez niezbędne kroki konfiguracji na stronie Funtoo Linux Localization, a jeśli zajdzie taka potrzeba, zawsze znajdziesz wiele przyjaznego, pomocnego wsparcia. (Zobacz Getting Help)

Pójdźmy naprzód i zobaczmy co mamy do zrobienia. Użyj nano -w <name_of_file> do edycji plików, argument "-w" wyłącza zawijanie wierszy, co jest przydatne podczas edycji plików konfiguracyjnych. Możesz wykonać operację kopiuj-wklej z przytoczonych tutaj przykładów.

   Warning

WAŻNE JEST ŻEBY EDYTOWAĆ PLIK /etc/fstab PRZED PONOWNYM URUCHOMIENIEM KOMPUTERA!!! Potrzebujesz modyfikacji obydwu kolumn „fs” i „type”, aby dopasować ustawienia partycji i systemów plików utworzonych za pomocą gdisk albo fdisk. Ominięcie tego kroku może uniemożliwić pomyślne uruchomienie Funtoo Linux.

/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 # lsblk -f
chroot # nano -w /etc/fstab
   /etc/fstab - An example fstab file
/dev/sda1       /boot         vfat    noauto,noatime  1 2
/dev/sda2       none          swap    sw              0 0
/dev/sda3       /             ext4    noatime         0 1
   Note

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

/etc/localtime

/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 /etc/localtime with a symbolic link to the timezone that you wish to use.

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

The above sets the timezone to Mountain Standard Time (with daylight savings). Type ls /usr/share/zoneinfo to list available timezones. There are also sub-directories containing timezones described by location.

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

chroot # 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 emerge 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:

chroot # emerge packagename

When you install a package by specifying its name in the command-line, Portage records its name in the /var/lib/portage/world 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 world set, we can update our entire system by typing:

chroot # ego sync
chroot # emerge -auDN @world

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 world set of packages. The options specified tell emerge to:

  • a - show us what will be emerged, and ask us if we want to proceed
  • u - update the packages we specify -- don't emerge them again if they are already emerged.
  • D - Consider the entire dependency tree of packages when looking for updates. In other words, do a deep update.
  • N - Update any packages that have changed (new) USE settings.

Of course, sometimes we want to install a package but not add it to the world file. This is often done because you only want the package installed temporarily or because you know the package in question is a dependency of another package. If this behavior is desired, you call emerge like this:

chroot # emerge -1 packagename

Advanced users may be interested in the Emerge wiki page.

Prepare Disk

Funtoo Linux stage3's include a pre-built debian-sources kernel to make installation faster and easier. To see what kernel version is pre-installed, type:

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

At this point it is wise to emerge the latest sys-kernel/linux-firmware package, because various drivers rely on firmware blobs and instructions. Hardware like Wi-Fi cards, graphic cards, network cards, and others will not work properly or at all if firmware is not available. If using the stage3 image, perform the following to install it. linux-firmware will be already installed if using the gnome image:

chroot # emerge -av linux-firmware

Bootloader

boot.conf Configuration

These install instructions show you how to use GRUB to boot using BIOS (legacy) or UEFI.

ego boot update (ego boot) is installed by default, but GRUB is not, as it is not required for all Funtoo Linux systems (such as containers, for example.) But for booting on bare metal, it is the recommended and best-supported boot loader, so you will need to emerge it:

chroot # emerge -av grub

boot.conf

/etc/boot.conf controls boot loader configuration in Funtoo. 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
}

If you are booting a custom or non-default kernel, please read man boot.conf for information on the various options available to you.

nomodeset

You will notice after booting that you there will be a boot option in the GRUB menu for a "nomodeset" mode. We don't recommend you use this mode by default but it is available to you for a couple of good reasons:

  • For users with HiDPI (4K+) displays, especially laptops: If you have not set up a graphical environment, when the kernel automatically changes graphics modes, the console font can be tiny and unreadable.
  • For users with incompatible graphics cards: Some graphics cards don't handle mode setting properly and this can result in a blank screen after reboot. Use this boot option as a temporary workaround.

To use the nomodeset option, simply select that option from the GRUB menu when your system boots.

rootwait

If you are using a root partition on an nvme device, add the rootwait kernel parameter to force the kernel to wait for it to asynchronously initialize or the kernel will panic on some hardware.

Intel Microcode

ego boot will ensure that you have the most recent Intel CPU microcode installed on your system if you emerge the following packages. These will be merged for you already if you are using a desktop stage3:

chroot # emerge -av intel-microcode iucode_tool

This is not necessary for AMD systems.

Old School (BIOS) MBR

When using "old school" BIOS booting, run the following command to install GRUB to your MBR, and generate the /boot/grub/grub.cfg configuration file that GRUB will use for booting:

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

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:

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

For x86-32bit systems:

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

First Boot, and in the future...

OK -- you are almost ready to boot!

You only need to run grub-install when you first install Funtoo Linux, but you need to re-run ego boot update every time you modify your /etc/boot.conf. When you emerge updated kernels, ego boot update will be run automatically as part of the install process. This will regenerate /boot/grub/grub.cfg so that you will have new kernels available in your GRUB boot menu upon your next reboot.

Post reboot UEFI troubleshooting

In case UEFI NVRAM boot entry is missing in BIOS and grub does not start you can try moving an already installed GRUB EFI executable to the 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

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

   Note

If using the gnome or other desktop install image, linux-firmware and NetworkManager are already installed and available. You can use nmtui to get Wi-Fi going if you need network connectivity prior to getting X and GNOME fully up and running. In addition, desktop stage3's have ZeroConf/Bonjour multicast DNS lookups enabled by default. Both these things will not be set up yet if you are using the basic stage3 image.

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 if you have not done so already:

chroot # emerge linux-firmware networkmanager
chroot # 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 nmtui command (which has an easy-to-use console-based interface) to configure NetworkManager so that it will connect (and automatically reconnect, after reboot) to a Wi-Fi access point:

chroot # nmtui

For more information about NetworkManager, see the NetworkManager package page.

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 dhcpcd to the default runlevel:

chroot # rc-update add dhcpcd default

When you reboot, 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 the supported option for network configuration, and they have their own documentation. 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

chroot # 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

Hostnames can be up to 63 characters long and may use the following characters: a-z, 0-9 and hyphens (-). However, the hyphen may not be the first or last character.

Finishing Up

Set your root password

It's imperative that you set your root password before rebooting so that you can log in.

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

Create a Regular User

It's also a good idea to create a regular user for daily use. If you're using GNOME, this is a requirement as you cannot log in to GDM (The GNOME Display Manager) as root. This can be accomplished as follows:

chroot # useradd -m drobbins

You will also likely want to add your primary user to one or more supplemental groups. Here is a list of important groups and their effect:

GroupDescription
wheelAllows your user account to 'su' to root. Recommended on your primary user account for easy maintenance. Also used with sudo.
audioAllows your user account to directly access audio devices. Required if using ALSA; otherwise optional.
videoAllows your user account to directly access video devices. Required for certain video drivers and webcams.
plugdevAllows your user account work with various removable devices. Allows adding of a WiFi network in GNOME without providing root password. Recommended for desktop users.
portageAllows extended use of Portage as regular user. Recommended.

To add your user to multiple groups, use the usermod command, specifying a complete group list:

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

As with your root account, don't forget to set a password:

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

Install an Entropy Generator

The Linux kernel uses various sources such as user input to generate entropy, which is in turn used for generating random numbers. Encrypted communications can use a lot of entropy, and often the amount of entropy generated by your system will not be sufficient. This is commonly an issue on headless server systems, which can also include ARM systems such as Raspberry Pi, and can result in slower than normal ssh connections among other issues.

To compensate for this, a user-space entropy generator can be emerged and enabled at boot time. We will use haveged in this example, although others are available, such as rng-tools.

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

Haveged will now start at boot and will augment the Linux kernel's entropy pool.

Restart your system

Now is the time to leave fchroot, 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.

To leave the fchroot, simply type exit and you will be returned back to your LiveCD shell.

If you used manual chroot steps, you can use the following sequence of commands prepare to restart:

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

Now, you are ready to reboot into Funtoo:

root # reboot

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 login: 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:

Sub-Profile TypeDescription
archTypically x86-32bit or 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.
buildDefines whether your system is a current, stable or experimental build. At the moment, all Funtoo Linux builds use the funtoo-current build profile.
subarchDefines 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.
flavorDefines the general type of system, such as server or desktop, and will set default USE flags appropriate for your needs.
mix-insDefines various optional settings that you may be interested in enabling.

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 epro show to view your current profile settings, in addition to any inheritance information.

   Note

It's recommended that your run this command now, particularly if you are using the gnome install image, in order to familiarize yourself with the current profile settings on your system.

root # epro show

=== Enabled Profiles: ===

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


=== All inherited flavors from desktop flavor: ===

                     workstation (from desktop flavor)
                            core (from workstation flavor)
                         minimal (from core flavor)

=== All inherited mix-ins from desktop flavor: ===

                               X (from workstation flavor)
                           audio (from workstation flavor)
                             dvd (from workstation flavor)
                           media (from workstation flavor)
      mediadevice-audio-consumer (from media mix-in)
                mediadevice-base (from mediadevice-audio-consumer mix-in)
      mediadevice-video-consumer (from media mix-in)
                mediadevice-base (from mediadevice-video-consumer mix-in)
        mediaformat-audio-common (from media mix-in)
          mediaformat-gfx-common (from media mix-in)
        mediaformat-video-common (from media mix-in)
                  console-extras (from workstation flavor)
                           print (from desktop flavor)

Here are some basic examples of epro usage:

DescriptionCommand
View available profiles. Enabled profiles will be highlighted in cyan. Directly enabled profiles will be in bold and have a * appended.epro list
Change the system flavor.epro flavor desktop
Add a mix-in.epro mix-in +gnome

Graphics Settings

   Note

The gnome install image will have additional graphic support already enabled for you, but you will still need to set up X and your display manager (covered in the next section.)

Funtoo Linux 1.4 features the following mix-ins to allow simplified configuration of your graphics settings. It's recommended to use these mix-ins rather than manually placing USE and VIDEO_CARDS settings in /etc/make.conf. You can learn more about Funtoo's graphics configuration and the design approach of these settings at the make.conf/VIDEO_CARDS page.

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.

Enable the appropriate graphics options for your hardware as follows:

root # epro mix-in +gfxcard-intel

Once this has been done, proceed to set up X, KDE, GNOME or another desktop environment on your system, as desired. See the next section for more information on this.

All Done!

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.

   Important

If you are using the gnome install image, please see the "A few finishing touches" section of the GNOME setup docs in order to continue setting up your graphical environment.

You may also be interested in the following resources:

  • Chroot_and_Containers setting up 32 bit containers to run wine, and STEAM.
  • Security - tips for securing your system
  • Btrfs - a simple guide for setting up btrfs on your new Funtoo Linux system.
  • 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 the First Steps Category 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.