Примеры конфигурационных файлов



Автор: Евгений Батогов a.k.a JohnBat26

С версии: 1.0

Обновлено: 1.5 (30.03.08)



Мой компьютер:

Ноутбук DELL Inspiron 9400:

Программное обеспечение:

    1. Мой make.conf

Важно: в данном файле я использую оптимизацию: O3. Этот вариант не гарантирует надежной работы. Поэтому используйте O2, когда не хотите рисковать.

# These settings were set by the catalyst build script that automatically built this stage

# Please consult /etc/make.conf.example for a more detailed example

CFLAGS="-O3 -march=native -mtune=native -msse3 -mfpmath=sse -pipe -fomit-frame-pointer"

CHOST="x86_64-pc-linux-gnu"

CXXFLAGS="${CFLAGS}"

MAKEOPTS="-j3"

USE="64bit 7zip X a52 aac aalib accessibility acl acpi aim alsa amarok amazon

amuled apm archive arts asf async audiofile automount avi bash-completion

bcmath berkdb big-iron binary-drivers bitmap-fonts bluetooth branding

bzip2 c++ cairo caps captury cardbus ccache cdda cddb cdinstall cdio

cdparanoia cdr cdrom cdsound chm chroot cisco clamav clamd colordiff

compress connectionstatus contactnotes cpio cpudetection cpulimit

cracklib crypt cscope ctype cups curl curlwrappers custom-cflags cviewer

cxx cyrillic darcs dba dbus dell depth32 designer-plugin device-mapper

devil dhcp dia dialup dict directfb divx divx4linux djvu dri dv dvb dvd

dvdr dvdread dvi dxr3 editor effects emerald emovix enca encode exif

expat extensions fat fbcon fbsplash festival ffmpeg fftw firefox flac

flash font-server fontconfig foomaticdb fortran freeimage ftp gadu games

gd gdb gdbm gif gimp gimpprint ginac glitz gmail gnuplot gpac gpg gphoto2

gpm graphics graphviz groupwise grub gtk gtk2 hal hbci hddtemp highlight

history htmlhandbook iconv icq id3tag ieee1394 ifp imagemagick imap imlib

inkjar interbase ipq-mon iptv ipv6 ipw3945 ipw4965 irc jabber java java6

javascript jbig jce jpeg jpeg2k kcal kde kdecards kdeenablefinal

kdehiddenvisibility kdepim kdexdeltas kdgraphics kdm kdrive kernel_linux

kig-scripting kipi kontact krb4 lame laptop latex lcd lcmsjpeg ldap

ldapsam lha libcaca libclamav libg++ libgcrypt libnotify libvisual libwww

live lm_sensors logitech-mouse logrotate magic maps matroska md5sum

memlimit mikmod mime mmx mng modplug mozbranding mozdevelop mozilla mp2

mp3 mp4 mp4live mpeg mpeg2 mplayer mplayer-bin musepack musicbrains mysql

ncurses nemesi netmeeting networkmanager nfs nls nokia6600 nomotif

nowlistening nptl nptlonly nsplugin ntfs numeric nvidia obex objc objc++

objc-gc octave office ofx ogg oggvorbis oodict openexr opengl openssl

openvpn oscar overlays pam pcntl pcre pda pdf pdflib perl pie pink plasma

player pmount pmu png portage posix postgres povray ppp pptp pulseaudio

pymol python qq qt qt-copy qt-static qt3 qt3support qt4 query-browser

quicktime rar rc5 rdesktop readline real realmedia rss rtc ruby samba

sametime sasl savepwd sbig scaner scanfolder scanner sdl search sensord

session sharedext sharedmem simplexml skins slang slp smp sms smtp

snapshot sndfile soap sockets solver sound sounds spamassassin speech

speedo speex spell spexx sql sqlite sqlite3 sse sse2 ssl statistics stats

stream subtitles subversion svg svnserve symlink sysfs tcl tcltk tcpd

