<?xml version="1.0" encoding="utf-8"?>
<!-- generator="FeedCreator 1.7.2-ppt DokuWiki" -->
<?xml-stylesheet href="http://hive.awired.net/lib/exe/css.php?s=feed" type="text/css"?>
<rdf:RDF
    xmlns="http://purl.org/rss/1.0/"
    xmlns:rdf="http://www.w3.org/1999/02/22-rdf-syntax-ns#"
    xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
    xmlns:dc="http://purl.org/dc/elements/1.1/">
    <channel rdf:about="http://hive.awired.net/feed.php">
        <title>Hive Awired wiki hive:system:gentoo</title>
        <description></description>
        <link>http://hive.awired.net/</link>
        <image rdf:resource="http://hive.awired.net/lib/images/favicon.ico" />
       <dc:date>2010-08-19T20:25:03+02:00</dc:date>
        <items>
            <rdf:Seq>
                <rdf:li rdf:resource="http://hive.awired.net/hive/system/gentoo/flags"/>
                <rdf:li rdf:resource="http://hive.awired.net/hive/system/gentoo/gentoo-wiki"/>
                <rdf:li rdf:resource="http://hive.awired.net/hive/system/gentoo/how-to"/>
                <rdf:li rdf:resource="http://hive.awired.net/hive/system/gentoo/initramfs"/>
                <rdf:li rdf:resource="http://hive.awired.net/hive/system/gentoo/usefull%20tools"/>
            </rdf:Seq>
        </items>
    </channel>
    <image rdf:about="http://hive.awired.net/lib/images/favicon.ico">
        <title>Hive Awired wiki</title>
        <link>http://hive.awired.net/</link>
        <url>http://hive.awired.net/lib/images/favicon.ico</url>
    </image>
    <item rdf:about="http://hive.awired.net/hive/system/gentoo/flags">
        <dc:format>text/html</dc:format>
        <dc:date>2009-12-15T13:13:23+02:00</dc:date>
        <title></title>
        <link>http://hive.awired.net/hive/system/gentoo/flags</link>
        <description>
&lt;p&gt;
###################
date: 15/12/2009
category: Remember
###################

intro….
&lt;/p&gt;


&lt;div class=&quot;level1&quot;&gt;

&lt;p&gt;
&lt;strong&gt;Use&lt;/strong&gt; flags can be set in different ways :

&lt;/p&gt;
&lt;pre class=&quot;code&quot;&gt; 1. By using the env variable&lt;/pre&gt;

&lt;p&gt;
 
example: 

&lt;/p&gt;
&lt;pre class=&quot;console&quot;&gt;
&lt;span class=&quot;consoleName&quot;&gt;localhost&lt;/span&gt; &lt;span class=&quot;consolePath&quot;&gt;~&lt;/span&gt; &lt;span class=&quot;consoleSharp&quot;&gt;#&lt;/span&gt; USE=&quot;-debug doc&quot; emerge apache&lt;/pre&gt;
&lt;p&gt;

 
&lt;/p&gt;
&lt;pre class=&quot;code&quot;&gt; 2. By modifying the /etc/portage/package.use file&lt;/pre&gt;

&lt;p&gt;
 
&lt;/p&gt;
&lt;pre class=&quot;code&quot;&gt; 3. By modifying the /etc/make.conf file&lt;/pre&gt;

&lt;p&gt;
 
&lt;/p&gt;
&lt;pre class=&quot;code&quot;&gt; 4. By modifying the make.defaults file from your profile
&lt;/pre&gt;

&lt;p&gt;

&lt;em&gt;Note:&lt;/em&gt; Pay attention to the order these ways are set; it reflect the prior order of the use declaration. (first is the strongest)
&lt;/p&gt;

&lt;/div&gt;
&lt;!-- SECTION &quot;&quot; [92-594] --&gt;
&lt;h3&gt;&lt;a name=&quot;flags&quot; id=&quot;flags&quot;&gt;Flags&lt;/a&gt;&lt;/h3&gt;
&lt;div class=&quot;level3&quot;&gt;

&lt;p&gt;
&lt;strong&gt;Use&lt;/strong&gt; flags available
/usr/portage/profiles/use.desc
&lt;/p&gt;

&lt;p&gt;
Local &lt;strong&gt;Use&lt;/strong&gt; flags available
/usr/portage/profiles/use.local.desc
&lt;/p&gt;

