<?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>Entangled discussions &#187; Linux</title>
	<atom:link href="http://www.glenstark.net/category/linux/feed" rel="self" type="application/rss+xml" />
	<link>http://www.glenstark.net</link>
	<description>Let's talk about the fundamental interconnectedness of all things...</description>
	<lastBuildDate>Thu, 29 Dec 2011 14:25:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>Running Skype on 64 bit linux</title>
		<link>http://www.glenstark.net/2009/10/running-skype-on-64-bit-linux</link>
		<comments>http://www.glenstark.net/2009/10/running-skype-on-64-bit-linux#comments</comments>
		<pubDate>Fri, 02 Oct 2009 08:25:13 +0000</pubDate>
		<dc:creator>Glen</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Fedora Linux Skype X64]]></category>

		<guid isPermaLink="false">http://www.glenstark.net/2009/10/running-skype-on-64-bit-linux</guid>
		<description><![CDATA[The skype client for linux is 32 bit. So to run it on a 64 bit Linux installation you have to install 32 bit libraries. In a quick aside, I gotta say: Skype devs, 64 bit tech has been around for years&#8230; what the hell is taking you gyum search , the following will get [...]]]></description>
			<content:encoded><![CDATA[<p>The skype client for linux is 32 bit.  So to run it on a 64 bit Linux installation you have to install 32 bit libraries.  In a quick aside, I gotta say:  Skype devs, 64 bit tech has been around for years&#8230; what the hell is taking you gyum search , the following will get you there:</p>
<pre>
yum -y install libXScrnSaver.i586 libXss qt.i586 qt-x11.i586
</pre>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.glenstark.net%2F2009%2F10%2Frunning-skype-on-64-bit-linux&amp;t=Running%20Skype%20on%2064%20bit%20linux" id="facebook_share_link_254">Share on Facebook</a>
	<script type="text/javascript">
	<!--
	var button = document.getElementById('facebook_share_link_254') || document.getElementById('facebook_share_icon_254') || document.getElementById('facebook_share_both_254') || document.getElementById('facebook_share_button_254');
	if (button) {
		button.onclick = function(e) {
			var url = this.href.replace(/share\.php/, 'sharer.php');
			window.open(url,'sharer','toolbar=0,status=0,width=626,height=436');
			return false;
		}
	
		if (button.id === 'facebook_share_button_254') {
			button.onmouseover = function(){
				this.style.color='#fff';
				this.style.borderColor = '#295582';
				this.style.backgroundColor = '#3b5998';
			}
			button.onmouseout = function(){
				this.style.color = '#3b5998';
				this.style.borderColor = '#d8dfea';
				this.style.backgroundColor = '#fff';
			}
		}
	}
	-->
	</script>
	]]></content:encoded>
			<wfw:commentRss>http://www.glenstark.net/2009/10/running-skype-on-64-bit-linux/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fedora 11 Post Install Configuration</title>
		<link>http://www.glenstark.net/2009/06/fedora-11-post-install-configuration</link>
		<comments>http://www.glenstark.net/2009/06/fedora-11-post-install-configuration#comments</comments>
		<pubDate>Mon, 15 Jun 2009 07:23:18 +0000</pubDate>
		<dc:creator>admin</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.glenstark.net/?p=185</guid>
		<description><![CDATA[Fedora 11 is out, so it&#8217;s time to update my notes on configuring my fedora install. In the examples I will use a default Fedora install (with development tools selected), on my 64 bit Sony vgn-s2750N laptop, which I will henceforth refer to as Sunny. Here&#8217;s what I have to do to get Fedora 11 [...]]]></description>
			<content:encoded><![CDATA[<p>
Fedora 11 is out, so it&#8217;s time to update my notes on configuring my fedora install.  In the examples I will use a default Fedora install (with development tools selected), on my  64 bit Sony vgn-s2750N laptop, which I will henceforth refer to as Sunny.</p>
<p>Here&#8217;s what I have to do to get Fedora 11 running like I want it:</p>
<ol>
<li><a href="#dns">Fix the DNS lookup bug.</a> On all the machines I administer, this manifests itself as massive dns lookup failures, with the effect that although you can ping an address, you don&#8217;t have any internet access (no web browser, no yum&#8230;).  This answers the question:  I have an internet connection, but I can&#8217;t use the web, WTF?</li>
<li><a href="#fusion">Access to fusion</a></li>
<li><a href="#mp3">Add MP3 support/get Amarok working.</a></li>
<li><a href="#flash">Get Flash working (people need their youtube).</a></li>
<li><a href="#3d"> Graphics acceleration </a></li>
<li><a href="#nfs">Make FAT partitions writeable by users, and add ntfs support.</a></li>
<li><a href="#physical">Disable physical file folders.</a></li>
<li><a href="#reset">Enable Ctl-Alt-Backspace</a></li>
</ol>
<div id="dns">
<p>
<strong>1. Fix the DNS bug</strong><br />
Apparently there is a<a href="https://bugzilla.redhat.com/show_bug.cgi?id=459756"> known bug</a>, which mucks up the domain name lookup with certain ISP&#8217;s, of which bluewin (my ISP) is one.   In the bug description the complaint is that you get unreliable name lookups, but in the case of bluewin (my isp), you get no successful lookups.  A workaround is:</p>
<ol>
<li>Find out the network interfaces the machine has using the command &#8220;route -n&#8221;.</li>
<li>Create a file:  /etc/dhclient-&lt; <em>your network interface name here </em>&gt;.conf consisting of the line
<pre>prepend domain-name-servers 127.0.0.1;</pre>
</li>
<li>Start dnsmasq (&#8216;service dnsmasq start&#8217;).</li>
<li>tell dnsmasq to start every time the computer does (&#8216;chkconfig dnsmasq on&#8217;)</li>
<li>restart the network connection (&#8216;service NetworkManager restart&#8217;)</li>
</ol>
<p>So on Sunny the Sony I want to get my wireless LAN working right on Bluewin.  Running  &#8216;route -n&#8217;  tells me my network interface is &#8216;wlan0&#8242; (which I could have guessed).  So I do the following (as root of course):</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: #ff0000;">'prepend domain-name-servers 127.0.0.1;'</span> <span style="color: #000000; font-weight: bold;">&gt;</span>  <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>dhclient-wlan0.conf
service dnsmasq start
chkconfig dnsmasq on
service NetworkManager restart</pre></div></div>

<p>And presto, my internets work again.  I don&#8217;t put it on this list, but at this point I run a &#8216;yum -y update&#8217; to get the base install up to date.
</p></div>
</p>
<p><div id="fusion">
<strong>2. Access to fusion:</strong><br />
Fusion is  a merge of the largest existing addon repos, and means to be <strong>the</strong> extra repo for fedora, including (separate) free and non-free packages that Fedora is not able to ship of license or export regulations (see <a href="http://twistylife.blogspot.com/2008/12/mp3-support-for-amarok-in-fedora-10.html">comment</a> by ingvar).  Apparently it is now possible to add fusion support through a GUI, but I find it much more efficient to just do:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">rpm <span style="color: #660033;">-Uvh</span> http:<span style="color: #000000; font-weight: bold;">//</span>download1.rpmfusion.org<span style="color: #000000; font-weight: bold;">/</span>free<span style="color: #000000; font-weight: bold;">/</span>fedora<span style="color: #000000; font-weight: bold;">/</span>rpmfusion-free-release-stable.noarch.rpm http:<span style="color: #000000; font-weight: bold;">//</span>download1.rpmfusion.org<span style="color: #000000; font-weight: bold;">/</span>nonfree<span style="color: #000000; font-weight: bold;">/</span>fedora<span style="color: #000000; font-weight: bold;">/</span>rpmfusion-nonfree-release-stable.noarch.rpm</pre></div></div>

<p>This is a good time to do another yum update.  You&#8217;ll have to accept a couple of no-key warnings.
</p></div>
</p>
<p><div id="mp3">
<strong>3.  mp3 support.</strong><br />
I still use <a href="http://amarok.kde.org/">Amarok</a>, which I am still unsure about recommending.  I found Amarok 1 vastly superior to the alternatives however, so I&#8217;m hoping Amarok 2 eventually becomes awesome.  In addition to Amarok, I want lame for when I rip my CD&#8217;s for my car mp3 player,  mp3 support for Totem, etc.  So I do the following:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">yum <span style="color: #660033;">-y</span> <span style="color: #c20cb9; font-weight: bold;">install</span> amarok <span style="color: #c20cb9; font-weight: bold;">lame</span><span style="color: #000000; font-weight: bold;">*</span> gstreamer-plugins-ugly xine-lib-extras-freeworld</pre></div></div>

<p>And things seem to be running all right.
</p></div>
</p>
<p><div id="flash"><strong>4. Get Flash (i.e. Youtube) working</strong> This solution  comes from <a href=http://www.mjmwired.net/resources/mjm-fedora-f11.html#flash>here</a></p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">rpm <span style="color: #660033;">-ivh</span> http:<span style="color: #000000; font-weight: bold;">//</span>linuxdownload.adobe.com<span style="color: #000000; font-weight: bold;">/</span>adobe-release<span style="color: #000000; font-weight: bold;">/</span>adobe-release-i386-<span style="color: #000000;">1.0</span>-<span style="color: #000000;">1</span>.noarch.rpm
rpm <span style="color: #660033;">--import</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>pki<span style="color: #000000; font-weight: bold;">/</span>rpm-gpg<span style="color: #000000; font-weight: bold;">/</span>RPM-GPG-KEY-adobe-linux
yum <span style="color: #c20cb9; font-weight: bold;">install</span> nspluginwrapper.<span style="color: #7a0874; font-weight: bold;">&#123;</span>i586,x86_64<span style="color: #7a0874; font-weight: bold;">&#125;</span> alsa-plugins-pulseaudio.i586
yum <span style="color: #660033;">-y</span> <span style="color: #c20cb9; font-weight: bold;">install</span> flash-plugin</pre></div></div>

<p>Note that the third line is only required for 64 bit Fedora.
</p></div>
</p>
<p><div id="3d"> <strong>5.  Enable your 3d hardware acceleration.</strong> In my case, I just run &#8216;yum install kmod-nvidia&#8217; and restart X.  If you have a radeon card, I suppose the solution is the obvious one.
</div>
</p>
<p><div id="ntfs">
<strong>6.  Make the fat drive writeable, and add NTFS write support</a>, so people can easily work with Windows.</strong><br />
For any fat partition, change the umask in fstab to 000.  For NTFS support:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">yum <span style="color: #660033;">-y</span> <span style="color: #c20cb9; font-weight: bold;">install</span> ntfs-config.noarch</pre></div></div>

</div>
<p><div id="physical">
 <strong>7. Disable &#8220;physical&#8221; file folders.</strong> This is the annoying behavior, default in gnome, that opens a new window for every folder that you open.  Get rid of it by double clicking on a folder, and in the resulting window open edit-&gt;preferences-&gt;Behavior, and check the box for  &#8220;Always open in browser windows&#8221;.  There is a scriptable way to do this, so if someone wants to tell me, please do.
</div>
</p>
<p><div id="reset">
<strong>8. Enable ctl-alt-backspace.</strong>It always frustrates me when a distro moves away from supporting the power use to supporting the neophyte.  I think there are plenty of neophyte oriented OS&#8217;s and distros around.  I use Fedora instead of Ubuntu because Ubuntu aims too much at the dumb asses, and Fedora tends to support the people who want to learn and be efficient.   Unfortunately the Fedora guys do make  dumb-ass-friendly decisions, such as the decision to disable ctl-alt-backspace, which I find to be a very poor decision.  Who hits this key sequence by accident?  Anyway, to enable it in Fed 11 do System->Preferences->Keyboard, choose keyboard layout options and enable the checkbox for &#8220;key sequence to kill the x server&#8221;.
</div>
<p>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.glenstark.net%2F2009%2F06%2Ffedora-11-post-install-configuration&amp;t=Fedora%2011%20Post%20Install%20Configuration" id="facebook_share_link_185">Share on Facebook</a>
	<script type="text/javascript">
	<!--
	var button = document.getElementById('facebook_share_link_185') || document.getElementById('facebook_share_icon_185') || document.getElementById('facebook_share_both_185') || document.getElementById('facebook_share_button_185');
	if (button) {
		button.onclick = function(e) {
			var url = this.href.replace(/share\.php/, 'sharer.php');
			window.open(url,'sharer','toolbar=0,status=0,width=626,height=436');
			return false;
		}
	
		if (button.id === 'facebook_share_button_185') {
			button.onmouseover = function(){
				this.style.color='#fff';
				this.style.borderColor = '#295582';
				this.style.backgroundColor = '#3b5998';
			}
			button.onmouseout = function(){
				this.style.color = '#3b5998';
				this.style.borderColor = '#d8dfea';
				this.style.backgroundColor = '#fff';
			}
		}
	}
	-->
	</script>
	]]></content:encoded>
			<wfw:commentRss>http://www.glenstark.net/2009/06/fedora-11-post-install-configuration/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Exporting emacs org-mode html, ain&#8217;t sed grand.</title>
		<link>http://www.glenstark.net/2009/06/exporting-emacs-org-mode-html-aint-sed-grand</link>
		<comments>http://www.glenstark.net/2009/06/exporting-emacs-org-mode-html-aint-sed-grand#comments</comments>
		<pubDate>Sun, 07 Jun 2009 09:45:40 +0000</pubDate>
		<dc:creator>Glen</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.glenstark.net/?p=165</guid>
		<description><![CDATA[I&#8217;ve recently begun using emacs org-mode, and I quite like it.  I do a lot of my writing, some of which might finally end up here on my blog, in org-mode these days.  For a lot of my applications it&#8217;s a perfect overlay on plain text documents.  I can export what I&#8217;ve written as html [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve recently begun using emacs <a href="http://orgmode.org/">org-mode</a>, and I quite like it.  I do a lot of my writing, some of which might finally end up here on my blog, in org-mode these days.  For a lot of my applications it&#8217;s a perfect overlay on plain text documents.  I can export what I&#8217;ve written as html or latex, which is fantastic.</p>
<p>What&#8217;s less fantastic, is when I want to cut and paste the html output here to my WordPress blog.  Unfortunately org-mode puts in linefeeds between paragraph elements, and for some reason wordpress maintains these, resulting in incorrect word wrapping.  So I want a way to remove the the linefeeds between paragraph elements.</p>
<p>This was just a little bit beyond my capabilities with SED, and I&#8217;m often telling myself <q>self, you should really learn how to use sed and regex terms better </q>.  So I thought <q> bugger it, let&#8217;s figure out how to do this</q>.  So I whipped out the excellent book &#8220;sed&amp;awk&#8221; from O&#8217;Reilly.</p>
<p><iframe src="http://rcm.amazon.com/e/cm?t=wwwglenstar0a-20&#038;o=1&#038;p=8&#038;l=as1&#038;asins=1565922255&#038;fc1=000000&#038;IS2=1&#038;lt1=_blank&#038;m=amazon&#038;lc1=0000FF&#038;bc1=000000&#038;bg1=FFFFFF&#038;f=ifr" style="width:120px;height:240px;" scrolling="no" marginwidth="0" marginheight="0" frameborder="0"></iframe></p>
<p>As someone who has only used sed for banal substitutions, I had to learn the following:</p>
<ul>
<li>&#8220;:whatever&#8221; can be used to create a label.  There are two commands that allow you to utilize these lables: &#8220;b&#8221; creates a branch, while &#8220;t&#8221; jumps to a label if a successful substitution has been made on the currently addressed line.</li>
<li>&#8220;N&#8221; is needed to join two lines, since sed normally works on a one-line-at-a-time fashion.</li>
</ul>
<p>With these two tidbits, and a basic understanding of how sed operates, we can construct the desired script.</p>

<div class="wp_syntax"><div class="code"><pre class="sed" style="font-family:monospace;">:top
/&lt;p&gt;/
{:loop
  N
  s/\n/ /
  /&lt;\/p&gt;/{P;D;btop}
  bloop}</pre></div></div>

<p>In one line the command looks like this:</p>
<pre> sed ':top;/&lt;p&gt;/{:loop;N;s/\n/ /;/&lt;\/p&gt;/{P;D;btop};bloop}'</pre>
<p>If you&#8217;re like me, it&#8217;s not immediately clear what&#8217;s going on here, so let&#8217;s break it down:</p>
<ul>
<li>First we create a label with &#8220;:top&#8221;.</li>
<li>&#8220;/&lt;p&gt;/&#8221; tells sed to look for the paragraph block tag.  The next &#8216;line&#8217; of the script will be called <strong>after</strong> this tag is found.</li>
<li>The curly braces &#8220;{}&#8221; group a set of commands, so upon encountering the paragraph tag, it executes the contents of these brackets.   In the brackets:
<ul>
<li> Create a new label &#8220;:loop&#8221;.</li>
<li>&#8220;N&#8221; creates a multiline pattern space by reading the next line of input, and appending it to the contents of the pattern space.</li>
<li>&#8220;s/\n/ /&#8221;: substitute a space for the line feed.</li>
<li>&#8220;/&lt;\/p&gt;/{P;D;btop}&#8221;:  If sed encounters an end of paragraph tag, it executes &#8220;P;D;btop&#8221;, which (P) prints the contents of the multiline pattern space, (D) deletes it, and (btop) creates a branch(b) and goes to the label(top).   It&#8217;s a little like &#8220;if (&lt;p&gt;) goto top&#8221;.</li>
<li>&#8220;bloop&#8221; (b) branch and goto label(loop).</li>
</ul>
</li>
</ul>
<p>So as long as no closing tag (&lt;/p&gt;) is found, we have a loop that keeps adding new lines to the multiline pattern buffer, and substituting spaces for linefeeds.  When the closing tag (&lt;/p&gt;) is found, the loop goes back up to the &#8220;top&#8221; label.  That loop makes sure all of the  paragraph sections get handled.</p>
<p>So that&#8217;s it.  If anyone knows a more elegant solution to this, I&#8217;d be glad to here about it.</p>
<ul></ul>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.glenstark.net%2F2009%2F06%2Fexporting-emacs-org-mode-html-aint-sed-grand&amp;t=Exporting%20emacs%20org-mode%20html%2C%20ain%27t%20sed%20grand." id="facebook_share_link_165">Share on Facebook</a>
	<script type="text/javascript">
	<!--
	var button = document.getElementById('facebook_share_link_165') || document.getElementById('facebook_share_icon_165') || document.getElementById('facebook_share_both_165') || document.getElementById('facebook_share_button_165');
	if (button) {
		button.onclick = function(e) {
			var url = this.href.replace(/share\.php/, 'sharer.php');
			window.open(url,'sharer','toolbar=0,status=0,width=626,height=436');
			return false;
		}
	
		if (button.id === 'facebook_share_button_165') {
			button.onmouseover = function(){
				this.style.color='#fff';
				this.style.borderColor = '#295582';
				this.style.backgroundColor = '#3b5998';
			}
			button.onmouseout = function(){
				this.style.color = '#3b5998';
				this.style.borderColor = '#d8dfea';
				this.style.backgroundColor = '#fff';
			}
		}
	}
	-->
	</script>
	]]></content:encoded>
			<wfw:commentRss>http://www.glenstark.net/2009/06/exporting-emacs-org-mode-html-aint-sed-grand/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>My .emacs file</title>
		<link>http://www.glenstark.net/2009/05/152</link>
		<comments>http://www.glenstark.net/2009/05/152#comments</comments>
		<pubDate>Tue, 19 May 2009 11:36:37 +0000</pubDate>
		<dc:creator>Glen</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.glenstark.net/?p=152</guid>
		<description><![CDATA[Since I often need a copy of my emacs file somewhere where it&#8217;s not worth pulling my whole sysadmin git repository, I&#8217;m a gonna put my .emacs file here.  Maybe someone else will find it useful.  It basically does the following: makes my background color a little less harsh. enables syntax highlighting by default. makes [...]]]></description>
			<content:encoded><![CDATA[<p>Since I often need a copy of my emacs file somewhere where it&#8217;s not worth pulling my whole sysadmin git repository, I&#8217;m a gonna put my .emacs file here.  Maybe someone else will find it useful.  It basically does the following:</p>
<ul>
<li>makes my background color a little less harsh.</li>
<li>enables syntax highlighting by default.</li>
<li>makes the selected region highlighted (this behavior will be default in the next version of emacs, but I&#8217;m using 22.x at the moment).</li>
<li>modify the tab width to 3.</li>
<li>enable org mode</li>
<li>make line numbering available (this is sometimes useful).</li>
</ul>
<p>I&#8217;ll be keeping this up to date as my make changes&#8230;</p>

<div class="wp_syntax"><div class="code"><pre class="lisp" style="font-family:monospace;"><span style="color: #808080; font-style: italic;">;;-------------------------------------</span>
<span style="color: #808080; font-style: italic;">;; Some preferences:</span>
<span style="color: #66cc66;">&#40;</span>set-background-color <span style="color: #ff0000;">&quot;antique white&quot;</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #808080; font-style: italic;">;; I want syntax highlighting by default.</span>
<span style="color: #66cc66;">&#40;</span>global-font-lock-mode <span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #808080; font-style: italic;">;; I want to see the selected region (this will be default in v23).</span>
<span style="color: #66cc66;">&#40;</span>transient-mark-mode <span style="color: #cc66cc;">1</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #808080; font-style: italic;">;; I like small indents.</span>
<span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">setq</span> standard-indent <span style="color: #cc66cc;">3</span><span style="color: #66cc66;">&#41;</span><span style="color: #808080; font-style: italic;">;</span>
<span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">setq</span> default-tab-width <span style="color: #cc66cc;">3</span><span style="color: #66cc66;">&#41;</span><span style="color: #808080; font-style: italic;">;</span>
<span style="color: #808080; font-style: italic;">;; I don't want to see the splash screen.</span>
<span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">setq</span> inhibit-startup-message t<span style="color: #66cc66;">&#41;</span><span style="color: #808080; font-style: italic;">;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">;;-----------------------------------------------</span>
<span style="color: #808080; font-style: italic;">;; org mode setup</span>
<span style="color: #808080; font-style: italic;">;;------------------------------------------------</span>
<span style="color: #66cc66;">&#40;</span>add-to-<span style="color: #b1b100;">list</span> 'auto-mode-alist '<span style="color: #66cc66;">&#40;</span><span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\\</span>.org<span style="color: #000099; font-weight: bold;">\\</span>'&quot;</span> <span style="color: #66cc66;">.</span> org-mode<span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">;;(global-set-key &quot;\C-o&quot; ctl-x-map)</span>
<span style="color: #66cc66;">&#40;</span>global-set-key <span style="color: #66cc66;">&#91;</span>?\C-c ?<span style="color: #b1b100;">l</span><span style="color: #66cc66;">&#93;</span> 'org-store-link<span style="color: #66cc66;">&#41;</span>
<span style="color: #66cc66;">&#40;</span>global-set-key <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\C</span>-ca&quot;</span> 'org-agenda<span style="color: #66cc66;">&#41;</span>
<span style="color: #66cc66;">&#40;</span>global-set-key <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\C</span>-cb&quot;</span> 'org-iswitchb<span style="color: #66cc66;">&#41;</span>
&nbsp;
<span style="color: #808080; font-style: italic;">;;---------------------------------------------------</span>
<span style="color: #808080; font-style: italic;">;; For special packages:</span>
<span style="color: #808080; font-style: italic;">;;---------------------------------------------------</span>
<span style="color: #808080; font-style: italic;">;; Add local lisp folder to load-path</span>
<span style="color: #808080; font-style: italic;">;;(setq load-path (append load-path (list &quot;~/.emacs.d/elisp&quot;)))</span>
<span style="color: #808080; font-style: italic;">;; sometimes line numbering is useful.</span>
<span style="color: #66cc66;">&#40;</span>require 'linum<span style="color: #66cc66;">&#41;</span></pre></div></div>

<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.glenstark.net%2F2009%2F05%2F152&amp;t=My%20.emacs%20file" id="facebook_share_link_152">Share on Facebook</a>
	<script type="text/javascript">
	<!--
	var button = document.getElementById('facebook_share_link_152') || document.getElementById('facebook_share_icon_152') || document.getElementById('facebook_share_both_152') || document.getElementById('facebook_share_button_152');
	if (button) {
		button.onclick = function(e) {
			var url = this.href.replace(/share\.php/, 'sharer.php');
			window.open(url,'sharer','toolbar=0,status=0,width=626,height=436');
			return false;
		}
	
		if (button.id === 'facebook_share_button_152') {
			button.onmouseover = function(){
				this.style.color='#fff';
				this.style.borderColor = '#295582';
				this.style.backgroundColor = '#3b5998';
			}
			button.onmouseout = function(){
				this.style.color = '#3b5998';
				this.style.borderColor = '#d8dfea';
				this.style.backgroundColor = '#fff';
			}
		}
	}
	-->
	</script>
	]]></content:encoded>
			<wfw:commentRss>http://www.glenstark.net/2009/05/152/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Granting acces using rsa-key pairs.</title>
		<link>http://www.glenstark.net/2009/05/granting-acces-using-rsa-key-pairs</link>
		<comments>http://www.glenstark.net/2009/05/granting-acces-using-rsa-key-pairs#comments</comments>
		<pubDate>Mon, 18 May 2009 15:32:35 +0000</pubDate>
		<dc:creator>Glen</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://www.glenstark.net/?p=135</guid>
		<description><![CDATA[This is another thing I have to do rarely enough that I forget the commands, but often enough it&#8217;s worth keeping a note of it. I use git, ssh, scp, etc. all the damn time between various computers, and it&#8217;s stupid to keep entering passwords every time. You can get around this using ssh-agent.  The [...]]]></description>
			<content:encoded><![CDATA[<p>This is another thing I have to do rarely enough that I forget the commands, but often enough it&#8217;s worth keeping a note of it.  I use git, ssh, scp, etc. all the damn time between various computers, and it&#8217;s stupid to keep entering passwords every time.   You can get around this using ssh-agent.  The process is pretty short:</p>
<ol>
<li>Generate a public key.  Logon to the host want to connect <strong>from</strong>:

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"> <span style="color: #666666; font-style: italic;">#ssh-keygen -t dsa</span></pre></div></div>

<p>This generates a key pair (of type dsa), both of which are located in the <strong>.ssh</strong> directory.  The files will be id_dsa and id_dsa.pub.  The latter file is the public key, and the former the private key.  By copying the public key to the <strong>.ssh/</strong>, we provide ssh with an alternate means of confirming our access rights.  Rather than prompt for a password, it checks that the private key (client side) matches that of the server (public key).</li>
<li>Append the generated key to the servers .ssh/authorized_keys file.   The simplest way is:

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">ssh-copy-id <span style="color: #660033;">-i</span> ~<span style="color: #000000; font-weight: bold;">/</span>.ssh<span style="color: #000000; font-weight: bold;">/</span>id_dsa user_name<span style="color: #000000; font-weight: bold;">@</span>remote_host.org</pre></div></div>

</li>
</ol>
<p>That&#8217;s it.  Now you should be able to scp, ssh, or git (via ssh) to that machine without entering a password.  You may have to enter the private key (the passphrase you provided when generating your key pairs) the first time you use ssh from the pc (this is the default behaviour on Fedora).<br />
If you run into problems, this is discussed in more detail <a href="https://help.ubuntu.com/community/AdvancedOpenSSH#RSA%20Key-Based%20SSH%20Logins">here</a>.</p>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.glenstark.net%2F2009%2F05%2Fgranting-acces-using-rsa-key-pairs&amp;t=Granting%20acces%20using%20rsa-key%20pairs." id="facebook_share_link_135">Share on Facebook</a>
	<script type="text/javascript">
	<!--
	var button = document.getElementById('facebook_share_link_135') || document.getElementById('facebook_share_icon_135') || document.getElementById('facebook_share_both_135') || document.getElementById('facebook_share_button_135');
	if (button) {
		button.onclick = function(e) {
			var url = this.href.replace(/share\.php/, 'sharer.php');
			window.open(url,'sharer','toolbar=0,status=0,width=626,height=436');
			return false;
		}
	
		if (button.id === 'facebook_share_button_135') {
			button.onmouseover = function(){
				this.style.color='#fff';
				this.style.borderColor = '#295582';
				this.style.backgroundColor = '#3b5998';
			}
			button.onmouseout = function(){
				this.style.color = '#3b5998';
				this.style.borderColor = '#d8dfea';
				this.style.backgroundColor = '#fff';
			}
		}
	}
	-->
	</script>
	]]></content:encoded>
			<wfw:commentRss>http://www.glenstark.net/2009/05/granting-acces-using-rsa-key-pairs/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>64-bit Fedora 10 Post-installation setup</title>
		<link>http://www.glenstark.net/2009/01/64-bit-fedora-10-post-installation-setup</link>
		<comments>http://www.glenstark.net/2009/01/64-bit-fedora-10-post-installation-setup#comments</comments>
		<pubDate>Wed, 14 Jan 2009 19:44:22 +0000</pubDate>
		<dc:creator>Glen</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Fedora Intallation Nvidia Flash mp3]]></category>

		<guid isPermaLink="false">http://www.glenstark.net/?p=24</guid>
		<description><![CDATA[I manage 5 Fedora installations: my work and home PC&#8217;s, my laptop, my fiancee&#8217;s laptop,  and my buddy Charles&#8217; PC, who is generously giving Linux a shot.  I told him he&#8217;d probably have an easier time with Ubuntu, but that I would have an easier time helping with Fedora, as that&#8217;s what I know.  Often [...]]]></description>
			<content:encoded><![CDATA[<p>I manage 5 Fedora installations: my work and home PC&#8217;s, my laptop, my fiancee&#8217;s laptop,  and my buddy Charles&#8217; PC, who is generously giving Linux a shot.  I told him he&#8217;d probably have an easier time with Ubuntu, but that I would have an easier time helping with Fedora, as that&#8217;s what I know.  Often I update these machines at widely different intervals, particular with Charles&#8217; PC, since I don&#8217;t see him that often.</p>
<p>Fedora is great in many ways, and I stick with it because I&#8217;m pretty happy with it, philosophically and technically, but you often have to put a little work on it, particularly if you&#8217;re a 64-bit user and you to use a good graphics card.  Anyway, I thought it would be handy for me to have a checklist on the web, so I don&#8217;t forget anything the next time.  This is just a collection of solutions I&#8217;ve dug up somewhere else, but it might still be useful for others.</p>
<p>These are the things I have to do to get Fedora working acceptably:</p>
<ol>
<li>Fix the DNS lookup bug.  On all the machines I administer, this causes massive dns lookup failuers, with the effect that although you can ping an address, you don&#8217;t have any internet access (no web browser, no yum&#8230;).Add access to the fusion repository.Install various extra software.</li>
<li>Access to fusion</li>
<li>Add MP3 support/get Amarok working.</li>
<li>Get Flash working (people need their youtube).</li>
<li>Nvidia support.</li>
<li>Make FAT partitions writeable by users, and add ntfs support.</li>
<li>Disable physical file folders.</li>
<li>Enable automounting of external drives (usb sticks for example).</li>
</ol>
<p><strong>1. Fix the DNS bug</strong></p>
<p>Apparently there is a<a href="https://bugzilla.redhat.com/show_bug.cgi?id=459756"> known bug</a>, which mucks up the domain name lookup with certain ISP&#8217;s, of which bluewin (my ISP) is one.   In the bug description the complaint is that you get unreliable name lookups, but in the case of bluewin, you get no successful lookups.  A workaround is described <a href="http://www.fedorafaq.org/f10/#dns-slow  ">here</a>.  All you have to do is:</p>
<ol>
<li>Make sure that dnsmasq is installed.</li>
<li>find out the network interfaces the machine has ( route -n )</li>
<li>create a file called /etc/dhclient/&lt; <em>your network intervace name here </em>&gt;.conf consisting of the line</li>
<li>&#8216; prepend domain-name-servers 127.0.0.1; &#8216;</li>
<li>Start dnsmasq (&#8216;service dnsmasq start&#8217;).</li>
<li>tell dnsmasq to start every time the computer does (&#8216;chkconfig dnsmasq on&#8217;)</li>
<li>restart the network connection (&#8216;service NetworkManager restart&#8217;)</li>
<li>Add ntfs write support.</li>
</ol>
<p><strong>2. Access to fusion:</strong></p>
<p>Fusion is  a merge of the largest existing addon repos, and means to be <strong>the</strong> extra repo for fedora, including (separate) free and non-free packages that Fedora is not able to ship of license or export regulations (see <a href="http://twistylife.blogspot.com/2008/12/mp3-support-for-amarok-in-fedora-10.html">comment</a> by ingvar).</p>
<p style="padding-left: 30px;"><span style="font-family: courier new;"># rpm -Uvh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm http://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpm</span></p>
<p><strong>3. Add mp3 support</strong></p>
<p>I use <a href="http://amarok.kde.org/">Amarok</a> as my primary music application.  Fedora comes with Amarok 2, which I am still evaluating, but I found Amarok 1 vastly superior to the alternatives, so I&#8217;m hoping Amarok continues to be awesome.  I actually hate switching apps.  Unfortunately, just installing Amarok gives me no sound.  After running Amarok in a console and checking out the output, I tried:</p>
<p style="padding-left: 30px;"><span style="font-family: courier new;"># yum groupinstall phonon*</span></p>
<p>which did the trick.  I  Finally, to support mp3&#8242;s, you can do:</p>
<p style="padding-left: 30px;"><span style="font-family: courier new;"># yum groupinstall sound-and-video</span></p>
<p><strong>4. Get Flash (i.e. Youtube) working</strong></p>
<p>This solution  comes from <a href="http://www.alphatek.info/2008/11/25/fedora-10-x86-64-flash-10-and-sound/">here</a>.   I quote verbatim:</p>
<ul>
<li><span style="color: #99cc00;"><span style="color: #800000;">rpm -e nspluginwrapper.i386 flash-plugin</span> <span style="color: #000000;">(if you have installed them)</span></span></li>
<li><span style="color: #99cc00;"><span style="color: #800000;">cd /usr/lib64/mozilla/plugins/</span> <span style="color: #000000;">(this is where your Firefox plugins are)</span></span></li>
<li><span style="color: #99cc00;"><span style="color: #800000;">wget http://download.macromedia.com/pub/labs/flashplayer10/libflashplayer-10.0.d20.7.linux-x86_64.so.tar.gz </span><span style="color: #000000;">(to download the Flash plugin)</span></span></li>
<li><span style="color: #99cc00;"><span style="color: #800000;">tar -xvzf libflashplayer-10.0.d20.7.linux-x86_64.so.tar.gz</span><span style="color: #000000;"><span style="color: #800000;"> </span>(to extract the plugin)</span></span></li>
<li><span style="color: #99cc00;"><span style="color: #000000;">restart firefox.</span></span></li>
</ul>
<p>At this point you tube shows up fine.</p>
<p><strong>5.  Enable your 3d hardware acceleration</strong></p>
<p>In my case, I just run &#8216;yum install kmod-nvidia&#8217; and restart X.  If you have a radeon card, I suppose the solution is the obvious one.</p>
<p><strong>6.  Make the fat drive writeable, and add NTFS write support, so people can easily work with Windows.</strong></p>
<p>For any fat partition, change the umask in fstab to 000.  For NTFS support, <span style="color: #800000;">&#8216;yum install ntfs-config.noarch&#8217;</span>.</p>
<p><strong>7. Disable &#8220;physical&#8221; file folders.</strong></p>
<p>This is the annoying behavior, default in gnome, that opens a new window for every folder that you open.  Get rid of it by double clicking on a folder, and in the resulting window open edit-&gt;preferences-&gt;Behavior, and check the box for  &#8220;Always open in browser windows&#8221;.  There is a scriptable way to do this, so if someone wants to tell me, please do.</p>
<p><strong>8.  Allow automounting of usb drives etc.</strong></p>
<p>I really hope this is an error, but it&#8217;s possible it&#8217;s a security precaution.  By default, if you plug in a usb stick or some such storage device, you won&#8217;t see it automatically on your desktop.  This is because automounting isn&#8217;t allowed by default.  You can change this by going to System-&gt;Preferences-&gt;Authorizations and click on hal-&gt;storage-&gt;Mount file systems from removable drives.  Click on the Edit box in the Implicit Authorizations sections, and change Anyone to yes.</p>
<p><strong>9.  Scripts:</strong></p>
<p>I have a script which installs a lot of the stuff I typically want but is not included in Fedora by default.  These include mplayer, par2, rar,  amarok(music listening), emacs, development tools, etc.  If you want it, the script is <a href="http://www.glenstark.net/Blogfiles/2009/fed-install.sh">here</a>.</p>
<a href="http://www.facebook.com/share.php?u=http%3A%2F%2Fwww.glenstark.net%2F2009%2F01%2F64-bit-fedora-10-post-installation-setup&amp;t=64-bit%20Fedora%2010%20Post-installation%20setup" id="facebook_share_link_24">Share on Facebook</a>
	<script type="text/javascript">
	<!--
	var button = document.getElementById('facebook_share_link_24') || document.getElementById('facebook_share_icon_24') || document.getElementById('facebook_share_both_24') || document.getElementById('facebook_share_button_24');
	if (button) {
		button.onclick = function(e) {
			var url = this.href.replace(/share\.php/, 'sharer.php');
			window.open(url,'sharer','toolbar=0,status=0,width=626,height=436');
			return false;
		}
	
		if (button.id === 'facebook_share_button_24') {
			button.onmouseover = function(){
				this.style.color='#fff';
				this.style.borderColor = '#295582';
				this.style.backgroundColor = '#3b5998';
			}
			button.onmouseout = function(){
				this.style.color = '#3b5998';
				this.style.borderColor = '#d8dfea';
				this.style.backgroundColor = '#fff';
			}
		}
	}
	-->
	</script>
	]]></content:encoded>
			<wfw:commentRss>http://www.glenstark.net/2009/01/64-bit-fedora-10-post-installation-setup/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>