texteffect tga theora thesaurus threads tiff translator transparency

trayicon truetype tunepimp type1 udev unicode upnp usb utempter utf8 vcd

videos vim vim-pager vim-syntax vim-with-x visualization vnc vncviewer

vorbis vorbis-psy weather webpresence widescreen wifi winpopup wireshark

wmf wmp wxgtk1 wxwindows xcomposite xforms xfs xine xinerama xml xml2 xmp

xorg xosd xpm xprint xrender xskatcards xsl xv xvid yahoo zip zlib -daap

-privacy -unzip"

ACCEPT_KEYWORDS="~amd64 ~x86 amd64 x86"

AUTOCLEAN="yes"

PORTAGE_NICENESS=39

#FEATURES="ccache candy userfetch buildpkg -sandbox collision-protect"

FEATURES="ccache candy userfetch buildpkg -sandbox"

CCACHE_DIR="/var/tmp/ccache/"

CCACHE_SIZE="4G"

CC="gcc"

CXX="g++"

#PORTDIR_OVERLAY="/usr/portage/local/alsa /usr/portage/local/infra /usr/portage/local/qstardict #/usr/portage/local/stardict /usr/portage/local/layman /usr/portage/local/google /usr/portage/local/layman/#sunrise /usr/portage/local/layman/xeffects /usr/portage/local/krusader"



GENTOO_MIRRORS="http://trumpetti.atm.tut.fi/gentoo ftp://ftp.ussg.iu.edu/pub/linux/gentoo ftp://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ http://ftp.ucsb.edu/pub/mirrors/linux/gentoo/ http://gentoo.chem.wisc.edu/gentoo/ ftp://gentoo.mirrors.pair.com/ http://gentoo.mirrors.tds.net/gentoo/ ftp://gentoo.mirrors.tds.net/gentoo/ http://gentoo.netnitco.net/ ftp://gentoo.netnitco.net/pub/mirrors/gentoo/source/ http://mirror.espri.arizona.edu/gentoo/

#http://mirrors.acm.cs.rpi.edu/gentoo/ ftp://ftp.ndlug.nd.edu/pub/gentoo/ http://open-systems.ufl.edu/mirrors/gentoo #http://gentoo.llarian.net/ ftp://gentoo.llarian.net/pub/gentoo #http://gentoo.binarycompass.org #http://mirror.datapipe.net/gentoo ftp://mirror.datapipe.net/gentoo http://prometheus.cs.wmich.edu/gentoo #http://modzer0.cs.uaf.edu/public/gentoo/ #http://mirror.usu.edu/mirrors/gentoo/ ftp://mirror.usu.edu/mirrors/gentoo/ #ftp://lug.mtu.edu/gentoo http://mirror.phy.olemiss.edu/mirror/gentoo http://mirror.mcs.anl.gov/pub/gentoo/ #ftp://mirror.mcs.anl.gov/pub/gentoo/ http://gentoo.mirrors.easynews.com/linux/gentoo/ #http://gentoo.cites.uiuc.edu/pub/gentoo/ ftp://gentoo.cites.uiuc.edu/pub/gentoo/ #ftp://ftp.wwc.edu/pub/mirrors/ftp.gentoo.org http://gentoo.localhost.net.ar/ #ftp://mirrors.localhost.net.ar/pub/mirrors/gentoo http://www.las.ic.unicamp.br/pub/gentoo/ #ftp://ftp.las.ic.unicamp.br/pub/gentoo/ http://gentoo.inode.at/ ftp://gentoo.inode.at/source/ #http://gd.tuwien.ac.at/opsys/linux/gentoo/ ftp://gd.tuwien.ac.at/opsys/linux/gentoo/ #http://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ ftp://ftp.belnet.be/mirror/rsync.gentoo.org/gentoo/ #http://mirror.bih.net.ba/gentoo/ ftp://mirror.bih.net.ba/gentoo/ #ftp://ftp.sh.cvut.cz/MIRRORS/gentoo/gentoo #http://gentoo.supp.name/ http://mirror.uni-c.dk/pub/gentoo/ http://ftp.linux.ee/pub/gentoo/distfiles/ #ftp://ftp.linux.ee/pub/gentoo/distfiles/ #http://trumpetti.atm.tut.fi/gentoo/ ftp://trumpetti.atm.tut.fi/gentoo/ #http://ftp.public.fix.fi/gentoo/ ftp://ftp.public.fix.fi/gentoo http://gentoo.modulix.net/gentoo/ #http://ftp.club-internet.fr/pub/mirrors/gentoo ftp://gentoo.imj.fr/pub/gentoo/ #ftp://ftp.tu-clausthal.de/pub/linux/gentoo/ ftp://sunsite.informatik.rwth-aachen.de/pub/Linux/gentoo #http://linux.rz.ruhr-uni-bochum.de/download/gentoo-mirror/ "