&lt;/div&gt;
&lt;!-- SECTION &quot;Flags&quot; [595-] --&gt;</description>
    </item>
    <item rdf:about="http://hive.awired.net/hive/system/gentoo/gentoo-wiki">
        <dc:format>text/html</dc:format>
        <dc:date>2009-10-08T10:23:37+02:00</dc:date>
        <title></title>
        <link>http://hive.awired.net/hive/system/gentoo/gentoo-wiki</link>
        <description>		&lt;td class=&quot;col0&quot;&gt; 01/24/2008 &lt;/td&gt;&lt;td class=&quot;col1&quot;&gt; EN &lt;/td&gt;&lt;td class=&quot;col2&quot;&gt; SAVED &lt;/td&gt;&lt;td class=&quot;col3&quot;&gt; &lt;a href=&quot;http://hive.awired.net/_media/system-administration/gentoo/gentoo-wiki/backup.htm&quot; class=&quot;media mediafile mf_htm&quot; title=&quot;system-administration:gentoo:gentoo-wiki:backup.htm&quot;&gt;backup.htm&lt;/a&gt; &lt;/td&gt;&lt;td class=&quot;col4 rightalign&quot;&gt;  &lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr class=&quot;row1&quot;&gt;
		&lt;td class=&quot;col0&quot;&gt; 01/24/2008 &lt;/td&gt;&lt;td class=&quot;col1&quot;&gt; EN &lt;/td&gt;&lt;td class=&quot;col2&quot;&gt; SAVED &lt;/td&gt;&lt;td class=&quot;col3&quot;&gt; &lt;a href=&quot;http://data.mind.awired.net/system-administration/gentoo/gentoo-wiki/initramfs.htm&quot; class=&quot;urlextern&quot; title=&quot;http://data.mind.awired.net/system-administration/gentoo/gentoo-wiki/initramfs.htm&quot;  rel=&quot;nofollow&quot;&gt;http://data.mind.awired.net/system-administration/gentoo/gentoo-wiki/initramfs.htm&lt;/a&gt; &lt;/td&gt;&lt;td class=&quot;col4 rightalign&quot;&gt;  &lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr class=&quot;row2&quot;&gt;
		&lt;td class=&quot;col0&quot;&gt; 01/24/2008 &lt;/td&gt;&lt;td class=&quot;col1&quot;&gt; EN &lt;/td&gt;&lt;td class=&quot;col2&quot;&gt; SAVED &lt;/td&gt;&lt;td class=&quot;col3&quot;&gt; &lt;a href=&quot;http://data.mind.awired.net/system-administration/gentoo/gentoo-wiki/apc.htm&quot; class=&quot;urlextern&quot; title=&quot;http://data.mind.awired.net/system-administration/gentoo/gentoo-wiki/apc.htm&quot;  rel=&quot;nofollow&quot;&gt;http://data.mind.awired.net/system-administration/gentoo/gentoo-wiki/apc.htm&lt;/a&gt; &lt;/td&gt;&lt;td class=&quot;col4 rightalign&quot;&gt;  &lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr class=&quot;row3&quot;&gt;
		&lt;td class=&quot;col0&quot;&gt; 01/24/2008 &lt;/td&gt;&lt;td class=&quot;col1&quot;&gt; EN &lt;/td&gt;&lt;td class=&quot;col2&quot;&gt; SAVED &lt;/td&gt;&lt;td class=&quot;col3&quot;&gt; &lt;a href=&quot;http://data.mind.awired.net/system-administration/gentoo/gentoo-wiki/mdadm.htm&quot; class=&quot;urlextern&quot; title=&quot;http://data.mind.awired.net/system-administration/gentoo/gentoo-wiki/mdadm.htm&quot;  rel=&quot;nofollow&quot;&gt;http://data.mind.awired.net/system-administration/gentoo/gentoo-wiki/mdadm.htm&lt;/a&gt; &lt;/td&gt;&lt;td class=&quot;col4 rightalign&quot;&gt;  &lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr class=&quot;row4&quot;&gt;
		&lt;td class=&quot;col0&quot;&gt; 01/24/2008 &lt;/td&gt;&lt;td class=&quot;col1&quot;&gt; EN &lt;/td&gt;&lt;td class=&quot;col2&quot;&gt; SAVED &lt;/td&gt;&lt;td class=&quot;col3&quot;&gt; &lt;a href=&quot;http://data.mind.awired.net/system-administration/gentoo/gentoo-wiki/eselect.htm&quot; class=&quot;urlextern&quot; title=&quot;http://data.mind.awired.net/system-administration/gentoo/gentoo-wiki/eselect.htm&quot;  rel=&quot;nofollow&quot;&gt;http://data.mind.awired.net/system-administration/gentoo/gentoo-wiki/eselect.htm&lt;/a&gt; &lt;/td&gt;&lt;td class=&quot;col4 rightalign&quot;&gt;  &lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr class=&quot;row5&quot;&gt;
		&lt;td class=&quot;col0&quot;&gt; 01/24/2008 &lt;/td&gt;&lt;td class=&quot;col1&quot;&gt; EN &lt;/td&gt;&lt;td class=&quot;col2&quot;&gt; SAVED &lt;/td&gt;&lt;td class=&quot;col3&quot;&gt; &lt;a href=&quot;http://data.mind.awired.net/system-administration/gentoo/gentoo-wiki/encrypt filesystem with luks.htm&quot; class=&quot;urlextern&quot; title=&quot;http://data.mind.awired.net/system-administration/gentoo/gentoo-wiki/encrypt filesystem with luks.htm&quot;  rel=&quot;nofollow&quot;&gt;http://data.mind.awired.net/system-administration/gentoo/gentoo-wiki/encrypt filesystem with luks.htm&lt;/a&gt; &lt;/td&gt;&lt;td class=&quot;col4 rightalign&quot;&gt;  &lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr class=&quot;row6&quot;&gt;
		&lt;td class=&quot;col0&quot;&gt; 01/24/2008 &lt;/td&gt;&lt;td class=&quot;col1&quot;&gt; EN &lt;/td&gt;&lt;td class=&quot;col2&quot;&gt; SAVED &lt;/td&gt;&lt;td class=&quot;col3&quot;&gt; &lt;a href=&quot;http://data.mind.awired.net/system-administration/gentoo/gentoo-wiki/apache openldap.htm&quot; class=&quot;urlextern&quot; title=&quot;http://data.mind.awired.net/system-administration/gentoo/gentoo-wiki/apache openldap.htm&quot;  rel=&quot;nofollow&quot;&gt;http://data.mind.awired.net/system-administration/gentoo/gentoo-wiki/apache openldap.htm&lt;/a&gt; &lt;/td&gt;&lt;td class=&quot;col4 rightalign&quot;&gt;  &lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr class=&quot;row7&quot;&gt;
		&lt;td class=&quot;col0&quot;&gt; 01/24/2008 &lt;/td&gt;&lt;td class=&quot;col1&quot;&gt; EN &lt;/td&gt;&lt;td class=&quot;col2&quot;&gt; SAVED &lt;/td&gt;&lt;td class=&quot;col3&quot;&gt; &lt;a href=&quot;http://data.mind.awired.net/system-administration/gentoo/gentoo-wiki/backup zfs.htm&quot; class=&quot;urlextern&quot; title=&quot;http://data.mind.awired.net/system-administration/gentoo/gentoo-wiki/backup zfs.htm&quot;  rel=&quot;nofollow&quot;&gt;http://data.mind.awired.net/system-administration/gentoo/gentoo-wiki/backup zfs.htm&lt;/a&gt; &lt;/td&gt;&lt;td class=&quot;col4 rightalign&quot;&gt;  &lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr class=&quot;row8&quot;&gt;
		&lt;td class=&quot;col0&quot;&gt; 01/24/2008 &lt;/td&gt;&lt;td class=&quot;col1&quot;&gt; EN &lt;/td&gt;&lt;td class=&quot;col2&quot;&gt; SAVED &lt;/td&gt;&lt;td class=&quot;col3&quot;&gt; &lt;a href=&quot;http://data.mind.awired.net/system-administration/gentoo/gentoo-wiki/jboss without packaged jars.htm&quot; class=&quot;urlextern&quot; title=&quot;http://data.mind.awired.net/system-administration/gentoo/gentoo-wiki/jboss without packaged jars.htm&quot;  rel=&quot;nofollow&quot;&gt;http://data.mind.awired.net/system-administration/gentoo/gentoo-wiki/jboss without packaged jars.htm&lt;/a&gt; &lt;/td&gt;&lt;td class=&quot;col4 rightalign&quot;&gt;  &lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr class=&quot;row9&quot;&gt;
		&lt;td class=&quot;col0&quot;&gt; 01/24/2008 &lt;/td&gt;&lt;td class=&quot;col1&quot;&gt; EN &lt;/td&gt;&lt;td class=&quot;col2&quot;&gt; SAVED &lt;/td&gt;&lt;td class=&quot;col3&quot;&gt; &lt;a href=&quot;http://data.mind.awired.net/system-administration/gentoo/gentoo-wiki/apache2.htm&quot; class=&quot;urlextern&quot; title=&quot;http://data.mind.awired.net/system-administration/gentoo/gentoo-wiki/apache2.htm&quot;  rel=&quot;nofollow&quot;&gt;http://data.mind.awired.net/system-administration/gentoo/gentoo-wiki/apache2.htm&lt;/a&gt; &lt;/td&gt;&lt;td class=&quot;col4 rightalign&quot;&gt;  &lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr class=&quot;row10&quot;&gt;
		&lt;td class=&quot;col0&quot;&gt; 01/24/2008 &lt;/td&gt;&lt;td class=&quot;col1&quot;&gt; EN &lt;/td&gt;&lt;td class=&quot;col2&quot;&gt; SAVED &lt;/td&gt;&lt;td class=&quot;col3&quot;&gt; &lt;a href=&quot;http://data.mind.awired.net/system-administration/gentoo/gentoo-wiki/encrypt your system.htm&quot; class=&quot;urlextern&quot; title=&quot;http://data.mind.awired.net/system-administration/gentoo/gentoo-wiki/encrypt your system.htm&quot;  rel=&quot;nofollow&quot;&gt;http://data.mind.awired.net/system-administration/gentoo/gentoo-wiki/encrypt your system.htm&lt;/a&gt; &lt;/td&gt;&lt;td class=&quot;col4 rightalign&quot;&gt;  &lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr class=&quot;row11&quot;&gt;
		&lt;td class=&quot;col0&quot;&gt; 01/24/2008 &lt;/td&gt;&lt;td class=&quot;col1&quot;&gt; EN &lt;/td&gt;&lt;td class=&quot;col2&quot;&gt; SAVED &lt;/td&gt;&lt;td class=&quot;col3&quot;&gt; &lt;a href=&quot;http://data.mind.awired.net/system-administration/gentoo/gentoo-wiki/postfix-ldap.htm&quot; class=&quot;urlextern&quot; title=&quot;http://data.mind.awired.net/system-administration/gentoo/gentoo-wiki/postfix-ldap.htm&quot;  rel=&quot;nofollow&quot;&gt;http://data.mind.awired.net/system-administration/gentoo/gentoo-wiki/postfix-ldap.htm&lt;/a&gt; &lt;/td&gt;&lt;td class=&quot;col4 rightalign&quot;&gt;  &lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr class=&quot;row12&quot;&gt;
		&lt;td class=&quot;col0&quot;&gt; 01/24/2008 &lt;/td&gt;&lt;td class=&quot;col1&quot;&gt; EN &lt;/td&gt;&lt;td class=&quot;col2&quot;&gt; SAVED &lt;/td&gt;&lt;td class=&quot;col3&quot;&gt; &lt;a href=&quot;http://data.mind.awired.net/system-administration/gentoo/gentoo-wiki/rsync.htm&quot; class=&quot;urlextern&quot; title=&quot;http://data.mind.awired.net/system-administration/gentoo/gentoo-wiki/rsync.htm&quot;  rel=&quot;nofollow&quot;&gt;http://data.mind.awired.net/system-administration/gentoo/gentoo-wiki/rsync.htm&lt;/a&gt; &lt;/td&gt;&lt;td class=&quot;col4 rightalign&quot;&gt;  &lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr class=&quot;row13&quot;&gt;
		&lt;td class=&quot;col0&quot;&gt; 01/24/2008 &lt;/td&gt;&lt;td class=&quot;col1&quot;&gt; EN &lt;/td&gt;&lt;td class=&quot;col2&quot;&gt; SAVED &lt;/td&gt;&lt;td class=&quot;col3&quot;&gt; &lt;a href=&quot;http://data.mind.awired.net/system-administration/gentoo/gentoo-wiki/bind.htm&quot; class=&quot;urlextern&quot; title=&quot;http://data.mind.awired.net/system-administration/gentoo/gentoo-wiki/bind.htm&quot;  rel=&quot;nofollow&quot;&gt;http://data.mind.awired.net/system-administration/gentoo/gentoo-wiki/bind.htm&lt;/a&gt; &lt;/td&gt;&lt;td class=&quot;col4 rightalign&quot;&gt;  &lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr class=&quot;row14&quot;&gt;
		&lt;td class=&quot;col0&quot;&gt; 01/24/2008 &lt;/td&gt;&lt;td class=&quot;col1&quot;&gt; EN &lt;/td&gt;&lt;td class=&quot;col2&quot;&gt; SAVED &lt;/td&gt;&lt;td class=&quot;col3&quot;&gt; &lt;a href=&quot;http://data.mind.awired.net/system-administration/gentoo/gentoo-wiki/openfire.htm&quot; class=&quot;urlextern&quot; title=&quot;http://data.mind.awired.net/system-administration/gentoo/gentoo-wiki/openfire.htm&quot;  rel=&quot;nofollow&quot;&gt;http://data.mind.awired.net/system-administration/gentoo/gentoo-wiki/openfire.htm&lt;/a&gt; &lt;/td&gt;&lt;td class=&quot;col4 rightalign&quot;&gt;  &lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr class=&quot;row15&quot;&gt;
		&lt;td class=&quot;col0&quot;&gt; 01/24/2008 &lt;/td&gt;&lt;td class=&quot;col1&quot;&gt; EN &lt;/td&gt;&lt;td class=&quot;col2&quot;&gt; SAVED &lt;/td&gt;&lt;td class=&quot;col3&quot;&gt; &lt;a href=&quot;http://data.mind.awired.net/system-administration/gentoo/gentoo-wiki/postfix-postgres.htm&quot; class=&quot;urlextern&quot; title=&quot;http://data.mind.awired.net/system-administration/gentoo/gentoo-wiki/postfix-postgres.htm&quot;  rel=&quot;nofollow&quot;&gt;http://data.mind.awired.net/system-administration/gentoo/gentoo-wiki/postfix-postgres.htm&lt;/a&gt; &lt;/td&gt;&lt;td class=&quot;col4 rightalign&quot;&gt;  &lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr class=&quot;row16&quot;&gt;
		&lt;td class=&quot;col0&quot;&gt; 01/24/2008 &lt;/td&gt;&lt;td class=&quot;col1&quot;&gt; EN &lt;/td&gt;&lt;td class=&quot;col2&quot;&gt; SAVED &lt;/td&gt;&lt;td class=&quot;col3&quot;&gt; &lt;a href=&quot;http://data.mind.awired.net/system-administration/gentoo/gentoo-wiki/mythtv2.htm&quot; class=&quot;urlextern&quot; title=&quot;http://data.mind.awired.net/system-administration/gentoo/gentoo-wiki/mythtv2.htm&quot;  rel=&quot;nofollow&quot;&gt;http://data.mind.awired.net/system-administration/gentoo/gentoo-wiki/mythtv2.htm&lt;/a&gt; &lt;/td&gt;&lt;td class=&quot;col4 rightalign&quot;&gt;  &lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr class=&quot;row17&quot;&gt;
		&lt;td class=&quot;col0&quot;&gt; 01/24/2008 &lt;/td&gt;&lt;td class=&quot;col1&quot;&gt; EN &lt;/td&gt;&lt;td class=&quot;col2&quot;&gt; SAVED &lt;/td&gt;&lt;td class=&quot;col3&quot;&gt; &lt;a href=&quot;http://data.mind.awired.net/system-administration/gentoo/gentoo-wiki/sauvegarde.htm&quot; class=&quot;urlextern&quot; title=&quot;http://data.mind.awired.net/system-administration/gentoo/gentoo-wiki/sauvegarde.htm&quot;  rel=&quot;nofollow&quot;&gt;http://data.mind.awired.net/system-administration/gentoo/gentoo-wiki/sauvegarde.htm&lt;/a&gt; &lt;/td&gt;&lt;td class=&quot;col4 rightalign&quot;&gt;  &lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr class=&quot;row18&quot;&gt;
		&lt;td class=&quot;col0&quot;&gt; 01/24/2008 &lt;/td&gt;&lt;td class=&quot;col1&quot;&gt; EN &lt;/td&gt;&lt;td class=&quot;col2&quot;&gt; SAVED &lt;/td&gt;&lt;td class=&quot;col3&quot;&gt; &lt;a href=&quot;http://data.mind.awired.net/system-administration/gentoo/gentoo-wiki/asterix.htm&quot; class=&quot;urlextern&quot; title=&quot;http://data.mind.awired.net/system-administration/gentoo/gentoo-wiki/asterix.htm&quot;  rel=&quot;nofollow&quot;&gt;http://data.mind.awired.net/system-administration/gentoo/gentoo-wiki/asterix.htm&lt;/a&gt; &lt;/td&gt;&lt;td class=&quot;col4 rightalign&quot;&gt;  &lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr class=&quot;row19&quot;&gt;
		&lt;td class=&quot;col0&quot;&gt; 01/24/2008 &lt;/td&gt;&lt;td class=&quot;col1&quot;&gt; EN &lt;/td&gt;&lt;td class=&quot;col2&quot;&gt; SAVED &lt;/td&gt;&lt;td class=&quot;col3&quot;&gt; &lt;a href=&quot;http://data.mind.awired.net/system-administration/gentoo/gentoo-wiki/apache2php.htm&quot; class=&quot;urlextern&quot; title=&quot;http://data.mind.awired.net/system-administration/gentoo/gentoo-wiki/apache2php.htm&quot;  rel=&quot;nofollow&quot;&gt;http://data.mind.awired.net/system-administration/gentoo/gentoo-wiki/apache2php.htm&lt;/a&gt; &lt;/td&gt;&lt;td class=&quot;col4 rightalign&quot;&gt;  &lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr class=&quot;row20&quot;&gt;
		&lt;td class=&quot;col0&quot;&gt; 01/24/2008 &lt;/td&gt;&lt;td class=&quot;col1&quot;&gt; EN &lt;/td&gt;&lt;td class=&quot;col2&quot;&gt; SAVED &lt;/td&gt;&lt;td class=&quot;col3&quot;&gt; &lt;a href=&quot;http://data.mind.awired.net/system-administration/gentoo/gentoo-wiki/tomcat6.htm&quot; class=&quot;urlextern&quot; title=&quot;http://data.mind.awired.net/system-administration/gentoo/gentoo-wiki/tomcat6.htm&quot;  rel=&quot;nofollow&quot;&gt;http://data.mind.awired.net/system-administration/gentoo/gentoo-wiki/tomcat6.htm&lt;/a&gt; &lt;/td&gt;&lt;td class=&quot;col4 rightalign&quot;&gt;  &lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr class=&quot;row21&quot;&gt;
		&lt;td class=&quot;col0&quot;&gt; 01/24/2008 &lt;/td&gt;&lt;td class=&quot;col1&quot;&gt; EN &lt;/td&gt;&lt;td class=&quot;col2&quot;&gt; SAVED &lt;/td&gt;&lt;td class=&quot;col3&quot;&gt; &lt;a href=&quot;http://data.mind.awired.net/system-administration/gentoo/gentoo-wiki/bind dlz.htm&quot; class=&quot;urlextern&quot; title=&quot;http://data.mind.awired.net/system-administration/gentoo/gentoo-wiki/bind dlz.htm&quot;  rel=&quot;nofollow&quot;&gt;http://data.mind.awired.net/system-administration/gentoo/gentoo-wiki/bind dlz.htm&lt;/a&gt; &lt;/td&gt;&lt;td class=&quot;col4 rightalign&quot;&gt;  &lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr class=&quot;row22&quot;&gt;
		&lt;td class=&quot;col0&quot;&gt; 01/24/2008 &lt;/td&gt;&lt;td class=&quot;col1&quot;&gt; EN &lt;/td&gt;&lt;td class=&quot;col2&quot;&gt; SAVED &lt;/td&gt;&lt;td class=&quot;col3&quot;&gt; &lt;a href=&quot;http://data.mind.awired.net/system-administration/gentoo/gentoo-wiki/xen.htm&quot; class=&quot;urlextern&quot; title=&quot;http://data.mind.awired.net/system-administration/gentoo/gentoo-wiki/xen.htm&quot;  rel=&quot;nofollow&quot;&gt;http://data.mind.awired.net/system-administration/gentoo/gentoo-wiki/xen.htm&lt;/a&gt; &lt;/td&gt;&lt;td class=&quot;col4 rightalign&quot;&gt;  &lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr class=&quot;row23&quot;&gt;
		&lt;td class=&quot;col0&quot;&gt; 01/24/2008 &lt;/td&gt;&lt;td class=&quot;col1&quot;&gt; EN &lt;/td&gt;&lt;td class=&quot;col2&quot;&gt; SAVED &lt;/td&gt;&lt;td class=&quot;col3&quot;&gt; &lt;a href=&quot;http://data.mind.awired.net/system-administration/gentoo/gentoo-wiki/postfix.htm&quot; class=&quot;urlextern&quot; title=&quot;http://data.mind.awired.net/system-administration/gentoo/gentoo-wiki/postfix.htm&quot;  rel=&quot;nofollow&quot;&gt;http://data.mind.awired.net/system-administration/gentoo/gentoo-wiki/postfix.htm&lt;/a&gt; &lt;/td&gt;&lt;td class=&quot;col4 rightalign&quot;&gt;  &lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr class=&quot;row24&quot;&gt;
		&lt;td class=&quot;col0&quot;&gt; 01/24/2008 &lt;/td&gt;&lt;td class=&quot;col1&quot;&gt; EN &lt;/td&gt;&lt;td class=&quot;col2&quot;&gt; SAVED &lt;/td&gt;&lt;td class=&quot;col3&quot;&gt; &lt;a href=&quot;http://data.mind.awired.net/system-administration/gentoo/gentoo-wiki/mrtg.htm&quot; class=&quot;urlextern&quot; title=&quot;http://data.mind.awired.net/system-administration/gentoo/gentoo-wiki/mrtg.htm&quot;  rel=&quot;nofollow&quot;&gt;http://data.mind.awired.net/system-administration/gentoo/gentoo-wiki/mrtg.htm&lt;/a&gt; &lt;/td&gt;&lt;td class=&quot;col4 rightalign&quot;&gt;  &lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr class=&quot;row25&quot;&gt;
		&lt;td class=&quot;col0&quot;&gt; 01/24/2008 &lt;/td&gt;&lt;td class=&quot;col1&quot;&gt; EN &lt;/td&gt;&lt;td class=&quot;col2&quot;&gt; SAVED &lt;/td&gt;&lt;td class=&quot;col3&quot;&gt; &lt;a href=&quot;http://data.mind.awired.net/system-administration/gentoo/gentoo-wiki/networkless stage1.htm&quot; class=&quot;urlextern&quot; title=&quot;http://data.mind.awired.net/system-administration/gentoo/gentoo-wiki/networkless stage1.htm&quot;  rel=&quot;nofollow&quot;&gt;http://data.mind.awired.net/system-administration/gentoo/gentoo-wiki/networkless stage1.htm&lt;/a&gt; &lt;/td&gt;&lt;td class=&quot;col4 rightalign&quot;&gt;  &lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr class=&quot;row26&quot;&gt;
		&lt;td class=&quot;col0&quot;&gt; 01/24/2008 &lt;/td&gt;&lt;td class=&quot;col1&quot;&gt; EN &lt;/td&gt;&lt;td class=&quot;col2&quot;&gt; SAVED &lt;/td&gt;&lt;td class=&quot;col3&quot;&gt; &lt;a href=&quot;http://data.mind.awired.net/system-administration/gentoo/gentoo-wiki/bugzilla.htm&quot; class=&quot;urlextern&quot; title=&quot;http://data.mind.awired.net/system-administration/gentoo/gentoo-wiki/bugzilla.htm&quot;  rel=&quot;nofollow&quot;&gt;http://data.mind.awired.net/system-administration/gentoo/gentoo-wiki/bugzilla.htm&lt;/a&gt; &lt;/td&gt;&lt;td class=&quot;col4 rightalign&quot;&gt;  &lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr class=&quot;row27&quot;&gt;
		&lt;td class=&quot;col0&quot;&gt; 01/24/2008 &lt;/td&gt;&lt;td class=&quot;col1&quot;&gt; EN &lt;/td&gt;&lt;td class=&quot;col2&quot;&gt; SAVED &lt;/td&gt;&lt;td class=&quot;col3&quot;&gt; &lt;a href=&quot;http://data.mind.awired.net/system-administration/gentoo/gentoo-wiki/clone.htm&quot; class=&quot;urlextern&quot; title=&quot;http://data.mind.awired.net/system-administration/gentoo/gentoo-wiki/clone.htm&quot;  rel=&quot;nofollow&quot;&gt;http://data.mind.awired.net/system-administration/gentoo/gentoo-wiki/clone.htm&lt;/a&gt; &lt;/td&gt;&lt;td class=&quot;col4 rightalign&quot;&gt;  &lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr class=&quot;row28&quot;&gt;
		&lt;td class=&quot;col0&quot;&gt; 01/24/2008 &lt;/td&gt;&lt;td class=&quot;col1&quot;&gt; EN &lt;/td&gt;&lt;td class=&quot;col2&quot;&gt; SAVED &lt;/td&gt;&lt;td class=&quot;col3&quot;&gt; &lt;a href=&quot;http://data.mind.awired.net/system-administration/gentoo/gentoo-wiki/hdparm.htm&quot; class=&quot;urlextern&quot; title=&quot;http://data.mind.awired.net/system-administration/gentoo/gentoo-wiki/hdparm.htm&quot;  rel=&quot;nofollow&quot;&gt;http://data.mind.awired.net/system-administration/gentoo/gentoo-wiki/hdparm.htm&lt;/a&gt; &lt;/td&gt;&lt;td class=&quot;col4 rightalign&quot;&gt;  &lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr class=&quot;row29&quot;&gt;
		&lt;td class=&quot;col0&quot;&gt; 01/24/2008 &lt;/td&gt;&lt;td class=&quot;col1&quot;&gt; EN &lt;/td&gt;&lt;td class=&quot;col2&quot;&gt; SAVED &lt;/td&gt;&lt;td class=&quot;col3&quot;&gt; &lt;a href=&quot;http://data.mind.awired.net/system-administration/gentoo/gentoo-wiki/apache-tomcat mod_jk.htm&quot; class=&quot;urlextern&quot; title=&quot;http://data.mind.awired.net/system-administration/gentoo/gentoo-wiki/apache-tomcat mod_jk.htm&quot;  rel=&quot;nofollow&quot;&gt;http://data.mind.awired.net/system-administration/gentoo/gentoo-wiki/apache-tomcat mod_jk.htm&lt;/a&gt; &lt;/td&gt;&lt;td class=&quot;col4 rightalign&quot;&gt;  &lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr class=&quot;row30&quot;&gt;
		&lt;td class=&quot;col0&quot;&gt; 01/24/2008 &lt;/td&gt;&lt;td class=&quot;col1&quot;&gt; EN &lt;/td&gt;&lt;td class=&quot;col2&quot;&gt; SAVED &lt;/td&gt;&lt;td class=&quot;col3&quot;&gt; &lt;a href=&quot;http://data.mind.awired.net/system-administration/gentoo/gentoo-wiki/ipv6 gentoo.htm&quot; class=&quot;urlextern&quot; title=&quot;http://data.mind.awired.net/system-administration/gentoo/gentoo-wiki/ipv6 gentoo.htm&quot;  rel=&quot;nofollow&quot;&gt;http://data.mind.awired.net/system-administration/gentoo/gentoo-wiki/ipv6 gentoo.htm&lt;/a&gt; &lt;/td&gt;&lt;td class=&quot;col4 rightalign&quot;&gt;  &lt;/td&gt;
	&lt;/tr&gt;
	&lt;tr class=&quot;row31&quot;&gt;
		&lt;td class=&quot;col0&quot;&gt; 01/24/2008 &lt;/td&gt;&lt;td class=&quot;col1&quot;&gt; EN &lt;/td&gt;&lt;td class=&quot;col2&quot;&gt; SAVED &lt;/td&gt;&lt;td class=&quot;col3&quot;&gt; &lt;a href=&quot;http://data.mind.awired.net/system-administration/gentoo/gentoo-wiki/alsa.htm&quot; class=&quot;urlextern&quot; title=&quot;http://data.mind.awired.net/system-administration/gentoo/gentoo-wiki/alsa.htm&quot;  rel=&quot;nofollow&quot;&gt;http://data.mind.awired.net/system-administration/gentoo/gentoo-wiki/alsa.htm&lt;/a&gt; &lt;/td&gt;&lt;td class=&quot;col4 rightalign&quot;&gt;  &lt;/td&gt;
	&lt;/tr&gt;
