<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>WiredRevolution.com &#187; gentoo</title>
	<atom:link href="http://www.wiredrevolution.com/category/gentoo/feed" rel="self" type="application/rss+xml" />
	<link>http://www.wiredrevolution.com</link>
	<description>A Bit of Linux Wisdom</description>
	<lastBuildDate>Wed, 18 Jan 2012 22:45:50 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3</generator>
		<item>
		<title>Setup NFS server on Gentoo</title>
		<link>http://www.wiredrevolution.com/gentoo/setup-nfs-server-on-gentoo?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=setup-nfs-server-on-gentoo</link>
		<comments>http://www.wiredrevolution.com/gentoo/setup-nfs-server-on-gentoo#comments</comments>
		<pubDate>Thu, 19 Mar 2009 12:08:51 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[gentoo]]></category>
		<category><![CDATA[/etc/exports]]></category>
		<category><![CDATA[/proc/config.gz]]></category>
		<category><![CDATA[emerge]]></category>
		<category><![CDATA[menuconfig]]></category>
		<category><![CDATA[NFS]]></category>
		<category><![CDATA[nfs-utils]]></category>
		<category><![CDATA[rc-update]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[showmount]]></category>

		<guid isPermaLink="false">http://www.wiredrevolution.com/?p=1014</guid>
		<description><![CDATA[<img src="http://www.wiredrevolution.com/wp-content/uploads/gentoo_icon.png" width="80" height="82" alt="" title="gentoo" /><br/>Setting up a NFS server on Gentoo doesn&#8217;t have to be difficult. Here I will explain how to setup a basic NFS server in just a few steps. The fist step is to become root. $ su - Your Gentoo kernel must be compiled with support for both NFS server and client. You can check [...]


Related posts<ol><li><a href='http://www.wiredrevolution.com/gentoo/run-a-command-at-boot-with-gentoo' rel='bookmark' title='Permanent Link: Run a command at boot with Gentoo'>Run a command at boot with Gentoo</a></li>
<li><a href='http://www.wiredrevolution.com/gentoo/upgrade-gentoo-linux-kernel' rel='bookmark' title='Permanent Link: Upgrade Gentoo Linux Kernel'>Upgrade Gentoo Linux Kernel</a></li>
<li><a href='http://www.wiredrevolution.com/gentoo/install-java-browser-plugin-gentoo' rel='bookmark' title='Permanent Link: Install Java browser plugin in Gentoo'>Install Java browser plugin in Gentoo</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<img src="http://www.wiredrevolution.com/wp-content/uploads/gentoo_icon.png" width="80" height="82" alt="" title="gentoo" /><br/><p>Setting up a NFS server on Gentoo doesn&#8217;t have to be difficult. Here I will explain how to setup a basic NFS server in just a few steps.</p>
<p>The fist step is to become root.</p>
<pre>
$ su -
</pre>
<p>Your Gentoo kernel must be compiled with support for both NFS server and client. You can check for this in a couple ways.</p>
<p>If you manually built your kernel you can do the following to check for support.</p>
<pre>
# cd /usr/src/linux
# make menuconfig
</pre>
<p>The following options should be enabled in the kernel.</p>
<p><strong>File Systems</strong> &#8212;><br />
<strong>Network File Systems</strong> &#8212;><br />
<*> NFS file system support<br />
[*] Provide NFSv3 client support<br />
<*> NFS server support<br />
[*] Provide NFSv3 server support</p>
<p>It should look similar to this.</p>
<p style="text-align: center;">
<img src="http://www.wiredrevolution.com/wp-content/uploads/2009/03/make_menuconfig_nfs.gif" alt="make_menuconfig_nfs" title="make_menuconfig_nfs" width="500" height="307" class="aligncenter size-full wp-image-1022" />
</p>
<p>Alternatively you may be able to check your configuration settings in <strong>/proc/config.gz</strong>.</p>
<pre>
# zcat /proc/config.gz | grep NFS
</pre>
<p>Here are the important lines to look for.</p>
<pre>
...
#
# Network File Systems
#
CONFIG_NFS_FS=y
CONFIG_NFS_V3=y
# CONFIG_NFS_V4 is not set
# CONFIG_NFS_DIRECTIO is not set
CONFIG_NFSD=y
CONFIG_NFSD_V3=y
# CONFIG_NFSD_V4 is not set
# CONFIG_NFSD_TCP is not set
...
</pre>
<p>If your configuration lacks these options you will need to rebuild your kernel.</p>
<p>Once you verified your kernel has NFS support go ahead and emerge the <strong>nfs-utils</strong> package. This package contains all the user-space programs to setup NFS.</p>
<pre>
# emerge nfs-utils
</pre>
<p>You should now edit <strong>/etc/exports</strong> which tells NFS which filesystems should be shared.</p>
<pre>
# vim /etc/exports
</pre>
<p>Here is a basic entry example. Here the /mnt/storage directory will be shared to all computers on 192.168.1.* network. The share options will allow for secure read and write access to the NFS volume.</p>
<pre>
/mnt/storage 192.168.1.0/24(rw,sync,no_subtree_check)
</pre>
<p>Now start the NFS service.</p>
<pre>
# /etc/init.d/nfs start
</pre>
<p>Congratulations you should now have a working NFS server, but there are still a couple things to do.</p>
<p>Add this service to your default run level. This will automatically start the service every time the system boots. </p>
<pre>
# rc-update add nfs default
</pre>
<p>The <strong>showmount</strong> command can be used to check which NFS volumes are exported.</p>
<pre>
# showmount -e [host]
</pre>
<p>If you make any changes to the <strong>/etc/exports</strong> file you need to reload the NFS service for these changes to take effect.</p>
<pre>
# /etc/init.d/nfs reload
</pre>


<p>Related posts<ol><li><a href='http://www.wiredrevolution.com/gentoo/run-a-command-at-boot-with-gentoo' rel='bookmark' title='Permanent Link: Run a command at boot with Gentoo'>Run a command at boot with Gentoo</a></li>
<li><a href='http://www.wiredrevolution.com/gentoo/upgrade-gentoo-linux-kernel' rel='bookmark' title='Permanent Link: Upgrade Gentoo Linux Kernel'>Upgrade Gentoo Linux Kernel</a></li>
<li><a href='http://www.wiredrevolution.com/gentoo/install-java-browser-plugin-gentoo' rel='bookmark' title='Permanent Link: Install Java browser plugin in Gentoo'>Install Java browser plugin in Gentoo</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.wiredrevolution.com/gentoo/setup-nfs-server-on-gentoo/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>View the status of a long emerge</title>
		<link>http://www.wiredrevolution.com/gentoo/view-the-status-of-a-long-emerge?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=view-the-status-of-a-long-emerge</link>
		<comments>http://www.wiredrevolution.com/gentoo/view-the-status-of-a-long-emerge#comments</comments>
		<pubDate>Wed, 31 Dec 2008 14:13:29 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[gentoo]]></category>
		<category><![CDATA[emerge]]></category>
		<category><![CDATA[emerge.log]]></category>
		<category><![CDATA[portage]]></category>
		<category><![CDATA[status]]></category>
		<category><![CDATA[tail]]></category>
		<category><![CDATA[update]]></category>
		<category><![CDATA[watch]]></category>

		<guid isPermaLink="false">http://www.wiredrevolution.com/?p=896</guid>
		<description><![CDATA[<img src="http://www.wiredrevolution.com/wp-content/uploads/gentoo_icon.png" width="80" height="82" alt="" title="gentoo" /><br/>At certain times while using Gentoo you are going to have to perform a large emerge, for example when you do an update world. It can be challenging to keep track of the status of this emerge with all the output flying by on the screen. It can also become a problem if you want [...]


Related posts<ol><li><a href='http://www.wiredrevolution.com/commands/view-program-output-with-watch' rel='bookmark' title='Permanent Link: View program output with watch'>View program output with watch</a></li>
<li><a href='http://www.wiredrevolution.com/gentoo/speed-up-gentoo-emerge-with-parallel-fetch' rel='bookmark' title='Permanent Link: Speed up Gentoo emerge with &#8220;parallel-fetch&#8221;'>Speed up Gentoo emerge with &#8220;parallel-fetch&#8221;</a></li>
<li><a href='http://www.wiredrevolution.com/bash-programming/find-the-exit-status-of-a-previous-command-in-bash' rel='bookmark' title='Permanent Link: Find the exit status of a previous command in Bash'>Find the exit status of a previous command in Bash</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<img src="http://www.wiredrevolution.com/wp-content/uploads/gentoo_icon.png" width="80" height="82" alt="" title="gentoo" /><br/><p>At certain times while using Gentoo you are going to have to perform a large emerge, for example when you do an update world. It can be challenging to keep track of the status of this emerge with all the output flying by on the screen. It can also become a problem if you want to check on the status from another machine that did not initiate the emerge.</p>
<p>Thankfully you can check the <strong>/var/log/emerge.log</strong> and get the current status.</p>
<p>Run this command to see the last 10 lines of the log.</p>
<pre>
$ sudo tail /var/log/emerge.log
</pre>
<p>You can combine this command with <strong>watch</strong> and get real-time updates.  This command will automatically update every second.</p>
<pre>
$ watch -n 1 "sudo tail /var/log/emerge.log"
</pre>
<p>Likewise you can use the &#8216;<strong>-f</strong>&#8216; tail option to get updates.</p>
<pre>
$ sudo tail -f /var/log/emerge.log
</pre>


<p>Related posts<ol><li><a href='http://www.wiredrevolution.com/commands/view-program-output-with-watch' rel='bookmark' title='Permanent Link: View program output with watch'>View program output with watch</a></li>
<li><a href='http://www.wiredrevolution.com/gentoo/speed-up-gentoo-emerge-with-parallel-fetch' rel='bookmark' title='Permanent Link: Speed up Gentoo emerge with &#8220;parallel-fetch&#8221;'>Speed up Gentoo emerge with &#8220;parallel-fetch&#8221;</a></li>
<li><a href='http://www.wiredrevolution.com/bash-programming/find-the-exit-status-of-a-previous-command-in-bash' rel='bookmark' title='Permanent Link: Find the exit status of a previous command in Bash'>Find the exit status of a previous command in Bash</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.wiredrevolution.com/gentoo/view-the-status-of-a-long-emerge/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Upgrade Gentoo Linux Kernel</title>
		<link>http://www.wiredrevolution.com/gentoo/upgrade-gentoo-linux-kernel?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=upgrade-gentoo-linux-kernel</link>
		<comments>http://www.wiredrevolution.com/gentoo/upgrade-gentoo-linux-kernel#comments</comments>
		<pubDate>Mon, 10 Nov 2008 13:05:18 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[gentoo]]></category>
		<category><![CDATA[config]]></category>
		<category><![CDATA[emerge]]></category>
		<category><![CDATA[gentoo-sources]]></category>
		<category><![CDATA[grub]]></category>
		<category><![CDATA[grub.conf]]></category>
		<category><![CDATA[kernel]]></category>
		<category><![CDATA[make]]></category>
		<category><![CDATA[menuconfig]]></category>
		<category><![CDATA[modules_install]]></category>
		<category><![CDATA[oldonfig]]></category>
		<category><![CDATA[update]]></category>

		<guid isPermaLink="false">http://www.wiredrevolution.com/?p=639</guid>
		<description><![CDATA[<img src="http://www.wiredrevolution.com/wp-content/uploads/gentoo_icon.png" width="80" height="82" alt="" title="gentoo" /><br/>Updating your kernel is important if you want to take advantage of new hardware support or bleeding edge features.  Aside from these obvious benefits it also allows you to keep up with security patches, system optimization, and overall stability issues. The first thing you have to do is emerge the latest gentoo-sources package. # emerge [...]


Related posts<ol><li><a href='http://www.wiredrevolution.com/gentoo/setup-nfs-server-on-gentoo' rel='bookmark' title='Permanent Link: Setup NFS server on Gentoo'>Setup NFS server on Gentoo</a></li>
<li><a href='http://www.wiredrevolution.com/gentoo/update-your-entire-gentoo-linux-system' rel='bookmark' title='Permanent Link: Update your entire Gentoo Linux system'>Update your entire Gentoo Linux system</a></li>
<li><a href='http://www.wiredrevolution.com/system-administration/install-the-grub-boot-loader-to-the-mbr' rel='bookmark' title='Permanent Link: Install the GRUB boot loader to the MBR'>Install the GRUB boot loader to the MBR</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<img src="http://www.wiredrevolution.com/wp-content/uploads/gentoo_icon.png" width="80" height="82" alt="" title="gentoo" /><br/><p>Updating your kernel is important if you want to take advantage of new hardware support or bleeding edge features.  Aside from these obvious benefits it also allows you to keep up with security patches, system optimization, and overall stability issues.</p>
<p>The first thing you have to do is emerge the latest <strong>gentoo-sources</strong> package.</p>
<pre>
# emerge -u gentoo-sources
</pre>
<p>The source will now be installed in <strong>/usr/src/linux-2.6.27-gentoo-r2</strong>.  Your specific version will differ from this one of course.</p>
<p>You now need to update the symlink to point to the new sources.</p>
<pre>
# cd /usr/src
# ln -s linux-2.6.27-gentoo-r2 linux
</pre>
<p>If your kernel is configured to store a copy of its current configuration in <strong>/proc/config.gz</strong> you can use those choices to start building your new kernel by copying and uncompressing this stored copy.</p>
<pre>
# zcat /proc/config.gz > /usr/src/linux/.config
</pre>
<p>If your current kernel doesn&#8217;t support this you can copy the configuration file from the old sources.</p>
<pre>
# cp /usr/src/linux-2.6.27-gentoo-r2/.config /usr/src/linux/.config
</pre>
<p>Move to the /usr/src/linux directory.</p>
<pre>
# cd /usr/src/linux
</pre>
<p>If you upgrade you kernel on a regular basis you can safely run <strong>make oldconfig</strong> to configure your new kernel options.  This will take your old kernel options and walk you through the configuration changes.</p>
<pre>
# make oldconfig
</pre>
<p>If its been awhile use <strong>make menuconfig</strong> instead. This will give you more context when making configuration choices.</p>
<pre>
# make menuconfig
</pre>
<p>Once the new kernel is configured it is time to build it as well as any modules you have specified.</p>
<pre>
# make &#038;&#038; make modules_install
</pre>
<p>If this completes successfully you new kernel image will be placed here: <strong>/usr/src/linux-2.6.27-gentoo-r2/arch/x86_64/boot/bzImage</strong>.</p>
<p>Copy this image to the <strong>/boot</strong> directory. You should rename it to differentiate it from past kernels.</p>
<pre>
# cp /usr/src/linux-2.6.27-gentoo-r2/arch/x86_64/boot/bzImage /boot/kernel-2.6.27-gentoo-r2
</pre>
<p>Finally in order to use this image you will have to update your bootloader, such as <strong>grub</strong>, and add a new entry for the kernel image you have just placed in the /boot directory.</p>
<p>Update <strong>grub.conf</strong> located here:<strong> /boot/grub/grub.conf</strong>. Keep your old kernel entry  until you have verified your new kernel works correctly.</p>
<pre>
# New Gentoo Kernel
title Gentoo Linux 2.6.27-r2
root(hd0,0)
kernel /boot/kernel-2.6.27-gentoo-r2 root=/dev/sda0

# old Gentoo Kernel
title Gentoo Linux 2.6.27-r1
root(hd0,0)
kernel /boot/kernel-2.6.27-gentoo-r1 root=/dev/sda0
</pre>
<p>To use the new kernel reboot and select this new entry at the bootloader screen.</p>


<p>Related posts<ol><li><a href='http://www.wiredrevolution.com/gentoo/setup-nfs-server-on-gentoo' rel='bookmark' title='Permanent Link: Setup NFS server on Gentoo'>Setup NFS server on Gentoo</a></li>
<li><a href='http://www.wiredrevolution.com/gentoo/update-your-entire-gentoo-linux-system' rel='bookmark' title='Permanent Link: Update your entire Gentoo Linux system'>Update your entire Gentoo Linux system</a></li>
<li><a href='http://www.wiredrevolution.com/system-administration/install-the-grub-boot-loader-to-the-mbr' rel='bookmark' title='Permanent Link: Install the GRUB boot loader to the MBR'>Install the GRUB boot loader to the MBR</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.wiredrevolution.com/gentoo/upgrade-gentoo-linux-kernel/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Set DHCP timeout in Gentoo</title>
		<link>http://www.wiredrevolution.com/gentoo/set-dhcp-timeout-in-gentoo?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=set-dhcp-timeout-in-gentoo</link>
		<comments>http://www.wiredrevolution.com/gentoo/set-dhcp-timeout-in-gentoo#comments</comments>
		<pubDate>Tue, 04 Nov 2008 13:27:21 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[gentoo]]></category>
		<category><![CDATA[/etc/conf.d/net]]></category>
		<category><![CDATA[dhcp]]></category>
		<category><![CDATA[dhcpcd]]></category>
		<category><![CDATA[timeout]]></category>

		<guid isPermaLink="false">http://www.wiredrevolution.com/?p=608</guid>
		<description><![CDATA[<img src="http://www.wiredrevolution.com/wp-content/uploads/gentoo_icon.png" width="80" height="82" alt="" title="gentoo" /><br/>The default DHCP timeout is nearly 30 seconds on most Gentoo Linux systems. This can be a frustrating on startup if you already have wireless connected but are forced to wait on an unused ethernet interface. On most networks the DHCP timeout can be safely lowered without problems. DHCP can be provided by many different [...]


Related posts<ol><li><a href='http://www.wiredrevolution.com/gentoo/upgrade-gentoo-linux-kernel' rel='bookmark' title='Permanent Link: Upgrade Gentoo Linux Kernel'>Upgrade Gentoo Linux Kernel</a></li>
<li><a href='http://www.wiredrevolution.com/gentoo/setup-nfs-server-on-gentoo' rel='bookmark' title='Permanent Link: Setup NFS server on Gentoo'>Setup NFS server on Gentoo</a></li>
<li><a href='http://www.wiredrevolution.com/gentoo/install-java-browser-plugin-gentoo' rel='bookmark' title='Permanent Link: Install Java browser plugin in Gentoo'>Install Java browser plugin in Gentoo</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<img src="http://www.wiredrevolution.com/wp-content/uploads/gentoo_icon.png" width="80" height="82" alt="" title="gentoo" /><br/><p>The default DHCP timeout is nearly 30 seconds on most Gentoo Linux systems. This can be a frustrating on startup if you already have wireless connected but are forced to wait on an unused ethernet interface. On most networks the DHCP timeout can be safely lowered without problems.</p>
<p>DHCP can be provided by many different modules, but I am assuming that you have the <strong>dhcpcd</strong> client installed for this example.</p>
<p>To change the timeout you need to add the following line to the networking configuration file located at <strong>/etc/conf.d/net</strong>.</p>
<pre>
dhcpcd_eth0="-t 3"
</pre>
<p>This line will set the DHCP timeout to 3 seconds for the &#8216;<strong>eth0</strong>&#8216; interface.</p>


<p>Related posts<ol><li><a href='http://www.wiredrevolution.com/gentoo/upgrade-gentoo-linux-kernel' rel='bookmark' title='Permanent Link: Upgrade Gentoo Linux Kernel'>Upgrade Gentoo Linux Kernel</a></li>
<li><a href='http://www.wiredrevolution.com/gentoo/setup-nfs-server-on-gentoo' rel='bookmark' title='Permanent Link: Setup NFS server on Gentoo'>Setup NFS server on Gentoo</a></li>
<li><a href='http://www.wiredrevolution.com/gentoo/install-java-browser-plugin-gentoo' rel='bookmark' title='Permanent Link: Install Java browser plugin in Gentoo'>Install Java browser plugin in Gentoo</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.wiredrevolution.com/gentoo/set-dhcp-timeout-in-gentoo/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Install Java browser plugin in Gentoo</title>
		<link>http://www.wiredrevolution.com/gentoo/install-java-browser-plugin-gentoo?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=install-java-browser-plugin-gentoo</link>
		<comments>http://www.wiredrevolution.com/gentoo/install-java-browser-plugin-gentoo#comments</comments>
		<pubDate>Sun, 02 Nov 2008 22:05:57 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[gentoo]]></category>
		<category><![CDATA[32-bit]]></category>
		<category><![CDATA[about:plugins]]></category>
		<category><![CDATA[browser]]></category>
		<category><![CDATA[emerge]]></category>
		<category><![CDATA[equery]]></category>
		<category><![CDATA[eselect]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[java]]></category>
		<category><![CDATA[jre]]></category>
		<category><![CDATA[make.conf]]></category>
		<category><![CDATA[nsplugin]]></category>
		<category><![CDATA[package.use]]></category>
		<category><![CDATA[plugin]]></category>
		<category><![CDATA[portage]]></category>
		<category><![CDATA[USE flags]]></category>

		<guid isPermaLink="false">http://www.wiredrevolution.com/?p=572</guid>
		<description><![CDATA[<img src="http://www.wiredrevolution.com/wp-content/uploads/gentoo_icon.png" width="80" height="82" alt="" title="gentoo" /><br/>To run Java code on a Gentoo system you must have a JRE (Java Runtime Environment) installed. The JRE will install a 32-bit browser plugin, among other things, which is necessary to take advantage of Java applets in Firefox. Before we go any further, it must be noted that this will only work with the [...]


Related posts<ol><li><a href='http://www.wiredrevolution.com/gentoo/update-your-entire-gentoo-linux-system' rel='bookmark' title='Permanent Link: Update your entire Gentoo Linux system'>Update your entire Gentoo Linux system</a></li>
<li><a href='http://www.wiredrevolution.com/gentoo/speed-up-gentoo-emerge-with-parallel-fetch' rel='bookmark' title='Permanent Link: Speed up Gentoo emerge with &#8220;parallel-fetch&#8221;'>Speed up Gentoo emerge with &#8220;parallel-fetch&#8221;</a></li>
<li><a href='http://www.wiredrevolution.com/gentoo/upgrade-gentoo-linux-kernel' rel='bookmark' title='Permanent Link: Upgrade Gentoo Linux Kernel'>Upgrade Gentoo Linux Kernel</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<img src="http://www.wiredrevolution.com/wp-content/uploads/gentoo_icon.png" width="80" height="82" alt="" title="gentoo" /><br/><p>To run Java code on a Gentoo system you must have a JRE (Java Runtime Environment) installed. The JRE will install a 32-bit browser plugin, among other things, which is necessary to take advantage of Java applets in Firefox.</p>
<p>Before we go any further, it must be noted that this will only work with the 32-bit version of Firefox.  This is because the binary JRE package is only distributed in 32-bit and is therefore incompatible with the 64-bit version of Firefox. If you run a 64-bit system make sure that you have emerged the <strong>www-client/mozilla-firefox-bin</strong> package to get the 32-bit browser.</p>
<p>There are numerous JRE packages within portage, but the recommended package to emerge is <strong>dev-java/sun-jre-bin</strong>. Don&#8217;t confuse the JRE with JDK (Java Development Kit) which will add unnecessary Java programming tools to the installation.</p>
<p>To get the browser plugin you must enable the <strong>nsplugin</strong> USE flag when emerging the JRE. You can add this to your global USE flags by placing it directly into the <strong>make.conf</strong> file. </p>
<p>If you don&#8217;t want every package capable of installing a plugin to do so, you can limit the flag to this package only by adding the following entry to <strong>/etc/portage/package.use</strong>.</p>
<pre>
dev-java/sun-jre-bin nsplugin
</pre>
<p>Once the nsplugin flag is set to your liking then go ahead and emerge the JRE. </p>
<pre>
# emerge -av dev-java/sun-jre-bin
</pre>
<p>The &#8216;<strong>-v</strong>&#8216; and &#8216;<strong>-a</strong>&#8216; options will allow you view the USE flags that are enabled, and confirm they are correct before allowing it to continue.</p>
<p>If you are running an amd64 system then you will need to emerge the <strong>app-emulation/emul-linux-x86-java</strong> package as well. This package contains the basic 32-bit libraries needed to run the 32-bit JRE binaries on your 64-bit system.</p>
<p>You will need the nsplugin USE flag enabled for this package as well. If you didn&#8217;t add the keyword to your global USE flags in the previous step, add the following entry to <strong>/etc/portage/package.use</strong>.</p>
<pre>
app-emulation/emul-linux-x86-java nsplugin
</pre>
<p>Now emerge the package, again making sure the USE flags are correct.</p>
<pre>
# emerge -av app-emulation/emul-linux-x86-java
</pre>
<p>You will now have to configure your system to use the JRE with the <strong>eselect</strong> command utility.</p>
<p>Use this for a x86 system.</p>
<pre>
# eselect java-nsplugin set sun-jre-bin-1.6
</pre>
<p>Use this for an amd64 system.</p>
<pre>
# eselect java-nsplugin set 32bit emul-linux-x86-java-1.6
</pre>
<p>Once all of these steps have been completed you can verify that everything is correct by running.</p>
<pre>
# eselect java-nsplugin list
</pre>
<pre>
Available 32-bit Java browser plugins
  [1]   emul-linux-x86-java-1.6  current
Available 64-bit Java browser plugins
</pre>
<p>Check that Firefox has found the plugin by opening up a new window and entering <strong>about:plugins</strong> in the address bar. You should now see the Java plugin listed.</p>


<p>Related posts<ol><li><a href='http://www.wiredrevolution.com/gentoo/update-your-entire-gentoo-linux-system' rel='bookmark' title='Permanent Link: Update your entire Gentoo Linux system'>Update your entire Gentoo Linux system</a></li>
<li><a href='http://www.wiredrevolution.com/gentoo/speed-up-gentoo-emerge-with-parallel-fetch' rel='bookmark' title='Permanent Link: Speed up Gentoo emerge with &#8220;parallel-fetch&#8221;'>Speed up Gentoo emerge with &#8220;parallel-fetch&#8221;</a></li>
<li><a href='http://www.wiredrevolution.com/gentoo/upgrade-gentoo-linux-kernel' rel='bookmark' title='Permanent Link: Upgrade Gentoo Linux Kernel'>Upgrade Gentoo Linux Kernel</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.wiredrevolution.com/gentoo/install-java-browser-plugin-gentoo/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Run a command at boot with Gentoo</title>
		<link>http://www.wiredrevolution.com/gentoo/run-a-command-at-boot-with-gentoo?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=run-a-command-at-boot-with-gentoo</link>
		<comments>http://www.wiredrevolution.com/gentoo/run-a-command-at-boot-with-gentoo#comments</comments>
		<pubDate>Mon, 27 Oct 2008 12:41:33 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[gentoo]]></category>
		<category><![CDATA[boot]]></category>
		<category><![CDATA[init scripts]]></category>
		<category><![CDATA[local.start]]></category>
		<category><![CDATA[local.stop]]></category>
		<category><![CDATA[rc-update]]></category>
		<category><![CDATA[rc.local]]></category>

		<guid isPermaLink="false">http://www.wiredrevolution.com/?p=536</guid>
		<description><![CDATA[<img src="http://www.wiredrevolution.com/wp-content/uploads/gentoo_icon.png" width="80" height="82" alt="" title="gentoo" /><br/>Normally in Gentoo you would want to create an init script via rc-update to start a service at boot. However if there are a few miscellaneous commands you would like to run you can add them to local.start. The local.start init script is similar to rc.local in other distributions. It is the last init script [...]


Related posts<ol><li><a href='http://www.wiredrevolution.com/gentoo/upgrade-gentoo-linux-kernel' rel='bookmark' title='Permanent Link: Upgrade Gentoo Linux Kernel'>Upgrade Gentoo Linux Kernel</a></li>
<li><a href='http://www.wiredrevolution.com/gentoo/setup-nfs-server-on-gentoo' rel='bookmark' title='Permanent Link: Setup NFS server on Gentoo'>Setup NFS server on Gentoo</a></li>
<li><a href='http://www.wiredrevolution.com/gentoo/update-your-entire-gentoo-linux-system' rel='bookmark' title='Permanent Link: Update your entire Gentoo Linux system'>Update your entire Gentoo Linux system</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<img src="http://www.wiredrevolution.com/wp-content/uploads/gentoo_icon.png" width="80" height="82" alt="" title="gentoo" /><br/><p>Normally in Gentoo you would want to create an init script via <strong>rc-update</strong> to start a service at boot.  However if there are a few miscellaneous commands you would like to run you can add them to <strong>local.start</strong>.</p>
<p>The local.start init script is similar to <strong>rc.local</strong> in other distributions. It is the last init script to be run after all other services have been started at the end of the boot process.</p>
<p>Add your commands to local.start file located here.<br />
<strong>/etc/conf.d/local.start</strong></p>
<p>You can also make commands run when the system is shutdown.  These commands should be placed in <strong>local.stop</strong> located here.<br />
<strong>/etc/conf.d/local.stop</strong> </p>


<p>Related posts<ol><li><a href='http://www.wiredrevolution.com/gentoo/upgrade-gentoo-linux-kernel' rel='bookmark' title='Permanent Link: Upgrade Gentoo Linux Kernel'>Upgrade Gentoo Linux Kernel</a></li>
<li><a href='http://www.wiredrevolution.com/gentoo/setup-nfs-server-on-gentoo' rel='bookmark' title='Permanent Link: Setup NFS server on Gentoo'>Setup NFS server on Gentoo</a></li>
<li><a href='http://www.wiredrevolution.com/gentoo/update-your-entire-gentoo-linux-system' rel='bookmark' title='Permanent Link: Update your entire Gentoo Linux system'>Update your entire Gentoo Linux system</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.wiredrevolution.com/gentoo/run-a-command-at-boot-with-gentoo/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Update your entire Gentoo Linux system</title>
		<link>http://www.wiredrevolution.com/gentoo/update-your-entire-gentoo-linux-system?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=update-your-entire-gentoo-linux-system</link>
		<comments>http://www.wiredrevolution.com/gentoo/update-your-entire-gentoo-linux-system#comments</comments>
		<pubDate>Fri, 10 Oct 2008 12:42:55 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[gentoo]]></category>
		<category><![CDATA[emerge]]></category>
		<category><![CDATA[gentoolkit]]></category>
		<category><![CDATA[make.conf]]></category>
		<category><![CDATA[oneshot]]></category>
		<category><![CDATA[parallel-fetch]]></category>
		<category><![CDATA[portage]]></category>
		<category><![CDATA[revdep-rebuild]]></category>
		<category><![CDATA[sudo]]></category>
		<category><![CDATA[sync]]></category>
		<category><![CDATA[USE flags]]></category>
		<category><![CDATA[world]]></category>

		<guid isPermaLink="false">http://www.wiredrevolution.com/?p=264</guid>
		<description><![CDATA[<img src="http://www.wiredrevolution.com/wp-content/uploads/gentoo_icon.png" width="80" height="82" alt="" title="gentoo" /><br/>Gentoo Portage makes it fairly easy to update all the installed packages on your system. The emerge and revdep-rebuild tools are powerful and make the process of recompiling everything much less painful than it sounds. The emerge and revdep-rebuild commands require root privileges so switch to root or use sudo. The first step is to [...]


Related posts<ol><li><a href='http://www.wiredrevolution.com/gentoo/speed-up-gentoo-emerge-with-parallel-fetch' rel='bookmark' title='Permanent Link: Speed up Gentoo emerge with &#8220;parallel-fetch&#8221;'>Speed up Gentoo emerge with &#8220;parallel-fetch&#8221;</a></li>
<li><a href='http://www.wiredrevolution.com/gentoo/install-java-browser-plugin-gentoo' rel='bookmark' title='Permanent Link: Install Java browser plugin in Gentoo'>Install Java browser plugin in Gentoo</a></li>
<li><a href='http://www.wiredrevolution.com/gentoo/view-the-status-of-a-long-emerge' rel='bookmark' title='Permanent Link: View the status of a long emerge'>View the status of a long emerge</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<img src="http://www.wiredrevolution.com/wp-content/uploads/gentoo_icon.png" width="80" height="82" alt="" title="gentoo" /><br/><p>Gentoo Portage makes it fairly easy to update all the installed packages on your system. The emerge and revdep-rebuild tools are powerful and make the process of recompiling everything much less painful than it sounds.</p>
<p>The emerge and revdep-rebuild commands require root privileges so switch to root or <a href="http://www.wiredrevolution.com/commands/submit-commands-as-root-with-sudo">use sudo</a>.</p>
<p>The first step is to synchronize your Portage tree with the latest mirror.  This command will get you information on the latest packages that are currently available. </p>
<pre>
# emerge --sync
</pre>
<p>Perform an &#8220;pretend&#8221; emerge to see what packages will be updated and installed on your system.</p>
<pre>
# emerge -uDNvp world
</pre>
<pre>
These are the packages that would be merged, in order:

Calculating world dependencies... done!
[ebuild     U ] dev-util/pkgconfig-0.23 [0.22] USE="-hardened" 1,009 kB
[ebuild     U ] media-sound/wavpack-4.50.1 [4.41.0] USE="mmx" 367 kB
[ebuild     U ] dev-libs/gmp-4.2.2-r2 [4.2.2] USE="-doc -nocxx" 0 kB
.
.
.
[ebuild  N    ] sys-apps/man-pages-posix-2003a  949 kB 

Total: 149 packages (100 upgrades, 36 new, 2 in new slots, 11 reinstalls), Size of downloads: 354,800 kB
</pre>
<p>Lets go over these options.</p>
<p><strong>-u</strong> update packages<br />
<strong>-D</strong> consider entire dependency tree for all packages<br />
<strong>-N</strong> include packages with USE flag changes<br />
<strong>-v</strong> verbose emerge output<br />
<strong>-p</strong> pretend to do the emerge</p>
<p>The &#8216;<strong>world</strong>&#8216; argument tells emerge to use the list of packages in your world file.  This list contains all packages that have been directly emerged on your system.  These packages do not include dependences or packages that were emerged using the &#8216;<strong>&#8211;oneshot</strong>&#8216; option. Your world file is located here <strong>/var/lib/portage/world</strong>.</p>
<p>The output of this command will tell you one of two things.  Either everything is good and you can go ahead and perform the update, or Portage has found some conflicts such as blocking packages that must be fixed before you continue. Hopefully the former is the case, but if there are conflicts Portage messages will usually point you in the right direction.</p>
<p>Before performing the actual update you can <a href="http://www.wiredrevolution.com/gentoo/speed-up-gentoo-emerge-with-parallel-fetch">use the parallel-fetch feature</a> to speed up the package downloads and shorten the update process. To do this add the following line to <strong>/etc/make.conf</strong>.</p>
<pre>
FEATURES="parallel-fetch"
</pre>
<p>If there are no Portage issues, you have reviewed the list of packages to be installed and everything looks correct, then you can start the update. To perform the update run the same command as before but remove the &#8216;<strong>-p</strong>&#8216; option.</p>
<pre>
# emerge -uDNv world
</pre>
<p>Occasionally a system update will break shared library dependencies as an upgraded package may no longer be compatible with packages which use it. Enter the <strong>revdep-rebuild</strong> reverse dependency re-builder tool. </p>
<p>The revdep-rebuild tool is part of the <strong>gentoolkit</strong> package which you must emerge first.</p>
<p>Run this command after a large system update to ensure all packages are in good shape.</p>
<pre>
# revdep-rebuild
</pre>
<p>This command will scan your system for missing shared library dependencies and fix them by re-emerging those missing packages.</p>


<p>Related posts<ol><li><a href='http://www.wiredrevolution.com/gentoo/speed-up-gentoo-emerge-with-parallel-fetch' rel='bookmark' title='Permanent Link: Speed up Gentoo emerge with &#8220;parallel-fetch&#8221;'>Speed up Gentoo emerge with &#8220;parallel-fetch&#8221;</a></li>
<li><a href='http://www.wiredrevolution.com/gentoo/install-java-browser-plugin-gentoo' rel='bookmark' title='Permanent Link: Install Java browser plugin in Gentoo'>Install Java browser plugin in Gentoo</a></li>
<li><a href='http://www.wiredrevolution.com/gentoo/view-the-status-of-a-long-emerge' rel='bookmark' title='Permanent Link: View the status of a long emerge'>View the status of a long emerge</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.wiredrevolution.com/gentoo/update-your-entire-gentoo-linux-system/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Speed up Gentoo emerge with &#8220;parallel-fetch&#8221;</title>
		<link>http://www.wiredrevolution.com/gentoo/speed-up-gentoo-emerge-with-parallel-fetch?utm_source=rss&#038;utm_medium=rss&#038;utm_campaign=speed-up-gentoo-emerge-with-parallel-fetch</link>
		<comments>http://www.wiredrevolution.com/gentoo/speed-up-gentoo-emerge-with-parallel-fetch#comments</comments>
		<pubDate>Mon, 29 Sep 2008 00:03:03 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[gentoo]]></category>
		<category><![CDATA[emerge]]></category>
		<category><![CDATA[make.conf]]></category>
		<category><![CDATA[parallel-fetch]]></category>
		<category><![CDATA[portage]]></category>

		<guid isPermaLink="false">http://www.wiredrevolution.com/?p=160</guid>
		<description><![CDATA[<img src="http://www.wiredrevolution.com/wp-content/uploads/gentoo_icon.png" width="80" height="82" alt="" title="gentoo" /><br/>By default when you emerge a long list of packages in Gentoo you have to download each package completely before the build process can begin. This can be a large bottleneck, especially if your internet connection is not very fast. Luckily Portage has a great solution. Go to the file /etc/make.conf and add &#8220;parallel-fetch&#8221; to [...]


Related posts<ol><li><a href='http://www.wiredrevolution.com/gentoo/update-your-entire-gentoo-linux-system' rel='bookmark' title='Permanent Link: Update your entire Gentoo Linux system'>Update your entire Gentoo Linux system</a></li>
<li><a href='http://www.wiredrevolution.com/gentoo/view-the-status-of-a-long-emerge' rel='bookmark' title='Permanent Link: View the status of a long emerge'>View the status of a long emerge</a></li>
<li><a href='http://www.wiredrevolution.com/gentoo/install-java-browser-plugin-gentoo' rel='bookmark' title='Permanent Link: Install Java browser plugin in Gentoo'>Install Java browser plugin in Gentoo</a></li>
</ol>]]></description>
			<content:encoded><![CDATA[<img src="http://www.wiredrevolution.com/wp-content/uploads/gentoo_icon.png" width="80" height="82" alt="" title="gentoo" /><br/><p>By default when you emerge a long list of packages in Gentoo you have to download each package completely before the build process can begin. This can be a large bottleneck, especially if your internet connection is not very fast.</p>
<p>Luckily Portage has a great solution. </p>
<p>Go to the file <strong>/etc/make.conf</strong> and add &#8220;<strong>parallel-fetch</strong>&#8221; to the <strong>FEATURES</strong> variable like this.</p>
<pre>
FEATURES="parallel-fetch"
</pre>
<p>If the <strong>FEATURE</strong> variable already exists add &#8220;<strong>parallel-fetch</strong>&#8221; to the end separated by whitespace.</p>
<pre>
FEATURES="sandbox parallel-fetch"
</pre>
<p>From now on Portage will fetch the source files for the next package in the list even while it is compiling another package.</p>
<p>To see parallel fetch progress, run this command.</p>
<pre>
$ tail -f /var/log/emerge-fetch.log
</pre>


<p>Related posts<ol><li><a href='http://www.wiredrevolution.com/gentoo/update-your-entire-gentoo-linux-system' rel='bookmark' title='Permanent Link: Update your entire Gentoo Linux system'>Update your entire Gentoo Linux system</a></li>
<li><a href='http://www.wiredrevolution.com/gentoo/view-the-status-of-a-long-emerge' rel='bookmark' title='Permanent Link: View the status of a long emerge'>View the status of a long emerge</a></li>
<li><a href='http://www.wiredrevolution.com/gentoo/install-java-browser-plugin-gentoo' rel='bookmark' title='Permanent Link: Install Java browser plugin in Gentoo'>Install Java browser plugin in Gentoo</a></li>
</ol></p>]]></content:encoded>
			<wfw:commentRss>http://www.wiredrevolution.com/gentoo/speed-up-gentoo-emerge-with-parallel-fetch/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