#FETCHCOMMAND="/usr/bin/getdelta.sh \${URI}"

SYNC="rsync://rsync.gentoo.org/gentoo-portage"

INPUT_DEVICES="keyboard mouse synaptics evdev"

VIDEO_CARDS="nv nvidia vesa"

LINGUAS="ru"

PORTDIR="/usr/portage"

ALSA_CARDS="hda-intel"



2. Файл xorg.conf для NVIDIA Geforce



Section "Module"

Load "ddc" # ddc probing of monitor

Load "dbe" # Double buffer extension

SubSection "extmod"

Option "omit xfree86-dga" # don't initialize the DGA extension

EndSubSection

Load "record"

Load "xtrap"

Load "type1"

Load "freetype"

Load "synaptics"

Load "glx"

Load "wfb"

EndSection



Section "Files"

FontPath "/usr/share/fonts/misc:unscaled"

FontPath "/usr/share/fonts/Type1/"

FontPath "/usr/share/fonts/TTF/"

FontPath "/usr/share/fonts/corefonts"

FontPath "/usr/share/fonts/freefonts"

FontPath "/usr/share/fonts/sharefonts"

FontPath "/usr/share/fonts/terminus"

FontPath "/usr/share/fonts/ttf-bitstream-vera"

FontPath "/usr/share/fonts/unifont"

FontPath "/usr/share/fonts/100dpi:unscaled"

FontPath "/usr/share/fonts/75dpi:unscaled"

FontPath "/usr/share/fonts/artwiz"

FontPath "/usr/share/fonts/cyrillic"

EndSection



Section "ServerFlags"

Option "AllowMouseOpenFail" "true"

Option "SuspendTime" "10"

Option "OffTime" "15"

Option "AutoAddDevices" "false"

EndSection



Section "InputDevice"

Identifier "Keyboard1"

Driver "kbd"

Option "XkbRules" "xorg"

Option "XkbModel" "microsoftpro"

Option "XkbLayout" "us,ru"

Option "XkbVariant" ",winkeys"

Option "XkbOptions" "grp:shift_toggle,grp_led:scroll"

Option "AutoRepeat" "500 30"

EndSection



Section "InputDevice"

Identifier "USBMouse"

Driver "mouse"

Option "Device" "/dev/input/mice"

Option "Buttons" "7"

Option "CorePointer"

Option "Protocol" "auto"

Option "ZAxisMapping" "4 5 6 7"

EndSection



Section "InputDevice"

Driver "synaptics"

Identifier "TouchPad"

Option "Device" "/dev/input/mice"

Option "Protocol" "auto-dev"

Option "LeftEdge" "1900"

Option "RightEdge" "5400"

Option "BottomEdge" "1800"

Option "TopEdge" "3900"

Option "FingerLow" "25"

Option "FingerHigh" "30"

Option "MaxTapTime" "180"

Option "MaxTapMove" "220"

Option "VertScrollDelta" "100"

Option "MinSpeed" "0.02"

Option "MaxSpeed" "0.18"

