Rc.conf (Türkçe)
From ArchWiki
i18n |
---|
Türkçe |
English |
Italiano |
Русский |
简体中文 |
Nederlands |
Contents |
Genel Bakış
rc.conf dosyası, Arch Linux' ta kullanılan, temel sistem yapılandırma dosyasdır. Saat, klavye, kernel modülleri ve başlangıçta çalıştırılacak dosyalar gibi bir çok ayar yapılabilir.
Bu, temiz bir kurulum sonrasındaki tipik rc.conf dosyasıdır.
# # /etc/rc.conf - Main Configuration for Arch Linux # # # ----------------------------------------------------------------------- # LOCALIZATION # ----------------------------------------------------------------------- # # LOCALE: available languages can be listed with the 'locale -a' command # HARDWARECLOCK: set to "UTC" or "localtime" # TIMEZONE: timezones are found in /usr/share/zoneinfo # KEYMAP: keymaps are found in /usr/share/kbd/keymaps # CONSOLEFONT: found in /usr/share/kbd/consolefonts (only needed for non-US) # CONSOLEMAP: found in /usr/share/kbd/consoletrans # USECOLOR: use ANSI color sequences in startup messages # LOCALE="en_US.utf8" HARDWARECLOCK="localtime" TIMEZONE="Canada/Pacific" KEYMAP="us" CONSOLEFONT= CONSOLEMAP= USECOLOR="yes" # # ----------------------------------------------------------------------- # HARDWARE # ----------------------------------------------------------------------- # # Scan hardware and load required modules at bootup MOD_AUTOLOAD="yes" # Module Blacklist - modules in this list will never be loaded by udev MOD_BLACKLIST=() # # Modules to load at boot-up (in this order) # - prefix a module with a ! to blacklist it # MODULES=() # Scan for LVM volume groups at startup, required if you use LVM USELVM="no" # # ----------------------------------------------------------------------- # NETWORKING # ----------------------------------------------------------------------- # HOSTNAME="myhost" # # Use 'ifconfig -a' or 'ls /sys/class/net/' to see all available # interfaces. # # Interfaces to start at boot-up (in this order) # Declare each interface then list in INTERFACES # - prefix an entry in INTERFACES with a ! to disable it # - no hyphens in your interface names - Bash doesn't like it # # Note: to use DHCP, set your interface to be "dhcp" (eth0="dhcp") # eth0="eth0 192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255" INTERFACES=(eth0) # # Routes to start at boot-up (in this order) # Declare each route then list in ROUTES # - prefix an entry in ROUTES with a ! to disable it # gateway="default gw 192.168.0.1" ROUTES=(!gateway) # # Enable these network profiles at boot-up. These are only useful # if you happen to need multiple network configurations (ie, laptop users) # - set to 'menu' to present a menu during boot-up (dialog package required) # - prefix an entry with a ! to disable it # # Network profiles are found in /etc/network-profiles # #NET_PROFILES=(main) # # ----------------------------------------------------------------------- # DAEMONS # ----------------------------------------------------------------------- # # Daemons to start at boot-up (in this order) # - prefix a daemon with a ! to disable it # - prefix a daemon with a @ to start it up in the background # DAEMONS=(syslog-ng network netfs crond) # End of file
Yerelleştirme
- LOCALE: Bu, bütün uygulama ve araçlarda kullanılacak olan sistem dilidir. Komut satırından locale -a komutunu çalıştırarak, kullanılabilir bütün yerelleri listeleyebilirsiniz. Öntanımlı ayar, İngilizce konuşan kullanıcılar içindir.
- HARDWARECLOCK: Sadece Linux kullanıyorsanız UTC olarak ayarlayabilirsiniz. Windows ile birlikte kullanıyorsanız localtime olarak ayarlamalısınız.
- TIMEZONE: Bulunduğunuz yerin saat dilimini tanımlar. Muhtemel zaman dilimleri /usr/share/zoneinfo dizinindedir. Örneğin, Türkiye için zaman dilimi Europe/Istanbul olmalıdır, /usr/share/zoneinfo/Europe/Istanbul.
- KEYMAP: Kullanmak istediğiniz klavye düzenidir. Eğer Türkçe klavye kullanmak istiyorsanız, trq ya da trf tercih etmelisiniz. Kullanılabilir klavye düzenleri, /usr/share/kbd/keymaps dosyasındadır. Bu ayar sadece konsol çıktıları için geçerlidir, grafiksel pencere yöneticileri ya da X için değil.
- CONSOLEFONT: Sistem açılışında yüklenen konsol yazıtipini tanımlar. Muhtemel yazıtipleri, /usr/share/kbd/consolefonts içerisinde bulunur. Daha fazla bilgi için: Fonts in console
- CONSOLEMAP: Defines the console map to load with the setfont program on bootup. Possible maps are found in /usr/share/kbd/consoletrans. You will want to set this to a map suitable for your locale (8859-1 for Latin1, for example) if you're using an utf8 locale above, and use programs that generate 8-bit output. If you're using X11 for everyday's work, don't bother, as it only affects the output of linux console applications.
- USECOLOR: Sistem açılışında renkli durum bilgilerini etkin/pasif kılar.
Donanım
- MOD_AUTOLOAD: Eğer bu özelliği onaylarsanız ("yes"), Arch, sistem açılışında donanımlarınızı tarar ve sisteminiz için uygun modülleri otomatik olarak yükler. Bu özellik udev ile gelir.
- MOD_BLACKLIST: Deprecated. Kara listeye (blacklist) koymak istediğiniz modülün önüne (!) işaretini koyun.
- MODULES: In this array you can list the names of modules you want to load during bootup without the need to bind them to a hardware device as in the modprobe.conf. Simply add the name of the module here, and put any options into the modprobe.conf if need be. Prepending a module with a bang ('!') will blacklist the module during bootup. A benefit of specifying networking modules here is that ethernet cards covered by the listed modules will always be detected in the order the modules are listed. This prevents the dreaded interface confusion where your ethernet hardware is assigned to seemingly random interfaces after each boot. An even better way to handle this is using static interface labels by configuring udev appropriately, though.
- USELVM: Scan for LVM volume groups at startup, required if you use LVM. Set to "YES" runs a vgchange during sysinit.
Networking
- HOSTNAME: Domain kısmı hariç, makinanıza bir isim verebilirsiniz. Harfleri, sayıları ve özel karakterleri birleşik yazdığınız sürece, bu tamamen sizin seçiminizdir. Burada fazla yaratıcı olmayın. Şüpheye düşerseniz olduğu gibi bırakın.
- INTERFACES: Burada ağ arayüzü ayarlarınızı tanımlayın. Ön tanımlı satırlar ve yorumlar, yeterince açıklayıcıdır. Bir cihazı yapılandırmak için DHCP kullanmıyorsanız, buraya yazacağınız değişkenin değerini aklınızda tutun. Eğer komut satırında cihazınızı elle yapılandıracak olursanız, ifconfig komutuna bu değeri ekleyeceksinizdir.
- ROUTES: Static network route değerlerini burada tanımlayabilirsiniz. Bir fikir edinmeniz için örneğe bakın. Basically the quoted part is identical to what you'd pass to a manual route add command, therefore reading man route is recommended if you don't know what to write here, or simply leave this alone.
- NETWORKS:This enables certain network profiles at bootup. Network profiles provide a convenient way of managing multiple network configurations, and are intended to replace the standard INTERFACES/ROUTES setup that is still recommended for systems with only one network configuration. If your computer will be participating in various networks at various times (eg, a laptop) then you should take a look at the /etc/network.d/ directory to set up some profiles. There are template files included there (/etc/network.d/examples/) that can be used to create new profiles. ( Note: Since the introduction of netcfg v2.0 NET_PROFILES has been changed to this. This new version also contains many revisions, including the path to the stored profiles, please see Network Profiles for more info. In general the NETWORKS line should work the same way as the NET_PROFILES line, assuming you have the profiles in the new path (/etc/network.d/), and have changes any syntax neccessary to accomadate for the new version. )
Sistem Servisleri
- DAEMONS: Bu, /etc/rc.d/ ' de bulunan ve sistem açılışında yüklenmesi istenen betikleri listeler. Bu listede tanımlanan bir betiğin önüne ünlem işareti (!) konursa betik çalıştırılmayacaktır. Betiğin önüne "at" (@) işareti konulduğunda ise arkaplanda çalıştırılacaktır ki bu sayede bir sonraki betiğin çalıştırılması için önceki betik beklenmeyecektir. Genelde, çalışan bir sistemin öntanımlı değerlerinin değiştirilmesine gerek yoktur. Fakat sshd gibi sistem hizmetlerinin sistemin açılışında otomatik olarak başlatılmasını istediğinizde bu satırı düzenleyebilirsiniz. This is basically Arch's way of handling what others handle with various symlinks to an init.d directory.
Not: Burada tanımlı sistem hizmetlerinin sıralaması önemlidir.