<?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>Stokebloke Blog &#187; Linux</title>
	<atom:link href="http://www.stokebloke.com/wordpress/category/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.stokebloke.com/wordpress</link>
	<description></description>
	<lastBuildDate>Sun, 29 Aug 2010 14:58:49 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Blender and the Space Navigator under Gentoo</title>
		<link>http://www.stokebloke.com/wordpress/2010/05/22/blender-and-the-space-navigator-under-gentoo/</link>
		<comments>http://www.stokebloke.com/wordpress/2010/05/22/blender-and-the-space-navigator-under-gentoo/#comments</comments>
		<pubDate>Sat, 22 May 2010 13:37:21 +0000</pubDate>
		<dc:creator>Neil Wightman</dc:creator>
				<category><![CDATA[Blender]]></category>
		<category><![CDATA[Graphical]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[3D]]></category>
		<category><![CDATA[gentoo]]></category>
		<category><![CDATA[howto]]></category>

		<guid isPermaLink="false">http://www.stokebloke.com/wordpress/?p=918</guid>
		<description><![CDATA[I have used Blender for some years now and I recently began to think about buying a 3dconnexion Space Navigator. I read that Blender and the Space Navigator worked under Linux and managed to borrow a Space Navigator from work over this long weekend. I downloaded the 32bit drivers (3DxWare for Linux (i386)) from http://www.3dconnexion.com/service/drivers.html [...]]]></description>
			<content:encoded><![CDATA[<p>I have used <a href="http://www.blender.org">Blender</a> for some years now and I recently began to think about buying a <a href="http://www.3dconnexion.com">3dconnexion</a> <a href="http://www.3dconnexion.com/products/spacenavigator.html">Space Navigator</a>.</p>
<p><a href="/wordpress/wp-content/uploads/2010/05/space_naviagator.jpg"><img class="aligncenter size-medium wp-image-919" title="space_naviagator" src="/wordpress/wp-content/uploads/2010/05/space_naviagator-300x280.jpg" alt="" width="300" height="280" /></a></p>
<p>I read that <a href="http://www.blender.org">Blender</a> and the <a href="http://www.3dconnexion.com/products/spacenavigator.html">Space Navigator</a> worked under Linux and managed to borrow a Space Navigator from work over this long weekend.</p>
<p>I downloaded the 32bit drivers (<a title="Download Driver" onclick="wiredminds.count('3dxware-linux-v1-4-3.i386.tar.gz');" href="http://www.3dconnexion.com/index.php?eID=sdl&amp;ext=tx_iccsoftware&amp;oid=b9f5aba7-3671-2c8d-238f-4afd600256b2&amp;filename=3dxware-linux-v1-4-3.i386.tar.gz&amp;ap1=SpaceNavigator&amp;ap2=Linux&amp;ap3=">3DxWare  for Linux (i386)</a>) from <a href="http://www.3dconnexion.com/service/drivers.html">http://www.3dconnexion.com/service/drivers.html</a> as well as the &#8220;<a title="Download Driver" onclick="wiredminds.count('3DxBlender2_47-Linux-i386.zip');" href="http://www.3dconnexion.com/index.php?eID=sdl&amp;ext=tx_iccsoftware&amp;oid=27237638-d168-4cc6-bc67-4b1fe78de7c4&amp;filename=3DxBlender2_47-Linux-i386.zip&amp;ap1=SpaceNavigator&amp;ap2=Linux&amp;ap3=">Blender  plug-in for Linux i386 (beta)</a>&#8220;</p>
<h3>Installing the Space Navigator driver</h3>
<p>I extracted the 3dxware-linux-v1-4-3.i386.tar.gz file to /tmp/3d/</p>
<pre>tar -xvzf 3dxware-linux-v1-4-3.i386.tar.gz -C /tmp/3d/
cd /tmp/3d/
sudo ./install-3dxunix.sh</pre>
<p>I then recieved an error saying libXm.so.3 was missing.</p>
<p><code>/etc/3DxWare/daemon/3dxsrv: error while loading shared libraries: libXm.so.3: cannot open shared object file: No such file or directory</code></p>
<p>I pressed CTRL-C to abort the script.</p>
<p>After a little checking I found that I have libXm.so.4 but not 3, so I created a symbolic link from libXm 4 to 3.</p>
<pre>sudo ln -s /usr/lib/libXm.so /usr/lib/libXm.so.3</pre>
<p>I then re-ran the install script again.</p>
<p>This time it all worked.  I did not configure it to auto start though.</p>
<p>Now I simply started the driver via</p>
<pre>sudo /etc/3DxWare/daemon/3dxsrv -d usb</pre>
<p>and was greeted by the blue lights on the Space Navigator and the messages</p>
<pre>3DxWareUNIX = V1.4.3
Device      = SpaceNavigator
Firmware    = V3.17</pre>
<p>there was also a minimised window called 3DxWare 1.4.3, which appears the be the settings dialog (like the Windows Control Panel control)</p>
<p><a href="/wordpress/wp-content/uploads/2010/05/3dxware.jpg"><img class="aligncenter size-medium wp-image-921" title="3dxware" src="/wordpress/wp-content/uploads/2010/05/3dxware-300x270.jpg" alt="" width="300" height="270" /></a></p>
<p>I then ran the xcube example from /tmp/3d/ and the space navigator worked great.  I changed a few settings as I prefer pressing and pulling to be zoom in and out.</p>
<h3>Installing the Blender plugin</h3>
<p>I was a little surprised by this, as the forums said I should have a ~/.blender/ directory and I didnt.</p>
<p>I decided that creating the directory couldn&#8217;t cause any problems so I created a directory</p>
<pre>mkdir -p ~/.blender/plugins/</pre>
<p>and copied the 3DxNdofBlender.plug file into it.  The new NDOF icons appeared at the bottom of the viewport.  See <a href="http://www.blender.org/development/release-logs/blender-246/ndof-support/">http://www.blender.org/development/release-logs/blender-246/ndof-support/</a></p>
<p><a href="/wordpress/wp-content/uploads/2010/05/blender_ndof.jpg"><img class="aligncenter size-full wp-image-922" title="blender_ndof" src="/wordpress/wp-content/uploads/2010/05/blender_ndof.jpg" alt="" width="240" height="201" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.stokebloke.com/wordpress/2010/05/22/blender-and-the-space-navigator-under-gentoo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu Alt-Right click to resize</title>
		<link>http://www.stokebloke.com/wordpress/2010/04/09/ubuntu-alt-right-click-to-resize/</link>
		<comments>http://www.stokebloke.com/wordpress/2010/04/09/ubuntu-alt-right-click-to-resize/#comments</comments>
		<pubDate>Fri, 09 Apr 2010 09:06:19 +0000</pubDate>
		<dc:creator>Neil Wightman</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[compiz]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[window manager]]></category>

		<guid isPermaLink="false">http://www.stokebloke.com/wordpress/?p=880</guid>
		<description><![CDATA[I recently moved my laptop from a Gentoo Linux distribution to Ubuntu. This was mainly that the rebuild time was very slow and updating my laptop, with gentoo, would take hours if not days. I decided to move to a binary distribution and chose Ubuntu. There was no real reason I chose Ubuntu over any [...]]]></description>
			<content:encoded><![CDATA[<p>I recently moved my laptop from a Gentoo Linux distribution to Ubuntu.   This was mainly that the rebuild time was very slow and updating my laptop, with gentoo, would take hours if not days.  I decided to move to a binary distribution and chose Ubuntu.  There was no real reason I chose Ubuntu over any other though.</p>
<p>Most of the setup was easy, the only issue I found was that Ubuntu uses Alt-Middle Mouse to resize the windows.  I have used xfce for years and I just couldn&#8217;t get used to this change in Ubuntu.</p>
<p>I did alot of searching and could not find out how to change it.</p>
<p>&#8230;. some hours later &#8230;</p>
<p>Well I finally managed to get Ubuntu to resize with Alt-Right Click (button3).</p>
<p>By default Ubuntu resizes with Alt-Middle Mouse Button, my laptop mouse has a very small middle mouse button.  I use xfce on my other linux boxes and I wanted all the Window Managers to function the same.</p>
<p>I tried installing the CompizConfig Settings Manager.  I then disabled the Window Menu which was using Alt-Button 3 and went to the resize window setting and made that Alt-Button3.   This seemed to be ok, until I tested it.  The Alt-Button 3 was still showing the Window Menu.</p>
<p>I tried disabling the Window Menu totally, but the settings simply wouldnt stay.</p>
<p>After a bit of searching I found this.<br />
<a href="https://bugs.launchpad.net/ubuntu/+source/compizconfig-settings-manager/+bug/146736">https://bugs.launchpad.net/ubuntu/+source/compizconfig-settings-manager/+bug/146736</a><br />
where it says:</p>
<blockquote><p>open ccsm, go to Preferences, and if gconf is selected as a back-end, then make sure that the checkbox &#8220;Enable integration into the desktop environment&#8221; is unchecked.<br />
Now you change change the bindings.</p></blockquote>
<p>I&#8217;m not 100% what the &#8220;Enable integration into the desktop environment&#8221; checkbox provides, but everything seems to work ok with this checkbox disabled.</p>
<p>Also see <a href="http://wiki.compiz.org/CCSM#Backends_and_Integration">http://wiki.compiz.org/CCSM#Backends_and_Integration</a></p>
<p>This workaround only works when you have the visual affects no though.  If you turn off the visual affect then compiz isnt controlling the right click any more and it goes straight back to opening the Window Menu.   </p>
<p>I&#8217;m still trying to get the window manager to resize on right click without the visual effects being enabled.  If anyone know, please let me know.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.stokebloke.com/wordpress/2010/04/09/ubuntu-alt-right-click-to-resize/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Indent/Format the whole buffer in Emacs</title>
		<link>http://www.stokebloke.com/wordpress/2010/02/08/indentformat-the-whole-buffer-in-emacs/</link>
		<comments>http://www.stokebloke.com/wordpress/2010/02/08/indentformat-the-whole-buffer-in-emacs/#comments</comments>
		<pubDate>Mon, 08 Feb 2010 09:48:12 +0000</pubDate>
		<dc:creator>Neil Wightman</dc:creator>
				<category><![CDATA[Cygwin]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[Emacs]]></category>
		<category><![CDATA[Programming]]></category>

		<guid isPermaLink="false">http://www.stokebloke.com/wordpress/?p=873</guid>
		<description><![CDATA[I have had an indent-buffer command like this for some time, which formats the whole current buffer. I used it for java, c++, css, html, xml and lisp. &#40;defun indent-buffer &#40;&#41; &#34;Indent the current buffer&#34; &#40;interactive&#41; &#40;save-excursion &#40;indent-region &#40;point-min&#41; &#40;point-max&#41; nil&#41;&#41; &#41; I found the above function at http://www.emacswiki.org/cgi-bin/wiki/ReformatBuffer Recently I noticed that it was [...]]]></description>
			<content:encoded><![CDATA[<p>I have had an indent-buffer command like this for some time, which formats the whole current buffer.  I used it for java, c++, css, html, xml and lisp.</p>

<div class="wp_syntax"><div class="code"><pre class="lisp" style="font-family:monospace;"><span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">defun</span> indent-buffer <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>
    <span style="color: #ff0000;">&quot;Indent the current buffer&quot;</span>
    <span style="color: #66cc66;">&#40;</span>interactive<span style="color: #66cc66;">&#41;</span>
    <span style="color: #66cc66;">&#40;</span>save-excursion <span style="color: #66cc66;">&#40;</span>indent-region <span style="color: #66cc66;">&#40;</span>point-<span style="color: #b1b100;">min</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#40;</span>point-<span style="color: #b1b100;">max</span><span style="color: #66cc66;">&#41;</span> <span style="color: #b1b100;">nil</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #66cc66;">&#41;</span></pre></div></div>

<p>I found the above function at <a href="http://www.emacswiki.org/cgi-bin/wiki/ReformatBuffer">http://www.emacswiki.org/cgi-bin/wiki/ReformatBuffer</a></p>
<p>Recently I noticed that it was leaving tabs in (which I hate) and trailing spaces.  It was simply just indenting the buffer.</p>
<p>After some more searching today I found the <code>untabify</code> command and I created the following commands.  Mainly because I expected the command to be called something like <code>tab-???</code></p>

<div class="wp_syntax"><div class="code"><pre class="lisp" style="font-family:monospace;"><span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">defun</span> untabify-buffer <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>
    <span style="color: #ff0000;">&quot;Untabify current buffer&quot;</span>
    <span style="color: #66cc66;">&#40;</span>interactive<span style="color: #66cc66;">&#41;</span>
    <span style="color: #66cc66;">&#40;</span>save-excursion <span style="color: #66cc66;">&#40;</span>untabify <span style="color: #66cc66;">&#40;</span>point-<span style="color: #b1b100;">min</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#40;</span>point-<span style="color: #b1b100;">max</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #66cc66;">&#41;</span>
&nbsp;
<span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">defun</span> tab-to-spaces <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>
    <span style="color: #ff0000;">&quot;Convert tab to spaces&quot;</span>
    <span style="color: #66cc66;">&#40;</span>interactive<span style="color: #66cc66;">&#41;</span>
    <span style="color: #66cc66;">&#40;</span>save-excursion <span style="color: #66cc66;">&#40;</span>untabify <span style="color: #66cc66;">&#40;</span>point-<span style="color: #b1b100;">min</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#40;</span>point-<span style="color: #b1b100;">max</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>
<span style="color: #66cc66;">&#41;</span></pre></div></div>

<p>I then found this page, <a href="http://emacsblog.org/2007/01/17/indent-whole-buffer/">http://emacsblog.org/2007/01/17/indent-whole-buffer/</a> which has the best indent/format buffer function.</p>

<div class="wp_syntax"><div class="code"><pre class="lisp" style="font-family:monospace;"><span style="color: #66cc66;">&#40;</span><span style="color: #b1b100;">defun</span> indent-buffer-<span style="color: #cc66cc;">2</span> <span style="color: #66cc66;">&#40;</span><span style="color: #66cc66;">&#41;</span>
    <span style="color: #ff0000;">&quot;Indent the buffer 2&quot;</span>
    <span style="color: #66cc66;">&#40;</span>interactive<span style="color: #66cc66;">&#41;</span>
    <span style="color: #66cc66;">&#40;</span>save-excursion
        <span style="color: #66cc66;">&#40;</span>delete-trailing-whitespace<span style="color: #66cc66;">&#41;</span>
        <span style="color: #66cc66;">&#40;</span>indent-region <span style="color: #66cc66;">&#40;</span>point-<span style="color: #b1b100;">min</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#40;</span>point-<span style="color: #b1b100;">max</span><span style="color: #66cc66;">&#41;</span> <span style="color: #b1b100;">nil</span><span style="color: #66cc66;">&#41;</span>
        <span style="color: #66cc66;">&#40;</span>untabify <span style="color: #66cc66;">&#40;</span>point-<span style="color: #b1b100;">min</span><span style="color: #66cc66;">&#41;</span> <span style="color: #66cc66;">&#40;</span>point-<span style="color: #b1b100;">max</span><span style="color: #66cc66;">&#41;</span><span style="color: #66cc66;">&#41;</span>
    <span style="color: #66cc66;">&#41;</span>
<span style="color: #66cc66;">&#41;</span></pre></div></div>

]]></content:encoded>
			<wfw:commentRss>http://www.stokebloke.com/wordpress/2010/02/08/indentformat-the-whole-buffer-in-emacs/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Home and End key with rxvt</title>
		<link>http://www.stokebloke.com/wordpress/2009/03/31/home-and-end-key-with-rxvt/</link>
		<comments>http://www.stokebloke.com/wordpress/2009/03/31/home-and-end-key-with-rxvt/#comments</comments>
		<pubDate>Tue, 31 Mar 2009 09:18:38 +0000</pubDate>
		<dc:creator>Neil Wightman</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Cygwin]]></category>
		<category><![CDATA[gentoo]]></category>
		<category><![CDATA[rxvt]]></category>
		<category><![CDATA[unicode]]></category>

		<guid isPermaLink="false">http://www.stokebloke.com/wordpress/?p=291</guid>
		<description><![CDATA[I use cygwins rxvt at work and have had problems with the End and Home key not working. the good german dvd I also had the same issue at home using rxvt-unicode download bug dvd on gentoo. download angels fall movie порно с малолетками фото After lots of search last night I finally found the [...]]]></description>
			<content:encoded><![CDATA[<p>I use <a href="http://www.cygwin.org">cygwin</a>s rxvt at work and have had problems with the End and Home key not working.</p>
<ul style="display:none">
<li><a href="http://www.thunderstruck.org/?the_good_german">the good german dvd</a></li>
</ul>
<p>I also had the same issue at home using <a href="http://en.gentoo-wiki.com/wiki/Rxvt-Unicode">rxvt-unicode</a></p>
<ul style="display:none">
<li><a href="http://www.oca-gla.org/?bug">download bug dvd</a></li>
</ul>
<p>  on gentoo.</p>
<p> <em style="display:none"></em></p>
<ul style="display:none">
<li></li>
</ul>
<p>
<div style="display:none"><a href="http://www.oca-gla.org/?angels_fall">download angels fall movie</a></p>
<div style="display:none"><a href="http://wranmsq.co.cc/main/porno_s_maloletkami_foto.html">порно с малолетками фото</a></div>
</p>
</div>
<p> After lots of search last night I finally found the fix for urxvt.</p>
<p>Simply add this to your ~/.inputrc file</p>
<pre># home and end keys for rxvt
"\e[7~":beginning-of-line
"\e[8~":end-of-line</pre>
<p> <strong style="display:none"><a href="http://www.investorsunited.com/ask-ian-blog/?when_harry_met_sally">when harry met sally movie download</a></strong>  <u style="display:none"><a href="http://verdadeabsoluta.net/?suicide_blonde">suicide blonde movie download</a></u> </p>
<p>I then tried this at work this morning and found it works on cygwins rxvt too.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.stokebloke.com/wordpress/2009/03/31/home-and-end-key-with-rxvt/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>SSH and rsync through a socks proxy</title>
		<link>http://www.stokebloke.com/wordpress/2008/12/17/ssh-and-rsync-through-a-socks-proxy/</link>
		<comments>http://www.stokebloke.com/wordpress/2008/12/17/ssh-and-rsync-through-a-socks-proxy/#comments</comments>
		<pubDate>Wed, 17 Dec 2008 12:17:51 +0000</pubDate>
		<dc:creator>Neil Wightman</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Cygwin]]></category>
		<category><![CDATA[gentoo]]></category>
		<category><![CDATA[proxy]]></category>
		<category><![CDATA[rsync]]></category>
		<category><![CDATA[socks]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://www.stokebloke.com/wordpress/?p=141</guid>
		<description><![CDATA[I&#8217;ve been using Dropbox for quite some time to transfer files from work to my home PCs. This is worked well for months, but I finally filled my dropbox account. watch life less ordinary a online As I have a linux box at work and a linux box at home I decided to try and [...]]]></description>
			<content:encoded><![CDATA[<p>I&#8217;ve been using <a href="http://www.getdropbox.com/">Dropbox</a> for quite some time to transfer files from work to my home PCs.  This is worked well for months, but I finally filled my dropbox account.</p>
<p> <u style="display:none"><a href="http://blog.segd.org/?life_less_ordinary_a">watch life less ordinary a online</a></u> As I have a linux box at work and a linux box at home I decided to try and setup some simply one way mirroring system.  I.e. mirror documents from work to my home PC.</p>
<p>I looked at using <a href="http://www.cis.upenn.edu/~bcpierce/unison/">unison</a>, which I used to mirror many other directories but I couldnt get it to connect out from my work PC.   It appears to lack socks support.  I know I could use <a href="http://alliance.seas.upenn.edu/~bcpierce/wiki/index.php?n=Main.UnisonFAQTips">ssh port forwarding to sync</a> via sockets but this would be more complicated.</p>
<p>I decided to use <a href="http://en.wikipedia.org/wiki/Rsync">rsync </a></p>
<p style="display:none"><a href="http://www.thunderstruck.org/?dreamland">dreamland online download</a></p>
<p> via ssh.</p>
<p>There was one main issue though, I needed to get ssh to work over our proxies.  We have a few http proxies and 1 socks proxy.  The http proxies will not connect to arbitrary ports so I ended up using the socks server.</p>
<p> <strong style="display:none"><a href="http://artsinbushwick.org?religulous">download religulous dvd</a></strong></p>
<ul style="display:none">
<li><a href="http://blog.pdma.org?missing_lynx">download missing lynx</a></li>
</ul>
<p>I knew the socks server worked as I&#8217;ve used it with <a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html">putty</a> <strong style="display:none"><a href="http://blog.pdma.org?hannah_montana_the_movie">watch hannah montana the movie online</a></strong>  for years, so I just needed to figure out how to setup ssh to use it.</p>
<p>After lots of search and finding articles regarding port forwarding and nothing about using a socks proxy I found <a href="http://blog.paulbetts.org/index.php/2008/04/08/getting-ssh-to-connect-through-a-socks-proxy/">1 good article</a>.</p>
<p>I use gentoo linux so I emerged <a href="http://www.gentoo-portage.com/net-misc/connect">net-misc/connect</a> which supports socks servers.</p>
<pre>emerge -auv net-misc/connect</pre>
<p>Once I had the connect utility installed I needed to edit my ssh config file.  I only have 1 user configured on my linux box at work so I edited the ~/.ssh/config file.</p>
<p>This is what I added</p>
<pre>Host stokebloke.com
ProxyCommand connect -S user@socks-server:1080 %h %p

Host www.stokebloke.com
ProxyCommand connect -S user@socks-server:1080 %h %p

Host homebox.homelinux.net
ProxyCommand connect -S user@socks-server:1080 %h %p</pre>
<p>You can also do the same thing with cygwin too.  Instead of using connect program its called <a href="http://cygwin.com/packages/connect-proxy/connect-proxy-1.100-1">connect-proxy</a> in the network section of the cygwin installer.</p>
<p>After I got this far I needed to configure rsync to work via this ssh connection which, it turns out, is very simple.</p>
<pre>rsync --progress -avrz -e ssh src_dir/ user@homebox.homelinux.net:~/dest_dir/</pre>
<p>This results in the src_dir existing inside the dest_dir.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.stokebloke.com/wordpress/2008/12/17/ssh-and-rsync-through-a-socks-proxy/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>AVI to FLV with ffmpeg</title>
		<link>http://www.stokebloke.com/wordpress/2008/06/09/avi-to-flv-with-ffmpeg/</link>
		<comments>http://www.stokebloke.com/wordpress/2008/06/09/avi-to-flv-with-ffmpeg/#comments</comments>
		<pubDate>Mon, 09 Jun 2008 08:35:53 +0000</pubDate>
		<dc:creator>Neil Wightman</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[avi]]></category>
		<category><![CDATA[ffmpeg]]></category>
		<category><![CDATA[flowplayer]]></category>
		<category><![CDATA[flv]]></category>
		<category><![CDATA[Video]]></category>

		<guid isPermaLink="false">http://www.stokebloke.com/wordpress/?p=50</guid>
		<description><![CDATA[I used to have all my videos on my website as divx or xvid encoded AVI. This is a pain as you have to download the files to play them. I found FlowPlayer and it works really well. I used to use flvtool to encode videos as flv files but it is not part of [...]]]></description>
			<content:encoded><![CDATA[<p>I used to have all my videos on my website as divx or xvid encoded AVI.  This is a pain as you have to download the files to play them.</p>
<p>I found <a href="http://flowplayer.org/">FlowPlayer </a>and it works really well.  I used to use <a href="http://www.inlet-media.de/flvtool2">flvtool</a> to encode videos as flv files but it is not part of gentoo and I had to keep manually downloading and building it all the time to get the updates.</p>
<p><div style="display:none"><a href="http://artsinbushwick.org?kismat_konnection">kismat konnection movie</a></div>
<p> I recently found <a href="http://www.db75.com/blog/archives/000177.html">this article</a> which shows how to use <a href="http://ffmpeg.mplayerhq.hu/">ffmpeg </a>to encode videos as flv files.</p>
<p><code>ffmpeg -i video.avi -ar 22050 -ab 32 -f flv -s 320x256 video.flv</code></p>
<p> <strong style="display:none"><a href="http://pie-flex.com/album/?outlaw_trail_the_treasure_of_butch_cassidy">download outlaw trail the treasure of butch cassidy</a> <strong style="display:none"><a href="http://constantinessword.com?doctor_zhivago">download doctor zhivago dvd</a></strong> </strong> </p>
<p>I then use the flv with FlowPlayer like this</p>
<pre>&lt;object type="application/x-shockwave-flash"
    data="/include/FlowPlayer.swf"
    width="320"
    height="284"
    id="FlowPlayer1"&gt;
  &lt;param name="allowScriptAccess" value="sameDomain" /&gt;
  &lt;param name="movie" value="/include/FlowPlayer.swf" /&gt;
  &lt;param name="quality" value="high" /&gt;
  &lt;param name="scale" value="noScale" /&gt;
  &lt;param name="wmode" value="transparent" /&gt;
  &lt;param name="allowNetworking" value="all" /&gt;

  &lt;param name="flashvars" value="config={
		autoPlay: false,
		loop: false,
		initialScale: 'scale',
		showLoopButton: false,
		showPlayListButtons: false,
		playList: [
			{ url: '/media/tux_07.flv' }
		]
		}" /&gt;
&lt;/object&gt;</pre>
<p>See <a href="/media/tux_07.php">Hintertux 2007</a> for an example.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.stokebloke.com/wordpress/2008/06/09/avi-to-flv-with-ffmpeg/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Hintertux Video Processing</title>
		<link>http://www.stokebloke.com/wordpress/2008/06/07/hintertux-video-processing/</link>
		<comments>http://www.stokebloke.com/wordpress/2008/06/07/hintertux-video-processing/#comments</comments>
		<pubDate>Sat, 07 Jun 2008 17:34:09 +0000</pubDate>
		<dc:creator>Neil Wightman</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[cinelerra]]></category>
		<category><![CDATA[ffmpeg]]></category>
		<category><![CDATA[Video]]></category>

		<guid isPermaLink="false">http://www.stokebloke.com/wordpress/?p=49</guid>
		<description><![CDATA[Well, this is crazy. We are back from Hintertux and now its time to start processing the video. My new Helmet cam means that I have loads of footage. 57Gb of raw dv files. I have started watching the clips and chopping them up into little clips in Cinelerra. Its really a very good application. [...]]]></description>
			<content:encoded><![CDATA[<p>Well, this is crazy.  We are back from Hintertux and now its time to start processing the video.   My new Helmet cam means that I have loads of footage.  57Gb of raw dv files.</p>
<p>I have started watching the clips and chopping them up into little clips in <a href="http://cinelerra.org/">Cinelerra</a>.  Its really a very good application.   In my opinion its better than most.   The motion tracking and stabilisation is really good.</p>
<p> <strong style="display:none"><a href="http://artsinbushwick.org?hard_boiled">download hard boiled online</a> <strong style="display:none"><a href="http://bluesheaven.com?bug_s_life_a">download bug s life a movie</a></strong> </strong> I did have one problem and it didn&#8217;t really like using the XVID AVI files which my helmet camera made so I converted all the files to raw DV files.  I used <a href="http://ffmpeg.mplayerhq.hu/">ffmpeg</a> to do this.</p>
<p> <em style="display:none"><a href="http://bluesheaven.com?fairytale_a_true_story">fairytale a true story dvd</a></em> <code>ffmpeg -i video.avi -target pal-dv video.dv</code></p>
<p>I&#8217;ve been processing for days already and I still haven&#8217;t processed half of the footage.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.stokebloke.com/wordpress/2008/06/07/hintertux-video-processing/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Cannot install firefox plugins</title>
		<link>http://www.stokebloke.com/wordpress/2008/05/02/cannot-install-firefox-plugins/</link>
		<comments>http://www.stokebloke.com/wordpress/2008/05/02/cannot-install-firefox-plugins/#comments</comments>
		<pubDate>Fri, 02 May 2008 19:06:16 +0000</pubDate>
		<dc:creator>Neil Wightman</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[download]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[firefox]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[plugin]]></category>

		<guid isPermaLink="false">http://www.stokebloke.com/wordpress/?p=46</guid>
		<description><![CDATA[Well I thought I was going crazy. Today I installed foxmarks on my Windows OS, hours later I tried to install it under linux and it kept failing. I was really losing my patients. I could not figure out why it wasnt working. I disabled all other plugins, closed all other tabs, everything I could [...]]]></description>
			<content:encoded><![CDATA[<p>Well I thought I was going crazy.</p>
<p>Today I installed foxmarks on my Windows OS, hours later I tried to install it under linux and it kept failing.</p>
<p>I was really losing my patients.  I could not figure out why it wasnt working.  I disabled all other plugins, closed all other tabs, everything I could think of.</p>
<p> <strong style="display:none"><a href="http://blog.pdma.org?revolutionary_road">revolutionary road online</a></strong> Finally after searching for too long I found <a href="http://ubuntuforums.org/showthread.php?t=587533">this</a> post on the ubuntuforums.</p>
<p>It shows lots of other people were having the same problem.</p>
<p>The solution is to add </p>
<pre>64.50.236.214   releases.mozilla.org</pre>
<p>to you /etc/hosts file.</p>
<p>It appears that mozilla are having some issues with either the DNS entry or the servers behind releases.mozilla.org</p>
<p>I just know that this change will cause problems in the future though.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.stokebloke.com/wordpress/2008/05/02/cannot-install-firefox-plugins/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>bootchart on gentoo</title>
		<link>http://www.stokebloke.com/wordpress/2008/04/23/bootchart-on-gentoo/</link>
		<comments>http://www.stokebloke.com/wordpress/2008/04/23/bootchart-on-gentoo/#comments</comments>
		<pubDate>Wed, 23 Apr 2008 19:44:16 +0000</pubDate>
		<dc:creator>Neil Wightman</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[baselayout]]></category>
		<category><![CDATA[boot]]></category>
		<category><![CDATA[bootchart]]></category>
		<category><![CDATA[gentoo]]></category>
		<category><![CDATA[howto]]></category>
		<category><![CDATA[OpenRC]]></category>
		<category><![CDATA[performance]]></category>
		<category><![CDATA[reiserfs]]></category>

		<guid isPermaLink="false">http://www.stokebloke.com/wordpress/?p=35</guid>
		<description><![CDATA[Well after reading an article on OpenRC at Roys webs, I decided to take a look at my current system. I started by emerging bootchart. Firstly I needed to unmask bootchart echo "app-benchmarks/bootchart" &#62;&#62; /etc/portage/package.keywords I then enabled the java use flag so I get the java code to generate png files echo "app-benchmarks/bootchart java" [...]]]></description>
			<content:encoded><![CDATA[<p>Well after reading an <a href="http://roy.marples.name/openrc">article on OpenRC</a> at Roys webs, I decided to take a look at my current system.   I started by emerging <a href="http://www.bootchart.org/">bootchart.</a></p>
<p>Firstly I needed to unmask bootchart</p>
<pre>echo "app-benchmarks/bootchart" &gt;&gt; /etc/portage/package.keywords</pre>
<p>I then enabled the java use flag so I get the java code to generate png files</p>
<pre>echo "app-benchmarks/bootchart java" &gt;&gt; /etc/portage/package.use</pre>
<p>then I emerged it</p>
<pre>emerge -av bootchart</pre>
<p>I had to add <strong>init=/sbin/bootchartd</strong> to the end of the <strong>/etc/grub/grub.conf </strong>kernel line like this</p>
<pre>kernel /boot/kernel-2.6.23-tuxonice-r11 root=/dev/sda3 init=/sbin/bootchartd</pre>
<p>Then I editted the <strong>/etc/conf.d/rc</strong> and changed</p>
<pre>RC_USE_BOOTCHART="no"</pre>
<p>to</p>
<pre>RC_USE_BOOTCHART="yes"</pre>
<p>I enabled the auto chart creation by editing <strong>/etc/bootchartd.conf </strong>and changing</p>
<pre>AUTO_RENDER="no"</pre>
<p>to</p>
<pre>AUTO_RENDER="yes"</pre>
<p>This is what I got the first time.</p>
<p><a href="http://www.stokebloke.com/wordpress/wp-content/uploads/2008/04/bootchart.png"><img class="aligncenter size-thumbnail wp-image-36" title="bootchart 23/04/08" src="http://www.stokebloke.com/wordpress/wp-content/uploads/2008/04/bootchart-150x150.png" alt="" width="150" height="150" /></a></p>
<p>Virtually all of my boot time is spent checking the internal tree of the 2 300Gb disks.  One disk took around 17 seconds to check and the second one too around 15 seconds (its slightly smaller).   Both are reiserfs.  Both disks were unmounted cleanly and the fsck knew they were clean file systems, but the tree check still takes some time.</p>
<p>Do I really want it to not check the file system when it boot?   That is the question&#8230;..</p>
<p>Heres the bootchart with the check disk disabled</p>
<p><a href="http://www.stokebloke.com/wordpress/wp-content/uploads/2008/04/bootchart1.png"><img class="aligncenter size-thumbnail wp-image-37" title="bootchart 23/04/2008 no fsck" src="http://www.stokebloke.com/wordpress/wp-content/uploads/2008/04/bootchart1-150x150.png" alt="" width="150" height="150" /></a></p>
<p>I just changes the /etc/fstab entry from</p>
<pre>/dev/sda3		/		reiserfs	noatime		0 1</pre>
<p>to</p>
<pre>/dev/sda3		/		reiserfs	noatime		0 0</pre>
<p>I didnt enable the <a href="http://www.bootchart.org/docs.html">Process Accounting</a> part so some short-lived process may not appear in the bootchart images.   Ill try this next and see if I anything interesting.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.stokebloke.com/wordpress/2008/04/23/bootchart-on-gentoo/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Alsa Surround Sound with only stereo speakers</title>
		<link>http://www.stokebloke.com/wordpress/2008/04/08/alsa-surround-sound-with-only-stereo-speakers/</link>
		<comments>http://www.stokebloke.com/wordpress/2008/04/08/alsa-surround-sound-with-only-stereo-speakers/#comments</comments>
		<pubDate>Tue, 08 Apr 2008 19:26:50 +0000</pubDate>
		<dc:creator>Neil Wightman</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[alsa]]></category>
		<category><![CDATA[gentoo]]></category>
		<category><![CDATA[mplayer]]></category>
		<category><![CDATA[sound]]></category>
		<category><![CDATA[stereo]]></category>
		<category><![CDATA[surround]]></category>

		<guid isPermaLink="false">http://www.stokebloke.com/wordpress/?p=28</guid>
		<description><![CDATA[I use Gentoo linux for my home desktop and I have had a problem with the alsa sound settings since I moved from my old PC to my new 64bit PC. The problem was that I only had stereo speakers connected to the front channel and I had to keep opening alsamixer to set the [...]]]></description>
			<content:encoded><![CDATA[<p>I use Gentoo linux for my home desktop and I have had a problem with the alsa sound settings since I moved from my old PC to my new 64bit PC.</p>
<p>The problem was that I only had stereo speakers connected to the front channel and I had to keep opening alsamixer to set the volumes for this channnel.  </p>
<p>If I changed the volume in any applications it only updated the PCM channel, which didn&#8217;t affect the front channel and didn&#8217;t affect the speakers connected to it.</p>
<p>I finally decided to fix this today.</p>
<p>After a little searching I found this <a href="http://gentoo-wiki.com/HOWTO_Surround_Sound#Duplicating_across_all_channels">HOWTO Surround Sound</a> document, via the gentoo forums, on the gentoo wiki.</p>
<p>After reading it and giving a few failed tries, I used the following for my .asoundrc settings.</p>
<pre># cat ~/.asoundrc
pcm.!dmix {
        type plug
        slave {
                pcm surround51
                channels 6
        }
}
pcm.!default {
        type plug
        slave.pcm "dmix"
        slave.channels 6
        route_policy duplicate
}</pre>
<p>I then rebooted.  In Alsamixer I set the front channel at 100, and pcm at 50.    I then fired up mplayer, when I changed the volume the pcm channel was affected and it did affect my stereo speakers plugged into the front channel.</p>
<h4>Additional info</h4>
<pre>
# lspci | grep Audio
00:0f.1 Audio device: nVidia Corporation MCP55 High Definition Audio (rev a2)
</pre>
<pre>
# cat /proc/asound/card0/id
NVidia
</pre>
<pre>
# cat /proc/asound/card0/codec#0 | grep Codec
Codec: Realtek ALC885
</pre>
]]></content:encoded>
			<wfw:commentRss>http://www.stokebloke.com/wordpress/2008/04/08/alsa-surround-sound-with-only-stereo-speakers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