Option "AccelFactor" "0.0010"

Option "SendCoreEvents" "true"

Option "Repeater" "/dev/ps2mouse"

Option "SHMConfig" "true"

EndSection

Section "Monitor"

Identifier "DellLFP"

HorizSync 28.0 - 96.0

VertRefresh 43.0 - 60.0

Option "DPMS"

# DisplaySize 320 240

EndSection





Section "Device"

# Some names might need to be changed hereafter:

Identifier "NVIDIA GeForce 7900GS"

Driver "nvidia"

VendorName "nVidia Corporation"

BoardName "GeForce 7900 GS"

BusID "PCI:1:0:0"

#Option "NoLogo" "1"

Option "UseDisplayDevice" "DFP"

### 2D ACCELLERATION

#Option "RenderAccel" "false" # hardware Render acceleration

#Option "BackinStore" "true" #[] prevent artifacts?

#Option "NoRenderExtension" "true"

## some options

Option "SWcursor" "false" #[]

Option "Render" "true"

Option "Composite" "true"

### 3D ACCELLERATION

Option "EnablePageFlip" "yes" #[] Improves performance

Option "AGPFastWrite" "yes" #[]

Option "AGPMode" "4" # Supports AGP 4x

# VideoRam 262144

# Insert Clocks lines here if appropriate

#Option "IgnoreDisplayDevices" "CRT, TV"

Option "TripleBuffer" "True"

Option "AddARGBGLXVisuals" "True"

Option "AllowGLXWithComposite" "true"

Option "Coolbits" "1"

EndSection



Section "Screen"

Identifier "Screen1"

Device "NVIDIA GeForce 7900GS"

Monitor "DellLFP"

DefaultDepth 24

SubSection "Display"

Viewport 0 0

Depth 8

Modes "1920x1200" "1400x1050" "1280x1024" "1024x768" "800x600" "640x480"

EndSubSection

SubSection "Display"

Viewport 0 0

Depth 16

Modes "1920x1200" "1400x1050" "1280x1024" "1024x768" "800x600" "640x480"

EndSubSection

SubSection "Display"

Viewport 0 0

Depth 24

Modes "1920x1200" "1400x1050" "1280x1024" "1024x768" "800x600" "640x480"

EndSubSection

Option "RenderAccel" "true"

Option "AddARGBGLXVisuals" "True"

Option "DisableGLXRootClipping" "True"

EndSection



Section "ServerLayout"

Identifier "Flat Panel Only"

Screen "Screen 1"

#InputDevice "Touchpad" "AlwaysCore"

InputDevice "TouchPad"

InputDevice "USBMouse" "CorePointer"

EndSection

Section "Extensions"

Option "Composite" "enable"

EndSection



3. Файл xorg.conf для ATI radeon:

Section "ServerLayout"

Identifier "X.org Configured"

Screen 0 "Screen0" 0 0

InputDevice "Synaptics" "CorePointer"

InputDevice "Mouse" "SendCoreEvents"

InputDevice "Keyboard0" "CoreKeyboard"

Option "OffTime" "3" # 3 indicates number of min until monitor-off

EndSection



Section "ServerFlags"

Option "AllowMouseOpenFail"

EndSection



Section "dri"

# Access to OpenGL ICD is allowed for all users:

# Mode 0666

# Access to OpenGL ICD is restricted to a specific user group:

Group 27 # video

Mode 0660

EndSection





Section "Files"

FontPath "/usr/share/fonts/misc:unscaled"

FontPath "/usr/share/fonts/Type1/"

FontPath "/usr/share/fonts/TTF/"

FontPath "/usr/share/fonts/corefonts"

FontPath "/usr/share/fonts/freefonts"

FontPath "/usr/share/fonts/sharefonts"

FontPath "/usr/share/fonts/terminus"

FontPath "/usr/share/fonts/ttf-bitstream-vera"

FontPath "/usr/share/fonts/unifont"