&lt;/table&gt;

&lt;p&gt;
spamassassin.htm
mysql.htm
mod_authnz_external.htm
apache2 tomcat5.htm
screen.htm
use portage correctly.htm
stage4.htm
tomcat jakarta.htm
bridge.htm
lm_sensors.htm
samba.htm
mythtv.htm
initramfs crypt.htm
stage1 nptl.htm
how to sauvegarde.htm
use.htm
ad-winbind.htm
amavis.htm
active directory.htm
dm-crypt with luks.htm

&lt;/p&gt;
</description>
    </item>
    <item rdf:about="http://hive.awired.net/hive/system/gentoo/how-to">
        <dc:format>text/html</dc:format>
        <dc:date>2010-03-31T18:45:47+02:00</dc:date>
        <title>How to...</title>
        <link>http://hive.awired.net/hive/system/gentoo/how-to</link>
        <description>


&lt;div class=&quot;level1&quot;&gt;

&lt;/div&gt;
</description>
    </item>
    <item rdf:about="http://hive.awired.net/hive/system/gentoo/initramfs">
        <dc:format>text/html</dc:format>
        <dc:date>2010-07-20T12:01:20+02:00</dc:date>
        <title>Initramfs</title>
        <link>http://hive.awired.net/hive/system/gentoo/initramfs</link>
        <description>


