<?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>ryanschwartz.net &#187; Linux</title>
	<atom:link href="http://ryanschwartz.net/category/computers/linux/feed" rel="self" type="application/rss+xml" />
	<link>http://ryanschwartz.net</link>
	<description>Some pages about some stuff and things...</description>
	<lastBuildDate>Tue, 20 Dec 2011 23:16:13 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0</generator>
		<item>
		<title>Installing java on CentOS</title>
		<link>http://ryanschwartz.net/2008/06/11/installing-java-on-centos</link>
		<comments>http://ryanschwartz.net/2008/06/11/installing-java-on-centos#comments</comments>
		<pubDate>Wed, 11 Jun 2008 20:38:20 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://ryanschwartz.net/?p=532</guid>
		<description><![CDATA[You&#8217;d think it would be harder, but it&#8217;s not. Not that it&#8217;s documented well anywhere, which is why I&#8217;m writing this. Go to java.com. Download the linux RPM installer for your cpu type. sh /path/to/downloaded.rpm.bin follow the bouncing ball. And &#8230; <a href="http://ryanschwartz.net/2008/06/11/installing-java-on-centos">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>You&#8217;d think it would be harder, but it&#8217;s not. Not that it&#8217;s documented well anywhere, which is why I&#8217;m writing this.</p>
<ol>
<li>Go to <a href="http://java.com/">java.com</a>.</li>
<li>Download the linux RPM installer for your cpu type.</li>
<li>sh /path/to/downloaded.rpm.bin</li>
<li>follow the bouncing ball.</li>
</ol>
<p>And that&#8217;s it.</p>
<p><code><br />
[mycentosvm:~] root# java -version<br />
java version "1.6.0_06"<br />
Java(TM) SE Runtime Environment (build 1.6.0_06-b02)<br />
Java HotSpot(TM) 64-Bit Server VM (build 10.0-b22, mixed mode)<br />
</code></p>
]]></content:encoded>
			<wfw:commentRss>http://ryanschwartz.net/2008/06/11/installing-java-on-centos/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Radmind Wizardry</title>
		<link>http://ryanschwartz.net/2004/10/27/radmind-wizardry</link>
		<comments>http://ryanschwartz.net/2004/10/27/radmind-wizardry#comments</comments>
		<pubDate>Wed, 27 Oct 2004 15:35:02 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mac OS X]]></category>

		<guid isPermaLink="false">/?p=129</guid>
		<description><![CDATA[How to add support for new hardware to an existing base load These directions describe how to add support for new hardware into an existing base load]]></description>
			<content:encoded><![CDATA[<p><a href="https://mailman.rice.edu/pipermail/radmind/2003-March/002241.html"> How to add support for new hardware to an existing base load<br />
   </a><br />
These directions describe how to add support for new hardware into an<br />
existing base load</p>
]]></content:encoded>
			<wfw:commentRss>http://ryanschwartz.net/2004/10/27/radmind-wizardry/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>cat a binary and screw up your terminal?</title>
		<link>http://ryanschwartz.net/2004/08/26/mucked-up-terminal</link>
		<comments>http://ryanschwartz.net/2004/08/26/mucked-up-terminal#comments</comments>
		<pubDate>Fri, 27 Aug 2004 00:18:16 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mac OS X]]></category>

		<guid isPermaLink="false">/?p=101</guid>
		<description><![CDATA[via unixtips.org When your term can&#8217;t display the correct char after you cat a binary file try the following command to reset it: echo CTRL-V ESC c]]></description>
			<content:encoded><![CDATA[<p>via <a href="http://www.unixtips.org/index.php3?catList=1">unixtips.org</a><br />
When your term can&#8217;t display the correct char after you cat a binary file try the following command to reset it:<br />
<code>echo CTRL-V ESC c</code></p>
]]></content:encoded>
			<wfw:commentRss>http://ryanschwartz.net/2004/08/26/mucked-up-terminal/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>crib sheet: ssh single-login/no password</title>
		<link>http://ryanschwartz.net/2004/06/15/crib-sheet-ssh-single-loginno-password</link>
		<comments>http://ryanschwartz.net/2004/06/15/crib-sheet-ssh-single-loginno-password#comments</comments>
		<pubDate>Tue, 15 Jun 2004 16:42:01 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mac OS X]]></category>

		<guid isPermaLink="false">/?p=70</guid>
		<description><![CDATA[via: Robert Citek - crib sheet: ssh single-login/no password ( was Re: ssh-keygen ) How to set up a no-password ssh connection from A to B, where A &#038;&#038; B == trusted machines == blank passphrase 1) generate private/public keys &#8230; <a href="http://ryanschwartz.net/2004/06/15/crib-sheet-ssh-single-loginno-password">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><code>via: <a href="http://www.cygwin.com/ml/cygwin/2003-03/msg00289.html">Robert Citek - crib sheet: ssh single-login/no password ( was Re: ssh-keygen )</a></code><br />
How to set up a no-password ssh connection from A to B, where A &#038;&#038; B == trusted machines<span id="more-70"></span></p>
<p>== blank passphrase</p>
<p>1) generate private/public keys on A<br />
   $ ssh-keygen -t dsa<br />
   press enter when it asks for the filename<br />
   press enter when it asks for the passphrase (yes, a blank passphrase)<br />
   this will generate two files: ~/.ssh/id_dsa and ~/.ssh/id_dsa.pub</p>
<p>2) put ~/.ssh/id_dsa.pub from A into ~/.ssh/authorized_keys2 on B<br />
   $ cat ~/.ssh/id_dsa.pub | ssh B &#8216;cat >> ~/.ssh/authorized_keys2&#8242;</p>