FontPath "/usr/share/fonts/100dpi:unscaled"

FontPath "/usr/share/fonts/75dpi:unscaled"

FontPath "/usr/share/fonts/artwiz"

FontPath "/usr/share/fonts/cyrillic"

EndSection



Section "Module"

Load "glx"

# This loads the miscellaneous extensions module, and disables

# initialisation of the XFree86-DGA extension within that module.

SubSection "extmod"

Option "omit xfree86-dga" # don't initialise the DGA extension

EndSubSection

Load "dbe"

Load "dri"

Load "xtrap"

Load "record"

Load "freetype"

Load "type1"

EndSection



Section "InputDevice"

Identifier "Keyboard0"

Driver "kbd"



Option "XkbModel" "aspire5020"

Option "XkbLayout" "se"

#Option "XkbVariant" "nodeadkeys"

EndSection



Section "InputDevice"

Identifier "Synaptics"

Driver "synaptics"

Option "Device" "/dev/psaux"

Option "Protocol" "auto-dev"

Option "LeftEdge" "1700"

Option "RightEdge" "5300"

Option "TopEdge" "1700"

Option "BottomEdge" "4200"

Option "FingerLow" "25"

Option "FingerHigh" "30"

Option "MaxTapTime" "180"

Option "MaxTapMove" "220"

Option "VertScrollDelta" "100"

Option "MinSpeed" "0.09"

Option "MaxSpeed" "0.18"

Option "AccelFactor" "0.0015"

Option "SHMConfig" "on"

# # Option "Repeater" "/dev/ps2mouse"

EndSection



Section "InputDevice"

Identifier "Mouse"

Driver "mouse"

Option "Device" "/dev/input/mice"

Option "Protocol" "imps/2"

Option "ZAxisMapping" "4 5"

Option "Buttons" "5"

EndSection



Section "Monitor"

Identifier "Monitor0"

VendorName "LPL"

ModelName "0"

Option "DPMS"

EndSection



# === ATI device section ===



Section "Device"

Identifier "Card0"

Driver "fglrx"

VendorName "ATI Technologies Inc"

BoardName "ATI Mobility X600"

# ### generic DRI settings ###

# === disable PnP Monitor ===

#Option "NoDDC"

# === disable/enable XAA/DRI ===

Option "no_accel" "no"

Option "no_dri" "no"

# === misc DRI settings ===

Option "mtrr" "off" # disable DRI mtrr mapper, driver has its own code for mtrr

# ### FireGL DDX driver module specific settings ###

# === Screen Management ===

Option "DesktopSetup" "0x00000100"

Option "MonitorLayout" "NONE,LVDS"

Option "IgnoreEDID" "off"

Option "HSync2" "unspecified"

Option "VRefresh2" "unspecified"

Option "ScreenOverlap" "0"

# === TV-out Management ===

Option "NoTV" "yes"

Option "TVStandard" "NTSC-M"

Option "TVHSizeAdj" "0"

Option "TVVSizeAdj" "0"

Option "TVHPosAdj" "0"

Option "TVVPosAdj" "0"

Option "TVHStartAdj" "0"

Option "TVColorAdj" "0"

Option "GammaCorrectionI" "0x00000000"

Option "GammaCorrectionII" "0x00000000"

# === OpenGL specific profiles/settings ===

Option "Capabilities" "0x00000000"

# === Video Overlay for the Xv extension ===

Option "VideoOverlay" "on"

# === OpenGL Overlay ===

# Note: When OpenGL Overlay is enabled, Video Overlay

# will be disabled automatically

Option "OpenGLOverlay" "off"

# === Center Mode (Laptops only) ===

Option "CenterMode" "off"

# === Pseudo Color Visuals (8-bit visuals) ===

Option "PseudoColorVisuals" "off"

# === QBS Management ===

Option "Stereo" "off"

Option "StereoSyncEnable" "1"

# === FSAA Management ===

Option "FSAAEnable" "no"