&lt;div class=&quot;level1&quot;&gt;

&lt;p&gt;

This tuto explain how to create an initramfs with :
&lt;/p&gt;
&lt;ul&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; secured remote connection through &lt;strong&gt;ssh&lt;/strong&gt;&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; mount &lt;strong&gt;raid&lt;/strong&gt; devices&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; mount &lt;strong&gt;cryptsetup&lt;/strong&gt; encrypted partitions&lt;/div&gt;
&lt;/li&gt;
&lt;li class=&quot;level1&quot;&gt;&lt;div class=&quot;li&quot;&gt; &lt;strong&gt;screen&lt;/strong&gt; to control initramfs boot process through ssh (same screen on both sides)&lt;/div&gt;
&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;
Creation of you initramfs :
&lt;/p&gt;
&lt;pre class=&quot;console&quot;&gt;
&lt;span class=&quot;consoleName&quot;&gt;livecd&lt;/span&gt; &lt;span class=&quot;consolePath&quot;&gt;/&lt;/span&gt; &lt;span class=&quot;consoleSharp&quot;&gt;#&lt;/span&gt; mkdir /usr/src/initramfs
&lt;span class=&quot;consoleName&quot;&gt;livecd&lt;/span&gt; &lt;span class=&quot;consolePath&quot;&gt;/&lt;/span&gt; &lt;span class=&quot;consoleSharp&quot;&gt;#&lt;/span&gt; cd /usr/src/initramfs
&lt;span class=&quot;consoleName&quot;&gt;livecd&lt;/span&gt; &lt;span class=&quot;consolePath&quot;&gt;initramfs&lt;/span&gt; &lt;span class=&quot;consoleSharp&quot;&gt;#&lt;/span&gt; mkdir -p bin dev etc lib64 lib64/modules new proc sbin sys usr usr/bin var
&lt;span class=&quot;consoleName&quot;&gt;livecd&lt;/span&gt; &lt;span class=&quot;consolePath&quot;&gt;initramfs&lt;/span&gt; &lt;span class=&quot;consoleSharp&quot;&gt;#&lt;/span&gt; ln -s lib64 lib&lt;/pre&gt;
&lt;/div&gt;
&lt;!-- SECTION &quot;Initramfs&quot; [1-538] --&gt;
&lt;h2&gt;&lt;a name=&quot;install softwares to the initramfs&quot; id=&quot;install softwares to the initramfs&quot;&gt;Install softwares to the initramfs&lt;/a&gt;&lt;/h2&gt;
&lt;div class=&quot;level2&quot;&gt;