<p>3) make sure all files are not writable or readable except by owner<br />
   do this on A and B<br />
   $ chmod a-x,go-w,o-r ~/.ssh/*</p>
<p>4) verify it works<br />
   $ ssh B ls -la</p>
<p>== single-logon</p>
<p>1) generate private/public keys on A<br />
   $ ssh-keygen -t dsa<br />
   press enter when it asks for the filename<br />
   enter a passphrase<br />
   this will generate two files: ~/.ssh/id_dsa and ~/.ssh/id_dsa.pub</p>
<p>2) put ~/.ssh/id_dsa.pub from A in ~/.ssh/authorized_keys2 on B<br />
   $ cat ~/.ssh/id_dsa.pub | ssh B &#8216;cat >> ~/.ssh/authorized_keys2&#8242;</p>
<p>3) make sure all files are not writable or readable except by owner<br />
   do this on A and B<br />
   $ chmod a-x,go-w,o-r ~/.ssh/*</p>
<p>4) use ssh-agent to manage passphrases<br />
   $ eval $(ssh-agent)</p>
<p>5) make agent aware of passphrases<br />
   $ ssh-add   # enter the appropriate passphrase for each remote host</p>
<p>6) verify everything works<br />
   $ ssh B ls -la</p>
]]></content:encoded>
			<wfw:commentRss>http://ryanschwartz.net/2004/06/15/crib-sheet-ssh-single-loginno-password/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>deleting files with find</title>
		<link>http://ryanschwartz.net/2004/05/24/deleting-files-with-find</link>
		<comments>http://ryanschwartz.net/2004/05/24/deleting-files-with-find#comments</comments>
		<pubDate>Mon, 24 May 2004 20:07:54 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Mac OS X]]></category>

		<guid isPermaLink="false">/?p=44</guid>
		<description><![CDATA[To delete files matching *searchstring*, use the following: user# find . -name "*searchstring*" -exec rm {} ; Probably a good idea to run it without -exec rm {} ; first to see what you&#8217;d be deleting. Oh, and the space &#8230; <a href="http://ryanschwartz.net/2004/05/24/deleting-files-with-find">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>To delete files matching *searchstring*, use the following:</p>
<pre>user# find . -name "*searchstring*" -exec rm {} ;</pre>
<p>Probably a good idea to run it without</p>
<pre>-exec rm {} ;</pre>
<p>first to see what you&#8217;d be deleting.</p>
<p>Oh, and the space after the {} really is important &#8211; the command won&#8217;t do anything unless it&#8217;s there&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://ryanschwartz.net/2004/05/24/deleting-files-with-find/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Rebuilding Ethernet drivers on a DL360 GL2</title>
		<link>http://ryanschwartz.net/2004/05/03/rebuilding-ethernet-drivers-on-a-dl360-gl2</link>
		<comments>http://ryanschwartz.net/2004/05/03/rebuilding-ethernet-drivers-on-a-dl360-gl2#comments</comments>
		<pubDate>Mon, 03 May 2004 18:17:08 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">/?p=30</guid>
		<description><![CDATA[Quick notes for updating the bcm5700 driver on RedHat EL3 after updating the kernel&#8230; 1. update your kernel 1.1. shell to the box as root (yeah, I know&#8230; don&#8217;t use root, use su. your choice, either way works) 2. Visit &#8230; <a href="http://ryanschwartz.net/2004/05/03/rebuilding-ethernet-drivers-on-a-dl360-gl2">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Quick notes for updating the bcm5700 driver on RedHat EL3 after updating the kernel&#8230;<span id="more-30"></span><br />
1. update your kernel<br />
1.1. shell to the box as root (yeah, I know&#8230; don&#8217;t use root, use su. your choice, either way works)<br />
2. Visit <a href="http://h18023.www1.hp.com/support/files/server/us/locate/101_2543.html">http://h18023.www1.hp.com/support/files/server/us/locate/101_2543.html</a> and grab the URL for the newest source RPM for the 77XX series ethernet adapter.<br />
3. curl -O the.url.to.the.source.rpm<br />
4. # cd /usr/src/linux-< kernel_version ><br />
	# make mrproper<br />
	# make -e KERNELRELEASE=`uname -r` oldconfig<br />
	# make -e KERNELRELEASE=`uname -r` dep<br />
5. 	# cd /usr/src/linux-< kernel -version ><br />
	# rpm -ivh bcm5700-< version >.src.rpm<br />
5.1 Build the binary RPM for the bcm5700 driver.<br />
	# cd /usr/src/redhat<br />
	# rpmbuild -bb SPECS/bcm5700.spec</p>
<p>6. Check to see what&#8217;s currently installed, if any.<br />
         # rpm -q bcm5700</p>
<p>        If an old version of the package exists, the RPM package should be<br />
        removed.</p>
<p>        # rpm -e bcm5700</p>
<p>        Then remove the loaded bcm5700 module.</p>
<p>        # rmmod bcm5700</p>
<p>        Verify that the old bcm5700 package has been removed as follows:</p>
<p>        # rpm -q bcm5700<br />
7.  Install the new rpm<br />
# rpm -ivh RPMS/i386/bcm5700-< version >.i386.rpm &#8211;force<br />
8. Ensure that the /etc/modules.conf file is configured similar to the<br />
   example listed below. The example below is presented as if more<br />
   than one adapter is present. If so, one eth# instance should exist<br />
   for each ethernet port. Refer to the modules.conf man page for more<br />
   information. </p>
<p>	alias eth0 bcm5700<br />
	alias eth1 bcm5700<br />
	alias eth# bcm5700<br />
9. You can now reboot your server. Upon reboot the network should<br />
   start with the bcm5700 driver loaded and the correct network<br />
   configuration. To verify that the bcm5700 driver is loaded, use<br />
   the following command.</p>
<p>	# lsmod</p>
<p>	If bcm5700 is listed then the bcm5700 driver loaded. If not and /etc/modules.conf lists the wrong driver for ethX, ifdown the interfaces, rmmod wrong_alias_name, edit /etc/modules.conf, replacing with alias ethX bcm5700, insmod bcm5700, and ifup the interfaces (or just edit /etc/modules.conf and reboot&#8230;)</p>
]]></content:encoded>
			<wfw:commentRss>http://ryanschwartz.net/2004/05/03/rebuilding-ethernet-drivers-on-a-dl360-gl2/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fedora Myth(TV)ology :: Welcome</title>
		<link>http://ryanschwartz.net/2004/04/20/fedora-mythtvology-welcome</link>
		<comments>http://ryanschwartz.net/2004/04/20/fedora-mythtvology-welcome#comments</comments>
		<pubDate>Wed, 21 Apr 2004 02:46:37 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">/?p=29</guid>
		<description><![CDATA[Fedora Myth(TV)ology :: Welcome Getting MythTV running on Fedora &#8211; couldn&#8217;t get much more focused than that, huh? Pretty cool&#8230;]]></description>
			<content:encoded><![CDATA[<p><a href="http://wilsonet.com/mythtv/index.php">Fedora Myth(TV)ology :: Welcome</a></p>
<p>Getting MythTV running on Fedora &#8211; couldn&#8217;t get much more focused than that, huh? Pretty cool&#8230;</p>
]]></content:encoded>
			<wfw:commentRss>http://ryanschwartz.net/2004/04/20/fedora-mythtvology-welcome/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>new vlan setup on redhat el3</title>
		<link>http://ryanschwartz.net/2004/04/06/new-vlan-setup</link>
		<comments>http://ryanschwartz.net/2004/04/06/new-vlan-setup#comments</comments>
		<pubDate>Tue, 06 Apr 2004 21:59:45 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">/?p=24</guid>
		<description><![CDATA[1. create a startup script in /etc/sysconfig/network-scripts, using another vlan&#8217;d interface as a template (ifcfg-ethX.vlan) 2. create a routing table in /etc/sysconfig/network-scripts, using another vlan&#8217;d route as a template (route-ethX.vlan) 3. add the new route to /etc/iproute2/rt_tables using an unused &#8230; <a href="http://ryanschwartz.net/2004/04/06/new-vlan-setup">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>1. create a startup script in /etc/sysconfig/network-scripts, using another vlan&#8217;d interface as a template (ifcfg-ethX.vlan)<br />
2. create a routing table in /etc/sysconfig/network-scripts, using another vlan&#8217;d route as a template (route-ethX.vlan)<br />
3. add the new route to /etc/iproute2/rt_tables using an unused table number (name needs to match what you specified your routing table)<br />
4. ifup the interface and ping it to be sure everything works (hint: make sure your switch has tagged the packets for the new vlan)<br />
See <a href="http://ryanschwartz.net/2004/03/17/advanced-linux-stuff">more info here&#8230;</a></p>
]]></content:encoded>
			<wfw:commentRss>http://ryanschwartz.net/2004/04/06/new-vlan-setup/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting MAC address on a VLAN interface, source-based routing, and kernel set routes</title>
		<link>http://ryanschwartz.net/2004/03/17/advanced-linux-stuff</link>
		<comments>http://ryanschwartz.net/2004/03/17/advanced-linux-stuff#comments</comments>
		<pubDate>Wed, 17 Mar 2004 16:51:58 +0000</pubDate>
		<dc:creator>Ryan</dc:creator>
				<category><![CDATA[Computers]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">/?p=8</guid>
		<description><![CDATA[here&#8217;s a synopsis of what I&#8217;ve found, and how I got things working as desired (I know there are others in similar situations with VLAN that might find this useful): ~If you want/need to set the MAC address on your &#8230; <a href="http://ryanschwartz.net/2004/03/17/advanced-linux-stuff">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>here&#8217;s a synopsis of what I&#8217;ve found, and how I got things working as desired (I know there are others in similar situations with VLAN that might find this useful)<span id="more-8"></span>:</p>
<p>~If you want/need to set the MAC address on your VLAN interface, include the parameter MACADDR=XX:XX:XX:XX:XX:XX in your /etc/sysconfig/network-scripts/ifcfg-eth* file.</p>
<p>~If you&#8217;d like to keep you traffic confined on it&#8217;s respective interface, you&#8217;ll probably want source-based routing. Look at <a href="http://lartc.org/howto/lartc.rpdb.multiple-links.html">http://lartc.org/howto/lartc.rpdb.multiple-links.html</a> and extrapolate/leave out what you don&#8217;t need. One caveat is that when using ip link set and ip address add (wether called by hand, homebrew script, or by Peter&#8217;s nasty ifup), the kernel will add a route for you that you (probably) don&#8217;t want in this scenario, since you&#8217;ll be creating separate routing tables for each interface.</p>
<p>~Here&#8217;s a patch for ifup-post (my system is kernel 2.4.21-9.EL on RedHat ESv3, YMMV) that will fixup (read: delete) the kernel added route if you define &#8216;ALLOW_KERNEL_ROUTE = no&#8217; in your  /etc/sysconfig/network-scripts/ifcfg-eth* file:</p>
<pre>
--- ifup-post.distro    2004-01-30 22:08:55.000000000 -0600
+++ ifup-post   2004-01-30 22:11:11.000000000 -0600
@@ -14,6 +14,12 @@

 /etc/sysconfig/network-scripts/ifup-routes ${DEVICE} ${DEVNAME}

+if [ "$ALLOW_KERNEL_ROUTE" = no ] ; then
+  expand_config
+  if ! ip ro del ${NETWORK}/${PREFIX} dev ${DEVICE}; then
+    echo "Sorry, but I wasn't able to delete the kernel added route..."
+  fi
+fi
 if [ "$PEERDNS" != "no" -o -n "$RESOLV_MODS" -a "$RESOLV_MODS" != "no" ]; then
   [ -n "$MS_DNS1" ] &#038;&#038; DNS1=$MS_DNS1
   [ -n "$MS_DNS2" ] &#038;&#038; DNS2=$MS_DNS2
</pre>
]]></content:encoded>
			<wfw:commentRss>http://ryanschwartz.net/2004/03/17/advanced-linux-stuff/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

