Arch Linux (rc.conf)

rc.conf para Arch Linux

Categoria: Miscelânea

Software: Arch Linux

[ Hits: 8.535 ]

Por: edps


Aqui compartilho meu rc.conf devidamente comentado e com links diretos para a fantástica Arch Wiki (em inglês), devido a isso [ http://www.archlinux-br.org/wiki/ ].

Com o kernel 3.0 algumas coisas mudaram no rc.conf do Arch como as antigas função agora 'deprecated' das blacklists dos módulos e do hal.

A questão dos DAEMONS é um caso a parte, já que varia de caso a caso, o que está ali e que é essencial para mim são (e na ordem):

syslog-ng
dbus
crond


#
# /etc/rc.conf - Main Configuration for Arch Linux

# INFO:
# https://wiki.archlinux.org/index.php/Rc.conf

# -----------------------------------------------------------------------
# LOCALIZATION
# -----------------------------------------------------------------------
#
# LOCALE: available languages can be listed with the 'locale -a' command
# DAEMON_LOCALE: If set to 'yes', use $LOCALE as the locale during daemon
# startup and during the boot process. If set to 'no', the C locale is used.
# HARDWARECLOCK: set to "", "UTC" or "localtime", any other value will result
#   in the hardware clock being left untouched (useful for virtualization)
#   Note: Using "localtime" is discouraged, using "" makes hwclock fall back
#   to the value in /var/lib/hwclock/adjfile
# TIMEZONE: timezones are found in /usr/share/zoneinfo
#   Note: if unset, the value in /etc/localtime is used unchanged
# 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

# INFO:
# https://wiki.archlinux.org/index.php/LOCALE
# https://wiki.archlinux.org/index.php/KEYMAP
# https://wiki.archlinux.org/index.php/Fonts#Console_fonts

LOCALE="pt_BR.UTF-8"
DAEMON_LOCALE="no"
HARDWARECLOCK="localtime"
TIMEZONE="America/Sao_Paulo"
KEYMAP="br-abnt2"
CONSOLEFONT=
CONSOLEMAP="8859-1"
USECOLOR="yes"

# -----------------------------------------------------------------------
# HARDWARE
# -----------------------------------------------------------------------
#
# MODULES: Modules to load at boot-up. Blacklisting is no longer supported.
#   Replace every !module by an entry as on the following line in a file in
#   /etc/modprobe.d:
#     blacklist module
#   See "man modprobe.conf" for details.

# INFO:
# http://www.archlinux.org/news/changes-to-module-blacklisting/
# https://wiki.archlinux.org/index.php/Kernel_modules
# https://wiki.archlinux.org/index.php/Disabling_IPv6
# https://wiki.archlinux.org/index.php/Disable_PC_Speaker_Beep
# https://wiki.archlinux.org/index.php/Udev
# https://wiki.archlinux.org/index.php/LVM

MODULES=()

# Udev settle timeout (default to 30)
UDEV_TIMEOUT=30

# Scan for FakeRAID (dmraid) Volumes at startup
USEDMRAID="no"

# Scan for BTRFS volumes at startup
USEBTRFS="no"

# Scan for LVM volume groups at startup, required if you use LVM
USELVM="no"

# -----------------------------------------------------------------------
# NETWORKING
# -----------------------------------------------------------------------

# INFO:
# https://wiki.archlinux.org/index.php/HOSTNAME#Set_the_hostname
# https://wiki.archlinux.org/index.php/Netcfg

# HOSTNAME: Hostname of machine. Should also be put in /etc/hosts
#
HOSTNAME="archlinux"

# Use 'ip addr' or 'ls /sys/class/net/' to see all available interfaces.
#
# Wired network setup
#   - interface: name of device (required)
#   - address: IP address (leave blank for DHCP)
#   - netmask: subnet mask (ignored for DHCP) (optional, defaults to 255.255.255.0)
#   - broadcast: broadcast address (ignored for DHCP) (optional)
#   - gateway: default route (ignored for DHCP)
# 
# Static IP example
# interface=eth0
# address=192.168.0.2
# netmask=255.255.255.0
# broadcast=192.168.0.255
# gateway=192.168.0.1
#
# DHCP example
# interface=(!eth0)
# address=
# netmask=
# gateway=

interface=
address=
netmask=
broadcast=
gateway=

# Setting this to "yes" will skip network shutdown.
# This is required if your root device is on NFS.
NETWORK_PERSIST="no"

# Enable these netcfg profiles at boot-up. These are useful if you happen to
# need more advanced network features than the simple network service
# supports, such as 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.d
#
# This requires the netcfg package
#
#NETWORKS=(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
#
# If something other takes care of your hardware clock (ntpd, dual-boot...)
# you should disable 'hwclock' here.

# INFO:
# https://wiki.archlinux.org/index.php/DAEMONS
# https://wiki.archlinux.org/index.php/Writing_rc.d_scripts

DAEMONS=(syslog-ng dbus @arno-iptables-firewall @squid @cupsd @alsa @lxdm @ntpdate @crond)
  


Comentários
[1] Comentário enviado por pinduvoz em 18/10/2011 - 23:04h

Vc está usando o lxdm para gerenciar o login?

[2] Comentário enviado por removido em 18/10/2011 - 23:14h

sim André eu estou, só que não é o pacote do repositório Arch (lxdm) é o lxdm-git do AUR:

http://aur.archlinux.org/packages.php?ID=34358

* acho que ele é mantido pelo colega smithux ou phillipe:

http://www.vivaolinux.com.br/~smithux

agora optei pelo KDM somente porque estou usando KDE, mas já devo retornar ao LXDM

[3] Comentário enviado por pinduvoz em 18/10/2011 - 23:23h

Instalei o lxdm comum aqui e até que ficou bom. Valeria a pena trocar por esse "git"?

[4] Comentário enviado por removido em 19/10/2011 - 19:53h

Bem André, acho o lxdm-git menos feio que o lxdm tradicional.

* em todo caso ambos são melhores que o Slim, visto que esse não oferece a opção de escolha de sessão, tampouco a escolha do mapa de teclado e a opção de desligamento.


Contribuir com comentário

  



Patrocínio

Site hospedado pelo provedor RedeHost.
Linux banner

Destaques

Artigos

Dicas

Tópicos

Top 10 do mês

Scripts