Difference between revisions of "Configure make.conf"

From gr0x0rd
Jump to navigation Jump to search
Line 29: Line 29:
 
  SYSTEMUSE="acpi alsa apm dvd dvdr cdr ftp javascript lm_sensors python oss mmx readline sse sse2 sse3 ssse3"
 
  SYSTEMUSE="acpi alsa apm dvd dvdr cdr ftp javascript lm_sensors python oss mmx readline sse sse2 sse3 ssse3"
 
  XUSE="X input_devices_keyboard input_devices_mouse opengl truetype xorg xscreensaver wxwindows -nptl -nptlonly xcb"
 
  XUSE="X input_devices_keyboard input_devices_mouse opengl truetype xorg xscreensaver wxwindows -nptl -nptlonly xcb"
  WMUSE="xfce -kde -gnome -qt3 -qt4 -arts -gnome gtk hal cairo esd dbus glitz svg"
+
  WMUSE="xfce -kde -gnome -qt3 -qt4 -arts -gnome -hal cairo consolekit esd dbus glitz gtk pam svg policykit"
 
  IMAGEUSE="gif jpeg png pdf tiff"
 
  IMAGEUSE="gif jpeg png pdf tiff"
 
  MEDIAUSE="asf avi encode ffmpeg mad mp3 mpeg mpeg2 mplayer ogg quicktime vcd video win32codecs wma wmp xv xvid"
 
  MEDIAUSE="asf avi encode ffmpeg mad mp3 mpeg mpeg2 mplayer ogg quicktime vcd video win32codecs wma wmp xv xvid"

Revision as of 08:44, 10 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"
MAKEOPTS="-j5" # number should be the number of processors (or cores) in your machine + 1

# global USE flags
SYSTEMUSE="acpi alsa apm dvd dvdr cdr ftp javascript lm_sensors python oss mmx readline sse sse2 sse3 ssse3"
XUSE="X input_devices_keyboard input_devices_mouse opengl truetype xorg xscreensaver wxwindows -nptl -nptlonly xcb"
WMUSE="xfce -kde -gnome -qt3 -qt4 -arts -gnome -hal cairo consolekit esd dbus glitz gtk pam svg policykit"
IMAGEUSE="gif jpeg png pdf tiff"
MEDIAUSE="asf avi encode ffmpeg mad mp3 mpeg mpeg2 mplayer ogg quicktime vcd video win32codecs wma wmp xv xvid"
MEDIAUSEEXTRAS="a52 aac aalib cdparanoia dts dv dvdread flac lame live nsplugin theora vcdimager vidix vorbis x264 xmms"
UTILUSE="rar zip msn rdesktop nfs ntfs bittorrent"

USE="${SYSTEMUSE} ${XUSE} ${WMUSE} ${IMAGEUSE} ${MEDIAUSE} ${MEDIAUSEEXTRAS} ${UTILUSE}"

# 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.