<?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>Coats Sez</title>
	<atom:link href="http://terrycoats.net/mywordpress/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://terrycoats.net/mywordpress</link>
	<description>random thoughts and observations</description>
	<lastBuildDate>Sat, 21 Aug 2010 09:19:51 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.8.4</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Linux video editors fail</title>
		<link>http://terrycoats.net/mywordpress/?p=791</link>
		<comments>http://terrycoats.net/mywordpress/?p=791#comments</comments>
		<pubDate>Sat, 21 Aug 2010 09:05:55 +0000</pubDate>
		<dc:creator>Terry</dc:creator>
				<category><![CDATA[musings]]></category>
		<category><![CDATA[Avidemux]]></category>
		<category><![CDATA[Cinelerra]]></category>
		<category><![CDATA[fail]]></category>
		<category><![CDATA[Kdenlive]]></category>
		<category><![CDATA[Kino]]></category>
		<category><![CDATA[linux video editors]]></category>
		<category><![CDATA[LiVES]]></category>
		<category><![CDATA[OpenShot]]></category>
		<category><![CDATA[Pitivi]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://terrycoats.net/mywordpress/?p=791</guid>
		<description><![CDATA[Ok. So I made a video to upload to youtube.com for the first time and realizing I had to snip some from the beginning and end of the video I began looking for a way to do it, not ever having had to do it before and ignorant of and a newbie at video editing. [...]]]></description>
			<content:encoded><![CDATA[<p>Ok. So I made a video to upload to youtube.com for the first time and realizing I had to snip some from the beginning and end of the video I began looking for a way to do it, not ever having had to do it before and ignorant of and a newbie at video editing. I did the usual google.com search for linux video editors and found what the selection was for my Ubuntu distribution. To make a long story short I ended up downloading them all, one by one. Cinelerra, LiVES, OpenShot, Pitivi, Avidemux, Kdenlive, and Kino. Every one of these programs crashed before I could get thru editing my video and sound files. Kdenlive crashed right when I was within a fraction of a second of getting my video and audio synchronized, taking at least 30 minutes of work with it. The other video editors experienced similar crashes. I found I could not depend on any of them. I tried them all many times but kept experiencing the same results every time so I finally decided I was just wasting my time, which disappointed me, as I have used one Linux distribution or another for the past 10 years and I would like to use it for everything I do on a computer. It was not to be for the video editors, however, so I broke down and decided I was going to have to use my Windows Vista system on my secondary computer. I use my second computer hardly at all but I guess from now on it is going to be my video editing machine. I went to Office Depot and found and bought a copy of Sony Vegas Movie Studio 9. It seems to work ok for the short time I have used it and it didn&#8217;t crash on me(yet).  I move my work back and forth between the machines using a thumb drive. I knew those thumb drives would come in handy some day. The thumb drive I am using also contains my rescue system but it has plenty of room for other things.</p>
<p>I wish I could give a better report on Linux video editors but I&#8217;m just telling what happened. Looks like they are not quite ready for primetime yet. Keep up the work though, guys. I would really like to use Linux exclusively. I feel kinda tainted and dirty having to fire up that &#8220;other&#8221; system to do things.</p>
<p>My youtube.com channel is at:<a title="my youtube channel" href="http://www.youtube.com/user/terry2141859" target="_blank"> http://www.youtube.com/user/terry2141859</a></p>
<p>Terry Coats</p>
]]></content:encoded>
			<wfw:commentRss>http://terrycoats.net/mywordpress/?feed=rss2&amp;p=791</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Republicans stomp on women veterans and veterans with children</title>
		<link>http://terrycoats.net/mywordpress/?p=773</link>
		<comments>http://terrycoats.net/mywordpress/?p=773#comments</comments>
		<pubDate>Thu, 01 Jul 2010 10:04:55 +0000</pubDate>
		<dc:creator>Terry</dc:creator>
				<category><![CDATA[musings]]></category>
		<category><![CDATA[heartless]]></category>
		<category><![CDATA[homeless veterans]]></category>
		<category><![CDATA[homeless veterans with children]]></category>
		<category><![CDATA[homeless women veterans]]></category>
		<category><![CDATA[republicans]]></category>
		<category><![CDATA[Senator Patty Murray]]></category>
		<category><![CDATA[women]]></category>

		<guid isPermaLink="false">http://terrycoats.net/mywordpress/?p=773</guid>
		<description><![CDATA[Sen. Patty Murray, D-Wash., was in the Senate asking for unanimous consent in passing
her bill to aid homeless women veterans and veterans with children. Republican Senator
Mitch McConnell stood up and objected on behalf of Republican Senator Tom Coburn.
Apparently Coburn was in a committee hearing.
McConnell indicated he would like to object to the bill himself at [...]]]></description>
			<content:encoded><![CDATA[<p>Sen. Patty Murray, D-Wash., was in the Senate asking for unanimous consent in passing<br />
her bill to aid homeless women veterans and veterans with children. Republican Senator<br />
Mitch McConnell stood up and objected on behalf of Republican Senator Tom Coburn.<br />
Apparently Coburn was in a committee hearing.</p>
<p>McConnell indicated he would like to object to the bill himself at another time. The objection raised put a<br />
stop on the bill for the time being. Senator Murray promised to continue trying. The cost of the bill would be<br />
only 50 million dollars over 5 years for grants to give homeless women vets and homeless vets with children<br />
a little extra help in getting back on their feet. You can read the bill at <a href="http://murray.senate.gov/veterans/womenvethome.pdf">http://murray.senate.gov/veterans/womenvethome.pdf</a>. Apparently Republicans think this is too much money to spend on people who have<br />
served their country. I&#8217;d like to point out that BP, according to news reports, has spent just about the same<br />
amount of money in their public relations ad campaign to make themselves look good in spite of the<br />
ongoing underwater oil gusher.
<p>I tell you folks, the Republican Party should be called the Heartless Party. They&#8217;re never, ever, on the side<br />
of the people who do the work for this country. If you work, either civilian or military, you don&#8217;t count for<br />
anything and are considered worthless by the Republicans and their sympathizers. They like only people<br />
with bags of money or people who are in a position to rule over other people. They are the party of the<br />
puppetmasters and we &#8220;<a href="http://www.csmonitor.com/USA/2010/0617/America-s-small-people-and-BP-s-gaffe-prone-Gulf-oil-spill-response">small people</a>&#8221; are the puppets. Do you really want to vote for these people, ever<br />
again?</p>
<p>Terry Coats</p>
]]></content:encoded>
			<wfw:commentRss>http://terrycoats.net/mywordpress/?feed=rss2&amp;p=773</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Republicans screw &#8220;small people&#8221; once again</title>
		<link>http://terrycoats.net/mywordpress/?p=745</link>
		<comments>http://terrycoats.net/mywordpress/?p=745#comments</comments>
		<pubDate>Fri, 25 Jun 2010 08:16:03 +0000</pubDate>
		<dc:creator>Terry</dc:creator>
				<category><![CDATA[musings]]></category>
		<category><![CDATA[extend]]></category>
		<category><![CDATA[filibuster]]></category>
		<category><![CDATA[republicans]]></category>
		<category><![CDATA[Senate]]></category>
		<category><![CDATA[small people]]></category>
		<category><![CDATA[unemployment benefits]]></category>

		<guid isPermaLink="false">http://terrycoats.net/mywordpress/?p=745</guid>
		<description><![CDATA[If your unemployment benefits are running out, guess what? You&#8217;re gonna have to start
 visiting the soup line or the mission to get something to eat because every single Senate
Republican voted &#8220;no&#8221; on a vote to stop their filibuster of a bill extending unemployment
benefits, among other things. So, as you get hungrier and start your [...]]]></description>
			<content:encoded><![CDATA[<p>If your unemployment benefits are running out, guess what? You&#8217;re gonna have to start<br />
 visiting the soup line or the mission to get something to eat because every single Senate<br />
Republican voted &#8220;no&#8221; on a vote to stop their filibuster of a bill extending unemployment<br />
benefits, among other things. So, as you get hungrier and start your serious worrying<br />
about how you are going to pay the rent, think about the Republicans&#8217; estimation of your<br />
worth and value. Keep thinking about it until election time and be sure to vote. Even homeless people can<br />
vote in most or maybe all places, because you may be homeless by then, thanks to the Republicans and<br />
their commitment to value only the rich and upper class. I am not able to understand how any American<br />
citizen can consider Republicans to be a friend of average, ordinary, working(or non-working) people, or the<br />
&#8220;small people&#8221; as BP Chairman Carl-Henric Svanberg calls you and me. Yes, I know he is not an American<br />
or a Republican but they all share the same philosophy that they are on a higher plane than we are. Who<br />
cares if people are turning into hobos as long as the uppity class can continue their march to the bank<br />
with their sacks of cash?</p>
<p>Good luck to you people as you navigate your way through life in our failing country.</p>
<p>Terry Coats</p>
]]></content:encoded>
			<wfw:commentRss>http://terrycoats.net/mywordpress/?feed=rss2&amp;p=745</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>&#8220;A tragedy of the first proportion.&#8221;</title>
		<link>http://terrycoats.net/mywordpress/?p=723</link>
		<comments>http://terrycoats.net/mywordpress/?p=723#comments</comments>
		<pubDate>Thu, 17 Jun 2010 19:34:46 +0000</pubDate>
		<dc:creator>Terry</dc:creator>
				<category><![CDATA[musings]]></category>
		<category><![CDATA[barton]]></category>
		<category><![CDATA[congressional hearing]]></category>
		<category><![CDATA[congressman]]></category>
		<category><![CDATA[first proportion]]></category>
		<category><![CDATA[oil spill]]></category>
		<category><![CDATA[Republican]]></category>
		<category><![CDATA[tragedy]]></category>

		<guid isPermaLink="false">http://terrycoats.net/mywordpress/?p=723</guid>
		<description><![CDATA[&#8220;A tragedy of the first proportion.&#8221; That&#8217;s what I heard Texas Republican Congressman Joe
Barton say this morning as I was watching CNN coverage of a congressional hearing
about the BP oil leak disaster. He wasn&#8217;t speaking about the oil leak. He was talking about the &#8220;tragedy&#8221; of the Obama administration getting BP to ante up 20 [...]]]></description>
			<content:encoded><![CDATA[<p>&#8220;A tragedy of the first proportion.&#8221; That&#8217;s what I heard Texas Republican Congressman Joe<br />
Barton say this morning as I was watching CNN coverage of a congressional hearing<br />
about the BP oil leak disaster. He wasn&#8217;t speaking about the oil leak. He was talking about the &#8220;tragedy&#8221; of the Obama administration getting BP to ante up 20 billion dollars.<br />
He was apologizing for the administration&#8217;s &#8220;shakedown&#8221; of BP.  I was shocked as I was<br />
listening to this but I suppose I shouldn&#8217;t have been. It shows what Republicans really think about. They<br />
really don&#8217;t care about people&#8217;s loss of jobs and income due to the spill. They don&#8217;t care about miles<br />
of shoreline ruined. They don&#8217;t care about mounds of dead animals. The Republican Party cares only<br />
about upper class people losing their billions. The Republican Party is the party that sees nothing<br />
wrong with raping the land and the sea. They don&#8217;t care if every last fish is dead and every last tree is<br />
cut down as long it keeps upper class fat-cats laughing all the way to the bank. Damn the future, get it all<br />
now while it&#8217;s available to get!</p>
<p>You Republican Party members ought to be ashamed. It is your right-wing stupidity and arrogance that is<br />
ruining the country, not left-wingers like me. To refer to BP&#8217;s money loss as a tragedy of the first proportion<br />
while at the same time their mistakes may be ruining the Gulf Coast of the U.S. forever is among the<br />
stupidest things I&#8217;ve ever heard a Republican say and shows that Republicans have no compassion for<br />
working people. They care only about the rich. It&#8217;s always been that way, though. It&#8217;s just startling to<br />
actually hear it straight from a Republican&#8217;s mouth. Congressman Barton, you are an idiot and I hope<br />
what you said damages your party for a long time.</p>
<p>Terry Coats</p>
]]></content:encoded>
			<wfw:commentRss>http://terrycoats.net/mywordpress/?feed=rss2&amp;p=723</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fail, President Obama!</title>
		<link>http://terrycoats.net/mywordpress/?p=697</link>
		<comments>http://terrycoats.net/mywordpress/?p=697#comments</comments>
		<pubDate>Wed, 26 May 2010 09:21:20 +0000</pubDate>
		<dc:creator>Terry</dc:creator>
				<category><![CDATA[musings]]></category>
		<category><![CDATA[fail]]></category>
		<category><![CDATA[Gulf]]></category>
		<category><![CDATA[leak]]></category>
		<category><![CDATA[Obama]]></category>
		<category><![CDATA[oil]]></category>

		<guid isPermaLink="false">http://terrycoats.net/mywordpress/?p=697</guid>
		<description><![CDATA[It&#8217;s almost 2 a.m. here in Oregon as I write this and I just got done looking in on CNN&#8217;s
live feed of the leaking oil well in the Gulf of Mexico. Nothing is happening on the video.
They were undoing bolts earlier but now nothing is happening. I guess they are sleeping.
Sleeping while the oil continues [...]]]></description>
			<content:encoded><![CDATA[<p>It&#8217;s almost 2 a.m. here in Oregon as I write this and I just got done looking in on CNN&#8217;s<br />
live feed of the leaking oil well in the Gulf of Mexico. Nothing is happening on the video.<br />
They were undoing bolts earlier but now nothing is happening. I guess they are sleeping.<br />
Sleeping while the oil continues to flow. This is not a time to be sleeping. It&#8217;s always<br />
nighttime a mile deep in the ocean. The oil doesn&#8217;t care if you are tired. The responsible<br />
people can rest when it&#8217;s all over.</p>
<p>This one is a fail for President Obama. He is acting cool and calm while the Gulf coast of the United States<br />
is getting ready to be destroyed in the greatest ecological calamity in United States history. This is not a<br />
time to be cool and collected. It is a time for leadership and action. If nothing else he can send some<br />
people to hold guns to the heads of the responsible parties to make sure they are working 24/7 to fix the<br />
 problem. Foul my country&#8217;s beaches, will ya!?</p>
<p>Sorry, President Obama, but you are fiddling while Rome burns. You dropped the ball on this one. I heard<br />
someone apologizing for your administration, saying there is nothing that can be done. Yes, there is.<br />
You can solicit help from the brightest minds in the country. We have excellent engineering schools and<br />
excellent scientists. You aren&#8217;t doing enough. Just like President Bush didn&#8217;t do enough after hurricane<br />
Katrina, sitting around while old people died in their wheelchairs, you and your administration are sitting<br />
around while the Gulf coast dies. More and more, Washington D.C. and representatives and senators are<br />
showing themselves to be incompetent when it comes to the needs of the citizens. The administration<br />
must fix this or the Republicans will come back to power next election which will compound the tragedy.</p>
<p>Goodbye, Gulf coast. I knew a day like this was coming. There will be more as long as we remain oil<br />
addicted.</p>
<p>Terry Coats</p>
]]></content:encoded>
			<wfw:commentRss>http://terrycoats.net/mywordpress/?feed=rss2&amp;p=697</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>new admin</title>
		<link>http://terrycoats.net/mywordpress/?p=693</link>
		<comments>http://terrycoats.net/mywordpress/?p=693#comments</comments>
		<pubDate>Fri, 21 May 2010 05:34:32 +0000</pubDate>
		<dc:creator>Terry</dc:creator>
				<category><![CDATA[musings]]></category>

		<guid isPermaLink="false">http://terrycoats.net/mywordpress/?p=693</guid>
		<description><![CDATA[I decided that I am too old to go by a nick so I will start using my real name to post.
I also changed the name of my blog to reflect that.
Terry Coats
]]></description>
			<content:encoded><![CDATA[<p>I decided that I am too old to go by a nick so I will start using my real name to post.<br />
I also changed the name of my blog to reflect that.</p>
<p>Terry Coats</p>
]]></content:encoded>
			<wfw:commentRss>http://terrycoats.net/mywordpress/?feed=rss2&amp;p=693</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Find and replace strings and maybe add some too</title>
		<link>http://terrycoats.net/mywordpress/?p=637</link>
		<comments>http://terrycoats.net/mywordpress/?p=637#comments</comments>
		<pubDate>Sun, 09 May 2010 14:11:29 +0000</pubDate>
		<dc:creator>teryc</dc:creator>
				<category><![CDATA[musings]]></category>
		<category><![CDATA["find and replace"]]></category>
		<category><![CDATA[find]]></category>
		<category><![CDATA[sed]]></category>
		<category><![CDATA[strings]]></category>

		<guid isPermaLink="false">http://terrycoats.net/mywordpress/?p=637</guid>
		<description><![CDATA[I was writing a new story to add to my collection of stories and when I got done I thought
about how to add the hyperlink to the pages I wanted to link to the new page. Up till now I
had been doing this by hand, editing every html file with my text editor program and
copying [...]]]></description>
			<content:encoded><![CDATA[<p>I was writing a new story to add to my collection of stories and when I got done I thought<br />
about how to add the hyperlink to the pages I wanted to link to the new page. Up till now I<br />
had been doing this by hand, editing every html file with my text editor program and<br />
copying and pasting the link one file at a time. I decided to look for a different way to do<br />
this and I knew Linux had the tools to get the job done but despite my time on Linux I had<br />
not learned how to do this yet. After doing a bit of googling I came up with the solution. The solution was to<br />
use a combination of the &#8220;find&#8221; and &#8220;sed&#8221; commands. I looked at an example I found and through some trial<br />
and error I finally got things right. I made a copy of my webpage folder to work on first. You don&#8217;t want to<br />
experiment on your real files until you&#8217;re sure it&#8217;s going to work.</p>
<p>What I wanted to do is take the link to the new page I had written and insert it into existing menus on my<br />
webpages and do it in one fell swoop. The idea I came up with was to take an existing menu item and<br />
replace it with itself plus a new line with the new link to add to the menu. This may be a stupid idea and I<br />
am sure there are better but it works for me. Here&#8217;s an example command line:</p>
<p>Find and replace strings and maybe add some too.<br />
Important! Forward slashes in strings must be escaped with a backslash.<br />
\n is a line feed. \n tacks on an additional string which goes on the line just below second string.<br />
example:<br />
find . -type f -exec sed -i &#8217;s/&lt;li&gt;&lt;a href=&#8221;the_prisoner.html&#8221;&gt;the prisoner&lt;\/a&gt;&lt;\/li&gt;/&lt;li&gt;&lt;a href=&#8221;the_prisoner.html&#8221;&gt;the prisoner&lt;\/a&gt;&lt;\/li&gt;\n&lt;li&gt;&lt;a href=&#8221;the_leeches.html&#8221;&gt;the leeches&lt;\/a&gt;&lt;\/li&gt;/g&#8217; {} \;</p>
<p>generic version:</p>
<p>I&#8217;m taking the original line and replacing it with itself plus a new line.</p>
<p>Probably stupid but it works. &#8220;second string&#8221; is identical to &#8220;first string&#8221; in this case.</p>
<p>find . -type f -exec sed -i &#8217;s/first string/second string\nthird string/g&#8217; {} \;</p>
<p>The page I found on the web which helped me with this is: <a href="http://www.brunolinux.com/02-The_Terminal/Find_and%20Replace_with_Sed.html">http://www.brunolinux.com/02-The_Terminal/Find_and%20Replace_with_Sed.html</a></p>
<p>Terry Coats</p>
]]></content:encoded>
			<wfw:commentRss>http://terrycoats.net/mywordpress/?feed=rss2&amp;p=637</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>about the menu on the right</title>
		<link>http://terrycoats.net/mywordpress/?p=617</link>
		<comments>http://terrycoats.net/mywordpress/?p=617#comments</comments>
		<pubDate>Mon, 03 May 2010 05:16:28 +0000</pubDate>
		<dc:creator>teryc</dc:creator>
				<category><![CDATA[musings]]></category>

		<guid isPermaLink="false">http://terrycoats.net/mywordpress/?p=617</guid>
		<description><![CDATA[I know the menu on the right side of this and my other blog pages at least as of the date I
am writing this is a messed-up menu. As viewed in Internet Explorer 8 and probably other
versions of IE as well. It looks fine in Firefox though, which is the browser I use with Ubuntu. [...]]]></description>
			<content:encoded><![CDATA[<p>I know the menu on the right side of this and my other blog pages at least as of the date I<br />
am writing this is a messed-up menu. As viewed in Internet Explorer 8 and probably other<br />
versions of IE as well. It looks fine in Firefox though, which is the browser I use with Ubuntu. I just want to say I am working on it and thinking about it, trying to figure out<br />
what the problem is. Obviously Firefox and IE can&#8217;t agree on how to interpret html or css<br />
or both. I don&#8217;t know how long it&#8217;s looked that way. I hardly ever fire up Vista and just did today and saw<br />
what my pages look like in IE. Makes me look like a dummy. I&#8217;ll be working on trying to get it fixed but<br />
might be a while. The Wordpress blog creates its pages with php code and I&#8217;m not used to working with<br />
php. Here&#8217;s a screen capture if you can&#8217;t see what I am talking about: <a href="http://terrycoats.net/images/screencap1.jpg">screen capture</a></p>
<p>Terry Coats</p>
]]></content:encoded>
			<wfw:commentRss>http://terrycoats.net/mywordpress/?feed=rss2&amp;p=617</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>a note about openvpn and default gateway</title>
		<link>http://terrycoats.net/mywordpress/?p=607</link>
		<comments>http://terrycoats.net/mywordpress/?p=607#comments</comments>
		<pubDate>Tue, 27 Apr 2010 08:45:50 +0000</pubDate>
		<dc:creator>teryc</dc:creator>
				<category><![CDATA[musings]]></category>
		<category><![CDATA[default gateway]]></category>
		<category><![CDATA[openvpn]]></category>

		<guid isPermaLink="false">http://terrycoats.net/mywordpress/?p=607</guid>
		<description><![CDATA[I installed openvpn on both of my computers to encrypt wireless traffic but found I was
having trouble getting a consistent gateway for the vpn on the client computer. I haven&#8217;t
figured it out yet. Doing it the &#8220;right&#8221; way, that is. I did manage to get my default gateway
every time though by putting the command:
route add [...]]]></description>
			<content:encoded><![CDATA[<p>I installed openvpn on both of my computers to encrypt wireless traffic but found I was<br />
having trouble getting a consistent gateway for the vpn on the client computer. I haven&#8217;t<br />
figured it out yet. Doing it the &#8220;right&#8221; way, that is. I did manage to get my default gateway<br />
every time though by putting the command:<br />
route add default gw 10.8.0.1<br />
as the last line in /etc/rc.local on the client computer. I&#8217;m sure there&#8217;s a better and more &#8220;correct&#8221; way to<br />
do this but I haven&#8217;t got it figured out yet.</p>
<p>Terry Coats</p>
<p>I&#8217;ll comment on myself. I dug through openvpn documentation and their suggested way of<br />
getting a gateway up and running on openvpn startup was to start a script from openvpn.conf<br />
which basically used the &#8220;route&#8221; command to set up a route and that was basically what I was<br />
doing in the first place so I guess it doesn&#8217;t really matter where you bring up the gateway from.<br />
I copied openvpn&#8217;s way of doing it however and start a script from the client&#8217;s openvpn.conf file.</p>
<p>Terry Coats</p>
]]></content:encoded>
			<wfw:commentRss>http://terrycoats.net/mywordpress/?feed=rss2&amp;p=607</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>my wireless setup on ubuntu 9.10</title>
		<link>http://terrycoats.net/mywordpress/?p=558</link>
		<comments>http://terrycoats.net/mywordpress/?p=558#comments</comments>
		<pubDate>Tue, 27 Apr 2010 08:06:20 +0000</pubDate>
		<dc:creator>teryc</dc:creator>
				<category><![CDATA[musings]]></category>
		<category><![CDATA[050d:8053]]></category>
		<category><![CDATA[2001:3301]]></category>
		<category><![CDATA[9.10]]></category>
		<category><![CDATA[ad-hoc]]></category>
		<category><![CDATA[Belkin]]></category>
		<category><![CDATA[Dlink]]></category>
		<category><![CDATA[DWA-130]]></category>
		<category><![CDATA[rt2870sta]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[wireless]]></category>

		<guid isPermaLink="false">http://terrycoats.net/mywordpress/?p=558</guid>
		<description><![CDATA[I&#8217;ve been working on this for three weeks. Getting an ad-hoc wireless network working
between my two computers, that is. I didn&#8217;t intend for it to be such a long-running project.
I was a little bit naive at the start though about how hard it was going to be. Although I
love Linux and Ubuntu I was discouraged [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been working on this for three weeks. Getting an ad-hoc wireless network working<br />
between my two computers, that is. I didn&#8217;t intend for it to be such a long-running project.<br />
I was a little bit naive at the start though about how hard it was going to be. Although I<br />
love Linux and Ubuntu I was discouraged by how hard it was get a wireless connection<br />
working.  I almost gave up. It really wasn&#8217;t that important. I don&#8217;t have a need for it. I just<br />
wanted to do it for a learning experience but I underestimated the number of hours I would spend on the<br />
project. In  this article I will tell about my experiences and how it all came out in the end.</p>
<p>I&#8217;ll cut to the chase and tell what I ended up with that works. On my main computer which is running<br />
Kubuntu 9.10 I have a Belkin Wireless N usb card which has an lsusb identifier of 050d:8053. The only<br />
way I could get this device to work for me was to compile the Ralink driver and edit its accompanying<br />
RT2870STA.dat data file to suit what I wanted for my card. The driver compiles into &#8220;rt2870sta.&#8221; There<br />
is a driver by this name which comes with Ubuntu but I could not get it to work so I moved it out of the<br />
way into another folder. There is also included with Ubuntu a rt2800usb driver which looked like it was<br />
going to work with this card but I never could get it to connect with that driver. I had to put rt2800usb<br />
into blacklist.conf in /etc/modprobe.d or it would load on startup and whack my compiled rt2870sta. I<br />
figured this out only after 3 weeks and many days and many hours of trial and error troubleshooting. I<br />
probably missed something along the way that would have also worked but I had to go with what worked<br />
for me after long hours of frustration.</p>
<p>My second computer is running a Dlink DWA-130 usb card on a Xubuntu 9.10 system. It took me a<br />
long time to figure out how to make this one go. The final solution was to use ndiswrapper and the 32 bit<br />
XP driver from the cd. I tried every solution I could think of including compiling a driver but that one wouldn&#8217;t<br />
work either. After installing ndiswrapper and the XP driver, this combination finally caused an ad-hoc<br />
connection to occur between the two systems. The card id is 2001:3301 in lsusb.</p>
<p>During the 3 weeks I worked on this I tried every possible combination of adapter and driver that I<br />
could think of. I had 3 adapters to work with. I also have a Belkin Enhanced Wireless usb adapter that I<br />
tried to make work but I could find no combination that would work for this device. And by work I mean<br />
get a connection. There were several drivers for the 3 different devices that would work to set the<br />
parameters apparently correctly but the two devices on my two separate computers would just sit there<br />
and do nothing. Usually iwlist would work and I could see devices in the neighborhood but I could set<br />
the ad-hoc parameters for both devices and nothing would happen. It was very frustrating. The combination<br />
of Belkin Wireless N on the main computer and the Dlink DWA-130 on the second computer just turned<br />
out to be a lucky combination.</p>
<p>I did all this work with the idea of someday moving my second computer into the living room and<br />
leaving my main computer here in the bedroom. I spent enough money on this to have just gone ahead<br />
and bought a wireless router in the first place but I suppose I am a glutton for punishment and I refused<br />
to admit defeat. </p>
<p>After finally getting these devices to connect ad-hoc I had to figure out a way to get my second<br />
computer to connect to the internet via my first computer. After doing some googling I came up with the<br />
right iptables rules for enabling it to work. These are the rules I use:<br />
iptables -A FORWARD -m conntrack &#8211;ctstate ESTABLISHED,RELATED -j ACCEPT<br />
iptables -A POSTROUTING -t nat -j MASQUERADE<br />
and:<br />
echo 1 > /proc/sys/net/ipv4/ip_forward<br />
to enable ip forwarding. That&#8217;s it. I came across many other combinations of rules people were using to<br />
do this but this simple 3-liner does it for me. I put these three lines in rc.local in folder /etc. It is the last<br />
script to get executed when the computer starts up. I&#8217;m lazy. I probably could have done some startup<br />
scripts for init but that&#8217;s too much trouble. After all, it&#8217;s MY computer and I can do it the way I want to.</p>
<p>The next thing I did was to get some sort of security in place. I was disappointed to discover that<br />
wpa2 won&#8217;t work in ad-hoc mode and that wep is considered useless. I know because I tried for hours to<br />
get this to work before realizing it just wasn&#8217;t possible. After lots of thought and googling I finally decided<br />
to use openvpn. This is available thru Ubuntu&#8217;s installation system so i got it installed and followed<br />
directions at <a href="http://openvpn.net/index.php/open-source/documentation/miscellaneous/78-static-key-mini-howto.html">http://openvpn.net</a> static key mini howto to get things rolling. This turned out not to be too hard. Just follow directions putting the necessary configuration files on the server and client computer.<br />
After I did this I started both computers back up and presto, encrypted communications over the wireless<br />
between the two computers. This takes care of the problem of people reading my traffic but it still doesn&#8217;t<br />
prevent unwanted connections outside the vpn. I&#8217;m still working on that. I think it is going to take some<br />
iptables rules to block unwanted traffic. Anybody got any ideas to help me on that?</p>
<p>Oh, I forgot to add that I did all this manually. I do not use a network manager on either of my computers<br />
but edit by hand the file &#8220;interfaces&#8221; in /etc/network. I never have been able to get any of the network<br />
managers to work right for me. It&#8217;s faster to just go ahead and do it myself rather than rely on something<br />
that only seems to work when it wants to.</p>
<p>Terry Coats</p>
]]></content:encoded>
			<wfw:commentRss>http://terrycoats.net/mywordpress/?feed=rss2&amp;p=558</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
