lunedì 12 gennaio 2009

principali file di configurazione

qui di seguito posto i miei principali file di configurazione del mio eeepc, i file in questione sono rc.conf, fstab, pacman.conf, mirrorlist, xorg.conf.

incominciamo dal primo file rc.conf.


#
# /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"
# USEDIRECTISA: use direct I/O requests instead of /dev/rtc for hwclock
# 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="it_IT.utf8"
HARDWARECLOCK="localtime"
USEDIRECTISA="no"
TIMEZONE="Europe/Rome"
KEYMAP="it"
CONSOLEFONT=
CONSOLEMAP=
USECOLOR="yes"

# -----------------------------------------------------------------------
# HARDWARE
# -----------------------------------------------------------------------
#
# MOD_AUTOLOAD: Allow autoloading of modules at boot and when needed
# MOD_BLACKLIST: Prevent udev from loading these modules
# MODULES: Modules to load at boot-up. Prefix with a ! to blacklist.
#
# NOTE: Use of 'MOD_BLACKLIST' is deprecated. Please use ! in the MODULES array.
#
MOD_AUTOLOAD="yes"
#MOD_BLACKLIST=() #deprecated
MODULES=(atl2 ath5k ath_hal ath_pci wlan snd-mixer-oss snd-pcm-oss snd-hwdep snd-page-alloc snd-pcm snd-timer snd snd-hda-intel soundcore eeepc-laptop)

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

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

# 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
#
# DHCP: Set your interface to "dhcp" (eth0="dhcp")
# Wireless: See network profiles below
#
eth0="dhcp"
wlan0="dhcp"
INTERFACES=(!eth0 !wlan0)

# 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.d
#
# This now 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
#
DAEMONS=(syslog-ng dbus !network netfs crond alsa hal fam gdm wicd acpid laptop-mode !bluetooth)

si prosegue con fstab in linea di massima ho seguito i consigli della guida sul wiki ufficiale arch, per le partizioni ho montato la partizione da 4 gb del mio eeepc 900 sotto root, mentre nella partizione da 16 gb ho montato la home, per limitare i cicli di scrittura ho messo l'opzione noatime.

#
# /etc/fstab: static file system information
#
#
none /dev/pts devpts defaults 0 0
none /dev/shm tmpfs defaults 0 0


/dev/sda1 / ext2 defaults,noatime 0 1
/dev/sdb1 /home ext2 defaults,noatime 0 1

tmpfs /tmp tmpfs defaults,size=256m 0 1


i file che riguardono pacman li ho configurati così.

#
# /etc/pacman.conf
#
# See the pacman manpage for option directives

#
# GENERAL OPTIONS
#
[options]
# The following paths are commented out with their default values listed.
# If you wish to use different paths, uncomment and update the paths.
#RootDir = /
#DBPath = /var/lib/pacman/
#CacheDir = /var/cache/pacman/pkg/
#LogFile = /var/log/pacman.log
HoldPkg = pacman glibc
#XferCommand = /usr/bin/wget --passive-ftp -c -O %o %u

#
# REPOSITORIES
# - can be defined here or included from another file
# - pacman will search repositories in the order defined here
# - local/custom mirrors can be added here or in separate files
# - repositories listed first will take precedence when packages
# have identical names, regardless of version number
#
# Repository entries are of the format:
# [repo-name]
# Server = ServerName
# Include = IncludePath
#
# The header [repo-name] is crucial - it must be present and
# uncommented to enable the repo.
#

# Testing is disabled by default. To enable, uncomment the following
# two lines. You can add preferred servers immediately after the header,
# and they will be used before the default mirrors.
#[testing]
#Include = /etc/pacman.d/mirrorlist

[core]
# Add your preferred servers here, they will be used first
Include = /etc/pacman.d/mirrorlist

[extra]
# Add your preferred servers here, they will be used first
Include = /etc/pacman.d/mirrorlist

[community]
# Add your preferred servers here, they will be used first
Include = /etc/pacman.d/mirrorlist

# Unstable is disabled by default. To enable, uncomment the following
# two lines. You can add preferred servers immediately after the header,
# and they will be used before the default mirrors.
#[unstable]
#Include = /etc/pacman.d/mirrorlist

# An example of a custom package repository. See the pacman manpage for
# tips on creating your own repositories.
#[custom]
#Server = file:///home/custompkgs
[archlinuxfr]
Server = http://repo.archlinux.fr/i686

per il file mirrorlist, ho messo il repository italiano in prima evidenza.