Option "FSAAScale" "1"

Option "FSAADisableGamma" "no"

Option "FSAACustomizeMSPos" "no"

Option "FSAAMSPosX0" "0.000000"

Option "FSAAMSPosY0" "0.000000"

Option "FSAAMSPosX1" "0.000000"

Option "FSAAMSPosY1" "0.000000"

Option "FSAAMSPosX2" "0.000000"

Option "FSAAMSPosY2" "0.000000"

Option "FSAAMSPosX3" "0.000000"

Option "FSAAMSPosY3" "0.000000"

Option "FSAAMSPosX4" "0.000000"

Option "FSAAMSPosY4" "0.000000"

Option "FSAAMSPosX5" "0.000000"

Option "FSAAMSPosY5" "0.000000"

# === Misc Options ===

Option "UseFastTLS" "0"

Option "BlockSignalsOnLock" "on"

Option "UseInternalAGPGART" "no"

Option "ForceGenericCPU" "no"

Option "DynamicClocks" "on" # Use ATI Powerplay features

BusID "PCI:1:0:0" # vendor=1002, device=3150

Screen 0

EndSection



#Section "Device"

### Available Driver options are:-

### Values: <i>: integer, <f>: float, <bool>: "True"/"False",

### <string>: "String", <freq>: "<f> Hz/kHz/MHz"

### [arg]: arg optional

#Option "NoAccel" # [<bool>]

#Option "SWcursor" # [<bool>]

#Option "Dac6Bit" # [<bool>]

#Option "Dac8Bit" # [<bool>]

#Option "BusType" # [<str>]

#Option "CPPIOMode" # [<bool>]

#Option "CPusecTimeout" # <i>

#Option "AGPMode" # <i>

#Option "AGPFastWrite" # [<bool>]

#Option "AGPSize" # <i>

#Option "GARTSize" # <i>

#Option "RingSize" # <i>

#Option "BufferSize" # <i>

#Option "EnableDepthMoves" # [<bool>]

#Option "EnablePageFlip" # [<bool>]

#Option "NoBackBuffer" # [<bool>]

#Option "DRIReinit" # [<bool>]

#Option "PanelOff" # [<bool>]

#Option "DDCMode" # [<bool>]

#Option "MonitorLayout" # [<str>]

#Option "IgnoreEDID" # [<bool>]

#Option "UseFBDev" # [<bool>]

#Option "VideoKey" # <i>

#Option "MergedFB" # [<bool>]

#Option "CRT2HSync" # [<str>]

#Option "CRT2VRefresh" # [<str>]

#Option "CRT2Position" # [<str>]

#Option "MetaModes" # [<str>]

#Option "MergedDPI" # [<str>]

#Option "NoMergedXinerama" # [<bool>]

#Option "MergedXineramaCRT2IsScreen0" # [<bool>]

#Option "DisplayPriority" # [<str>]

#Option "PanelSize" # [<str>]

#Option "ForceMinDotClock" # <freq>

#Option "RenderAccel" # [<bool>]

#Option "SubPixelOrder" # [<str>]

#Option "ShowCache" # [<bool>]

#Option "DynamicClocks" # [<bool>]

#Option "VGAAccess" # [<bool>]

#Option "LVDSProbePLL" # [<bool>]

#Option "ReverseDDC" # [<bool>]

#Option "BIOSHotkeys" # [<bool>]

# Identifier "Card0"

# Driver "ati"

# VendorName "ATI Technologies Inc"

# BoardName "ATI Mobility X600"

# BusID "PCI:1:0:0"

#EndSection



Section "Screen"

Identifier "Screen0"

Device "Card0"

Monitor "Monitor0"

DefaultDepth 24



SubSection "Display"

Viewport 0 0

Depth 16

# Modes "1280x800"

EndSubSection

SubSection "Display"

Viewport 0 0

Depth 24

# Modes "1280x800"

EndSubSection

EndSection



4. Файл /etc/fstab