&lt;/div&gt;
&lt;!-- SECTION &quot;Install softwares to the initramfs&quot; [539-586] --&gt;
&lt;h3&gt;&lt;a name=&quot;emerge packages&quot; id=&quot;emerge packages&quot;&gt;Emerge packages&lt;/a&gt;&lt;/h3&gt;
&lt;div class=&quot;level3&quot;&gt;

&lt;p&gt;

unmask packages :
&lt;/p&gt;
&lt;div class=&quot;code&quot;&gt;&lt;p class=&quot;codehead&quot;&gt;&lt;a name=&quot;etcportagepackage.keywords&quot;&gt;/etc/portage/package.keywords&lt;/a&gt;&lt;/p&gt;&lt;pre class=&quot;code&quot;&gt;
sys-fs/cryptsetup ~amd64
sys-fs/lvm2 ~amd64
sys-fs/udev ~amd64&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;
set flags :

&lt;/p&gt;
&lt;div class=&quot;code&quot;&gt;&lt;p class=&quot;codehead&quot;&gt;&lt;a name=&quot;etcportagepackage.use&quot;&gt;/etc/portage/package.use&lt;/a&gt;&lt;/p&gt;&lt;pre class=&quot;code&quot;&gt;
net-misc/openssh static
sys-apps/busybox static
sys-fs/mdadm static&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;
we are going to emerge some packages :
&lt;/p&gt;
&lt;pre class=&quot;console&quot;&gt;
&lt;span class=&quot;consoleName&quot;&gt;livecd&lt;/span&gt; &lt;span class=&quot;consolePath&quot;&gt;/&lt;/span&gt; &lt;span class=&quot;consoleSharp&quot;&gt;#&lt;/span&gt; emerge -a openssh mdadm cryptsetup busybox screen&lt;/pre&gt;
&lt;p&gt;
Check libs used by a software if you want to add dynamic executable :
&lt;/p&gt;
&lt;pre class=&quot;console&quot;&gt;
&lt;span class=&quot;consoleName&quot;&gt;livecd&lt;/span&gt; &lt;span class=&quot;consolePath&quot;&gt;initramfs&lt;/span&gt; &lt;span class=&quot;consoleSharp&quot;&gt;#&lt;/span&gt; ldd /usr/bin/nano
        linux-vdso.so.1 =&amp;#62;  (0x00007fff1e9fe000)
        libncursesw.so.5 =&amp;#62; /lib/libncursesw.so.5 (0x00007f7516551000)
        libc.so.6 =&amp;#62; /lib/libc.so.6 (0x00007f75161fc000)
        libdl.so.2 =&amp;#62; /lib/libdl.so.2 (0x00007f7515ff8000)
        /lib64/ld-linux-x86-64.so.2 (0x00007f75167be000)&lt;/pre&gt;
&lt;p&gt;
&lt;p&gt;&lt;div class=&quot;notewarning&quot;&gt;&lt;span class=&quot;type&quot;&gt;warning: &lt;/span&gt;
There is also applications that are using libs &lt;strong&gt;even if&lt;/strong&gt; its compiled in static mode, so pay attention if you add other applications

&lt;/div&gt;&lt;/p&gt;
&lt;/p&gt;

&lt;/div&gt;
&lt;!-- SECTION &quot;Emerge packages&quot; [587-1577] --&gt;
&lt;h3&gt;&lt;a name=&quot;copy applications to initramfs&quot; id=&quot;copy applications to initramfs&quot;&gt;Copy applications to initramfs&lt;/a&gt;&lt;/h3&gt;
&lt;div class=&quot;level3&quot;&gt;

&lt;p&gt;

copy executable to initramfs:

&lt;/p&gt;
&lt;pre class=&quot;console&quot;&gt;
&lt;span class=&quot;consoleName&quot;&gt;livecd&lt;/span&gt; &lt;span class=&quot;consolePath&quot;&gt;initramfs&lt;/span&gt; &lt;span class=&quot;consoleSharp&quot;&gt;#&lt;/span&gt; cp /bin/busybox /usr/src/initramfs/bin
&lt;span class=&quot;consoleName&quot;&gt;livecd&lt;/span&gt; &lt;span class=&quot;consolePath&quot;&gt;initramfs&lt;/span&gt; &lt;span class=&quot;consoleSharp&quot;&gt;#&lt;/span&gt; cp /sbin/mdadm /usr/src/initramfs/bin
&lt;span class=&quot;consoleName&quot;&gt;livecd&lt;/span&gt; &lt;span class=&quot;consolePath&quot;&gt;initramfs&lt;/span&gt; &lt;span class=&quot;consoleSharp&quot;&gt;#&lt;/span&gt; cp /sbin/cryptsetup /usr/src/initramfs/bin
&lt;span class=&quot;consoleName&quot;&gt;livecd&lt;/span&gt; &lt;span class=&quot;consolePath&quot;&gt;initramfs&lt;/span&gt; &lt;span class=&quot;consoleSharp&quot;&gt;#&lt;/span&gt; cp /usr/sbin/sshd /usr/src/initramfs/bin/
&lt;span class=&quot;consoleName&quot;&gt;livecd&lt;/span&gt; &lt;span class=&quot;consolePath&quot;&gt;initramfs&lt;/span&gt; &lt;span class=&quot;consoleSharp&quot;&gt;#&lt;/span&gt; cp /usr/sbin/MAKEDEV /usr/src/initramfs/bin/&lt;/pre&gt;
&lt;/div&gt;