#
# Arch Linux repository mirrorlist
#
# - Italy
Server = ftp://mi.mirror.garr.it/mirrors/archlinux/$repo/os/i686
# - United States
Server = ftp://ftp.archlinux.org/$repo/os/i686
Server = ftp://locke.suu.edu/linux/dist/archlinux/$repo/os/i686
Server = http://archlinux.unixheads.org/$repo/os/i686
Server = ftp://ftp.gtlib.gatech.edu/pub/linux/distributions/archlinux/$repo/os/i686
Server = ftp://mirror.cs.vt.edu/pub/ArchLinux/$repo/os/i686
Server = http://mirrors.easynews.com/linux/archlinux/$repo/os/i686
Server = ftp://ftp.ibiblio.org/pub/linux/distributions/archlinux/$repo/os/i686
Server = http://archlinux.umflint.edu/mirrors/archlinux/$repo/os/i686
Server = http://mirror.neotuli.net/arch/$repo/os/i686
Server = http://mirror.rit.edu/archlinux/$repo/os/i686
Server = http://mirror.umoss.org/archlinux/$repo/os/i686
Server = http://schlunix.org/archlinux/$repo/os/i686
Server = http://mirror.archlinux.com.ve/$repo/os/i686

# North America

# - Canada
Server = ftp://mirror.csclub.uwaterloo.ca/archlinux/$repo/os/i686
Server = ftp://mirrors.portafixe.com/archlinux/$repo/os/i686

# South America
# - Brazil
Server = http://archlinux.c3sl.ufpr.br/$repo/os/i686
Server = ftp://archlinux.c3sl.ufpr.br/archlinux/$repo/os/i686
Server = ftp://ftp.las.ic.unicamp.br/pub/archlinux/$repo/os/i686
# - Venezuela
Server = http://mirror2.archlinux.com.ve/$repo/os/i686

# Europe
# - Austria
Server = ftp://gd.tuwien.ac.at/opsys/linux/archlinux/$repo/os/i686
# - Belgium
Server = ftp://ftp.belnet.be/mirror/archlinux.org/$repo/os/i686
# - Czech Republic
Server = ftp://ftp.sh.cvut.cz/MIRRORS/arch/$repo/os/i686
# - Denmark
Server = ftp://ftp.klid.dk/archlinux/$repo/os/@CARCH@
# - Estonia
Server = ftp://ftp.estpak.ee/pub/archlinux/$repo/os/i686
# - France
Server = ftp://mir1.archlinuxfr.org/archlinux/$repo/os/i686
Server = ftp://mir2.archlinuxfr.org/archlinux/$repo/os/i686
Server = ftp://distrib-coffee.ipsl.jussieu.fr/pub/linux/archlinux/$repo/os/i686
Server = http://mir.archlinux.fr/$repo/os/i686
Server = ftp://ftp.free.fr/mirrors/ftp.archlinux.org/$repo/os/i686
Server = ftp://ftp.rez-gif.supelec.fr/Linux/archlinux/$repo/os/i686
# - Germany
Server = ftp://ftp.hosteurope.de/mirror/ftp.archlinux.org/$repo/os/i686
Server = ftp://ftp5.gwdg.de/pub/linux/archlinux/$repo/os/i686
Server = ftp://ftp.uni-bayreuth.de/pub/linux/archlinux/$repo/os/i686
Server = ftp://ftp.archlinuxppc.org/i686/$repo/os/i686
Server = ftp://ftp.tu-chemnitz.de/pub/linux/archlinux/$repo/os/i686
Server = http://ftp.uni-kl.de/pub/linux/archlinux/$repo/os/i686
Server = http://mirrors.igprolin-online.org/pub/archlinux/$repo/os/i686
Server = ftp://ftp-stud.hs-esslingen.de/pub/Mirrors/archlinux/$repo/os/i686
# - Great Britain
Server = http://www.mirrorservice.org/sites/ftp.archlinux.org/$repo/os/i686
Server = ftp://mirrors.uk2.net/pub/archlinux/$repo/os/i686
Server = http://archlinux.mirrors.uk2.net/$repo/os/i686
# - Greece
Server = ftp://ftp.ntua.gr/pub/linux/archlinux/$repo/os/i686
# - Hungary
Server = ftp://ftp.mfa.kfki.hu/pub/mirrors/ftp.archlinux.org/$repo/os/i686
# - Ireland
Server = ftp://ftp.heanet.ie/mirrors/ftp.archlinux.org/$repo/os/i686

