Difference between revisions of "Install/Configuration Files/pl"

From Funtoo
Jump to navigation Jump to search
(Updating to match new version of source page)
 
(17 intermediate revisions by 2 users not shown)
Line 4: Line 4:
= Przewodnik Instalacji: Konfiguracja Systemu =  
= Przewodnik Instalacji: Konfiguracja Systemu =  


<div lang="en" dir="ltr" class="mw-content-ltr">
{{InstallNavigation|num=11|prev=Download Portage Tree|next=Introducing Portage}}</noinclude>
{{InstallNavigation|num=11|prev=Download Portage Tree|next=Introducing Portage}}</noinclude>
</div>


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 {{f|/etc/fstab}}. Pozostałe są opcjonalne.  
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 {{f|/etc/fstab}}. Pozostałe są opcjonalne.  
Line 12: Line 14:
Domyślny edytor zawarty w środowisku 'chroot' nazywa się {{c|nano}}. Aby edytować jeden z plików  z tabeli poniżej, uruchom 'nano' w następujący sposób:
Domyślny edytor zawarty w środowisku 'chroot' nazywa się {{c|nano}}. Aby edytować jeden z plików  z tabeli poniżej, uruchom 'nano' w następujący sposób:


<div class="mw-translate-fuzzy">
{{console|body=
{{console|body=
%chroot% ##i##nano -w /etc/fstab
%chroot% ##i##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 {{c|t}} kiedy wyświetli się pytanie "Zapisać zmodyfikowany bufor?".
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 {{c|t}} kiedy wyświetli się pytanie "Zapisać zmodyfikowany bufor?".
</div>
<div lang="en" dir="ltr" class="mw-content-ltr">
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.
</div>
<div lang="en" dir="ltr" class="mw-content-ltr">
We will edit the {{f|/etc/fstab}} file later, when we set up the boot loader.
</div>


==== Pliki konfiguracyjne ====  
==== Pliki konfiguracyjne ====  


<div class="mw-translate-fuzzy">
Oto pełna lista plików, które możesz edytować, w zależności od Twoich potrzeb:
Oto pełna lista plików, które możesz edytować, w zależności od Twoich potrzeb:
{{TableStart}}
{{TableStart}}
{{3ColHead|Plik|Czy muszę edytować?|Description}}
{{3ColHead|Plik|Czy muszę edytować?|Opis}}
<tr  class="danger">
<tr  class="danger">
<td>{{c|/etc/fstab}}</td>
<td>{{c|/etc/fstab}}</td>
<td>'''TAK - wymagane'''</td>
<td>'''TAK - wymagane'''</td>
<td>Punkty montowania wszystkich systemów plików używanych podczas uruchamiania systemu. Ten plik musi odzwierciedlać konfigurację partycji na dysku. Poniżej poprowadzimy Cię przez modyfikację tego pliku poniżej.</td>
<td>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.</td>
</tr><tr>
</tr><tr>
<td>{{c|/etc/localtime}}</td>
<td>{{c|/etc/localtime}}</td>
<td>''Możesz - zalecane''</td>
<td>''Możesz - zalecane''</td>
<td>Twoja strefa czasowa, która jest domyślnie ustawiona na UTC jeżeli nie została zmieniona. Powinien to być symboliczny link do czegoś znajdującego się w /usr/share/zoneinfo (np. /usr/share/zoneinfo/Europe/Warsaw).</td>
<td>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).</td>
</tr><tr>
</tr><tr>
<td>{{c|/etc/portage/make.conf}}</td>
<td>{{c|/etc/portage/make.conf}}</td>
<td>''Możesz - zalecane''</td>
<td>''Możesz - zalecane''</td>
<td>Parametry używane przez gcc (kompilator), portage i make. "Zauważ, że normalnym jest, że ten plik jest pusty, ponieważ w Funtoo wiele ustawień przeszło do naszego rozszerzonego Systemu Profili''</td>
<td>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."</td>
</tr><tr>
</tr><tr>
<td>{{c|/etc/conf.d/hostname}}</td>
<td>{{c|/etc/conf.d/hostname}}</td>
<td>''Możesz - zalecane''</td>
<td>''Możesz - zalecane''</td>
<td>Używany do ustawienia systemowej nazwy hosta (hostname). Ustaw odpowiednią (z kropkami, np. {{c|foo.funtoo.org}}) zmienną {{c|hostname}}  jeśli taką posiadasz. W przeciwnym wypadku, ustaw nazwę (hostname) lokalnego systemu bez kropek, np. {{c|foo}}. Domyślną nazwą jest {{c|localhost}}, jeżeli nie została ona zmieniona.</td>
<td>Używany do ustawienia systemowej nazwy hosta. Ustaw odpowiednią zmienną {{c|hostname}}, jeżeli taką posiadasz (z kropkami, np. {{c|foo.funtoo.org}}). W przeciwnym wypadku ustaw nazwę lokalnego systemu bez kropek, np. {{c|foo}}. Domyślną nazwą jest {{c|localhost}} jeśli nie została zmieniona.</td>
</tr><tr>
</tr><tr>
<td>{{c|/etc/hosts}}</td>
<td>{{c|/etc/hosts}}</td>
Line 64: Line 77:
</tr>
</tr>
{{TableEnd}}
{{TableEnd}}
</div>


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 [[Getting Help]])
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]])


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.
Pójdźmy naprzód i zobaczmy co mamy do zrobienia. Użyj {{c|nano -w <name_of_file>}} do edycji plików, argument "{{c|-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|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.}}
{{Warning|WAŻNE JEST ŻEBY EDYTOWAĆ PLIK {{c|/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ą {{c|gdisk}} albo {{c|fdisk}}. Ominięcie tego kroku może uniemożliwić pomyślne uruchomienie Funtoo Linux.}}


==== /etc/fstab ====
<div lang="en" dir="ltr" class="mw-content-ltr">
==== /etc/localtime ====
</div>


{{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:
<div lang="en" dir="ltr" class="mw-content-ltr">
 
{{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=
</div>
%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|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.  


<div lang="en" dir="ltr" class="mw-content-ltr">
{{console|body=
{{console|body=
%chroot% ##i##rm -f /etc/localtime
%chroot% ##i##ln -sf /usr/share/zoneinfo/MST7MDT /etc/localtime
%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.
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.
</div>


==== /etc/portage/make.conf ====
<div lang="en" dir="ltr" class="mw-content-ltr">
 
{{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 [https://wiki.gentoo.org/wiki/Handbook:AMD64/Working/USE Gentoo Handbook].
 
==== /etc/conf.d/hwclock ====
==== /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.
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.
Line 114: Line 107:
%chroot% ##i##nano -w /etc/conf.d/hwclock
%chroot% ##i##nano -w /etc/conf.d/hwclock
}}
}}
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
==== Localization ====
==== Localization ====
</div>


<div lang="en" dir="ltr" class="mw-content-ltr">
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]].
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]].
</div>
<noinclude>{{InstallNavigation|num=11|prev=Download Portage Tree|next=Introducing Portage|align=right}}</noinclude>
<noinclude>{{InstallNavigation|num=11|prev=Download Portage Tree|next=Introducing Portage|align=right}}</noinclude>

Latest revision as of 16:34, March 21, 2024

Other languages:
English • ‎español • ‎polski • ‎português do Brasil • ‎русский • ‎中文(中国大陆)‎

Przewodnik Instalacji: Konfiguracja Systemu

Install Guide, Chapter 11 < Prev Next >

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?".

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.

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

Install Guide, Chapter 11 < Prev Next >