Difference between pages "System Administration Practice" and "Flavors and Mix-ins"

(Difference between pages)
 
 
Line 1: Line 1:
== Keep Portage Tree Up-To-Date ==
+
This page documents flavors and mix-ins, which are components of [[Funtoo 1.0 Profile|Funtoo profiles]]:
Even if you're not doing a full update every day, you should sync the portage tree and overlays regularly. It will reduce the time that you need to sync tree before a system upgrade. Also, if you just want to install something, it will be installed with latest deps so you will not waste time on upgrading it later. Here is an example script to upgrade portage and overlay every day. Edit <code>/etc/cron.daily/autosync.sh</code> with your favorite text editor:
+
  
<pre>
+
== Flavors ==
#!/bin/bash
+
log="/var/log/autosync.log"
+
if [ ! -f $log ]; then
+
touch $log
+
chmod 600 $log
+
chown root:root $log
+
fi
+
  
echo >> $log
+
A system can have only one flavor profile enabled at a time. The following flavors are available:
echo "*** autosync started! ($(date +'%d-%m-%Y %H:%M:%S'))" >> $log
+
echo "*** running emerge --sync" >> $log
+
emerge -q --sync >> $log 2>&1
+
if [ -f /usr/bin/layman ]; then
+
echo >> $log
+
echo "*** running layman -S" >> $log
+
/usr/bin/layman -S --nocolor >> $log 2>&1
+
fi
+
</pre>
+
  
== Purge unused distfiles ==
+
;minimal: This flavor defines the most minimal possible flavor. It currently only contains defaults for all Funtoo Linux flavors.
Distfiles may take up a lot of space on disk, and if you do not clean them from time to time it may become an issue. There are many ways to clean them.  
+
  
* Remove distfiles which wasn't accessed in last 90 days. ('''WARNING''': It will not work if distfiles are on filesystem with '''noatime''' option. You may want think about '''relatime''').
+
;core: The core flavor is the minimal flavor plus reasonable USE options, and is used for stage3 builds.
  
 +
;server: The server flavor is intended for servers but at this time just tracks core.
  
<pre>
+
;workstation: The workstation flavor is a minimal desktop system. It includes the core flavor plus these mix-ins: '''X''', '''audio''', '''dvd''', '''media''', '''console-extras'''
#!bin/bash
+
find /usr/portage/distfiles -maxdepth 1 -type f -atime +90 -exec rm {}
+
</pre>
+
Alternative is using <tt>eclean</tt> purge utility for distfiles and binary packages, it is part of <tt>app-portage/gentoolkit</tt> package.
+
Let's say we want to purge distfiles in <tt>/usr/portage/distfiles</tt>
+
<console>
+
###i## eclean-dist -i
+
</console>
+
This command will prompt for each distfile and ask user's confirmation (can be slow). Example of advanced usage, let's clean all distfiles except for installed packages (exact version), those which are less than one month old, bigger than 50MB, or fetch-restricted:
+
<console>
+
###i## eclean-dist -d -t1m -s50M -f
+
</console>
+
Cron lovers :)
+
clean packages in the safest mode, and then distfiles in deep mode but protecting files less than a week old, every sunday at 1am:
+
<console>
+
###i## 0 1 * * sun  eclean -C -q packages ; eclean -C -q -d -t1w distfiles
+
</console>
+
  
 +
;desktop: The desktop flavor is a full-featured desktop system, minus desktop environment (add KDE, GNOME or XFCE as a mix-in.) It includes the '''workstation''' flavor plus '''printing''' support.
  
[[Category:HOWTO]]
+
== Mix-ins ==
 +
 
 +
A system can have any number of mix-ins enabled at a time. The following mix-ins are available:
 +
 
 +
;audio: Enables core audio-related settings, currently related to ALSA.
 +
 
 +
;console-extras: Enables things that are nice to have for console-only systems. Currently enabling gpm in USE.
 +
 
 +
;dvd: USE settings related to optical drives -- CDR/DVD-ROM/RW use.
 +
 
 +
;gnome: USE and package.use settings required to merge GNOME.
 +
 
 +
;hardened: Enables hardened support.
 +
 
 +
;kde: USE and package.use settings required to merge KDE.
 +
 
 +
;media: USE settings related to audio/video media encoding. Can be for desktops or servers.
 +
 
 +
;print: Enables printing capability.
 +
 
 +
;rhel5-compat: settings required for running a system that uses a Red Hat Enterprise Linux 5-based kernel.
 +
 
 +
;vmware-guest: settings related to using Funtoo Linux as a VMWare virtual machine guest.
 +
 
 +
;X: Settings related to the X Window System and hardware support.
 +
 
 +
;xfce: USE settings required for merging XFCE.
 +
 
 +
[[Category:Portage]]
 +
[[Category:Funtoo features]]

Revision as of 09:16, December 28, 2014

This page documents flavors and mix-ins, which are components of Funtoo profiles:

Flavors

A system can have only one flavor profile enabled at a time. The following flavors are available:

minimal
This flavor defines the most minimal possible flavor. It currently only contains defaults for all Funtoo Linux flavors.
core
The core flavor is the minimal flavor plus reasonable USE options, and is used for stage3 builds.
server
The server flavor is intended for servers but at this time just tracks core.
workstation
The workstation flavor is a minimal desktop system. It includes the core flavor plus these mix-ins: X, audio, dvd, media, console-extras
desktop
The desktop flavor is a full-featured desktop system, minus desktop environment (add KDE, GNOME or XFCE as a mix-in.) It includes the workstation flavor plus printing support.

Mix-ins

A system can have any number of mix-ins enabled at a time. The following mix-ins are available:

audio
Enables core audio-related settings, currently related to ALSA.
console-extras
Enables things that are nice to have for console-only systems. Currently enabling gpm in USE.
dvd
USE settings related to optical drives -- CDR/DVD-ROM/RW use.
gnome
USE and package.use settings required to merge GNOME.
hardened
Enables hardened support.
kde
USE and package.use settings required to merge KDE.
media
USE settings related to audio/video media encoding. Can be for desktops or servers.
print
Enables printing capability.
rhel5-compat
settings required for running a system that uses a Red Hat Enterprise Linux 5-based kernel.
vmware-guest
settings related to using Funtoo Linux as a VMWare virtual machine guest.
X
Settings related to the X Window System and hardware support.
xfce
USE settings required for merging XFCE.