Difference between revisions of "Configure make.conf"

From gr0x0rd
Jump to navigation Jump to search
(Created page with "== Installing Gentoo - Configure make.conf == Now that the portage files have been extracted, we need to configure the ''make.conf'' file. The ''make.conf'' file contains global…")
 
Line 1: Line 1:
 
== Installing Gentoo - Configure make.conf ==
 
== Installing Gentoo - Configure make.conf ==
  
Now that the portage files have been extracted, we need to configure the ''make.conf'' file. The ''make.conf'' file contains global settings which allow you to customize your system. For a 32 bit system with full multimedia capability, these are the settings I recommend.
+
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 using 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
 +
 +
SYSTEMUSE="acpi alsa dell dvd dvdr cdr ftp java javascript lm_sensors python oss mmx readline sse sse2 sse3 ssse3 -doc"
 +
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"
 +
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
 +
#VIDEO_CARDS="radeon"  # for amd radeon
 +
#VIDEO_CARDS="vwmare"  # for vmware
 +
INPUT_DEVICES="evdev keyboard mouse"
 +
XFCE_PLUGINS="brightness menu trash"

Revision as of 16:59, 17 November 2010

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 using 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

SYSTEMUSE="acpi alsa dell dvd dvdr cdr ftp java javascript lm_sensors python oss mmx readline sse sse2 sse3 ssse3 -doc"
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"
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
#VIDEO_CARDS="radeon"   # for amd radeon
#VIDEO_CARDS="vwmare"  # for vmware
INPUT_DEVICES="evdev keyboard mouse"
XFCE_PLUGINS="brightness menu trash"