&lt;h4&gt;&lt;a name=&quot;sshd&quot; id=&quot;sshd&quot;&gt;Sshd&lt;/a&gt;&lt;/h4&gt;
&lt;div class=&quot;level4&quot;&gt;
&lt;pre class=&quot;console&quot;&gt;
&lt;span class=&quot;consoleName&quot;&gt;livecd&lt;/span&gt; &lt;span class=&quot;consolePath&quot;&gt;initramfs&lt;/span&gt; &lt;span class=&quot;consoleSharp&quot;&gt;#&lt;/span&gt; mkdir /usr/src/initramfs/etc/ssh
&lt;span class=&quot;consoleName&quot;&gt;livecd&lt;/span&gt; &lt;span class=&quot;consolePath&quot;&gt;initramfs&lt;/span&gt; &lt;span class=&quot;consoleSharp&quot;&gt;#&lt;/span&gt; cd /usr/src/initramfs/etc/ssh
&lt;span class=&quot;consoleName&quot;&gt;livecd&lt;/span&gt; &lt;span class=&quot;consolePath&quot;&gt;ssh&lt;/span&gt; &lt;span class=&quot;consoleSharp&quot;&gt;#&lt;/span&gt; echo &quot;Protocol 2&quot; &amp;#62; sshd_config
&lt;span class=&quot;consoleName&quot;&gt;livecd&lt;/span&gt; &lt;span class=&quot;consolePath&quot;&gt;ssh&lt;/span&gt; &lt;span class=&quot;consoleSharp&quot;&gt;#&lt;/span&gt; echo &quot;PermitRootLogin yes&quot; &amp;#62;&amp;#62; sshd_config
&lt;span class=&quot;consoleName&quot;&gt;livecd&lt;/span&gt; &lt;span class=&quot;consolePath&quot;&gt;ssh&lt;/span&gt; &lt;span class=&quot;consoleSharp&quot;&gt;#&lt;/span&gt; echo &quot;UsePrivilegeSeparation no&quot; &amp;#62;&amp;#62; sshd_config
&lt;span class=&quot;consoleName&quot;&gt;livecd&lt;/span&gt; &lt;span class=&quot;consolePath&quot;&gt;ssh&lt;/span&gt; &lt;span class=&quot;consoleSharp&quot;&gt;#&lt;/span&gt; /usr/bin/ssh-keygen -t rsa1 -f /usr/src/initramfs/etc/ssh/ssh_host_key -N &quot;&quot;
&lt;span class=&quot;consoleName&quot;&gt;livecd&lt;/span&gt; &lt;span class=&quot;consolePath&quot;&gt;ssh&lt;/span&gt; &lt;span class=&quot;consoleSharp&quot;&gt;#&lt;/span&gt; /usr/bin/ssh-keygen -t dsa -f /usr/src/initramfs/etc/ssh/ssh_host_dsa_key -N &quot;&quot;
&lt;span class=&quot;consoleName&quot;&gt;livecd&lt;/span&gt; &lt;span class=&quot;consolePath&quot;&gt;ssh&lt;/span&gt; &lt;span class=&quot;consoleSharp&quot;&gt;#&lt;/span&gt; /usr/bin/ssh-keygen -t rsa -f /usr/src/initramfs/etc/ssh/ssh_host_rsa_key -N &quot;&quot;&lt;/pre&gt;
&lt;/div&gt;

&lt;h4&gt;&lt;a name=&quot;screen&quot; id=&quot;screen&quot;&gt;Screen&lt;/a&gt;&lt;/h4&gt;
&lt;div class=&quot;level4&quot;&gt;

&lt;p&gt;

we are going to use screen to have the same terminal on computer screen but also by ssh:
&lt;/p&gt;
&lt;pre class=&quot;console&quot;&gt;
&lt;span class=&quot;consoleName&quot;&gt;livecd&lt;/span&gt; &lt;span class=&quot;consolePath&quot;&gt;initramfs&lt;/span&gt; &lt;span class=&quot;consoleSharp&quot;&gt;#&lt;/span&gt; cp /usr/bin/screen /usr/src/initramfs/usr/bin/
&lt;span class=&quot;consoleName&quot;&gt;livecd&lt;/span&gt; &lt;span class=&quot;consolePath&quot;&gt;initramfs&lt;/span&gt; &lt;span class=&quot;consoleSharp&quot;&gt;#&lt;/span&gt; mkdir -p /usr/src/initramfs/etc/terminfo/x/
&lt;span class=&quot;consoleName&quot;&gt;livecd&lt;/span&gt; &lt;span class=&quot;consolePath&quot;&gt;initramfs&lt;/span&gt; &lt;span class=&quot;consoleSharp&quot;&gt;#&lt;/span&gt; mkdir -p /usr/src/initramfs/etc/terminfo/l/
&lt;span class=&quot;consoleName&quot;&gt;livecd&lt;/span&gt; &lt;span class=&quot;consolePath&quot;&gt;initramfs&lt;/span&gt; &lt;span class=&quot;consoleSharp&quot;&gt;#&lt;/span&gt; cp /etc/terminfo/x/xterm /usr/src/initramfs/etc/terminfo/x/
&lt;span class=&quot;consoleName&quot;&gt;livecd&lt;/span&gt; &lt;span class=&quot;consolePath&quot;&gt;initramfs&lt;/span&gt; &lt;span class=&quot;consoleSharp&quot;&gt;#&lt;/span&gt; cp /etc/terminfo/l/linux /usr/src/initramfs/etc/terminfo/l/
&lt;span class=&quot;consoleName&quot;&gt;livecd&lt;/span&gt; &lt;span class=&quot;consolePath&quot;&gt;initramfs&lt;/span&gt; &lt;span class=&quot;consoleSharp&quot;&gt;#&lt;/span&gt; mkdir -p /usr/src/initramfs/var/run/screen
&lt;span class=&quot;consoleName&quot;&gt;livecd&lt;/span&gt; &lt;span class=&quot;consolePath&quot;&gt;initramfs&lt;/span&gt; &lt;span class=&quot;consoleSharp&quot;&gt;#&lt;/span&gt; cd /usr/src/initramfs/bin
&lt;span class=&quot;consoleName&quot;&gt;livecd&lt;/span&gt; &lt;span class=&quot;consolePath&quot;&gt;bin&lt;/span&gt; &lt;span class=&quot;consoleSharp&quot;&gt;#&lt;/span&gt; ln -s busybox sh
&lt;span class=&quot;consoleName&quot;&gt;livecd&lt;/span&gt; &lt;span class=&quot;consolePath&quot;&gt;bin&lt;/span&gt; &lt;span class=&quot;consoleSharp&quot;&gt;#&lt;/span&gt; echo '#!/bin/sh' &amp;#62; screensh
&lt;span class=&quot;consoleName&quot;&gt;livecd&lt;/span&gt; &lt;span class=&quot;consolePath&quot;&gt;bin&lt;/span&gt; &lt;span class=&quot;consoleSharp&quot;&gt;#&lt;/span&gt; echo 'screen -Rx' &amp;#62;&amp;#62; screensh
&lt;span class=&quot;consoleName&quot;&gt;livecd&lt;/span&gt; &lt;span class=&quot;consolePath&quot;&gt;bin&lt;/span&gt; &lt;span class=&quot;consoleSharp&quot;&gt;#&lt;/span&gt; chmod +x screensh
&lt;span class=&quot;consoleName&quot;&gt;livecd&lt;/span&gt; &lt;span class=&quot;consolePath&quot;&gt;bin&lt;/span&gt; &lt;span class=&quot;consoleSharp&quot;&gt;#&lt;/span&gt; echo &quot;root:x:0:0:Linux User,,,:/:/bin/screensh&quot; &amp;#62; /usr/src/initramfs/etc/passwd
&lt;span class=&quot;consoleName&quot;&gt;livecd&lt;/span&gt; &lt;span class=&quot;consolePath&quot;&gt;bin&lt;/span&gt; &lt;span class=&quot;consoleSharp&quot;&gt;#&lt;/span&gt; echo &quot;root:x:0:&quot; &amp;#62; /usr/src/initramfs/etc/group
&lt;span class=&quot;consoleName&quot;&gt;livecd&lt;/span&gt; &lt;span class=&quot;consolePath&quot;&gt;bin&lt;/span&gt; &lt;span class=&quot;consoleSharp&quot;&gt;#&lt;/span&gt; echo &quot;root:x:14698:0:99999:7:::&quot; &amp;#62; /usr/src/initramfs/etc/shadow&lt;/pre&gt;


&lt;/div&gt;

&lt;h4&gt;&lt;a name=&quot;udev&quot; id=&quot;udev&quot;&gt;udev&lt;/a&gt;&lt;/h4&gt;
&lt;div class=&quot;level4&quot;&gt;
&lt;pre class=&quot;console&quot;&gt;
&lt;span class=&quot;consoleName&quot;&gt;livecd&lt;/span&gt; &lt;span class=&quot;consolePath&quot;&gt;bin&lt;/span&gt; &lt;span class=&quot;consoleSharp&quot;&gt;#&lt;/span&gt; cp /sbin/udev* /usr/src/initramfs/sbin/&lt;/pre&gt;

&lt;pre class=&quot;console&quot;&gt;
&lt;span class=&quot;consoleName&quot;&gt;livecd&lt;/span&gt; &lt;span class=&quot;consolePath&quot;&gt;bin&lt;/span&gt; &lt;span class=&quot;consoleSharp&quot;&gt;#&lt;/span&gt; cd /usr/src/initramfs/dev
&lt;span class=&quot;consoleName&quot;&gt;livecd&lt;/span&gt; &lt;span class=&quot;consolePath&quot;&gt;dev&lt;/span&gt; &lt;span class=&quot;consoleSharp&quot;&gt;#&lt;/span&gt; mknod console c 5 1
&lt;span class=&quot;consoleName&quot;&gt;livecd&lt;/span&gt; &lt;span class=&quot;consolePath&quot;&gt;dev&lt;/span&gt; &lt;span class=&quot;consoleSharp&quot;&gt;#&lt;/span&gt; mknod null c 1 3&lt;/pre&gt;
&lt;/div&gt;

&lt;h4&gt;&lt;a name=&quot;copy libs&quot; id=&quot;copy libs&quot;&gt;Copy libs&lt;/a&gt;&lt;/h4&gt;
&lt;div class=&quot;level4&quot;&gt;
&lt;pre class=&quot;console&quot;&gt;
&lt;span class=&quot;consoleName&quot;&gt;livecd&lt;/span&gt; &lt;span class=&quot;consolePath&quot;&gt;dev&lt;/span&gt; &lt;span class=&quot;consoleSharp&quot;&gt;#&lt;/span&gt; cp -d /lib/* /usr/src/initramfs/lib/&lt;/pre&gt;


