<?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"
	>

<channel>
	<title>LinuxLove.info</title>
	<atom:link href="http://www.linuxlove.info/site/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.linuxlove.info/site</link>
	<description>One love</description>
	<pubDate>Wed, 23 Jul 2008 03:17:26 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.5.1</generator>
	<language>en</language>
			<item>
		<title>SOCKS Proxying With Tor</title>
		<link>http://www.linuxlove.info/site/28/socks-proxying-with-tor/</link>
		<comments>http://www.linuxlove.info/site/28/socks-proxying-with-tor/#comments</comments>
		<pubDate>Thu, 22 May 2008 20:38:14 +0000</pubDate>
		<dc:creator>\m/ike</dc:creator>
		
		<category><![CDATA[Tips &amp; Tricks]]></category>

		<guid isPermaLink="false">http://www.linuxlove.info/site/?p=28</guid>
		<description><![CDATA[For those wishing to not use their own machines and to keep their identity as anonymous as can be while proxying on Ubuntu, Tor is a nice solution.
Tor can easily be installed on Ubuntu by running:
sudo aptitude update &#38;&#38; sudo aptitude install tor
This will download and setup Tor as a system service, which I personally [...]]]></description>
			<content:encoded><![CDATA[<p>For those wishing to not use their own machines and to keep their identity as anonymous as can be while proxying on Ubuntu, <a href="http://www.torproject.org/">Tor</a> is a nice solution.<span id="more-28"></span></p>
<p>Tor can easily be installed on Ubuntu by running:</p>
<p><strong>sudo aptitude update &amp;&amp; sudo aptitude install tor</strong></p>
<p>This will download and setup Tor as a system service, which I personally don&#8217;t like starting at boot (I prefer starting it manually when I want to go anonymous).  Installing Tor also installs Privoxy as a system service (more on Privoxy in a bit).  Stopping them from starting up at boot can be accomplished by:</p>
<p><strong>sudo update-rc.d -f tor remove<br />
<strong>sudo update-rc.d -f privoxy remove</strong></strong></p>
<p>Now, whenever you&#8217;d like to start up Tor, run:</p>
<p><strong>sudo /etc/init.d/tor start</strong></p>
<p>and when you&#8217;d like it to go back to sleep:</p>
<p><strong>sudo /etc/init.d/tor stop</strong></p>
<p>I prefer the manual startup and stopping method because I like to keep close track of what&#8217;s eating up my memory, and if I&#8217;m not using a service, why have it running?  Although, leaving it running at all times when not being used won&#8217;t hurt anything either.</p>
<p>Tor sets its tunnel up on port 9050 by default.  To tunnel your connection through the Tor network, simply point your application to &#8220;localhost&#8221; on port 9050 as a SOCKS5 proxy.</p>
<p><span style="text-decoration: underline;">Privoxy</span><br />
While Privoxy is not necessary for the proper running of Tor, it can help further increase your anonymity online.  By default, Tor will forward on the full user agent strings of your browser (like when using Firefox).  This doesn&#8217;t strike me as a <em>huge</em> violation of anonymity, but it could theoretically be used for certain attacks and abuses.  If you&#8217;d like to filter them out, Privoxy is your man.</p>
<p>Edit your Privoxy config (located at <strong>/etc/privoxy/config</strong>) with your favorite text editor and add the following line to the bottom:</p>
<p><strong> forward-socks4a / localhost:9050 .</strong></p>
<p>The period at the end is necessary.  Now, startup both Tor and Privoxy:</p>
<p><strong>sudo /etc/init.d/tor start<br />
sudo /etc/init.d/privoxy start</strong></p>
<p>And instead of pointing Firefox to Tor directly at port 9050, point it to port 8118 (Privoxy&#8217;s) on localhost instead.  Your HTTP traffic will be routed through Privoxy, which will filter your headers, and then through the Tor network.</p>
<p><span style="text-decoration: underline;">Torbutton<br />
</span>If you intend to use Tor with Firefox, Torbutton is an extremely easy to use extension to enable and disable Tor without messing with any settings in Preferences. It can be found and installed <a href="https://addons.mozilla.org/en-US/firefox/addon/2275">here</a>. Once it&#8217;s activated, simply click &#8220;Tor Disabled&#8221; now located in the lower-right corner of the browser to enable anonymous browsing.  This still requires the proper installation and setup of both Tor AND Privoxy via apt.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxlove.info/site/28/socks-proxying-with-tor/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Using a Remote SSH Shell as a SOCKS Proxy</title>
		<link>http://www.linuxlove.info/site/27/using-a-remote-ssh-shell-as-a-socks-proxy/</link>
		<comments>http://www.linuxlove.info/site/27/using-a-remote-ssh-shell-as-a-socks-proxy/#comments</comments>
		<pubDate>Thu, 22 May 2008 19:28:23 +0000</pubDate>
		<dc:creator>\m/ike</dc:creator>
		
		<category><![CDATA[Tips &amp; Tricks]]></category>

		<guid isPermaLink="false">http://www.linuxlove.info/site/?p=27</guid>
		<description><![CDATA[Campus firewall got you down?  Looking for a speedier (but less anonymous) alternative to Tor?  SSH is a magical thing indeed.
First thing you need is a remote SSH server to connect to and an account on it.  You can set one up on your own machine using a:
sudo aptitude update &#38;&#38; sudo [...]]]></description>
			<content:encoded><![CDATA[<p>Campus firewall got you down?  Looking for a speedier (but less anonymous) alternative to Tor?  SSH is a magical thing indeed.<span id="more-27"></span></p>
<p>First thing you need is a remote SSH server to connect to and an account on it.  You can set one up on your own machine using a:</p>
<p><strong>sudo aptitude update &amp;&amp; sudo aptitude install openssh-server</strong></p>
<p>This will get an ssh server running on the default port of 22.  If you&#8217;d like to change any config options (including port), go for a:</p>
<p><strong>sudo nano /etc/ssh/sshd_config</strong></p>
<p>If you do decide to edit some options, be sure to restart the server when you&#8217;re done:</p>
<p><strong>sudo /etc/init.d/ssh restart</strong></p>
<p>If you&#8217;re using a broadband router, you&#8217;ll likely need to setup some port forwarding so that your ssh server can be seen by the outside world (namely, getting port 22 forwarded to the internal ip of the machine running the ssh server).  <a href="http://www.portforward.com/english/routers/port_forwarding/routerindex.htm">PortForward.com</a> offers great guides for more detailed help on doing this.  Once we have our server running and our ports forwarded, we can access it from anywhere on the internet (work, school, etc.) and send our connection through it via an encrypted tunnel (eat that, campus firewall).  On your client machine, run a:</p>
<p><strong><code>ssh -D 9999 username@ip-of-ssh-server</code></strong></p>
<p>If you changed the default port of your remote server, run:</p>
<p><strong><code>ssh -D 9999 username@ip-of-ssh-server -p &lt;port&gt;</code></strong></p>
<p>instead.  If you&#8217;d like to give yourself an easy to remember domain, or if your home IP frequently changes, <a href="http://www.dyndns.com/">dyndns.com</a> offers free dns services to get this done.</p>
<p>After running the previous command, you will have created a local SOCS tunnel to your SSH server.  Now all you have to do is instruct whatever application you want to proxy to connect to port 9999 on &#8220;localhost&#8221; as a SOCKS (v5 is a preferable option, if available) proxy.</p>
<p>Although this does not anonymize you (in most cases, you&#8217;re just using your own machine to route a remote connection), this is useful for circumventing firewalls and encrypting your data, sometimes faster and more reliably then with Tor.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxlove.info/site/27/using-a-remote-ssh-shell-as-a-socks-proxy/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Extracting the Audio Track From a Video File</title>
		<link>http://www.linuxlove.info/site/26/extracting-the-audio-track-from-a-video-file/</link>
		<comments>http://www.linuxlove.info/site/26/extracting-the-audio-track-from-a-video-file/#comments</comments>
		<pubDate>Thu, 22 May 2008 18:40:14 +0000</pubDate>
		<dc:creator>\m/ike</dc:creator>
		
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://www.linuxlove.info/site/?p=26</guid>
		<description><![CDATA[So now you&#8217;ve got that video off youtube saved locally, but what you really want is to use its audio to burn an audio CD.  Yeah&#8230;let&#8217;s do that.
Chances are you have mplayer installed already, but just to make sure:
sudo aptitude update &#38;&#38; sudo aptitude install mplayer
Next, all we have to do is invoke mplayer using [...]]]></description>
			<content:encoded><![CDATA[<p>So now you&#8217;ve got that video off youtube saved locally, but what you <em>really</em> want is to use its audio to burn an audio CD.  Yeah&#8230;let&#8217;s do that.<span id="more-26"></span></p>
<p>Chances are you have mplayer installed already, but just to make sure:</p>
<p><strong>sudo aptitude update &amp;&amp; sudo aptitude install mplayer</strong></p>
<p>Next, all we have to do is invoke mplayer using some special commands:</p>
<p><strong>mplayer &lt;input filename&gt; -novideo -ao pcm:fast:file=audio.wav -channels 2</strong></p>
<p>This will drop &#8220;audio.wav&#8221; into the current folder.  You can then encode it into the format of your choosing or easily create an audio CD using your favorite burning app (<a href="http://www.gnome.org/projects/brasero/">Brasero</a> being mine).  I sometimes like to use this to extract the audio from <a href="http://www.linuxlove.info/site/25/a-neat-app-youtube-dl/">youtube videos</a>.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxlove.info/site/26/extracting-the-audio-track-from-a-video-file/feed/</wfw:commentRss>
		</item>
		<item>
		<title>A Neat App: youtube-dl</title>
		<link>http://www.linuxlove.info/site/25/a-neat-app-youtube-dl/</link>
		<comments>http://www.linuxlove.info/site/25/a-neat-app-youtube-dl/#comments</comments>
		<pubDate>Thu, 22 May 2008 18:35:33 +0000</pubDate>
		<dc:creator>\m/ike</dc:creator>
		
		<category><![CDATA[Neat Apps]]></category>

		<guid isPermaLink="false">http://www.linuxlove.info/site/?p=25</guid>
		<description><![CDATA[Digging a video of some dancing foreign individuals on youtube?  Save it locally and never have to worry about not finding it or your internet being down again!
Installing couldn&#8217;t really be much easier:
sudo aptitude update &#38;&#38; sudo aptitude install youtube-dl
Then, all you have to do is run:
youtube-dl &#60;url of video&#62;
To grab that great video in [...]]]></description>
			<content:encoded><![CDATA[<p>Digging a video of some dancing foreign individuals on youtube?  Save it locally and never have to worry about not finding it or your internet being down again!<span id="more-25"></span></p>
<p>Installing couldn&#8217;t really be much easier:</p>
<p><strong>sudo aptitude update &amp;&amp; sudo aptitude install youtube-dl</strong></p>
<p>Then, all you have to do is run:</p>
<p><strong>youtube-dl &lt;url of video&gt;</strong></p>
<p>To grab that great video in .flv format.  Lots of media players play them just fine.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxlove.info/site/25/a-neat-app-youtube-dl/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Managing Startup Services in the Terminal</title>
		<link>http://www.linuxlove.info/site/23/managing-startup-services-in-the-terminal/</link>
		<comments>http://www.linuxlove.info/site/23/managing-startup-services-in-the-terminal/#comments</comments>
		<pubDate>Fri, 16 May 2008 06:12:14 +0000</pubDate>
		<dc:creator>\m/ike</dc:creator>
		
		<category><![CDATA[Tips &amp; Tricks]]></category>

		<guid isPermaLink="false">http://www.linuxlove.info/site/?p=23</guid>
		<description><![CDATA[Install a neat new package from apt only to watch in horror as it starts up a (possibly) unnecessary service along with it?  &#8220;Doodoo!  I only wanted to use the standalone cli version of that!&#8221;, you yell.  Look no further friend.
Of course, there is always the GUI utility found in Menu -&#62; [...]]]></description>
			<content:encoded><![CDATA[<p>Install a neat new package from apt only to watch in horror as it starts up a (possibly) unnecessary service along with it?  &#8220;Doodoo!  I only wanted to use the standalone cli version of that!&#8221;, you yell.  Look no further friend.<span id="more-23"></span></p>
<p>Of course, there is always the GUI utility found in Menu -&gt; System -&gt; Administration -&gt; Services, but I&#8217;ve noticed that for some reason or another, that utility doesn&#8217;t always list all the services set to startup at boot.  That&#8217;s where the command line, once again, saves the day.  You&#8217;ll need to know the exact name of the service to use the utility, which shouldn&#8217;t be that hard to figure out.  If in doubt, drop a:</p>
<p><strong>ls /etc/init.d/</strong></p>
<p>in a terminal to see a list of the services available to the system.  Once we have our name, we can make use of the Debian service configumator (that&#8217;s really its technical name):</p>
<p><strong>sudo update-rc.d apache2 defaults</strong></p>
<p>will start apache at boot in the default run levels (2, 3, 4, and 5).  Inversely, running a:</p>
<p><strong>sudo update-rc.d -f apache2 remove</strong></p>
<p>will ensure that apache keeps it face shut at boot.  Lots more options for update-rc.d can be found by checking out its man page, if this sort of thing really interests you:</p>
<p><strong>man update-rc.d</strong></p>
<p>Happy servicing! \m/</p>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxlove.info/site/23/managing-startup-services-in-the-terminal/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Xbox 360 Media Sharing: Ushare and Fuppes</title>
		<link>http://www.linuxlove.info/site/21/xbox-360-media-sharing-ushare-and-fuppes/</link>
		<comments>http://www.linuxlove.info/site/21/xbox-360-media-sharing-ushare-and-fuppes/#comments</comments>
		<pubDate>Tue, 13 May 2008 16:11:28 +0000</pubDate>
		<dc:creator>\m/ike</dc:creator>
		
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://www.linuxlove.info/site/?p=21</guid>
		<description><![CDATA[So you&#8217;ve converted a bunch of mkvs to mp4s via the guide on this site or you have a boatload of xvids dying to be seen on that lcd tv of yours.  We could either put that dvd burner to work&#8230;or give it the night off and leave them right where they are on [...]]]></description>
			<content:encoded><![CDATA[<p>So you&#8217;ve converted a bunch of mkvs to mp4s via <a href="http://www.linuxlove.info/site/?p=17">the guide</a> on this site or you have a boatload of xvids dying to be seen on that lcd tv of yours.  We could either put that dvd burner to work&#8230;or give it the night off and leave them right where they are on that 750 gig external.  Trust me, your girlfriend is 4 times as sick as you are of watching &#8220;l33t scene rlsz&#8221; on your 19in laptop screen. <span id="more-21"></span></p>
<p><span style="text-decoration: underline;">Note<br />
</span>This should also work for the Playstation 3 with a little tweaking, but alas, I do not own one to mess around with.</p>
<p><span style="text-decoration: underline;">What We Need<br />
</span>First things first: in order for this to work, we need both your computer and Xbox 360 living together on the same network.  Many people already have this setup (e.g. modem plugged into a router, computer(s) and 360 plugged into router).  If you don&#8217;t have things setup like this already, either fire up that dvd burner or purchase yourself a router and some patch cable.</p>
<p><span style="text-decoration: underline;">Media Sharing<br />
</span>The whole idea behind this is that your computer acts as a media server on your LAN, sharing the files you configure it to, and your 360 plays the stream (in my experience, it does this flawlessly).  This is great for a whole bunch of reasons.  Microsoft has built this serving functionality in some which-woo version of it&#8217;s bloated Windows Media Player, so us Linux users have created our own apps for getting this done.</p>
<p><span style="text-decoration: underline;">Ushare vs Fuppes<br />
</span>Both <a href="http://ushare.geexbox.org/">Ushare</a> and <a href="http://fuppes.ulrich-voelkel.de/">Fuppes</a> will stream files to your 360 on the Linux side of things.  They do, however, have some differences.  Ushare is more bit more straight-forward in its use and configuration, but it does not automatically transcode media on the fly.  This means that all the media you wish to stream has to be within the 360&#8217;s sorta strict playback specification (see <a href="http://www.xbox.com/en-us/support/systemuse/xbox360/digitalmedia/videoplaybackfaq.htm">this</a> faq).  It also seems to have a nasty bug in streaming large files (playback will stop with an error at around the 2gb mark, even though the 360 supports streaming files up to 4gb).  Fuppes on the other hand, while being slightly more complicated to setup and use, will transcode video into an Xbox 360 playable format on-the-fly (although I haven&#8217;t really used it for this) and handles &gt;2gb files fine.  Personally, I tend to use Ushare for smaller xvid sharing (~350mb tv eps) and Fuppes for my mkv to mp4 conversions (they tend to be around 2.2gb per half).  I should probably use Fuppes for both, but I guess I&#8217;m just strange like that.</p>
<p><span style="text-decoration: underline;">Ushare<br />
</span>Installing Ushare is a breeze.  On Ubuntu Hardy, it can be found in the repos, so a:</p>
<p><strong>sudo aptitude update &amp;&amp; sudo aptitude install ushare</strong></p>
<p>will get you setup.  On Gutsy, the Ushare site provides us with a nice .deb <a href="http://www.geexbox.org/debian/pool/main/ushare/ushare_1.1a-0ubuntu1_i386.deb">here</a>.  To ensure that Ushare didn&#8217;t add itself as a startup service, issue:</p>
<p><strong>sudo update-rc.d -f ushare remove</strong></p>
<p>To get Ushare up and running, go for a:</p>
<p><strong>ushare -p 49153 -x -c /path/to/your/media</strong></p>
<p><span style="text-decoration: underline;">Fuppes<br />
</span>Fuppes can also be installed via deb: <a href="http://ppa.launchpad.net/james-lee/ubuntu/pool/main/f/fuppes/fuppes_0+svn578-0ubuntu1~gutsy7_i386.deb">Gutsy</a> | <a href="http://www.topdog-software.com/oss/fuppes/fuppes_0+svn611-1_i386.deb">Hardy</a>.  I like making sure that fuppes didn&#8217;t go the service route either:</p>
<p><strong>sudo update-rc.d -f fuppes remove</strong></p>
<p>Next, we need to do a little bit more config before our first run:</p>
<p><strong>cd ~<br />
mkdir .fuppes<br />
cd .fuppes<br />
wget http://linuxlove.info/files/fuppes.cfg<br />
wget http://linuxlove.info/files/vfolder.cfg</strong></p>
<p>Now, the only thing left to do is to edit the top of your fuppes.cfg using your favorite text editor to include the directories you&#8217;d like to share.  Once that&#8217;s all setup, run Fuppes by typing:</p>
<p><strong>fuppes</strong></p>
<p>In a terminal.  This will start up the app and drop you at an interactive prompt (it&#8217;d be nice if it told you that, wouldn&#8217;t it?).  Type <strong>r &lt;enter&gt; </strong>to build your media database and then <strong>v &lt;enter&gt; </strong>to refresh your vfolder listing.  I&#8217;m sure there is a way to do this automatically at startup, but I take the lazy route and do it manually every time.</p>
<p>Whichever route you go, your 360 should detect either fuppes or ushare as a &#8220;computer&#8221; in the media tab of the dashboard.  Yippee!</p>
<p><span style="text-decoration: underline;">Save Some Disk Space</span><br />
At the top of my fuppes.cfg, you&#8217;ll notice that I have my dvd drive shared.  This is because I like to burn my <a href="http://www.linuxlove.info/site/?p=17">mkv2mp4 conversions</a> to dvd and then stream them from my computer&#8217;s dvd-rom drive (using <a href="http://www.linuxlove.info/site/?p=20">speedcontrol</a> to quiet the bugger down).  This takes the stress of frequent movie watching off the 360&#8217;s drive, which is always a good thing.  We all know how great the 360 is at failing on its own ;].</p>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxlove.info/site/21/xbox-360-media-sharing-ushare-and-fuppes/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Slow Down That Noisy CD/DVD Drive</title>
		<link>http://www.linuxlove.info/site/20/slow-down-that-noisey-cddvd-drive/</link>
		<comments>http://www.linuxlove.info/site/20/slow-down-that-noisey-cddvd-drive/#comments</comments>
		<pubDate>Tue, 13 May 2008 01:01:06 +0000</pubDate>
		<dc:creator>\m/ike</dc:creator>
		
		<category><![CDATA[Tips &amp; Tricks]]></category>

		<guid isPermaLink="false">http://www.linuxlove.info/site/?p=20</guid>
		<description><![CDATA[Ever been watching a DVD or streaming a video file and been uber distracted by your 4 year old drive&#8217;s rattle?  Slow it down once and for all! 
Now, there are lots of guides around the internets for doing this, but for me, none of them worked. Not one technique out of about five. [...]]]></description>
			<content:encoded><![CDATA[<p>Ever been watching a DVD or streaming a video file and been uber distracted by your 4 year old drive&#8217;s rattle?  Slow it down once and for all! <span id="more-20"></span></p>
<p>Now, there are lots of guides around the internets for doing this, but for me, none of them worked. Not one technique out of about five. Then one day I came across a small application appropriately enough named &#8220;speedcontrol&#8221; writen by <a href="http://noto.de">Thomas Fritzsche</a> and man, it&#8217;s been smooth sailing since.  The following terminal commands should you get you setup:</p>
<p><strong>cd ~<br />
wget http://linuxlove.info/files/speedcontrol<br />
sudo mv speedcontrol /usr/bin/<br />
sudo chmod +x /usr/bin/speedcontrol</strong></p>
<p>Now, whenever you&#8217;d like to slow that drive down, simply run a:</p>
<p><strong>sudo speedcontrol -x 2 /dev/dvd<br />
</strong>(you may have to change the path to your device if it differs)</p>
<p>and enjoy the pure, streaming silence.  To reset it back to max speed when you&#8217;re finished, type:</p>
<p><strong>sudo speedcontrol -x 0 /dev/dvd</strong></p>
<p>or just restart your machine.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxlove.info/site/20/slow-down-that-noisey-cddvd-drive/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Converting (Remuxing) an x264 .mkv for Playback on the Xbox 360</title>
		<link>http://www.linuxlove.info/site/17/converting-remuxing-a-mkv-for-playback-on-the-xbox-360/</link>
		<comments>http://www.linuxlove.info/site/17/converting-remuxing-a-mkv-for-playback-on-the-xbox-360/#comments</comments>
		<pubDate>Sun, 11 May 2008 06:18:58 +0000</pubDate>
		<dc:creator>\m/ike</dc:creator>
		
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://www.linuxlove.info/site/?p=17</guid>
		<description><![CDATA[Looking to play some of those HD .mkv files you&#8217;ve been collecting on your Xbox 360?  Looking for the Linux equivalent to GotSent on Windows? This is the guide for you. 
Don&#8217;t let yourself become overwhelmed with the seemingly large number of steps involved with this.  Trust me when I tell you the [...]]]></description>
			<content:encoded><![CDATA[<p>Looking to play some of those HD .mkv files you&#8217;ve been collecting on your Xbox 360?  Looking for the Linux equivalent to GotSent on Windows? This is the guide for you. <span id="more-17"></span></p>
<p>Don&#8217;t let yourself become overwhelmed with the seemingly large number of steps involved with this.  Trust me when I tell you the results are more than worth it.  This is a far preferable method to re-encoding the entire mkv to .mp4 because 1) it&#8217;s infinitely quicker (less than a half hour for a 4.4gb file) because we&#8217;re only converting the audio and remuxing the streams and 2) there is no loss in video quality because the stream is left untouched.</p>
<p>Acknowledgements: Uber, mega, ultra thanks go to <a href="http://ubuntuforums.org/member.php?u=207388">jexxie</a>, <a href="http://ubuntuforums.org/member.php?u=236122">m3_del</a>, and <a href="http://ubuntuforums.org/member.php?u=96895">hansa56</a> on the Ubuntu Forums for all their work and research on this topic and for teaching me how to do this.  This is essentially a compilation / re-organization / expansion of the info found in these two threads: <a href="http://ubuntuforums.org/showthread.php?t=684780">one</a> <a href="http://ubuntuforums.org/showthread.php?t=684780">two</a>.</p>
<p><span style="text-decoration: underline;">Setup</span></p>
<p>Before starting, we need to get our needed applications installed.  First up is a patched version of MP4Box that fixes a bug with files larger than 2gb.  The following commands should get you downloaded, patched, compiled, and installed:</p>
<p><strong>cd ~<br />
sudo aptitude update &amp;&amp; sudo aptitude install zlib1g-dev<br />
wget http://downloads.sourceforge.net/gpac/gpac-0.4.4.tar.gz<br />
tar -vzxf gpac-0.4.4.tar.gz<br />
wget http://linuxlove.info/files/gpac.patch<br />
patch -p0 &lt; gpac.patch<br />
cd gpac<br />
chmod +x configure<br />
./configure<br />
make<br />
sudo make install</strong></p>
<p>We&#8217;re also going to need the Nero AAC encoder:</p>
<p><strong>cd ~<br />
wget http://linuxlove.info/files/neroAacEnc<br />
sudo mv neroAacEnc /usr/bin/<br />
sudo chmod +x /usr/bin/neroAacEnc</strong></p>
<p>Finally, we&#8217;ll need some packages from the repos:</p>
<p><strong>sudo aptitude update &amp;&amp; sudo aptitude install bbe mkvtoolnix mplayer normalize-audio</strong></p>
<p><span style="text-decoration: underline;">File Size Limitation</span></p>
<p>Now that we have all the required apps installed, here is an important note regarding file sizes.  Any mkv that is larger that 4gb will have to be split prior to be converted.  This is a <a href="http://www.xbox.com/en-us/support/systemuse/xbox360/digitalmedia/videoplaybackfaq.htm#maxfilesize">limitation</a> of the Xbox 360&#8217;s current playback capabilities.  More about this in a bit.</p>
<p><span style="text-decoration: underline;">Compatable Audio Formats</span></p>
<p>This technique currently works best for mkvs with either AC3 or DTS audio.  Some of the newer formats, such as EAC3, are not officially supported by mplayer yet.  If you really need support for these formats (I don&#8217;t see many mkvs with them yet), I&#8217;m fairly sure it can probably be compiled into it.  Google around for info.</p>
<p><span style="text-decoration: underline;">Some Handy Time Saving Scripts</span></p>
<p>1. Jexxie has written a really excellent script with lots of auto-detecting features.  While I have used parts of it to make my own script, I have not actually used it to convert anything, so your luck may vary.  It can be found <a href="http://ubuntuforums.org/showpost.php?p=4488837&amp;postcount=33">here</a>.  I&#8217;m pretty sure the script does not currently auto-split any files larger than 4gb, so you&#8217;ll have to do this manually before running them through the script:</p>
<p><strong>mkvmerge -o output.mkv </strong><strong>--</strong><strong>split 2300M input.mkv</strong></p>
<p>Now you can use the script on each half independently.</p>
<p>2. Another option is to use my far more simple and noobish script.  I have borrowed some stuff from Jexxie&#8217;s as well as added my own twists and optimizations to some of his techniques.  I have found that my script tends to be more compatible and forgiving of various audio formats and encodes (this lies in my mplayer commands).  I have used this script to convert over 120 movies and I&#8217;m going strong ;].  I have created two versions of the script, happy360, which is intended for files over 4gb (it splits the files and handles them separately for you), and happy360s (s for small, does not implement a split), which is intended for files under 4gb.  The following commands will get them installed on your system:</p>
<p><strong>cd ~<br />
wget http://linuxlove.info/files/happy360<br />
wget http://linuxlove.info/files/happy360s<br />
sudo mv happy360* /usr/bin/<br />
sudo chmod +x /usr/bin/happy360*</strong></p>
<p>Now, simply type:</p>
<p><strong>happy360 &lt;filename&gt;</strong><br />
(larger than 4gb files but less than 8gb, the script will need some changes to accommodate &gt; 8gb mkvs)</p>
<p>or</p>
<p><strong>happy360s &lt;filename&gt;</strong><br />
(smaller than 4gb files)</p>
<p>And after anywhere from a few to about twenty minutes, you should have your finished .m4v(s) in the folder.</p>
<p><span style="text-decoration: underline;">The Old Fashioned Way</span></p>
<p>Too hardcore for the scripts?  Let&#8217;s get dirty:</p>
<p>We&#8217;ll need to run two informational commands first:</p>
<p><strong>mplayer -frames 0 -identify -ao null -vo null input.mkv</strong></p>
<p>Note the fps of the movie.</p>
<p><strong>mkvmerge -i input.mkv</strong></p>
<p>Note which track is the video track (usually the first).  Next, if we have a larger than 4gb file, we&#8217;ll have to split it and then work with each half separately.  If your file is less than 4gb, you&#8217;ll be able to work with it as is.  A split can be achieved by a:</p>
<p><strong>mkvmerge -o output.mkv --split 2300M input.mkv</strong></p>
<p>For simplicity, the rest of the guide will assume you <em>didn&#8217;t </em>have to split, but remember that you&#8217;ll have to repeat the remaining steps for each half if you did split.  Next is extracting the video stream from the mkv:</p>
<p><strong>mkvextract tracks input.mkv 1:video.h264</strong></p>
<p>Where 1 is the track number of the video.  Change accordingly if your mkv differs.  We now have to change the profile level to 4.1 (note that this works on 90% of mkvs, some will still have blocky artifacts in the final product for some reason):</p>
<p><strong>bbe -e &#8220;r 7 \41&#8243; --output=videonew.h264 video.h264</strong></p>
<p>You can remove your original video.h264 now if you like since we&#8217;ll be working with the new one.  Next is extracting the audio from mkv:</p>
<p><strong>mplayer input.mkv -novideo -ao pcm:fast:file=audiodump.wav -channels 2</strong></p>
<p>This next step is optional but I highly recommend it.  We can now normalize our dumped audio with a:</p>
<p><strong>normalize-audio audiodump.wav</strong></p>
<p>Next is converting the audio to 2 channel AAC LC:</p>
<p><strong>neroAacEnc -lc -ignorelength -q 0.50 -if audiodump.wav -of audio.m4a</strong></p>
<p>You can reduce the -q setting if you like for a smaller file but I find the output results with 0.50 to be real nice.  Finally, we need to remux the new video and audio into the MP4 container:</p>
<p><strong>MP4Box -new output.mp4 -add videonew.h264 -add audio.m4a -fps 23.976</strong></p>
<p>Where 23.976 (fairly common for NTSC) is where the fps of the movie you noted earlier goes.  This needs to be accurate or you will encounter nasty audio sync issues during playback.</p>
<p>That&#8217;s it!  Get your file over to your 360 either by burning it to a dvd, sticking it on an external, or streaming it (more on this is a later guide) and enjoy your new method of acquiring HD content ;].</p>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxlove.info/site/17/converting-remuxing-a-mkv-for-playback-on-the-xbox-360/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Compiling (Just About) Anything in Ubuntu</title>
		<link>http://www.linuxlove.info/site/16/compiling-just-about-anything-in-ubuntu/</link>
		<comments>http://www.linuxlove.info/site/16/compiling-just-about-anything-in-ubuntu/#comments</comments>
		<pubDate>Fri, 09 May 2008 21:02:35 +0000</pubDate>
		<dc:creator>\m/ike</dc:creator>
		
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://www.linuxlove.info/site/?p=16</guid>
		<description><![CDATA[Some basic commands for turning that .tar.gz into a happy .deb! 
1. First of all, you&#8217;re going to need the proper equipment for any compiling job.  Open up a terminal and type / copy-n-paste:
sudo aptitude update &#38;&#38; sudo aptitude install build-essential checkinstall
This will get you going with the basic software needed, including Debian&#8217;s checkinstall [...]]]></description>
			<content:encoded><![CDATA[<p>Some basic commands for turning that .tar.gz into a happy .deb! <span id="more-16"></span></p>
<p>1. First of all, you&#8217;re going to need the proper equipment for any compiling job.  Open up a terminal and type / copy-n-paste:</p>
<p><strong>sudo aptitude update &amp;&amp; sudo aptitude install build-essential checkinstall</strong></p>
<p>This will get you going with the basic software needed, including Debian&#8217;s checkinstall which will try to make everything a deb before installing it (useful for uninstalling via apt/aptitude but doesn&#8217;t always work in my experience).</p>
<p>2. Next we need to find a source tar.gz to install.  For this example, I&#8217;m going to use <a href="http://lame.sourceforge.net/index.php">LAME</a>.  After downloading and extracting the archive, you should have a folder like &#8220;lame-3.98b8&#8243; lying around.  Get into a terminal and cd into that folder.</p>
<p><strong>cd ~<br />
wget http://internap.dl.sourceforge.net/sourceforge/lame/lame-3.98b8.tar.gz<br />
</strong><strong> tar -vzxf </strong><strong>lame-3.98b8.tar.gz<br />
cd </strong><strong>lame-3.98b8</strong></p>
<p>3.  Next comes probably the least fun part: resolving build dependencies.  If this is an application that is also in the repository and you have all of your software sources checked (Menu -&gt; System -&gt; Administration -&gt; Software Sources), you can try to type/copy-n-paste:</p>
<p><strong>sudo apt-get build-dep lame</strong></p>
<p>If this doesn&#8217;t work for you or it&#8217;s an application not in the repos, you will have to hunt down the build dependencies manually.  This usually involves searching around the website of the application you&#8217;re trying to install, finding out which packages it requires, searching around in Synaptic for Ubuntu&#8217;s name for it, and installing them one by one (they usually end in &#8220;-dev&#8221;).  If you don&#8217;t successfully acquire all the needed dependencies, you&#8217;re going to get some errors in the next step.</p>
<p>4. Finally, time for some compiling action.  First, we need to type:</p>
<p><strong>./configure</strong></p>
<p>After a whole bunch of text, the command should exit without any errors.  Note: there are usually arguments that can be passed here (--something) that will change how the application will be compiled.  Check the developer&#8217;s website or readme for info.  Next is time for:</p>
<p><strong>make</strong></p>
<p>After some time and more text (and hopefully no errors), we can issue:</p>
<p><strong>sudo checkinstall</strong></p>
<p>Hit enter to accept the defaults at the prompts.  Hopefully checkinstall will be able to successfully convert the app to a .deb before automatically installing it.  This is great because we can remove it in the future through Synaptic or by typing:</p>
<p><strong>sudo aptitude remove lame</strong></p>
<p>just like if it was an application installed from the repos.  If for some reason this fails (and it fails more often then I&#8217;d like), you will have to issue:</p>
<p><strong>sudo make install</strong></p>
<p>instead, which will likely put the app in your /usr/local/bin folder.  Applications installed this way can be uninstalled if you keep your original source directory, cd to it, and type:</p>
<p><strong>sudo make uninstall</strong></p>
<p>or sometimes</p>
<p><strong>sudo make deinstall</strong></p>
<p>If neither command works out for you, you will have to remove the app by hand, which can be a pain.</p>
<p>Hopefully this gives you an idea of the basic process of compiling programs from source.  Different programs compile different ways (and some in ENTIRELY different ways) so always read any readme or installation instructions before getting your favorite app compiling!</p>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxlove.info/site/16/compiling-just-about-anything-in-ubuntu/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Selecting The Fastest Repository Mirror</title>
		<link>http://www.linuxlove.info/site/15/selecting-the-fastest-repository-mirror/</link>
		<comments>http://www.linuxlove.info/site/15/selecting-the-fastest-repository-mirror/#comments</comments>
		<pubDate>Fri, 09 May 2008 20:27:56 +0000</pubDate>
		<dc:creator>\m/ike</dc:creator>
		
		<category><![CDATA[Tips &amp; Tricks]]></category>

		<guid isPermaLink="false">http://www.linuxlove.info/site/?p=15</guid>
		<description><![CDATA[Do you dread new release time like the plague?  Does the thought of downloading at 534 bytes/sec really irritate you?  Say hello to a rarely talked about feature of Synaptic. 
Open up Synaptic: Menu -&#62; System -&#62; Administration -&#62; Synaptic Package Manager
Click Prefernences -&#62; Repositories, up top
Click in the drop-down next to &#8220;Download [...]]]></description>
			<content:encoded><![CDATA[<p>Do you dread new release time like the plague?  Does the thought of downloading at 534 bytes/sec really irritate you?  Say hello to a rarely talked about feature of Synaptic. <span id="more-15"></span></p>
<p>Open up Synaptic: Menu -&gt; System -&gt; Administration -&gt; Synaptic Package Manager<br />
Click Prefernences -&gt; Repositories, up top<br />
Click in the drop-down next to &#8220;Download from&#8221; and select &#8220;Other&#8230;&#8221;<br />
Click &#8220;Select Best Server&#8221;</p>
<p>Synaptic will then ping a whole bunch of the mirrors to determine which one is the fastest for you.  The one coming out of Columbia happens to be the fastest for me, and lemme tell ya, it&#8217;s fast.  Canonical probably also appreciates the reduced stress on their main mirror.</p>
<p>Download on \m/</p>
]]></content:encoded>
			<wfw:commentRss>http://www.linuxlove.info/site/15/selecting-the-fastest-repository-mirror/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>
