<?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>Ubuntu Shenanigans</title>
	<atom:link href="http://ubuntu.bryanludvigsen.com/?feed=rss2" rel="self" type="application/rss+xml" />
	<link>http://ubuntu.bryanludvigsen.com</link>
	<description></description>
	<lastBuildDate>Thu, 29 Jul 2010 00:59:32 +0000</lastBuildDate>
	<generator>http://wordpress.org/?v=2.9.1</generator>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
			<item>
		<title>Samba in Mythbuntu</title>
		<link>http://ubuntu.bryanludvigsen.com/?p=273</link>
		<comments>http://ubuntu.bryanludvigsen.com/?p=273#comments</comments>
		<pubDate>Sun, 02 May 2010 01:24:23 +0000</pubDate>
		<dc:creator>Jason</dc:creator>
				<category><![CDATA[Random Junk]]></category>
		<category><![CDATA[samba mythbuntu 10.04]]></category>

		<guid isPermaLink="false">http://ubuntu.bryanludvigsen.com/?p=273</guid>
		<description><![CDATA[Setting Samba in Mythbuntu:
Open Terminal and type in:
sudo nano /etc/samba/smb.conf
Ensure that the Workgroup is the same as your home workgroup.
Check the default shares. They may ust need to be re-mapped if you moved the video, music, pictures or recordings directories.
Once all looks good, then restart.
]]></description>
			<content:encoded><![CDATA[<p>Setting Samba in Mythbuntu:</p>
<p>Open Terminal and type in:<br />
sudo nano /etc/samba/smb.conf</p>
<p>Ensure that the Workgroup is the same as your home workgroup.</p>
<p>Check the default shares. They may ust need to be re-mapped if you moved the video, music, pictures or recordings directories.</p>
<p>Once all looks good, then restart.</p>
]]></content:encoded>
			<wfw:commentRss>http://ubuntu.bryanludvigsen.com/?feed=rss2&amp;p=273</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Creating Ubuntu Torrent and Xbox 360 Media Server</title>
		<link>http://ubuntu.bryanludvigsen.com/?p=248</link>
		<comments>http://ubuntu.bryanludvigsen.com/?p=248#comments</comments>
		<pubDate>Tue, 02 Feb 2010 07:25:44 +0000</pubDate>
		<dc:creator>Bryan</dc:creator>
				<category><![CDATA[Application Install/Tweaking]]></category>
		<category><![CDATA[Random Junk]]></category>
		<category><![CDATA[apache]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[php]]></category>
		<category><![CDATA[streaming]]></category>
		<category><![CDATA[torrent]]></category>
		<category><![CDATA[torrentflux]]></category>
		<category><![CDATA[ushare]]></category>
		<category><![CDATA[video]]></category>
		<category><![CDATA[xbox]]></category>
		<category><![CDATA[xbox 360]]></category>

		<guid isPermaLink="false">http://ubuntu.bryanludvigsen.com/?p=248</guid>
		<description><![CDATA[Wow, it&#8217;s been awhile since i&#8217;ve posted something, but i think that just means that Ubuntu 9.10 has been really stable. It honestly has. I&#8217;m running it on multiple computers and compatibility has been a non issue. Now crazy tricks to get things to work properly. However this past weekend i went to work on [...]]]></description>
			<content:encoded><![CDATA[<p dir="ltr">Wow, it&#8217;s been awhile since i&#8217;ve posted something, but i think that just means that Ubuntu 9.10 has been really stable. It honestly has. I&#8217;m running it on multiple computers and compatibility has been a non issue. Now crazy tricks to get things to work properly. However this past weekend i went to work on a new Ubuntu project.</p>
<p dir="ltr">So recently i came upon an old Dell Optiplex GX240. For those who don&#8217;t know, this computer is fairly elderly with not a whole lot of useful tasks it can be utilized for any more. My original intention when i purchased the thing for $25 was to use it as a companion to my 42&#8243; LCD since it had such a small case. I already have a HD PVR, so i wasn&#8217;t going to use it for that. But simply to browse the web, play flash movies, and a bit of nintendo emulation in a tight small case that doesn&#8217;t look like a total eye soar in my tv shelf. Unfortunately, this P4 1.5Ghz with 512MB RAM couldn&#8217;t handle it due to the pitiful 16MB AGP video card. And since it only takes low profile AGP cards&#8230; i wasn&#8217;t about to try and hunt one down.</p>
<p dir="ltr"><a href="http://ubuntu.bryanludvigsen.com/wp-content/uploads/optiplex.jpg"><img class="aligncenter size-full wp-image-267" title="optiplex" src="http://ubuntu.bryanludvigsen.com/wp-content/uploads/optiplex.jpg" alt="" width="300" height="138" /></a></p>
<p dir="ltr">So after blowing $25 and wanting to salvage my investment my idea changed to create a torrent server that i could stream movies to my Xbox without using the terribly unreliable Windows Media Center. After a good portion of a saturday and a lot of trial and error and swearing, i got myself an Ubuntu torrent and xbox 360 media server using TorrentFlux and uShare.</p>
<p dir="ltr">So here is the quick and easy instructions on how to create a web based torrent downloading client on an Ubuntu machine and stream your torrent downloads directly to your Xbox using Apache, PHP, MySQL, TorrentFlux and uShare.</p>
<p dir="ltr">First off, download the latest version of TorrentFlux which is basically your Bit Torrent download client that will be run on your Ubuntu server. You can find it at <a title="TorrentFlux.com" href="http://torrentflux.com" target="_blank">www.torrentflux.com</a></p>
<p dir="ltr">After you download TorrentFlux, take your freshly installed Ubuntu 9.10 machine (or an Ubuntu install you haven&#8217;t messed up too badly yet) and install Apache 2.</p>
<blockquote>
<p dir="ltr">$ sudo aptitude install apache2</p>
</blockquote>
<p dir="ltr">Install PHP 5</p>
<blockquote>
<p dir="ltr">$ sudo aptitude install php5</p>
</blockquote>
<p dir="ltr">Install MySQL</p>
<blockquote>
<p dir="ltr">$ sudo aptitude install mysql-server</p>
<p dir="ltr">$ sudo aptitude install php5-mysql</p>
</blockquote>
<p dir="ltr">Restart the apache server</p>
<blockquote>
<p dir="ltr">$ sudo /etc/init.d/apache2 restart</p>
</blockquote>
<p dir="ltr">
<p dir="ltr">LAMP stack is now installed, now move onto installing TorrentFlux (i used 2.4, but whatever is newest i&#8217;m sure will work fine). I chose to install in the root www folder of apache, but feel free to put it where you want. I untarred the torrentflux file on my desktop then moved the html folder of TorrentFlux into the root www folder of apache.</p>
<blockquote>
<p dir="ltr">
<p>$ tar -xvzf torrentflux_2.4.tar.gz</p>
<p>$ sudo chown (user):(user) /var/www/</p>
<p>$ cd /home/user/Desktop/torrentflux_2.4/html/</p>
<p>$ cp -r * /var/www/</p></blockquote>
<p dir="ltr">Now that we have TorrentFlux in the proper folder, it&#8217;s time to setup the database. Create a database called torrentflux.</p>
<blockquote>
<p dir="ltr">
<p>$ mysqladmin -u root -p create torrentflux</p></blockquote>
<p dir="ltr">Now run the sql file for torrentflux to get the database in the initial state to run TorrentFlux</p>
<blockquote>
<p dir="ltr">
<p>$ cd /home/(user)/Desktop/torrentflux_2.4/sql</p>
<p>$ mysql -u root -p torrentflux &lt; mysql_torrentflux.sql</p></blockquote>
<p dir="ltr">Now you got to modify the TorrentFlux config file and set the database password you used when you installed MySQL.</p>
<blockquote>
<p dir="ltr">$sudo gedit /var/www/config.php</p>
</blockquote>
<p>modify these lines as you see fit.</p>
<blockquote><p>$cfg["db_user"] = &#8220;root&#8221;; // username for your MySQL database</p>
<p>$cfg["db_pass"] = &#8220;&#8221;; // password for database</p></blockquote>
<p>Now to set the file permissions on your torrent download folder.</p>
<blockquote><p>sudo chmod -R 777 /var/www/downloads/</p></blockquote>
<p>Now that TorrentFlux is now setup, go to <a href="http://localhost/index.php" target="_blank">http://localhost/index.php</a> and make sure you get a login screen. If you did, that means you followed the steps correctly. Your first login is actually setting your admin username and password. So use this screen now to set that.</p>
<p>So now that we got that complete, we only have to setup the uPnP streaming server to stream the files to our xbox. To install ushare, do the following.</p>
<blockquote><p>$sudo apt-get install ushare</p></blockquote>
<p>Once that is installed, lots stop the ushare server and set the configuration.</p>
<blockquote><p>$/etc/init.d/ushare stop</p>
<p>$sudo gedit /etc/ushare.conf</p></blockquote>
<p>For my installation, this was probably the biggest pain of it all to get it to stream to the xbox correctly. Problem one, on default, despite what your settings may say, it doesn&#8217;t load into ushare using Xbox mode, and sometimes the port changes after you stop and start the server (we will remedy this later in the post when modifying the rc.local file). Not sure if i was doing something incorrectly or just bad luck, but this is the configuration that works 100% for me. The following are lines you should have set in the ushare.conf file. Although feel free to change the ushare_name as that&#8217;s the name it shows up as on your xbox. Also, if your downloads folder is a different location than mine, change that.</p>
<blockquote><p>USHARE_NAME=Torrent</p>
<p>USHARE_PORT=49200</p>
<p>USHARE_DIR=/var/www/downloads</p>
<p>ENABLE_WEB=yes</p>
<p>ENABLE_TELNET=no</p>
<p>ENABLE_XBOX=yes</p></blockquote>
<p>Next you are going to want to configure the mime types for video streaming.</p>
<blockquote><p>$ sudo gedit /usr/share/mime/packages/freedesktop.org.xml</p></blockquote>
<p>find:</p>
<p>type=&#8221;video/x-msvideo&#8221;</p>
<p>change to:</p>
<p>type=&#8221;video/x-ms-wmv&#8221;</p>
<p>One of the problems i encountered and mentioned above is that by default, it doesn&#8217;t want to take the ENABLE_XBOX settings, so on bootup, your xbox can&#8217;t see your torrent server. So to change this, i modified the rc.local file (file which runs whenever you boot linux) to run some root commands to shut down the server, and start it back up on a new port forcing xbox enabled.</p>
<blockquote><p>$ sudo gedit /etc/rc.local</p></blockquote>
<p>at the end of the file right before the line &#8220;exit 0&#8243;, write above it</p>
<blockquote><p>/etc/init.d/ushare stop<br />
ushare -p 49201 -x</p></blockquote>
<p>The last couple hurdles i had to overcome was refreshing the share list and updating file permissions. One of the issues with uPnP streaming is that it indexes the list of files you are streaming. This means that even though you download new files, your xbox isn&#8217;t going to see them. Luckily ushare builds in a page where you can update it, so i added the link right inside the TorrentFlux interface for easy use. Only thing is, when you are watching a video on your xbox, it&#8217;s not accessible, so don&#8217;t refresh your list while you&#8217;re watching. The other issue i found was TorrentFlux gives it&#8217;s own owner to files it downloads. If you share that folder on your network and want to move or delete files, it likely won&#8217;t let you, so i just made a script that updated the permissions for every file in the downloads folder. I&#8217;m sure there is a better way to do this, but at this point, i was kind of lazy and didn&#8217;t want to spend a lot of time figuring this out, and i figured this way was pretty easy by adding the link into the TorrentFlux interface as well.</p>
<blockquote><p>$ sudo gedit /var/www/index.php</p></blockquote>
<p>at the very end of the file. but right above the body and html tags, insert this:</p>
<blockquote><p>&lt;p&gt;&lt;center&gt;&lt;a href=&#8221;http://&lt;?php echo $_SERVER["SERVER_ADDR"]; ?&gt;:49201/web/ushare.html&#8221; target=&#8221;_blank&#8221;&gt;Refresh Share List&lt;/a&gt;&lt;br&gt;&lt;a href=&#8221;permissions.php&#8221; target=&#8221;_blank&#8221;&gt;Refresh File Permissions&lt;/a&gt;&lt;/center&gt;</p></blockquote>
<p>now to create the script that will update the permissions.</p>
<blockquote><p>$ sudo gedit /var/www/permissions.php</p></blockquote>
<p>insert the following code.</p>
<blockquote><p>&lt;?php<br />
echo &#8220;Fixing File Permissions&#8230;&lt;p&gt;&#8221;;<br />
echo shell_exec(&#8220;chmod -R 777 /var/www/downloads/&#8221;);<br />
echo &#8220;&lt;p&gt;Done&#8221;;<br />
?&gt;</p></blockquote>
<p>And just like that you&#8217;re done. You now have a torrent client on a remote server you can access from anywhere and you are able to stream everything you download with ease to your xbox. All you gotta do on your xbox is select &#8220;My Xbox&#8221; and then &#8220;Video Library&#8221; and select the ushare name you set to your server. Have fun!</p>
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 7px; width: 1px; height: 1px;">
<p>$ sudo chown user:user /var/www/torrentflux/</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://ubuntu.bryanludvigsen.com/?feed=rss2&amp;p=248</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>HP Mini 1000 audio fix for Ubuntu 9.04</title>
		<link>http://ubuntu.bryanludvigsen.com/?p=240</link>
		<comments>http://ubuntu.bryanludvigsen.com/?p=240#comments</comments>
		<pubDate>Thu, 09 Jul 2009 07:05:05 +0000</pubDate>
		<dc:creator>Bryan</dc:creator>
				<category><![CDATA[Application Install/Tweaking]]></category>
		<category><![CDATA[Audio Tweaking]]></category>
		<category><![CDATA[Hardware Tweaking/Compatibility]]></category>
		<category><![CDATA[Random Junk]]></category>
		<category><![CDATA[hp]]></category>
		<category><![CDATA[netbook]]></category>
		<category><![CDATA[source]]></category>

		<guid isPermaLink="false">http://ubuntu.bryanludvigsen.com/?p=240</guid>
		<description><![CDATA[So i decided to pick up a sexy netbook and i couldn&#8217;t be happier. Now, this is the first time i&#8217;ve actually purchased anything that wasn&#8217;t a desktop, and the recent surge in popularity of netbooks caught my interest. Now i rarely have a need to do computer work on the road or have the [...]]]></description>
			<content:encoded><![CDATA[<p>So i decided to pick up a sexy netbook and i couldn&#8217;t be happier. Now, this is the first time i&#8217;ve actually purchased anything that wasn&#8217;t a desktop, and the recent surge in popularity of netbooks caught my interest. Now i rarely have a need to do computer work on the road or have the need to take a computer somewhere, but i knew i could find some conveniences with a netbook that i wouldn&#8217;t normally have with a laptop. Netbooks are tiny, light, and generally look better than laptops. Plus they have enough power to do your every day tasks and is crazy easy to carry around. I decided on the HP Mini 1000 (1035NR) for 2 reasons. 1, the keyboard is large for my freakishly bulbus fingers, and 2. the price was right for only $279.</p>
<p><a href="http://ubuntu.bryanludvigsen.com/wp-content/uploads/hp-mini-1000_large.jpg"><img class="alignnone size-medium wp-image-241" title="hp-mini-1000_large" src="http://ubuntu.bryanludvigsen.com/wp-content/uploads/hp-mini-1000_large-300x254.jpg" alt="" width="300" height="254" /></a></p>
<p>Obviously, my first task after opening it up was installing Ubuntu. First problem was that i don&#8217;t have an external dvd drive, so i had to create a bootable usb flash drive with the ubuntu cd image. That had it&#8217;s own set of challenges until i actually managed to format the flash drive correctly prior to loading the image on to it.</p>
<p>After i got Ubuntu installed it looked absolutely perfect with none of the usual suspects when it comes to Linux compatibility with hardware with the one exception of the audio. After searching all over getting no real good answers, i find this incredibly helpful post with a line by line instruction on how to compile the newest alsa drivers from source. i followed the instructions, rebooted, and bam, i got myslef some sound.</p>
<p><a title="https://bugs.launchpad.net/ubuntu/+source/linux/+bug/318942/comments/63" href="https://bugs.launchpad.net/ubuntu/+source/linux/+bug/318942/comments/63" target="_blank">https://bugs.launchpad.net/ubuntu/+source/linux/+bug/318942/comments/63</a></p>
<blockquote><p>- First, check that you have this packages installed (sudo apt-get install package_name):<br />
patch, gettext, libncurses5-dev, xmlto, xmltoman<br />
- Use this script:</p>
<p>cd ~<br />
mkdir soundtmp<br />
cd soundtmp</p>
<p>wget <a rel="nofollow" href="ftp://ftp.alsa-project.org/pub/driver/alsa-driver-1.0.19.tar.bz2">ftp://ftp.alsa-project.org/pub/driver/alsa-driver-1.0.19.tar.bz2</a><br />
wget <a rel="nofollow" href="ftp://ftp.alsa-project.org/pub/lib/alsa-lib-1.0.19.tar.bz2">ftp://ftp.alsa-project.org/pub/lib/alsa-lib-1.0.19.tar.bz2</a><br />
wget <a rel="nofollow" href="ftp://ftp.alsa-project.org/pub/utils/alsa-utils-1.0.19.tar.bz2">ftp://ftp.alsa-project.org/pub/utils/alsa-utils-1.0.19.tar.bz2</a></p>
<p>tar xjf alsa-driver-1.0.19.tar.bz2<br />
tar xjf alsa-lib-1.0.19.tar.bz2<br />
tar xjf alsa-utils-1.0.19.tar.bz2</p>
<p>cd alsa-driver-1.0.19<br />
./configure &#8211;with-cards=hda-intel &#8211;with-kernel=/usr/src/linux-headers-$(uname -r)<br />
make<br />
sudo make install<br />
cd ..</p>
<p>cd alsa-lib-1.0.19<br />
./configure<br />
make<br />
sudo make install<br />
cd ..</p>
<p>cd alsa-utils-1.0.19<br />
./configure &#8211;disable-nls<br />
make<br />
sudo make install</p>
<p>- Change your alsa-base.conf file (sudo gedit /etc/modprobe.d/alsa-base.conf) adding these lines:</p>
<p>options snd-pcsp index=-2<br />
alias snd-card-0 snd-hda-intel<br />
alias sound-slot-0 snd-hda-intel<br />
options snd-hda-intel model=hp-m4<br />
options snd-hda-intel enable_msi=1</p>
<p>- Go to System&gt;Preferences&gt;Sound and change first 4 options to ALSA</p>
<p>- Reboot!</p>
<p>- After reboot you should hear login sound&#8230;</p>
<p>- In volume control, you&#8217;ll want to set the input sources to &#8220;line&#8221; and &#8220;front mic&#8221; for the HDA Intel (Alsa mixer). Make sure your volumes are not set too low after a reboot, you&#8217;re off and running (thanks to jasonq).</p>
<p>Built in speakers work, headphones and internal mic. Magic blue keys works too, and i&#8217;m not having issues about playing from 2 different sources at the same time (youtube in firefox and mp3 in rhytmbox). However, I didn&#8217;t test external mic.</p></blockquote>
]]></content:encoded>
			<wfw:commentRss>http://ubuntu.bryanludvigsen.com/?feed=rss2&amp;p=240</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Tabbed SSH Terminals to Remote Systems in Ubuntu</title>
		<link>http://ubuntu.bryanludvigsen.com/?p=227</link>
		<comments>http://ubuntu.bryanludvigsen.com/?p=227#comments</comments>
		<pubDate>Tue, 23 Jun 2009 02:43:05 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[Application Install/Tweaking]]></category>
		<category><![CDATA[Random Junk]]></category>
		<category><![CDATA[SSH]]></category>
		<category><![CDATA[System Administrator]]></category>
		<category><![CDATA[Tabbed]]></category>

		<guid isPermaLink="false">http://ubuntu.bryanludvigsen.com/?p=227</guid>
		<description><![CDATA[Most Server Administrators need to manage multiple Unix/Linux servers via remote SSH Terminals. Here&#8217;s a quick guide on how to set up multiple SSH Server Profiles so that they can be run in a tabbed environment in a standard Ubuntu install.
Step 1: Open a Terminal
Applications -&#62; Accessories -&#62; Terminal
Step 2: Create a New Profile

On the [...]]]></description>
			<content:encoded><![CDATA[<p>Most Server Administrators need to manage multiple Unix/Linux servers via remote SSH Terminals. Here&#8217;s a quick guide on how to set up multiple SSH Server Profiles so that they can be run in a tabbed environment in a standard Ubuntu install.</p>
<p><strong>Step 1: Open a Terminal</strong></p>
<p>Applications -&gt; Accessories -&gt; Terminal</p>
<p><strong>Step 2: Create a New Profile</strong></p>
<p><a href="http://ubuntu.bryanludvigsen.com/wp-content/uploads/ssh_screen01.png"><img class="alignnone size-full wp-image-228" src="http://ubuntu.bryanludvigsen.com/wp-content/uploads/ssh_screen01.png" alt="" width="500" height="328" /></a></p>
<p>On the terminal window tool bar click  File -&gt; New Profile</p>
<p>Give this new profile a name like &#8216;test&#8217; then click the &#8220;Create&#8221; button.</p>
<p><strong>Step 3: Set Up Profile Settings</strong></p>
<p><a href="http://ubuntu.bryanludvigsen.com/wp-content/uploads/ssh_screen021.png"><img class="alignnone size-full wp-image-238" src="http://ubuntu.bryanludvigsen.com/wp-content/uploads/ssh_screen021.png" alt="" width="500" height="357" /></a></p>
<p>Click the &#8220;Title and Command&#8221; Tab.</p>
<p>Initial Title: type in the name that you want to appear in your SSH tab/ window.</p>
<p>Check the &#8220;Run a custom command instead of my shell&#8221; check box to on.</p>
<p>Custom Command: Type in the SSH command line to connect to the remote server.</p>
<p>When command exits: Set this Dropdown to &#8220;Exit the Terminal&#8221;.</p>
<p>Click the &#8220;Close&#8221; button.</p>
<p><strong>Step 4: Open Up a Tabbed SSH Terminal to a Remote Server Profile</strong></p>
<p><a href="http://ubuntu.bryanludvigsen.com/wp-content/uploads/ssh_screen03.png"><img class="alignnone size-full wp-image-231" src="http://ubuntu.bryanludvigsen.com/wp-content/uploads/ssh_screen03.png" alt="" width="500" height="351" /></a></p>
<p>Click File -&gt; Open Tab -&gt; [profile name]</p>
<p>Type in your password and you are good to go!</p>
<p><strong>Step 5: Setting Up Multiple Profiles The Quick Way:</strong></p>
<p><a href="http://ubuntu.bryanludvigsen.com/wp-content/uploads/ssh_screen04.png"><img class="alignnone size-full wp-image-232" src="http://ubuntu.bryanludvigsen.com/wp-content/uploads/ssh_screen04.png" alt="" width="246" height="142" /></a></p>
<p>If you are setting up multiple profiles you can select a base profile to use as template in the &#8220;New Profile&#8221; Popup by selecting a previously created profile in the &#8220;Base on&#8221; Dropdown.</p>
<p>You can now setup tabs for all of your remote SSH sessions in Ubuntu without installing other programs!</p>
]]></content:encoded>
			<wfw:commentRss>http://ubuntu.bryanludvigsen.com/?feed=rss2&amp;p=227</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mounting a UFS2 drive in ubuntu (read only)</title>
		<link>http://ubuntu.bryanludvigsen.com/?p=223</link>
		<comments>http://ubuntu.bryanludvigsen.com/?p=223#comments</comments>
		<pubDate>Sun, 14 Jun 2009 03:15:29 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[Random Junk]]></category>
		<category><![CDATA[FreeBSD]]></category>
		<category><![CDATA[mount]]></category>
		<category><![CDATA[partition]]></category>
		<category><![CDATA[UFS]]></category>

		<guid isPermaLink="false">http://ubuntu.bryanludvigsen.com/?p=223</guid>
		<description><![CDATA[Believe it or not reading a FreeBSD UFS2 Drive Partition is even more tricky then mounting an ntfs or FAT partition! Here&#8217;s the low down on how it worked for me.
I did this using a disk formatted in FreeBSD 6.2 using UFS2 connected via a USB Disk Enclosure.
Open up a terminal and type the following [...]]]></description>
			<content:encoded><![CDATA[<p>Believe it or not reading a FreeBSD UFS2 Drive Partition is even more tricky then mounting an ntfs or FAT partition! Here&#8217;s the low down on how it worked for me.</p>
<p>I did this using a disk formatted in FreeBSD 6.2 using UFS2 connected via a USB Disk Enclosure.</p>
<p>Open up a terminal and type the following commands substituting &#8220;/dev/sdc1&#8243; with your ufs partition device name:</p>
<blockquote><p>sudo mkdir /mnt/ufsdisk</p>
<p>sudo mount -t ufs -r -o ufstype=ufs2 /dev/sdc1 /mnt/ufsdisk</p></blockquote>
<p>Voila! I could read all of the files on the drive! Not sure how to mount a ufs partition for writing, but if you need to get data off of a FreeBSD UFS2 drive (UFS2 is for FreeBSD 5-7) this should work.</p>
]]></content:encoded>
			<wfw:commentRss>http://ubuntu.bryanludvigsen.com/?feed=rss2&amp;p=223</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting up your Xbox 360 controller on Ubuntu</title>
		<link>http://ubuntu.bryanludvigsen.com/?p=217</link>
		<comments>http://ubuntu.bryanludvigsen.com/?p=217#comments</comments>
		<pubDate>Sat, 16 May 2009 08:05:33 +0000</pubDate>
		<dc:creator>Bryan</dc:creator>
				<category><![CDATA[Emulation]]></category>
		<category><![CDATA[Hardware Tweaking/Compatibility]]></category>
		<category><![CDATA[Mythbuntu]]></category>
		<category><![CDATA[controller]]></category>
		<category><![CDATA[emulator]]></category>
		<category><![CDATA[gamepad]]></category>
		<category><![CDATA[joystick]]></category>
		<category><![CDATA[mario]]></category>
		<category><![CDATA[xbox 360]]></category>

		<guid isPermaLink="false">http://ubuntu.bryanludvigsen.com/?p=217</guid>
		<description><![CDATA[As much as people want to deny it, the Xbox 360 controller is the best gamepad you can buy. And since i already have a 360, using my current xbox controllers makes a lot of sense for emulation on ubuntu. However, the usb receiver/gamepad compatibility in ubuntu is sketchy at best for older Ubuntu versions.
If [...]]]></description>
			<content:encoded><![CDATA[<p>As much as people want to deny it, the Xbox 360 controller is the best gamepad you can buy. And since i already have a 360, using my current xbox controllers makes a lot of sense for emulation on ubuntu. However, the usb receiver/gamepad compatibility in ubuntu is sketchy at best for older Ubuntu versions.</p>
<p>If you are using Ubuntu 9.04, it&#8217;s basically plug and play. As soon as you connect the receiver and sync your controller, you should just have to map your buttons like any other gamepad. For Ubuntu 8.04 and 8.10 you have to do the following.</p>
<p>First thing is, plug in that usb receiver and then attempt to sync your controller with the receiver. First thing i noticed was that it doesn&#8217;t connect like it does with the xbox where you will get the top left part of the ring lit up representing player 1. In ubuntu, I got the full ring blinking constantly. Not sure why this is, but i just ignore it.</p>
<p>When you first plug it in, you notice, it&#8217;s basically the mouse&#8230; as you move the left analog, your mouse cursor moves. Fantastic, another mouse, this isn&#8217;t what i want. After doing a bit or research, this is apparently a problem in 8.04 and 8.10. To get it working as a joystick/gamepad, open up terminal and type:</p>
<p>xinput list</p>
<p>you will get a list of devices. despite what you read online elsewhere, you don&#8217;t get one for the controller, but 4 of &#8220;Xbox Wireless Receiver&#8221; which look like this:</p>
<p>&#8220;Xbox 360 Wireless Receiver&#8221;    id=6    [XExtensionPointer]<br />
Num_buttons is 32<br />
Num_axes is 2<br />
Mode is Absolute<br />
Motion_buffer is 256<br />
Axis 0 :<br />
Min_value is -32768<br />
Max_value is 32767<br />
Resolution is 10000<br />
Axis 1 :<br />
Min_value is -32768<br />
Max_value is 32767<br />
Resolution is 10000</p>
<p>You have to enable all 4 of them (cause who knows which one your controller will pick) with the following command. The device number is the &#8220;id=6&#8243; part from above.</p>
<p>sudo xinput set-int-prop [device number] &#8216;Device Enabled&#8217; 32 0</p>
<p>Now the problem appears to be with this is when you restart your pc, these settings get reset. as of now, you gotta set them each time you reboot. I&#8217;m going to work on this issue. I&#8217;ll post when i got it worked out. But from here, just go into zsnes for example and map your buttons for your gamepad. Easy as that.</p>
<p>I must admit, playing Super Mario Bros. 3 with an Xbox 360 Controller is a bit surreal.</p>
<p><a href="http://ubuntu.bryanludvigsen.com/wp-content/uploads/xbox360controller.jpg"><img class="alignnone size-medium wp-image-219" title="xbox360controller" src="http://ubuntu.bryanludvigsen.com/wp-content/uploads/xbox360controller.jpg" alt="" width="298" height="298" /></a></p>
]]></content:encoded>
			<wfw:commentRss>http://ubuntu.bryanludvigsen.com/?feed=rss2&amp;p=217</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Configuring LIRC Button Presses (repeat and delay)</title>
		<link>http://ubuntu.bryanludvigsen.com/?p=211</link>
		<comments>http://ubuntu.bryanludvigsen.com/?p=211#comments</comments>
		<pubDate>Thu, 14 May 2009 03:50:04 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[Emulation]]></category>
		<category><![CDATA[Mythbuntu]]></category>
		<category><![CDATA[Random Junk]]></category>
		<category><![CDATA[LIRC]]></category>

		<guid isPermaLink="false">http://ubuntu.bryanludvigsen.com/?p=211</guid>
		<description><![CDATA[This post covers the LIRC button press configuration options found in an LIRC config file in mythbuntu. The LIRC config files are found in the .lirc directory in your home directory (/home/yourname/.lirc/ or ~/.lirc/ ).
An LIRC control configuration file has several options that are available when a button is pressed to control how that button [...]]]></description>
			<content:encoded><![CDATA[<p>This post covers the LIRC button press configuration options found in an LIRC config file in mythbuntu. The LIRC config files are found in the .lirc directory in your home directory (/home/yourname/.lirc/ or ~/.lirc/ ).</p>
<p>An LIRC control configuration file has several options that are available when a button is pressed to control how that button is interpreted and translated into a key press. Here is a brief explanation of the options.</p>
<p>Here is an example of a key press configuration (taken from /home/yourname/.lirc/mythtv):</p>
<blockquote><p>begin<br />
remote = mceusb<br />
prog = mythtv<br />
button = Down<br />
config = Down<br />
repeat = 2<br />
delay = 1<br />
end</p></blockquote>
<p>Ok lets break this down and explain how it works:</p>
<blockquote><p>begin<br />
remote = mceusb<br />
# this is the id for the remote that this configuration belongs too</p>
<p>prog = mythtv<br />
# this is the name of the executable of the program that this configuration triggers in</p>
<p>button = Down<br />
# this is the id for the button that when pressed on the remote fires this event</p>
<p>config = Down<br />
# this is the action that is fired when the button is pressed<br />
# the config option can either be a X windows key press event<br />
# or a shell command like  &#8220;xmacro-wrap SaveState&#8221;</p>
<p>repeat = 3<br />
# use the repeat command for buttons that you want to be able to<br />
# just hold down and they keep repeating the command every &#8216;n&#8217; cycles.<br />
# In this example the command will be issued every 3 cycles<br />
# which for the mceusb remote is about once every second.<br />
# if you set repeat = 0 the command will be sent only once even if you<br />
# hold the button down.</p>
<p>delay = 0<br />
# the delay config option can be used in conjunction with the repeat command to<br />
# to tweak the speed that the button presses are accepted<br />
# a delay of 1 delays the repeat by one cycle set the delay to 0 to disable it.<br />
end</p></blockquote>
<p>There are some other options available but these are the most common options used with mythtv. for more information google wiki LIRC Configuration.</p>
<p>Hopefully this is the last LIRC post for mythbuntu even though there is more you can do hopefully this will give enough info to be deadly and come up with creative uses for LIRC in mythbuntu!</p>
]]></content:encoded>
			<wfw:commentRss>http://ubuntu.bryanludvigsen.com/?feed=rss2&amp;p=211</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Adding LIRC to Mythbuntu Game Emulators</title>
		<link>http://ubuntu.bryanludvigsen.com/?p=199</link>
		<comments>http://ubuntu.bryanludvigsen.com/?p=199#comments</comments>
		<pubDate>Wed, 06 May 2009 05:45:05 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[Random Junk]]></category>

		<guid isPermaLink="false">http://ubuntu.bryanludvigsen.com/?p=199</guid>
		<description><![CDATA[Most of the stuff in this post I found at an awesome wiki that explains how to completely configure mythgame for mythbuntu. This post just covers setting up zsnes and sdlmame to work with lirc so that you can use your remote to navigate menus and control volume and all that great stuff.
Here is a [...]]]></description>
			<content:encoded><![CDATA[<p>Most of the stuff in this post I found at an awesome wiki that explains how to completely configure mythgame for mythbuntu. This post just covers setting up zsnes and sdlmame to work with lirc so that you can use your remote to navigate menus and control volume and all that great stuff.</p>
<p>Here is a link to the article with information on almost every emulator out there and how to configure them: <a href="http://www.mythtv.org/wiki/Configuring_MythGame_Emulation#Remote_Control_Integration">http://www.mythtv.org/wiki/Configuring_MythGame_Emulation#Remote_Control_Integration</a>.</p>
<p><strong>Step 1 Install Packages Using Synaptec Package Manager</strong></p>
<ul>
<li>xmacro</li>
<li>sdlmame</li>
<li>zsnes</li>
</ul>
<p><strong>Step 2 Edit LIRC Config Files</strong></p>
<p>Run the following command from console:</p>
<blockquote><p>nano ~/.lirc/irexec</p></blockquote>
<p>File Contents:</p>
<blockquote><p>begin<br />
remote = mceusb<br />
prog = irexec<br />
button = Stop<br />
config = xmacro-wrap extra1<br />
repeat = 0<br />
end<br />
begin<br />
remote = mceusb<br />
prog = irexec<br />
button = Power<br />
config = xmacro-wrap Exit<br />
repeat = 0<br />
end<br />
begin<br />
remote = mceusb<br />
prog = irexec<br />
button = Pause<br />
config = xmacro-wrap Pause<br />
repeat = 0<br />
end<br />
begin<br />
remote = mceusb<br />
prog = irexec<br />
button = Play<br />
config = xmacro-wrap LoadState<br />
repeat = 0<br />
end<br />
begin<br />
remote = mceusb<br />
prog = irexec<br />
button = Record<br />
config = xmacro-wrap SaveState<br />
repeat = 0<br />
end<br />
begin<br />
remote = mceusb<br />
prog = irexec<br />
button = More<br />
config = xmacro-wrap SelectState<br />
repeat = 1<br />
end<br />
begin<br />
remote = mceusb<br />
prog = irexec<br />
button = VolDown<br />
config = xmacro-wrap VolDown<br />
repeat = 1<br />
end<br />
begin<br />
remote = mceusb<br />
prog = irexec<br />
button = VolUp<br />
config = xmacro-wrap VolUp<br />
repeat = 1<br />
end<br />
begin<br />
remote = mceusb<br />
prog = irexec<br />
button = OK<br />
config = xmacro-wrap Return<br />
repeat = 0<br />
end<br />
begin<br />
remote = mceusb<br />
prog = irexec<br />
button = Home<br />
config = xmacro-wrap Menu<br />
repeat = 0<br />
end<br />
begin<br />
remote = mceusb<br />
prog = irexec<br />
button = Up<br />
config = xmacro-wrap Up<br />
repeat = 1<br />
end<br />
begin<br />
remote = mceusb<br />
prog = irexec<br />
button = Down<br />
config = xmacro-wrap Down<br />
repeat = 1<br />
end<br />
begin<br />
remote = mceusb<br />
prog = irexec<br />
button = Left<br />
config = xmacro-wrap Left<br />
repeat = 1<br />
end<br />
begin<br />
remote = mceusb<br />
prog = irexec<br />
button = Right<br />
config = xmacro-wrap Right<br />
repeat = 1<br />
end</p></blockquote>
<p>Run the following command from console:</p>
<blockquote><p>nano ~/.lircrc</p></blockquote>
<p>Add the following line to that file:</p>
<blockquote><p>include ~/.lirc/irexec</p></blockquote>
<p>You may need to restart your lirc daemon for changes to take effect.</p>
<blockquote><p>/etc/init.d/lirc restart</p></blockquote>
<p><strong>Step 3 Create a macro-wrap Script</strong></p>
<p>OH Wait! Here is one for you already that contains the commands for both zsnes:<br />
run this command from console and paste the text in the box below in</p>
<blockquote><p>sudo nano /usr/bin/xmacro-wrap</p></blockquote>
<p>File Contents:</p>
<blockquote><p>#!/bin/bash<br />
# xmacroplay wrapper for emulators under mythTV</p>
<p># finds an emulator running and loads its keytable.<br />
# add your emulator below! Use the &#8216;unused&#8217; key for unused commands<br />
function keyAssign {<br />
# master list of commands<br />
COMMAND=( &#8216;Exit&#8217; &#8216;Reset&#8217; &#8216;SaveState&#8217; &#8216;LoadState&#8217; &#8216;PickState&#8217; \<br />
&#8216;IncState&#8217; &#8216;DecState&#8217; &#8216;Fastforward&#8217; &#8216;SlowDown&#8217; &#8216;Rewind&#8217; \<br />
&#8216;Pause&#8217; &#8216;Return&#8217; &#8216;Menu&#8217; &#8216;VolUp&#8217; &#8216;VolDown&#8217; \<br />
&#8216;Mute&#8217; &#8216;Up&#8217; &#8216;Down&#8217;  &#8216;Left&#8217; &#8216;Right&#8217; \<br />
&#8216;Extra1&#8242; &#8216;Extra2&#8242; &#8216;Extra3&#8242; &#8216;Extra4&#8242; &#8216;Extra5&#8242;)<br />
let NUMCOMMANDS=${#COMMAND[@]}-1<br />
KEYS=&#8221;</p>
<p>#######                ########################################################<br />
# Add other emulators below! ##################################################<br />
#######                ########################################################</p>
<p>#zsnes configuration<br />
if ps -A | egrep -q &#8216; zsnes&#8217;; then<br />
#        quit reset save_st load_st pick_st<br />
KEYS=( &#8216;F11&#8242; &#8216;F10&#8242; &#8216;F2&#8242; &#8216;F4&#8242; &#8216;F3&#8242; \<br />
#        st+ st- ffwd slow rwnd<br />
&#8216;unused&#8217; &#8216;unused&#8217; &#8216;unused&#8217; &#8216;unused&#8217; &#8216;unused&#8217; \<br />
#        pause ok menu vol+ vol-<br />
&#8216;p&#8217; &#8216;Return&#8217; &#8216;Escape&#8217; &#8216;F8&#8242; &#8216;F9&#8242; \<br />
#        mute up down left right<br />
&#8216;unused&#8217; &#8216;Up&#8217; &#8216;Down&#8217; &#8216;Left&#8217; &#8216;Right&#8217; \<br />
#        extra1 extra2 extra3 extra4 extra5<br />
&#8216;Escape&#8217; &#8216;unused&#8217; &#8216;unused&#8217; &#8216;unused&#8217; &#8216;unused&#8217; )<br />
PASSNUMERAL=&#8217;true&#8217; #use numbers to change state for fceu<br />
EMUNAME=&#8221;ZSNES&#8221;<br />
#sdlmame configuration<br />
elif ps -A | egrep -q &#8216; sdlmame&#8217;; then<br />
#        quit reset save_st load_st pick_st<br />
KEYS=( &#8216;Escape&#8217; &#8216;F3&#8242; &#8216;F7&#8242; &#8216;Shift_L+F7&#8242; &#8216;unused&#8217; \<br />
#        st+ st- ffwd slow rwnd<br />
&#8216;unused&#8217; &#8216;unused&#8217; &#8216;unused&#8217; &#8216;unused&#8217; &#8216;comma&#8217; \<br />
#        pause ok menu vol+ vol-<br />
&#8216;unused&#8217; &#8216;Return&#8217; &#8216;Tab&#8217; &#8216;Right&#8217; &#8216;Left&#8217; \<br />
#        mute up down left right<br />
&#8216;asciitilde&#8217; &#8216;Up&#8217; &#8216;Down&#8217; &#8216;Left&#8217; &#8216;Right&#8217; \<br />
#        extra1 extra2 extra3 extra4 extra5<br />
&#8216;Escape&#8217; &#8216;unused&#8217; &#8216;unused&#8217; &#8216;unused&#8217; &#8216;unused&#8217; )<br />
PASSNUMERAL=&#8217;true&#8217; #use numbers to change state for nestopia<br />
EMUNAME=&#8221;SDLMAME&#8221;<br />
fi<br />
}</p>
<p>#use KeyStr and hold down for a little bit. $1 is keystr, [$2] is delay<br />
function pressKey {<br />
echo &#8220;KeyStrPress $1&#8243; | xmacroplay &#8220;:0.0&#8243;<br />
local SLEEPTIME=.05 #.05 is a good default hold time for fceu and zsnes<br />
if [ $# == 2 ]; then<br />
SLEEPTIME=$2<br />
fi<br />
sleep $SLEEPTIME<br />
echo &#8220;KeyStrRelease $1&#8243; | xmacroplay &#8220;:0.0&#8243;<br />
debugOutput &#8220;$1 ($SLEEPTIME seconds)&#8221; 1<br />
}</p>
<p>#output to console/logfile<br />
function debugOutput {<br />
ECHOCOMMAND=&#8221;echo&#8221;</p>
<p># use &#8220;debugOutput text 1&#8243; or similar to prevent newline<br />
if [ $# == 2 ]; then<br />
ECHOCOMMAND=&#8221;echo -n&#8221;<br />
fi<br />
if [ $DEBUGMODE != 'none' ]; then<br />
$ECHOCOMMAND &#8220;$1&#8243;<br />
fi<br />
if [ $DEBUGMODE = 'true' ]; then<br />
$ECHOCOMMAND &#8220;$1&#8243; &gt;&gt; ~/.xmacro-wrap.log</p>
<p>#trim log<br />
if [ ! -z "$LOGFILESIZE" ]; then<br />
cat ~/.xmacro-wrap.log | tail -n $LOGFILESIZE &gt; ~/.xmacro-wrap.log<br />
fi<br />
fi<br />
}</p>
<p>#send the key!<br />
function sendData {<br />
KEYSYM=&#8217;undefined&#8217;</p>
<p># see if a numeral was entered<br />
# if so, set the key symbol to that number if allowed by settings<br />
# if the numeral is also a command, the numeral will be overwritten later<br />
for i in 0 1 2 3 4 5 6 7 8 9; do<br />
if [ "$1" == $i ] &amp;&amp; [ "$PASSNUMERAL" = 'true' ]; then<br />
KEYSYM=$1<br />
fi<br />
done</p>
<p>#find the key we want to send<br />
# look for a match in our definitions<br />
for i in `seq 0 $NUMCOMMANDS`; do<br />
if [ "${COMMAND[i]}&#8221; = &#8220;$1&#8243; ]; then<br />
KEYSYM=${KEYS[i]}<br />
COMMANDNAME=${COMMAND[i]}<br />
fi<br />
done</p>
<p>#if not legal key<br />
if [ "$KEYSYM" = 'undefined' ] || [ "$KEYSYM" = 'unused' ]; then<br />
debugOutput &#8221; $KEYSYM for $EMUNAME&#8221;<br />
exit 1<br />
fi</p>
<p>#otherwise do it!<br />
pressKey $KEYSYM $2<br />
debugOutput &#8221; sent to $EMUNAME&#8221;<br />
exit 0<br />
}</p>
<p># true logs to file and to stdout<br />
# false logs to stdout only<br />
# none is silent<br />
DEBUGMODE=&#8217;true&#8217;<br />
LOGFILESIZE=&#8217;50&#8242; #number of lines, use blank for unlimited</p>
<p>if [ "$#" == "0" ] || [ "$#" -gt "3" ]; then<br />
echo &#8216;Wrapper for xmacroplay for use with emulators&#8217;<br />
echo &#8221;<br />
echo &#8216;Usage: xmacro-wrap COMMAND [DURATION]&#8216;<br />
echo &#8216;  or:  xmacro-wrap KEYSTR direct [DURATION]&#8216;<br />
echo &#8221;<br />
echo &#8216;COMMAND is any internally recognized command, for example&#8217;<br />
echo &#8216;        Exit, Reset, SaveState, Mute.&#8217;<br />
echo &#8221;<br />
echo &#8216;DURATION is in seconds.&#8217;<br />
echo &#8221;<br />
echo &#8216;Direct mode is invoked like this: xmacro-wrap backslash direct 1&#8242;<br />
echo &#8216;        (Sends backslash key, held for 1 second)&#8217;<br />
echo &#8216;        see X11/keysymdef.h&#8217;<br />
echo &#8221;<br />
exit 1<br />
fi</p>
<p>#direct mode option<br />
if [ "$2" = "direct" ]; then<br />
debugOutput &#8220;Direct output: &#8221; 1<br />
pressKey $1 $3<br />
exit 0<br />
fi</p>
<p>DATESTR=&#8221;`date +%m/%d/%y` `date +%T`&#8221;<br />
keyAssign<br />
# if an emulator isn&#8217;t running, KEYS is blank<br />
if [ -z "$KEYS" ]; then<br />
debugOutput &#8220;$DATESTR, no emulator to pass command \&#8221;$1\&#8221;!&#8221;<br />
exit 1<br />
else<br />
debugOutput &#8220;$DATESTR, command \&#8221;$1\&#8221;: &#8221; 1<br />
fi<br />
sendData $@</p></blockquote>
<p>Run the following command in console:</p>
<blockquote><p>sudo chmod 755 /usr/bin/xmacro-wrap</p></blockquote>
<p><strong>Step 4 Create Game Launcher Scripts</strong></p>
<p>Run the following command from console:</p>
<blockquote><p>nano ~/snes.sh</p></blockquote>
<p>File Contents:</p>
<blockquote><p>#!/bin/bash<br />
# zsnes path + executable<br />
ZSNES=/usr/bin/zsnes<br />
# irexec path + executable<br />
IREXEC=/usr/bin/irexec<br />
# irexec process name to kill<br />
IREXEC_PS=irexec</p>
<p>$IREXEC &amp;<br />
$ZSNES &#8220;$1&#8243;<br />
killall $IREXEC_PS<br />
exit 0</p></blockquote>
<p>Run the following command from console:</p>
<blockquote><p>nano ~/mame.sh</p></blockquote>
<p>File Contents:</p>
<blockquote><p>#!/bin/bash<br />
# zsnes path + executable<br />
MAME=/usr/games/sdlmame<br />
# irexec path + executable<br />
IREXEC=/usr/bin/irexec<br />
# irexec process name to kill<br />
IREXEC_PS=irexec</p>
<p>$IREXEC &amp;<br />
$MAME -skip_gameinfo $1<br />
killall $IREXEC_PS<br />
exit 0</p></blockquote>
<p>Run the following commands from console:</p>
<blockquote><p>chmod 755 ~/snes.sh<br />
chmod 755 ~/mame.sh</p></blockquote>
<p><strong>Step 5 Configuring Mythbuntu Game Players</strong></p>
<p>Configure zsnes keys MISC-&gt;Misc Keys:</p>
<p><a href="http://ubuntu.bryanludvigsen.com/wp-content/uploads/snes-misc-key.png"><img class="alignnone size-medium wp-image-208" src="http://ubuntu.bryanludvigsen.com/wp-content/uploads/snes-misc-key-300x262.png" alt="" width="300" height="262" /></a></p>
<p>Start up the Myth Frontend Interface.<br />
Select Utilities / Setup -&gt; Setup -&gt; Media Settings -&gt; Game Settings -&gt; Game Players.<br />
New Game Player<br />
Type: SNES<br />
Command: ~/snes.sh</p>
<p>New Game Player<br />
Type: MAME<br />
Command: ~/mame.sh</p>
<p><strong>Step 6 Problems</strong></p>
<p>This guide requires that you have setup the proper keys in zsnes to match the keys in the xmacro-wrap script.</p>
<p>Make sure that in /etc/mame.ini file the rom-path is set to the path where all of the roms are located or sdlmame may not work.</p>
<p>Enjoy!</p>
<p>**Edit here is an updated set of lirc and shell scripts for running macrowrap!</p>
<p><a href="../wp-content/uploads/mythbuntu-macrowrap-lirc.zip">mythbuntu-macrowrap-lirc</a></p>
]]></content:encoded>
			<wfw:commentRss>http://ubuntu.bryanludvigsen.com/?feed=rss2&amp;p=199</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mupen64plus with LIRC for mythbuntu 9.04</title>
		<link>http://ubuntu.bryanludvigsen.com/?p=189</link>
		<comments>http://ubuntu.bryanludvigsen.com/?p=189#comments</comments>
		<pubDate>Sun, 03 May 2009 03:27:05 +0000</pubDate>
		<dc:creator>Steve</dc:creator>
				<category><![CDATA[Application Install/Tweaking]]></category>
		<category><![CDATA[Emulation]]></category>
		<category><![CDATA[Mythbuntu]]></category>
		<category><![CDATA[mupen64plus]]></category>
		<category><![CDATA[n64]]></category>

		<guid isPermaLink="false">http://ubuntu.bryanludvigsen.com/?p=189</guid>
		<description><![CDATA[Instructions for compiling and installing mupen64plus with support your remote control in 64 bit mythbuntu.
Step 1 Install Development Packages
Install the following packages using the synaptec package manager:

 sdlmame
 liblircclient
 liblircclient-dev
 libqt4
 libqt4-dev
 libxtst
 libxtst-dev
 libsamplerate
libsdl1.2-dev
 libsdl-ttf2.0-0
 libsdl-ttf2.0-dev
 g++

Step 2 Installing mupen64plus
Download the latest source for mupen64plus to your Desktop:
http://mupen64plus.googlecode.com/files/Mupen64Plus-1-5-src.tar.gz
Open up a console and run the [...]]]></description>
			<content:encoded><![CDATA[<p>Instructions for compiling and installing mupen64plus with support your remote control in 64 bit mythbuntu.</p>
<p><strong>Step 1 Install Development Packages</strong></p>
<p>Install the following packages using the synaptec package manager:</p>
<ul>
<li> sdlmame</li>
<li> liblircclient</li>
<li> liblircclient-dev</li>
<li> libqt4</li>
<li> libqt4-dev</li>
<li> libxtst</li>
<li> libxtst-dev</li>
<li> libsamplerate</li>
<li>libsdl1.2-dev</li>
<li> libsdl-ttf2.0-0</li>
<li> libsdl-ttf2.0-dev</li>
<li> g++</li>
</ul>
<p><strong>Step 2 Installing mupen64plus</strong></p>
<p>Download the latest source for mupen64plus to your Desktop:</p>
<p>http://mupen64plus.googlecode.com/files/Mupen64Plus-1-5-src.tar.gz</p>
<p>Open up a console and run the following commands:</p>
<blockquote><p>cd Desktop<br />
tar xzf Mupen64Plus-1-5-src.tar.gz<br />
cd Mupen64Plus-1-5-src<br />
make LIRC=1 all<br />
sudo make install<br />
cd /usr/local/bin<br />
sudo chmod 4755 mupen64plus</p></blockquote>
<p><strong>Step 3 Configure The Buttons on Your Remote:</strong></p>
<p>run the following command from console (note the ~ is a linux alias for your home directory):</p>
<blockquote><p>nano ~/.lirc/mupen64plus</p></blockquote>
<p># Add the following Lines to the file .lirc/mupen64plus<br />
# replace mceusb with the name of your remote<br />
# you can find the name or your remote by checking any of the files in your .lirc/ directory</p>
<blockquote><p># start .lirc/mupen64plus<br />
begin<br />
remote = mceusb<br />
prog = mupen64plus<br />
button = Stop<br />
config = quit<br />
repeat = 0<br />
delay = 0<br />
end<br />
begin<br />
remote = mceusb<br />
prog = mupen64plus<br />
button = Power<br />
config = quit<br />
repeat = 0<br />
delay = 0<br />
end<br />
begin<br />
remote = mceusb<br />
prog = mupen64plus<br />
button = Pause<br />
config = pause<br />
repeat = 0<br />
delay = 0<br />
end<br />
begin<br />
remote = mceusb<br />
prog = mupen64plus<br />
button = Play<br />
config = pause<br />
repeat = 0<br />
delay = 0<br />
end<br />
begin<br />
remote = mceusb<br />
prog = mupen64plus<br />
button = VolDown<br />
config = vol-<br />
repeat = 0<br />
delay = 0<br />
end<br />
begin<br />
remote = mceusb<br />
prog = mupen64plus<br />
button = VolUp<br />
config = vol+<br />
repeat = 0<br />
delay = 0<br />
end<br />
begin<br />
remote = mceusb<br />
prog = mupen64plus<br />
button = Home<br />
config = fullscreen<br />
repeat = 0<br />
delay = 0<br />
end<br />
# end .lirc/mupen64plus<br />
# save the file and exit nano</p></blockquote>
<p>Run the following command from console:</p>
<blockquote><p>nano ~/.lircrc</p></blockquote>
<p># add the fololowing line to the end of .lircrc</p>
<blockquote><p>include ~/.lirc/mupen64plus</p></blockquote>
<p># save the file and exit nano</p>
<p><strong>Step 4 Configuring Mupen64plus</strong></p>
<p>Run the following command from console and use the gui to setup and configure controllers video settings etc.:</p>
<blockquote><p>sudo mupen64plus</p></blockquote>
<p>for best results use the Glide plugin for video not sure why this is best but it sems to work for most games!</p>
<p><strong>Step 5 Configuring Mythbuntu Game Settings</strong></p>
<ol>
<li>Start up the Myth Frontend Interface.</li>
<li>Select Utilities / Setup -&gt; Setup -&gt; Media Settings -&gt; Game Settings -&gt; Game Players.</li>
<li>Command: mupen64plus &#8211;nogui &#8211;fullscreen</li>
</ol>
<p><a href="http://ubuntu.bryanludvigsen.com/wp-content/uploads/mupenplus-64-setup.png"><img class="alignnone size-medium wp-image-191" src="http://ubuntu.bryanludvigsen.com/wp-content/uploads/mupenplus-64-setup-300x225.png" alt="" width="300" height="225" /></a></p>
<p>Rock out with your frock out using mupen64plus!</p>
]]></content:encoded>
			<wfw:commentRss>http://ubuntu.bryanludvigsen.com/?feed=rss2&amp;p=189</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Mounting NTFS Drive in Mythbuntu</title>
		<link>http://ubuntu.bryanludvigsen.com/?p=186</link>
		<comments>http://ubuntu.bryanludvigsen.com/?p=186#comments</comments>
		<pubDate>Tue, 28 Apr 2009 20:00:22 +0000</pubDate>
		<dc:creator>Jason</dc:creator>
				<category><![CDATA[Mythbuntu]]></category>
		<category><![CDATA[NTFS]]></category>

		<guid isPermaLink="false">http://ubuntu.bryanludvigsen.com/?p=186</guid>
		<description><![CDATA[1) Run fdisk to determine the Drive Partition:
sudo fdisk -l
2) Create the Mount Point:
Sudo mkdir /media/&#60;mount point&#62;
3) Edit the /etc/fstab File:
sudo nano /etc/fstab
4) Insert the following into the /etc/fstab file:
/dev/&#60;your partition&#62; /media/&#60;mount point&#62; ntfs-3g defaults,locale=en_US.utf8 0 0
Notes:
&#60;your partition&#62; -&#62; Determined in Step 1
&#60;mount point&#62; -&#62; Determined in Step 2

]]></description>
			<content:encoded><![CDATA[<div><span style="x-small;">1) Run fdisk to determine the Drive Partition:</span></div>
<p><span style="x-small;">sudo fdisk -l</p>
<p>2) Create the Mount Point:</p>
<p>Sudo mkdir /media/&lt;mount point&gt;</p>
<p>3) Edit the /etc/fstab File:</p>
<p>sudo nano /etc/fstab</p>
<p>4) Insert the following into the /etc/fstab file:</p>
<p>/dev/&lt;your partition&gt; /media/&lt;mount point&gt; ntfs-3g defaults,locale=en_US.utf8 0 0</p>
<p>Notes:<br />
&lt;your partition&gt; -&gt; Determined in Step 1<br />
&lt;mount point&gt; -&gt; Determined in Step 2</p>
<p></span></p>
]]></content:encoded>
			<wfw:commentRss>http://ubuntu.bryanludvigsen.com/?feed=rss2&amp;p=186</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
	</channel>
</rss>
