<?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>logIt &#187; local bin</title>
	<atom:link href="https://lakm.us/logit/tag/local-bin/feed/" rel="self" type="application/rss+xml" />
	<link>https://lakm.us/logit</link>
	<description>Log Around The Clock</description>
	<lastBuildDate>Sat, 06 Jun 2015 14:17:37 +0000</lastBuildDate>
	<language>en-US</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.5.1</generator>
		<item>
		<title>Script to Override Current DNS with OpenDNS</title>
		<link>https://lakm.us/logit/2009/02/script-to-override-current-dns-with-opendns/</link>
		<comments>https://lakm.us/logit/2009/02/script-to-override-current-dns-with-opendns/#comments</comments>
		<pubDate>Sun, 22 Feb 2009 07:33:26 +0000</pubDate>
		<dc:creator>Arif</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[DNS]]></category>
		<category><![CDATA[local bin]]></category>

		<guid isPermaLink="false">http://localhost/it/?p=30</guid>
		<description><![CDATA[I added the following script (named use-opendns) which basically copies current DNS used to a backup file and then override it with another file already containing OpenDNS resolver. #! /bin/bash cp -f /etc/resolv.conf /etc/resolv.assigned.conf cp -f /etc/opendns.resolv.conf /etc/resolv.conf I put this in local bin and add a launcher to the panel as Application in Terminal [...]]]></description>
				<content:encoded><![CDATA[<p>I added the following script (named <code>use-opendns</code>) which basically copies current DNS used to a backup file and then override it with another file already containing OpenDNS resolver.</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#! /bin/bash</span>
<span style="color: #c20cb9; font-weight: bold;">cp</span> <span style="color: #660033;">-f</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>resolv.conf <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>resolv.assigned.conf
<span style="color: #c20cb9; font-weight: bold;">cp</span> <span style="color: #660033;">-f</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>opendns.resolv.conf <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>resolv.conf</pre></div></div>

<p>I put this in local bin and add a launcher to the panel as <code>Application in Terminal</code> type. The <code>/etc/resolv.conf</code> content is</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#OpenDNS http://www.opendns.com/</span>
nameserver 208.67.220.220
nameserver 208.67.222.222</pre></div></div>

]]></content:encoded>
			<wfw:commentRss>https://lakm.us/logit/2009/02/script-to-override-current-dns-with-opendns/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Launcher for Java GUI</title>
		<link>https://lakm.us/logit/2009/02/launcher-for-java-gui/</link>
		<comments>https://lakm.us/logit/2009/02/launcher-for-java-gui/#comments</comments>
		<pubDate>Sun, 22 Feb 2009 07:05:41 +0000</pubDate>
		<dc:creator>Arif</dc:creator>
				<category><![CDATA[OpenView]]></category>
		<category><![CDATA[java GUI]]></category>
		<category><![CDATA[local bin]]></category>

		<guid isPermaLink="false">http://localhost/it/?p=35</guid>
		<description><![CDATA[Launcher for java GUI in local bin (named ovo-java-gui). #! /bin/bash &#160; export JAVA_DIR=/usr/ /opt/OV/www/htdocs/ito_op/ito_op exit 0]]></description>
				<content:encoded><![CDATA[<p>Launcher for java GUI in local bin (named <code>ovo-java-gui</code>).</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#! /bin/bash</span>
&nbsp;
<span style="color: #7a0874; font-weight: bold;">export</span> <span style="color: #007800;">JAVA_DIR</span>=<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #000000; font-weight: bold;">/</span>opt<span style="color: #000000; font-weight: bold;">/</span>OV<span style="color: #000000; font-weight: bold;">/</span>www<span style="color: #000000; font-weight: bold;">/</span>htdocs<span style="color: #000000; font-weight: bold;">/</span>ito_op<span style="color: #000000; font-weight: bold;">/</span>ito_op
<span style="color: #7a0874; font-weight: bold;">exit</span> <span style="color: #000000;">0</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>https://lakm.us/logit/2009/02/launcher-for-java-gui/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Add Script to Local Bin for Default Path</title>
		<link>https://lakm.us/logit/2009/02/add-script-to-local-bin-for-default-path/</link>
		<comments>https://lakm.us/logit/2009/02/add-script-to-local-bin-for-default-path/#comments</comments>
		<pubDate>Sun, 22 Feb 2009 07:00:34 +0000</pubDate>
		<dc:creator>Arif</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[local bin]]></category>

		<guid isPermaLink="false">http://localhost/it/?p=32</guid>
		<description><![CDATA[By adding script to /usr/local/bin, it will become reachable. What reachable means is that it&#8217;ll be part of the default PATH echo $PATH /usr/local/sbin:/usr/local/bin:/usr/sbin:/usr/bin:/sbin:/bin:/usr/games It supposed to be in executable permission (chmod +rx).]]></description>
				<content:encoded><![CDATA[<p>By adding script to <code>/usr/local/bin</code>, it will become reachable. What reachable means is that it&#8217;ll be part of the default PATH</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">echo</span> <span style="color: #007800;">$PATH</span>
<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>sbin:<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>local<span style="color: #000000; font-weight: bold;">/</span>bin:<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>sbin:<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>bin:<span style="color: #000000; font-weight: bold;">/</span>sbin:<span style="color: #000000; font-weight: bold;">/</span>bin:<span style="color: #000000; font-weight: bold;">/</span>usr<span style="color: #000000; font-weight: bold;">/</span>games</pre></div></div>

<p>It supposed to be in executable permission (<code>chmod +rx</code>).</p>
]]></content:encoded>
			<wfw:commentRss>https://lakm.us/logit/2009/02/add-script-to-local-bin-for-default-path/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
