<?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>DmitryBrant.com &#187; Linux Notes</title>
	<atom:link href="http://dmitrybrant.com/category/programming/linux-notes/feed" rel="self" type="application/rss+xml" />
	<link>http://dmitrybrant.com</link>
	<description>Not responsible for any minds blown.</description>
	<lastBuildDate>Fri, 27 Jan 2012 02:35:45 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>Getting NTFS to Work in Linux</title>
		<link>http://dmitrybrant.com/2006/02/15/getting-ntfs-to-work-in-linux</link>
		<comments>http://dmitrybrant.com/2006/02/15/getting-ntfs-to-work-in-linux#comments</comments>
		<pubDate>Wed, 15 Feb 2006 23:59:20 +0000</pubDate>
		<dc:creator>db</dc:creator>
				<category><![CDATA[Linux Notes]]></category>

		<guid isPermaLink="false">http://dmitrybrant.com/2006/02/15/getting-ntfs-to-work-in-linux/</guid>
		<description><![CDATA[This is really not that difficult, but I thought I'd document it here for my own reference later on. First, download the kernel module RPM from the official linux-ntfs site. Install the RPM: su rpm -ivh kernel-module-ntfs* Then load the kernel module: /sbin/modprobe ntfs And that's it. If you want to permanently mount an NTFS [...]]]></description>
			<content:encoded><![CDATA[<p>This is really not that difficult, but I thought I'd document it here for my own reference later on.  First, <a target="_blank" href="http://www.linux-ntfs.org/content/view/128/64/">download</a> the kernel module RPM from the official linux-ntfs site. Install the RPM:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">su</span>
rpm <span style="color: #660033;">-ivh</span> kernel-module-ntfs<span style="color: #000000; font-weight: bold;">*</span></pre></div></div>

<p>Then load the kernel module:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>modprobe ntfs</pre></div></div>

<p>And that's it. If you want to permanently mount an NTFS partition at a certain directory, add a line to /etc/fstab:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">/</span>dev<span style="color: #000000; font-weight: bold;">/</span>sda1    <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>username<span style="color: #000000; font-weight: bold;">/</span>mydir    ntfs    ro,<span style="color: #007800;">umask</span>=0222    <span style="color: #000000;">0</span>    <span style="color: #000000;">0</span></pre></div></div>

<p>It's best to mount NTFS partitions as read-only, since NTFS support in Linux is still incomplete, and we don't want to risk damaging the partition.</p>
]]></content:encoded>
			<wfw:commentRss>http://dmitrybrant.com/2006/02/15/getting-ntfs-to-work-in-linux/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Open-Source Tools for Everything</title>
		<link>http://dmitrybrant.com/2006/02/13/open-source-tools-for-everything</link>
		<comments>http://dmitrybrant.com/2006/02/13/open-source-tools-for-everything#comments</comments>
		<pubDate>Tue, 14 Feb 2006 02:10:26 +0000</pubDate>
		<dc:creator>db</dc:creator>
				<category><![CDATA[Linux Notes]]></category>

		<guid isPermaLink="false">http://dmitrybrant.com/2006/02/13/open-source-tools-for-everything/</guid>
		<description><![CDATA[I thought I'd post a list of the best open-source utilities (at the present time) for performing various tasks. This isn't necessarily a list of the "best" tools, but just tools that have worked the best for me. OpenOffice.org - Word processing, spreadsheet, presentations, etc. Firefox - Web browser. Xine and/or MPlayer - Play DVDs [...]]]></description>
			<content:encoded><![CDATA[<p>I thought I'd post a list of the best open-source utilities (at the present time) for performing various tasks.  This isn't necessarily a list of the "best" tools, but just tools that have worked the best for me.</p>
<ul>
<li><a target="_blank" href="http://openoffice.org">OpenOffice.org</a> - Word processing, spreadsheet, presentations, etc.</li>
<li><a target="_blank" href="http://mozilla.org">Firefox</a> - Web browser.</li>
<li><a target="_blank" href="http://xinehq.de/">Xine</a> and/or <a target="_blank" href="http://www.mplayerhq.hu/">MPlayer</a> - Play DVDs and various video formats. (Linux only)</li>
<li><a target="_blank" href="http://www.videolan.org/">VideoLAN</a> - Play videos, DVDs, and streams.</li>
<li><a target="_blank" href="http://www.xmms.org/">XMMS</a> - Audio player (Linux only). Requires a special plugin to play <a href="http://stentz.freshrpms.net/rpm.html?id=856">MP3</a> and <a target="_blank" href="http://stentz.freshrpms.net/rpm.html?id=724">WMA</a> files.</li>
<li>The <a target="_blank" href="http://www.gimp.org/">GIMP</a> - Drawing and image processing</li>
<li>The <a target="_blank" href="http://www.getpaint.net/">Paint.NET</a> - Simple yet very powerful image editor.</li>
<li><a target="_blank" href="http://www.exit1.org/dvdrip/">dvd::rip</a> - DVD ripping and transcoding (Linux only)</li>
<li><a target="_blank" href="http://cdexos.sourceforge.net/">CDEx</a> - CD ripping (Windows only)</li>
<li><a target="_blank" href="http://audacity.sourceforge.net">Audacity</a> - Audio track recorder and editor</li>
<li><a target="_blank" href="http://www.virtualdub.org/">VirtualDub</a> - Video capture/processing utility</li>
<li><a target="_blank" href="http://filezilla.sourceforge.net/">FileZilla</a> - FTP client and server (Windows only)</li>
<li><a target="_blank" href="http://winmerge.sourceforge.net/">WinMerge</a> - File and directory compare (Windows only)</li>
<li><a target="_blank" href="http://www.7-zip.org/">7-Zip</a> - Archive utility (Windows only)</li>
<li><a target="_blank" href="http://sourceforge.net/projects/gaim">gaim</a> - Instant messaging client</li>
<li><a target="_blank" href="http://www.wireshark.org">Wireshark</a> - Ethernet packet analyzer (formerly Ethereal)</li>
<li><a target="_blank" href="http://www.metasploit.com">Metasploit</a> - Framework for testing exploits</li>
<li><a target="_blank" href="http://mh-nexus.de/hxd/">HxD</a> - Hex editor</li>
</ul>
<p>Miscellaneous open-source (or otherwise free) things that are nice to have:</p>
<ul>
<li><a target="_blank" href="http://bochs.sourceforge.net/">bochs</a> - PC architecture emulator</li>
<li><a target="_blank" href="http://dosbox.sourceforge.net/">DosBox</a> - DOS emulator</li>
<li><a target="_blank" href="http://www.zsnes.com/">zsnes</a> - Super NES emulator</li>
<li><a target="_blank" href="http://vba.ngemu.com/">VisualBoyAdvance</a> - Game Boy Advance emulator (Windows)</li>
<li><a target="_blank" href="http://basilisk.cebix.net/">Basilisk II</a> - 68k Mac emulator</li>
<li><a target="_blank" href="http://www.pj64.net/main/">Project64</a> - Nintendo 64 emulator (Windows)</li>
<li><a target="_blank" href="http://gnuboy.unix-fu.org/">gnuboy</a> - GameBoy emulator (Linux)</li>
<li><a target="_blank" href="http://www.epsxe.com">ePSXe</a> - Playstation (1) emulator</li>
</ul>
]]></content:encoded>
			<wfw:commentRss>http://dmitrybrant.com/2006/02/13/open-source-tools-for-everything/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Getting the Damn STB TV Tuner Working in RedHat 9</title>
		<link>http://dmitrybrant.com/2004/08/13/stb-tv-tuner</link>
		<comments>http://dmitrybrant.com/2004/08/13/stb-tv-tuner#comments</comments>
		<pubDate>Fri, 13 Aug 2004 18:23:02 +0000</pubDate>
		<dc:creator>db</dc:creator>
				<category><![CDATA[Linux Notes]]></category>

		<guid isPermaLink="false">http://dmitrybrant.com/?p=24</guid>
		<description><![CDATA[My computer came with a PCI TV tuner card from STB. The manufacturer provided drivers for Windows 98, but of course, shortly thereafter, the manufacturer disappeared from the face of the earth. Obtaining a suitable driver for Windows XP was nearly impossible until the recent development of open-source WDM drivers for all BT848-based tuner cards. [...]]]></description>
			<content:encoded><![CDATA[<p>My computer came with a PCI TV tuner card from STB. The manufacturer provided drivers for Windows 98, but of course, shortly thereafter, the manufacturer disappeared from the face of the earth. Obtaining a suitable driver for Windows XP was nearly impossible until the recent development of <a href="http://sourceforge.net/projects/btwincap/">open-source WDM drivers</a> for all BT848-based tuner cards. However, although getting the card to work under Linux was a bit tricky, it was not at all impossible. This is a brief log of the steps I took to get the damn thing to work under RedHat 9.</p>
<p>At first I tried to use <code>xawtv</code> just to see if I could get a picture. And in fact, it actually showed Channel 3, which got me excited. However, there was no sound, and I couldn't change the channel. I knew that the configuration of <code>bttv</code> was somehow wrong. After poring over the BTTV HOWTO document, I came up with the following lines to add to <code>/etc/modules.conf</code>:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># TV settings</span>
<span style="color: #7a0874; font-weight: bold;">alias</span> char-major-<span style="color: #000000;">81</span> bttv
pre-install bttv <span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>modprobe <span style="color: #660033;">-k</span> tuner; <span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>modprobe <span style="color: #660033;">-k</span> msp3400
options bttv <span style="color: #007800;">radio</span>=<span style="color: #000000;">1</span> <span style="color: #007800;">card</span>=<span style="color: #000000;">3</span>
options tuner <span style="color: #007800;">type</span>=<span style="color: #000000;">2</span></pre></div></div>

<p>The parameters specified above correctly identify the STB TV PCI card, and even enable FM radio functionality, which the card supports.</p>
<p>After a reboot, <code>xawtv</code> worked wonderfully. However, there was soon a new problem: I installed an updated accelerated video driver from NVIDIA, which made <code>xawtv</code> crash with a segmentation fault. After searching the web for answers, I found the following solution: simply start <code>xawtv</code> with the command line <code>xawtv -device /dev/video0</code>. That's it!</p>
<p>One more minor issue was getting the program called <code>tvtime</code> to work. This program is vastly superior to <code>xawtv</code>, but it had a slight problem where it automatically turned up the tuner volume all the way, and let the user control the volume through the mixer. This wasn't good because the STB card clips the audio if it's above 50% volume, so it sounded really distorted and rectified. All I needed to do to fix this was find the line of code where <code>tvtime</code> sets the tuner volume, and change the default number. The number that it was setting the volume to was 60000 (presumably the maximum is 65535). So I changed it to 32000 and recompiled. It now runs marvelously.<br />
(<em>Update 10-24-04:  I submitted a bug report to tvtime, and the author added a preference to control the audio gain on the tuner card itself. Thanks!</em>)</p>
]]></content:encoded>
			<wfw:commentRss>http://dmitrybrant.com/2004/08/13/stb-tv-tuner/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Getting the Damn Aureal Sound Card Working in RedHat 9</title>
		<link>http://dmitrybrant.com/2004/03/12/aureal-sound-card</link>
		<comments>http://dmitrybrant.com/2004/03/12/aureal-sound-card#comments</comments>
		<pubDate>Fri, 12 Mar 2004 13:11:47 +0000</pubDate>
		<dc:creator>db</dc:creator>
				<category><![CDATA[Linux Notes]]></category>

		<guid isPermaLink="false">http://dmitrybrant.com/?p=23</guid>
		<description><![CDATA[This is a brief how-to on getting my Aureal-based sound card (Turtle Beach Montego) to work under RedHat Linux 9. I'm sure I'm not the only one who owns such a card, so this might be useful for someone in the future. RedHat did not recognize my sound card upon installation, so naturally I thought [...]]]></description>
			<content:encoded><![CDATA[<p>This is a brief how-to on getting my Aureal-based sound card (Turtle Beach Montego) to work under RedHat Linux 9. I'm sure I'm not the only one who owns such a card, so this might be useful for someone in the future.</p>
<p>RedHat did not recognize my sound card upon installation, so naturally I thought it wasn't supported. This was until I stumbled upon a driver at <a href="http://sourceforge.net/projects/aureal">SourceForge</a> that purported to provide support for Aureal-based cards.</p>
<p>I downloaded the project's distribution files, and tried to compile it... but the compiler couldn't get past 10 lines of code before it choked. The source files were obviously written for an earlier version of the kernel.</p>
<p>However, all hope was not lost. I downloaded a CVS snapshot of the project (instead of the distribution), and tried to compile that. Miraculously, that only gave one or two errors. Then, all I did was comment out the two offending lines of code, and it compiled successfully. The output was a kernel module called <code>au8830.o</code>.</p>
<p>Installing it was a different issue altogether.</p>
<p>This driver uses a combination of open- and closed-source code. The closed-source portion that came with the driver was compiled with a much earlier version of <code>gcc</code>. Because of this, <code>insmod</code> would not allow me to load the module. It gave an error that the module needs to be compiled with <code>gcc</code> version greater than 3. Fortunately, <code>insmod</code> can be forced to load the module anyway by issuing the -f option.</p>
<p>With the -f option, <code>insmod</code> tried to load it, but reported a few unresolved externals. I realized that I needed to load the <code>soundcore</code> module first. After loading <code>soundcore</code>, I tried loading my module again, and what do you know? It loaded successfully!</p>
<p><code>/dev/dsp</code> was working like a charm, but sound in KDE (aRts?) wasn't loading properly. I went into the KDE Control Center, into the Sound Server tab, and changed the server startup setting from "autodetect" to "Threaded OSS." That seemed to do the trick, and it's been working fine ever since.</p>
<p>To automate the process of loading the module at boot time, I edited my <code>/etc/modules.conf</code> file and added the following lines:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># Sound configuration</span>
post-install sound-slot-<span style="color: #000000;">0</span> <span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>aumix-minimal <span style="color: #660033;">-f</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>.aumixrc <span style="color: #660033;">-L</span> <span style="color: #000000; font-weight: bold;">&gt;/</span>dev<span style="color: #000000; font-weight: bold;">/</span>null <span style="color: #000000;">2</span><span style="color: #000000; font-weight: bold;">&gt;&amp;</span><span style="color: #000000;">1</span> <span style="color: #000000; font-weight: bold;">||</span> :
pre-remove sound-slot-<span style="color: #000000;">0</span> <span style="color: #000000; font-weight: bold;">/</span>bin<span style="color: #000000; font-weight: bold;">/</span>aumix-minimal <span style="color: #660033;">-f</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>.aumixrc <span style="color: #660033;">-S</span> <span style="color: #000000; font-weight: bold;">&gt;/</span>dev<span style="color: #000000; font-weight: bold;">/</span>null <span style="color: #000000;">2</span><span style="color: #000000; font-weight: bold;">&gt;&amp;</span><span style="color: #000000;">1</span> <span style="color: #000000; font-weight: bold;">||</span> :
pre-install au8830 <span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>modprobe soundcore; <span style="color: #000000; font-weight: bold;">/</span>sbin<span style="color: #000000; font-weight: bold;">/</span>insmod <span style="color: #660033;">-f</span> au8830
<span style="color: #7a0874; font-weight: bold;">alias</span> char-major-<span style="color: #000000;">14</span> sound
<span style="color: #7a0874; font-weight: bold;">alias</span> sound-slot-<span style="color: #000000;">0</span> sound
<span style="color: #7a0874; font-weight: bold;">alias</span> sound au8830
<span style="color: #7a0874; font-weight: bold;">alias</span> midi au8830</pre></div></div>

<p>This will ensure that the <code>au8830</code> module will be loaded after the <code>soundcore</code> module, and that the <code>au8830</code> module will be force-loaded with the -f option.</p>
]]></content:encoded>
			<wfw:commentRss>http://dmitrybrant.com/2004/03/12/aureal-sound-card/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>