# - Netherlands
Server = ftp://ftp.nluug.nl/pub/metalab/distributions/archlinux/$repo/os/i686
Server = ftp://ftp.surfnet.nl/pub/os/Linux/distr/archlinux/$repo/os/i686
# - Norway
Server = http://mirror.archlinux.no/$repo/os/@carch
# - Poland
Server = ftp://mirror.icis.pcz.pl/archlinux/$repo/os/i686
Server = http://piotrkosoft.net/pub/mirrors/ftp.archlinux.org/$repo/os/i686
Server = ftp://ftp.piotrkosoft.net/pub/mirrors/ftp.archlinux.org/$repo/os/i686
Server = http://unix.net.pl/archlinux.org/$repo/os/i686
# - Portugal
Server = ftp://cesium.di.uminho.pt/pub/archlinux/$repo/os/i686
# - Romania
Server = ftp://ftp.iasi.roedu.net/mirrors/archlinux.org/$repo/os/i686
# - Russia
Server = ftp://mirror.yandex.ru/archlinux/$repo/os/i686
Server = http://archlinux.freeside.ru/$repo/os/i686
# - Sweden
Server = ftp://ftp.ds.hj.se/pub/os/linux/archlinux/$repo/os/i686
Server = ftp://ftp.gigabit.nu/$repo/os/i686
# - Switzerland
Server = http://archlinux.puzzle.ch/$repo/os/i686
# - Turkey
Server = ftp://ftp.linux.org.tr/pub/mirrors/archlinux/$repo/os/i686
# - Ukraine
Server = ftp://archlinux.hell.org.ua/archlinux/$repo/os/i686
Server = ftp://ftp.linux.kiev.ua/pub/Linux/ArchLinux/$repo/os/i686

# Asia
# - Indonesia
Server = http://archlinux.cbn.net.id/$repo/os/i686
Server = ftp://archlinux.cbn.net.id/pub/archlinux/$repo/os/i686
# - Israel
Server = http://mirror.isoc.org.il/pub/archlinux/$repo/os/i686
# - Vietnam
# Domain name is ftp.indochinalinux.com but there are frequent DNS problems
Server = ftp://202.78.230.5/archlinux/$repo/os/i686

# Australia
Server = ftp://mirror.pacific.net.au/linux/archlinux/$repo/os/i686
Server = ftp://mirror.aarnet.edu.au/pub/archlinux/$repo/os/i686
Server = ftp://ftp.iinet.net.au/pub/archlinux/$repo/os/i686

come ultimo file posto pure il file xorg.conf per la configurazione ho seguito diverse guide .

Section "ServerLayout"
Identifier "X.org Configured"
Screen 0 "Screen0" 0 0
InputDevice "Mouse0" "CorePointer"
InputDevice "Keyboard0" "CoreKeyboard"
EndSection

Section "Files"
ModulePath "/usr/lib/xorg/modules"
FontPath "/usr/share/fonts/misc"
FontPath "/usr/share/fonts/100dpi:unscaled"
FontPath "/usr/share/fonts/75dpi:unscaled"
FontPath "/usr/share/fonts/TTF"
FontPath "/usr/share/fonts/Type1"
EndSection

Section "Module"
Load "glx"
Load "extmod"
Load "xtrap"
Load "dbe"
Load "dri"
Load "freetype"
EndSection

Section "InputDevice"
Identifier "Keyboard0"
Driver "kbd"
EndSection

Section "InputDevice"
Identifier "Mouse0"
Driver "mouse"
Option "Protocol" "auto"
Option "Device" "/dev/input/mice"
Option "ZAxisMapping" "4 5 6 7"
EndSection

Section "Monitor"
Identifier "Monitor0"
VendorName "Monitor Vendor"
ModelName "Monitor Model"
EndSection

Section "Device"
### Available Driver options are:-
### Values: : integer, : float, : "True"/"False",
### : "String", : " Hz/kHz/MHz"
### [arg]: arg optional
#Option "NoAccel" # []
#Option "SWcursor" # []
#Option "ColorKey" #
#Option "CacheLines" #
#Option "Dac6Bit" # []
#Option "DRI" # []
#Option "NoDDC" # []
#Option "ShowCache" # []
#Option "XvMCSurfaces" #
#Option "PageFlip" # []
Option "XAANoOffscreenPixmaps" "True"
Option "DRI" "True"
Option "NoDDC" "True"
Option "EnablePageFlip" "True"
Option "RenderAccel" "True"
Option "AccelMethod" "XAA"

Identifier "Card0"
Driver "intel"
VendorName "Intel Corporation"
BoardName "Mobile 915GM/GMS/910GML Express Graphics Controller"
BusID "PCI:0:2:0"
EndSection

Section "Screen"
Identifier "Screen0"
Device "Card0"
Monitor "Monitor0"
SubSection "Display"
Viewport 0 0
Depth 1
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 4
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 8
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 15
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 16
EndSubSection
SubSection "Display"
Viewport 0 0
Depth 24
EndSubSection
EndSection

Nessun commento: