Difference between revisions of "Configure make.conf"

From gr0x0rd
Jump to navigation Jump to search
Line 27: Line 27:
 
   
 
   
 
  # global USE flags
 
  # global USE flags
  SYSTEMUSE="acpi alsa apm dvd dvdr cdr ftp javascript lm_sensors python oss mmx readline sse sse2 sse3 ssse3"
+
  BUILD="amd64 mmx sse sse2 sse3 ssse3"
  XUSE="X input_devices_keyboard input_devices_mouse opengl truetype xorg xscreensaver wxwindows -nptl -nptlonly xcb"
+
  UDEV="-hal consolekit dbus pam policykit udev"
  WMUSE="xfce -kde -gnome -qt3 -qt4 -arts -gnome -hal cairo consolekit esd dbus glitz gtk pam svg policykit"
+
HW="lm_sensors"
  IMAGEUSE="gif jpeg png pdf tiff"
+
SW="bittorrent firefox msn rdesktop"
  MEDIAUSE="asf avi encode ffmpeg mad mp3 mpeg mpeg2 mplayer ogg quicktime vcd video win32codecs wma wmp xv xvid"
+
LANG="java python doc"
  MEDIAUSEEXTRAS="a52 aac aalib cdparanoia dts dv dvdread flac lame live nsplugin theora vcdimager vidix vorbis x264 xmms"
+
WEB="apache2 ftp mysql javascript ssl xml"
  UTILUSE="rar zip msn rdesktop nfs ntfs bittorrent"
+
PHP="simplexml json pdo posix session pcre"
   
+
  GFX="cairo branding glitz new-login opengl truetype X xorg xscreensaver wxwindows"
  USE="${SYSTEMUSE} ${XUSE} ${WMUSE} ${IMAGEUSE} ${MEDIAUSE} ${MEDIAUSEEXTRAS} ${UTILUSE}"
+
  IMG="gif jpeg png pdf tiff"
 +
  VIDEO="asf avi ffmpeg quicktime mpeg mpeg2 mplayer theora vcd video win32codecs x264 xv xvid xmms"
 +
  AUDIO="alsa a52 aac aalib cdparanoia flac lame live nsplugin ogg oss mad mp3 wma wmp vorbis"
 +
DVD="cdr dvd dvdr dts dv dvdread encode vcdimager vidix"
 +
  UTIL="nfs ntfs rar zip zlib"
 +
X="input_devices_keyboard input_devices_mouse video_cards_nvidia"
 +
  WM="xfce -gnome -kde -minimal -qt3 -qt4 lock thunar"
 +
 
 +
  USE="${BUILD} ${UDEV} ${HW} ${SW} ${LANG} ${WEB} ${PHP} ${GFX} ${IMG} ${VIDEO} ${AUDIO} ${DVD} ${UTIL} ${X} ${WM}"
 
   
 
   
 
  # xorg settings
 
  # xorg settings

Revision as of 10:22, 28 May 2011

Installing Gentoo - Configure make.conf

The make.conf file contains global compilation settings and USE flags which allow you to customize your system.

# nano -w /etc/make.conf

One of the key settings in the make.conf file is the MAKEOPTS value, which accepts a setting in the form -jX. The value of X should be set to the number of processors (or cores) in your machine + 1.

The global USE flags are system wide and will be applied to every relevant package that is emerged. These flags will differ depending on what type of system you are building.

The VIDEO_CARDS setting is also important, as it will be read when X is emerged in order to determine which video drivers to install. Likewise, the INPUT_DEVICES section will also instruct X as to which drivers to install for your peripherals.

The final setting, XFCE_PLUGINS, is only relevant if you are using the Xfce window manager.

The following example would apply to a desktop computer with a quad-core processor with the Xfce window manager with full multimedia capability.

file: /etc/make.conf

###############################
#
# gr0x0rd's make.conf
#
###############################

# compilation settings
CFLAGS="-O2 -march=i686 -pipe"
CXXFLAGS="${CFLAGS}"
CHOST="i686-pc-linux-gnu" # this should be x86_64-pc-linux-gnu for amd64 builds
MAKEOPTS="-j5" # number should be the number of processors (or cores) in your machine + 1

# global USE flags
BUILD="amd64 mmx sse sse2 sse3 ssse3"
UDEV="-hal consolekit dbus pam policykit udev"
HW="lm_sensors"
SW="bittorrent firefox msn rdesktop"
LANG="java python doc"
WEB="apache2 ftp mysql javascript ssl xml"
PHP="simplexml json pdo posix session pcre"
GFX="cairo branding glitz new-login opengl truetype X xorg xscreensaver wxwindows"
IMG="gif jpeg png pdf tiff"
VIDEO="asf avi ffmpeg quicktime mpeg mpeg2 mplayer theora vcd video win32codecs x264 xv xvid xmms"
AUDIO="alsa a52 aac aalib cdparanoia flac lame live nsplugin ogg oss mad mp3 wma wmp vorbis"
DVD="cdr dvd dvdr dts dv dvdread encode vcdimager vidix"
UTIL="nfs ntfs rar zip zlib"
X="input_devices_keyboard input_devices_mouse video_cards_nvidia"
WM="xfce -gnome -kde -minimal -qt3 -qt4 lock thunar"
USE="${BUILD} ${UDEV} ${HW} ${SW} ${LANG} ${WEB} ${PHP} ${GFX} ${IMG} ${VIDEO} ${AUDIO} ${DVD} ${UTIL} ${X} ${WM}"

# xorg settings
VIDEO_CARDS="nvidia"   # for nvidia, closed source
#VIDEO_CARDS="nouveau"   # for nvidia, open source
#VIDEO_CARDS="fglrx"   # for amd radeon, closed open source
#VIDEO_CARDS="radeon"   # for amd radeon, open source
#VIDEO_CARDS="intel"   # for intel
#VIDEO_CARDS="vwmare"  # for vmware
#VIDEO_CARDS="virtualbox"  # for virtualbox
INPUT_DEVICES="evdev keyboard mouse"
#INPUT_DEVICES="virtualbox" # for virtualbox
XFCE_PLUGINS="brightness menu trash"

Once you are happy with the settings in your make.conf, you can Emerge System Utilities.