&lt;/div&gt;
&lt;!-- SECTION &quot;Copy applications to initramfs&quot; [1578-5723] --&gt;
&lt;h2&gt;&lt;a name=&quot;creation of init script&quot; id=&quot;creation of init script&quot;&gt;Creation of init script&lt;/a&gt;&lt;/h2&gt;
&lt;div class=&quot;level2&quot;&gt;
&lt;div class=&quot;code&quot;&gt;&lt;p class=&quot;codehead&quot;&gt;&lt;a name=&quot;usrsrcinitramfsinit&quot;&gt;/usr/src/initramfs/init&lt;/a&gt;&lt;/p&gt;&lt;pre class=&quot;code&quot;&gt;
#!/bin/busybox sh

SSH_IP=192.168.42.253
SSH_PORT=4224
SSH_IFACE=eth0
ROOT_DEVICE=/dev/mapper/md2
ROOT_PASSWD=&quot;password&quot;
ALLOW_SH=1

###################################################################
## func
###################################################################

rshell() {
    echo &quot;## bringing network on $SSH_IFACE:$SSH_IP&quot;
    ifconfig $SSH_IFACE $SSH_IP up
        /bin/sshd -p $SSH_PORT
}

mydev() {
    [ -c /dev/console ] || mknod -m 600 /dev/console c 5 1
    [ -c /dev/tty1 ] || mknod -m 620 /dev/tty1 c 4 1
    [ -c /dev/tty ] || mknod -m 666 /dev/tty c 5 0
    [ -c /dev/null ] || mknod -m 666 /dev/null c 1 3
    [ -c /dev/kmsg ] || mknod -m 660 /dev/kmsg c 1 11
    ln -snf /proc/self/fd /dev/fd
    ln -snf fd/0 /dev/stdin
    ln -snf fd/1 /dev/stdout
    ln -snf fd/2 /dev/stderr
    [ -e /proc/kcore ] &amp;#38;&amp;#38; ln -snf /proc/kcore /dev/core
    mkdir -p /dev/pts /dev/shm
    udevd --daemon
    udevadm control --env do_not_run_plug_service=1
    udevadm trigger --attr-match=dev
    udevadm trigger --subsystem-match=net
    udevadm settle  --timeout=60
    udevadm control --env do_not_run_plug_service=
    mount -n -t devpts devpts /dev/pts
    MAKEDEV -d ptmx
}

sysinit() {
    echo &quot;#############################################################&quot;
    echo &quot;##Awired initramfs&quot;
    echo &quot;#############################################################&quot;

    echo &quot;## Loading keyboard map&quot;
    loadkmap &amp;#60; keymap.bin

    echo &quot;## Install busybox&quot;
    busybox --install -s

    echo &quot;## Mount the /proc and /sys filesystems&quot;
    mount -n -t proc proc /proc
    mount -n -t sysfs sysfs /sys

    echo &quot;## Populating /dev with udev&quot;
    mydev

    echo &quot;## change root password&quot;
    echo &quot;root:$ROOT_PASSWD&quot; | chpasswd

    echo &quot;## Running remote shell with sshd&quot;
    rshell

    echo &quot;## run screen&quot;
    screen ./init &quot;lets go&quot;

    while [ `cat /proc/mounts | grep /new | wc -l` == 0 ]
    do
        screen ./init &quot;Trying to switch_root but /new is not mounted !!!!!!&quot; &quot;1&quot;
    done

        echo &quot;## Clean up&quot;
        killall sshd
        killall udevd
        umount /dev/pts
        umount /proc
        umount /sys

    echo &quot;## switch root to /new&quot;
    exec switch_root /new /sbin/init
}

tshell() {
    if [ $ALLOW_SH == &quot;1&quot; ]; then
        echo &quot;## drop you to a shell : $1&quot;
        /bin/sh --noprofile
    fi
}

ucryptdd() {
    cd /dev/
    # uncrypt raid drives
    for i in $( ls -1 md? ); do
            if [[ &quot;$i&quot; == &quot;md0&quot; || &quot;$i&quot; == &quot;md1&quot; ]] ; then
                    echo &quot;## skipping $i&quot;;
            else
                    echo &quot;## trying to uncrypt : $i&quot;;
                    cryptsetup luksOpen /dev/$i $i;
            fi
    done

    # uncrypt non raid drives
    for i in $( ls -1 sd?? ); do
            if grep -q &quot;$i&quot; &quot;/proc/mdstat&quot;; then
                    echo &quot;## skip $i as its in use by a raid array&quot;;
            else
                    echo &quot;## trying to uncrypt : $i&quot;;
                    cryptsetup luksOpen /dev/$i $i;
            fi
    done
}

###########################################################################

if [ -z &quot;$1&quot; ]; then
    sysinit
else

   if [ -z &quot;$2&quot; ]; then

        echo &quot;## Loading raid devices&quot;
        mdadm --auto-detect || tshell

        echo &quot;## uncrypt drives&quot;
        ucryptdd

        echo &quot;## mount swap&quot;
        cryptsetup -d /dev/urandom create swap /dev/md2
        mkswap /dev/mapper/swap
        swapon /dev/mapper/swap

        echo &quot;## Mount $ROOT_DEVICE&quot;
        mount -n $ROOT_DEVICE /new
    else
        tshell &quot;$1&quot;
    fi

    exit
fi&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;
Allow init script to be executed :

&lt;/p&gt;
&lt;pre class=&quot;console&quot;&gt;
&lt;span class=&quot;consoleName&quot;&gt;livecd&lt;/span&gt; &lt;span class=&quot;consolePath&quot;&gt;dev&lt;/span&gt; &lt;span class=&quot;consoleSharp&quot;&gt;#&lt;/span&gt; chmod +x /usr/src/initramfs/init&lt;/pre&gt;
&lt;/div&gt;
&lt;!-- SECTION &quot;Creation of init script&quot; [5724-9251] --&gt;
&lt;h2&gt;&lt;a name=&quot;add keymap&quot; id=&quot;add keymap&quot;&gt;Add keymap&lt;/a&gt;&lt;/h2&gt;
&lt;div class=&quot;level2&quot;&gt;

&lt;p&gt;

Create your keymap
&lt;/p&gt;
&lt;pre class=&quot;console&quot;&gt;
&lt;span class=&quot;consoleName&quot;&gt;livecd&lt;/span&gt; &lt;span class=&quot;consolePath&quot;&gt;dev&lt;/span&gt; &lt;span class=&quot;consoleSharp&quot;&gt;#&lt;/span&gt; busybox dumpkmap &amp;#62; /usr/src/initramfs/keymap.bin&lt;/pre&gt;
&lt;/div&gt;
&lt;!-- SECTION &quot;Add keymap&quot; [9252-9381] --&gt;
&lt;h2&gt;&lt;a name=&quot;generate initramfs image out of kernel&quot; id=&quot;generate initramfs image out of kernel&quot;&gt;Generate initramfs image out of kernel&lt;/a&gt;&lt;/h2&gt;
&lt;div class=&quot;level2&quot;&gt;
&lt;div class=&quot;code&quot;&gt;&lt;p class=&quot;codehead&quot;&gt;&lt;a name=&quot;usrsrcinitramfsgen.sh&quot;&gt;/usr/src/initramfs/gen.sh&lt;/a&gt;&lt;/p&gt;&lt;pre class=&quot;code&quot;&gt;
mount /boot
find . -print0 | cpio -ov -0 --format=newc | gzip -9 &amp;#62; /boot/initramfs.gz&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;
Allow generate script to be executed :

&lt;/p&gt;
&lt;pre class=&quot;console&quot;&gt;
&lt;span class=&quot;consoleName&quot;&gt;livecd&lt;/span&gt; &lt;span class=&quot;consolePath&quot;&gt;dev&lt;/span&gt; &lt;span class=&quot;consoleSharp&quot;&gt;#&lt;/span&gt; chmod +x /usr/src/initramfs/gen.sh&lt;/pre&gt;
&lt;/div&gt;
&lt;!-- SECTION &quot;Generate initramfs image out of kernel&quot; [9382-9676] --&gt;
&lt;h2&gt;&lt;a name=&quot;genererate initramfs&quot; id=&quot;genererate initramfs&quot;&gt;genererate initramfs&lt;/a&gt;&lt;/h2&gt;
&lt;div class=&quot;level2&quot;&gt;
&lt;pre class=&quot;console&quot;&gt;
&lt;span class=&quot;consoleName&quot;&gt;livecd&lt;/span&gt; &lt;span class=&quot;consolePath&quot;&gt;dev&lt;/span&gt; &lt;span class=&quot;consoleSharp&quot;&gt;#&lt;/span&gt; cd /usr/src/initramfs/
&lt;span class=&quot;consoleName&quot;&gt;livecd&lt;/span&gt; &lt;span class=&quot;consolePath&quot;&gt;initramfs&lt;/span&gt; &lt;span class=&quot;consoleSharp&quot;&gt;#&lt;/span&gt; ./gen.sh&lt;/pre&gt;
&lt;/div&gt;
&lt;!-- SECTION &quot;genererate initramfs&quot; [9677-9798] --&gt;
&lt;h2&gt;&lt;a name=&quot;rebuild openssh&quot; id=&quot;rebuild openssh&quot;&gt;Rebuild openssh&lt;/a&gt;&lt;/h2&gt;
&lt;div class=&quot;level2&quot;&gt;

