Difference between revisions of "Initscripts/rc.conf"

From ArchWiki
Jump to navigation Jump to search
(categorized, cleaned up, linked to more info)
Line 1: Line 1:
 
{{stub}}
 
{{stub}}
I don't think rc.conf is "explaining" enough(sorry can't think of a better word atm). For example, which program uses the LOCALE,HARDWARECLOCK,TIMEZONE,KEYMAP,CONSOLEFONT,CONSOLEMAP,etc etc vars in here and what do they do?
+
=Overview=
 
 
It would be nice if someone could explain this better so one wouldn't need to deal with the abstraction :)
 
 
 
 
  #
 
  #
 
  # /etc/rc.conf - Main Configuration for Arch Linux
 
  # /etc/rc.conf - Main Configuration for Arch Linux
Line 93: Line 90:
  
  
Explanation:
+
= Localization =
* LOCALE: The preferred language and charset for shells, applications and such
+
* [[LOCALE]]: The preferred language and charset for shells, and applications. Also see:[[Configuring locales]]
* HARDWARECLOCK: Specifies whether the hardware clock, which is synchronized from on bootup and to on shutdown, stores UTC time, or the localtime. UTC makes sense because it greatly simplifies changing timezones and daylight savings time. localtime is necessary if you dual boot with an operating system that only stores localtime to the hardware clock, such as Windows.
+
* [[HARDWARECLOCK]]: Specifies whether the hardware clock, which is synchronized from on bootup and to on shutdown, stores UTC time, or the localtime. UTC makes sense because it greatly simplifies changing timezones and daylight savings time. localtime is necessary if you dual boot with an operating system that only stores localtime to the hardware clock, such as Windows.
* TIMEZONE: The timezone you live in, pick one from /usr/share/zoneinfo
+
* [[TIMEZONE]]: The timezone you live in, pick one from /usr/share/zoneinfo
* KEYMAP: The keyboard layout you want to use. If you live in the US, you probably use qwerty, which is referred using us (default). The available keymaps are in /usr/share/kbd/keymaps. For more infoo see: [[KEYMAP]]
+
* [[KEYMAP]]: The keyboard layout you want to use. If you live in the US, you probably use qwerty, which is referred using us (default). The available keymaps are in /usr/share/kbd/keymaps. For more infoo see: [[KEYMAP]]
* CONSOLEFONT: Leave this empty, you probably don't need to change this unless you use non-standard ASCII characters. For more info see: [[Fonts#Fonts_in_virtual_console]]
+
* [[CONSOLEFONT]]: For more info see: [[Fonts#Fonts_in_virtual_console|Fonts in console]]
* CONSOLEMAP: I have no idea what this does
+
* [[CONSOLEMAP]]:  
 
* USECOLOR: Specifies whether you want color coding in shells
 
* USECOLOR: Specifies whether you want color coding in shells
 +
 +
=Hardware=
 
* MOD_AUTOLOAD: Automatically scans and loads modules needed to run the current system
 
* MOD_AUTOLOAD: Automatically scans and loads modules needed to run the current system
 
* MOD_BLACKLIST: Modules you don't want to load
 
* MOD_BLACKLIST: Modules you don't want to load
* MODULES: List of modules you want (or don't want) to load
+
* [[MODULES]]: List of modules you want (or don't want) to load
* USELVM: Scan for LVM volume groups at startup, required if you use LVM. ''I think that specifying 'dm_mod' in MODULES is also necessary''
+
* USELVM: Scan for [[LVM]] volume groups at startup, required if you use LVM. ''I think that specifying 'dm_mod' in MODULES is also necessary''
* HOSTNAME: Your hostname. Basically, this is the identity of your computer
+
 
 +
=Networking=
 +
* [[HOSTNAME]]: Your hostname. Basically, this is the identity of your computer
 
* lo: Loopback device info. Don't change this
 
* lo: Loopback device info. Don't change this
 
* eth0: Your first ethernet device. Specify "dhcp" when possible, unless your box is a server
 
* eth0: Your first ethernet device. Specify "dhcp" when possible, unless your box is a server
Line 111: Line 112:
 
* gateway: In most cases, the address of your router.
 
* gateway: In most cases, the address of your router.
 
* ROUTES: Which gateways to load (probably gateway). None if using DHCP
 
* ROUTES: Which gateways to load (probably gateway). None if using DHCP
* DAEMONS: Deamons (services) to start at boot time
+
 
 +
=Daemons=
 +
* [[DAEMONS]]: Daemons (services) to start at boot time. More information can be found [[Daemons|here]].

Revision as of 01:59, 5 February 2007

Overview

#
# /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/unimaps
# USECOLOR: use ANSI color sequences in startup messages
#
LOCALE=
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 hwdetect
MOD_BLACKLIST=()
#
# Modules to load at boot-up (in this order)
#   - prefix a module with a ! to blacklist it
#
MODULES=(!usbserial)
# Scan for LVM volume groups at startup, required if you use LVM
USELVM="no"

#
# -----------------------------------------------------------------------
# NETWORKING
# -----------------------------------------------------------------------
#
HOSTNAME="myhost"
#
# 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
#
# Note: to use DHCP, set your interface to be "dhcp" (eth0="dhcp")
#
lo="lo 127.0.0.1"
eth0="eth0 192.168.0.2 netmask 255.255.255.0 broadcast 192.168.0.255"
INTERFACES=(lo 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
#   - 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 !hotplug !pcmcia network netfs crond)

# End of file


Localization

  • LOCALE: The preferred language and charset for shells, and applications. Also see:Configuring locales
  • HARDWARECLOCK: Specifies whether the hardware clock, which is synchronized from on bootup and to on shutdown, stores UTC time, or the localtime. UTC makes sense because it greatly simplifies changing timezones and daylight savings time. localtime is necessary if you dual boot with an operating system that only stores localtime to the hardware clock, such as Windows.
  • TIMEZONE: The timezone you live in, pick one from /usr/share/zoneinfo
  • KEYMAP: The keyboard layout you want to use. If you live in the US, you probably use qwerty, which is referred using us (default). The available keymaps are in /usr/share/kbd/keymaps. For more infoo see: KEYMAP
  • CONSOLEFONT: For more info see: Fonts in console
  • CONSOLEMAP:
  • USECOLOR: Specifies whether you want color coding in shells

Hardware

  • MOD_AUTOLOAD: Automatically scans and loads modules needed to run the current system
  • MOD_BLACKLIST: Modules you don't want to load
  • MODULES: List of modules you want (or don't want) to load
  • USELVM: Scan for LVM volume groups at startup, required if you use LVM. I think that specifying 'dm_mod' in MODULES is also necessary

Networking

  • HOSTNAME: Your hostname. Basically, this is the identity of your computer
  • lo: Loopback device info. Don't change this
  • eth0: Your first ethernet device. Specify "dhcp" when possible, unless your box is a server
  • INTERFACES: Network interfaces you want to have started at boot time
  • gateway: In most cases, the address of your router.
  • ROUTES: Which gateways to load (probably gateway). None if using DHCP

Daemons

  • DAEMONS: Daemons (services) to start at boot time. More information can be found here.