&lt;p&gt;

Openssh was compiled as static and you will not work on default gentoo configuration, so we will reemerge it without static flag
&lt;/p&gt;
&lt;div class=&quot;code&quot;&gt;&lt;p class=&quot;codehead&quot;&gt;&lt;a name=&quot;etcportagepackage.use&quot;&gt;/etc/portage/package.use&lt;/a&gt;&lt;/p&gt;&lt;pre class=&quot;code&quot;&gt;
#net-misc/openssh static
sys-apps/busybox static
sys-fs/mdadm static&lt;/pre&gt;&lt;/div&gt;&lt;pre class=&quot;console&quot;&gt;
&lt;span class=&quot;consoleName&quot;&gt;livecd&lt;/span&gt; &lt;span class=&quot;consolePath&quot;&gt;initramfs&lt;/span&gt; &lt;span class=&quot;consoleSharp&quot;&gt;#&lt;/span&gt; emerge -a openssh&lt;/pre&gt;
&lt;/div&gt;
&lt;!-- SECTION &quot;Rebuild openssh&quot; [9799-] --&gt;</description>
    </item>
    <item rdf:about="http://hive.awired.net/hive/system/gentoo/usefull%20tools">
        <dc:format>text/html</dc:format>
        <dc:date>2010-08-10T13:29:05+02:00</dc:date>
        <title></title>
        <link>http://hive.awired.net/hive/system/gentoo/usefull%20tools</link>
        <description>
&lt;p&gt;
###################
date: 15/12/2009
category: Remember
###################
&lt;div class=&quot;level3&quot;&gt;

&lt;p&gt;

fully recompilation
&lt;/p&gt;
&lt;pre class=&quot;console&quot;&gt;
&lt;span class=&quot;consoleName&quot;&gt;localhost&lt;/span&gt; &lt;span class=&quot;consolePath&quot;&gt;~&lt;/span&gt; &lt;span class=&quot;consoleSharp&quot;&gt;#&lt;/span&gt; emerge --update --deep --newuse world&lt;/pre&gt;
&lt;p&gt;
delete useless packets
&lt;/p&gt;
&lt;pre class=&quot;console&quot;&gt;
&lt;span class=&quot;consoleName&quot;&gt;localhost&lt;/span&gt; &lt;span class=&quot;consolePath&quot;&gt;~&lt;/span&gt; &lt;span class=&quot;consoleSharp&quot;&gt;#&lt;/span&gt; emerge -p --depclean&lt;/pre&gt;
&lt;/div&gt;
&lt;!-- SECTION &quot;emerge&quot; [78-275] --&gt;
&lt;h3&gt;&lt;a name=&quot;equery&quot; id=&quot;equery&quot;&gt;equery&lt;/a&gt;&lt;/h3&gt;
&lt;div class=&quot;level3&quot;&gt;

&lt;p&gt;

You need to emerge &lt;code&gt;gentoolkit&lt;/code&gt; in order to use the equery commands
&lt;/p&gt;

&lt;p&gt;
list every installed package or return the targeted package (if it&amp;#039;s installed) 
&lt;/p&gt;
&lt;pre class=&quot;console&quot;&gt;
&lt;span class=&quot;consoleName&quot;&gt;localhost&lt;/span&gt; &lt;span class=&quot;consolePath&quot;&gt;~&lt;/span&gt; &lt;span class=&quot;consoleSharp&quot;&gt;#&lt;/span&gt; equery l&lt;/pre&gt;
&lt;p&gt;

or

&lt;/p&gt;
&lt;pre class=&quot;console&quot;&gt;
&lt;span class=&quot;consoleName&quot;&gt;localhost&lt;/span&gt; &lt;span class=&quot;consolePath&quot;&gt;~&lt;/span&gt; &lt;span class=&quot;consoleSharp&quot;&gt;#&lt;/span&gt; equery l apache&lt;/pre&gt;
&lt;p&gt;
return direct dependency of targeted package
&lt;/p&gt;
&lt;pre class=&quot;console&quot;&gt;
&lt;span class=&quot;consoleName&quot;&gt;localhost&lt;/span&gt; &lt;span class=&quot;consolePath&quot;&gt;~&lt;/span&gt; &lt;span class=&quot;consoleSharp&quot;&gt;#&lt;/span&gt; equery d apache&lt;/pre&gt;
&lt;p&gt;
list owning package of targeted file
&lt;/p&gt;
&lt;pre class=&quot;console&quot;&gt;
&lt;span class=&quot;consoleName&quot;&gt;localhost&lt;/span&gt; &lt;span class=&quot;consolePath&quot;&gt;~&lt;/span&gt; &lt;span class=&quot;consoleSharp&quot;&gt;#&lt;/span&gt; equery b /etc/apache.httpd.conf&lt;/pre&gt;
&lt;/div&gt;
&lt;!-- SECTION &quot;equery&quot; [276-757] --&gt;
&lt;h3&gt;&lt;a name=&quot;eselect&quot; id=&quot;eselect&quot;&gt;eselect&lt;/a&gt;&lt;/h3&gt;
&lt;div class=&quot;level3&quot;&gt;

&lt;/div&gt;
&lt;!-- SECTION &quot;eselect&quot; [758-779] --&gt;
&lt;h3&gt;&lt;a name=&quot;update packages&quot; id=&quot;update packages&quot;&gt;Update packages&lt;/a&gt;&lt;/h3&gt;
&lt;div class=&quot;level3&quot;&gt;

&lt;p&gt;

To update packages without having depency problems like blocking packages,
you have to update with the option –tree :
&lt;/p&gt;
&lt;pre class=&quot;console&quot;&gt;
&lt;span class=&quot;consoleName&quot;&gt;localhost&lt;/span&gt; &lt;span class=&quot;consolePath&quot;&gt;~&lt;/span&gt; &lt;span class=&quot;consoleSharp&quot;&gt;#&lt;/span&gt; emerge -avDu world --tree&lt;/pre&gt;
&lt;/div&gt;
&lt;!-- SECTION &quot;Update packages&quot; [780-991] --&gt;
&lt;h2&gt;&lt;a name=&quot;portage utils&quot; id=&quot;portage utils&quot;&gt;Portage utils&lt;/a&gt;&lt;/h2&gt;
&lt;div class=&quot;level2&quot;&gt;

&lt;p&gt;

With &lt;em&gt;portage-utils&lt;/em&gt; you can see package dependencies :
&lt;/p&gt;
&lt;pre class=&quot;console&quot;&gt;
&lt;span class=&quot;consoleSharp&quot;&gt;#&lt;/span&gt; qdepends -Q foo&lt;/pre&gt;
&lt;/div&gt;
&lt;!-- SECTION &quot;Portage utils&quot; [992-1119] --&gt;
&lt;h2&gt;&lt;a name=&quot;licenses&quot; id=&quot;licenses&quot;&gt;Licenses&lt;/a&gt;&lt;/h2&gt;
&lt;div class=&quot;level2&quot;&gt;

&lt;p&gt;

if you have something like this on emerging a package :
&lt;/p&gt;
&lt;pre class=&quot;console&quot;&gt;
!!! The following installed packages are masked:
- dev-java/sun-jdk-1.6.0.13 (masked by: dlj-1.1 license(s))
A copy of the 'dlj-1.1' license is located at '/usr/portage/licenses/dlj-1.1'.&lt;/pre&gt;
&lt;p&gt;
What to do :

&lt;/p&gt;
&lt;div class=&quot;code&quot;&gt;&lt;p class=&quot;codehead&quot;&gt;&lt;a name=&quot;etcmake.conf&quot;&gt;/etc/make.conf&lt;/a&gt;&lt;/p&gt;&lt;pre class=&quot;code&quot;&gt;
...
ACCEPT_LICENSE=&quot;*&quot;
...&lt;/pre&gt;&lt;/div&gt;
&lt;p&gt;
Or if you want to accept only this license
&lt;/p&gt;
&lt;div class=&quot;code&quot;&gt;&lt;p class=&quot;codehead&quot;&gt;&lt;a name=&quot;etcmake.conf&quot;&gt;/etc/make.conf&lt;/a&gt;&lt;/p&gt;&lt;pre class=&quot;code&quot;&gt;
...
ACCEPT_LICENSE=&quot;dlj-1.1&quot;
...&lt;/pre&gt;&lt;/div&gt;
&lt;/div&gt;
&lt;!-- SECTION &quot;Licenses&quot; [1120-] --&gt;</description>
    </item>
</rdf:RDF>
