<?xml version="1.0" encoding="iso-8859-1"?>
<?xml-stylesheet href="http://nowblogging.net/styles/rss.css" type="text/css"?>
<rss version="2.0" 
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
>
 <channel>
  <title>Linux, Debian Stable, New apps and bash codes</title>
  <link>http://debianstable.nowblogging.net/1587_linux_debian_stable_new_apps_and_bash_codes</link>
  <description></description>
  <pubDate>Fri, 19 Sep 2008 02:03:05 -0400</pubDate>
  <generator>http://www.lifetype.net</generator>
    <item>
   <title>DOSBOX and cdroms for games</title>
   <description>
    &lt;p&gt;
Example of daggerfall from a game forum &amp;nbsp;
&lt;/p&gt;
&lt;p&gt;
&lt;span class=&quot;postbody&quot;&gt;&lt;span style=&quot;font-weight: bold&quot;&gt;&lt;span style=&quot;text-decoration: underline&quot;&gt; Accessing the CD drive&lt;/span&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;br /&gt;
I&#039;ll cover 2 scenarios here : installing the game from the actual CD and installing it from an image (a .iso file).
&lt;br /&gt;
&lt;br /&gt;
If you&#039;ve got the tools to create a .iso from your CD, you should do so
as using an image results in better performances (your hard drive is
faster than your CD drive). If you&#039;d like to do this, you&#039;re own your
own, I&#039;m not going to cover this topic here.
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-style: italic&quot;&gt;Using the CD&lt;/span&gt;
&lt;br /&gt;
&lt;br /&gt;
Fire up DOSBox (i.e. just click on : Start -&amp;gt; Programs -&amp;gt;
DOSBox-0.70 -&amp;gt; DOSBox). At the prompt, type (and then press ENTER) :
&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;
&lt;/p&gt;
&lt;table align=&quot;center&quot; border=&quot;0&quot; cellpadding=&quot;3&quot; cellspacing=&quot;1&quot; width=&quot;90%&quot;&gt;
	&lt;tbody&gt;
		&lt;tr&gt;
			 	  
			&lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;strong&gt;Code:&lt;/strong&gt;&lt;/span&gt;&lt;/td&gt;	
		&lt;/tr&gt;
			
		&lt;tr&gt;
				  
			&lt;td class=&quot;code&quot;&gt;mount d PATH_TO_YOUR_DRIVE -t cdrom -usecd 0 -ioctl&lt;/td&gt;	
		&lt;/tr&gt;
	&lt;/tbody&gt;
&lt;/table&gt;
&lt;span class=&quot;postbody&quot;&gt;
&lt;br /&gt;
&lt;br /&gt;
Where, supposing you&#039;re running Windows, PATH_TO_YOUR_DRIVE is your CD Drive&#039;s letter followed by :\ .
&lt;br /&gt;
&lt;br /&gt;
If you only have one hard drive and one CD drive, that path would be D:\ :
&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;
&lt;table align=&quot;center&quot; border=&quot;0&quot; cellpadding=&quot;3&quot; cellspacing=&quot;1&quot; width=&quot;90%&quot;&gt;
	&lt;tbody&gt;
		&lt;tr&gt;
			 	  
			&lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;strong&gt;Code:&lt;/strong&gt;&lt;/span&gt;&lt;/td&gt;	
		&lt;/tr&gt;
			
		&lt;tr&gt;
				  
			&lt;td class=&quot;code&quot;&gt;mount d D:\ -t cdrom -usecd 0 -ioctl&lt;/td&gt;	
		&lt;/tr&gt;
	&lt;/tbody&gt;
&lt;/table&gt;
&lt;span class=&quot;postbody&quot;&gt;
&lt;br /&gt;
&lt;br /&gt;
Just put the CD in the drive and start reading step 5.
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-style: italic&quot;&gt;Using an image&lt;/span&gt;
&lt;br /&gt;
&lt;br /&gt;
Fire up DOSBox (i.e. just click on : Start -&amp;gt; Programs -&amp;gt;
DOSBox-0.70 -&amp;gt; DOSBox). At the prompt, type (and then press ENTER) :
&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;
&lt;table align=&quot;center&quot; border=&quot;0&quot; cellpadding=&quot;3&quot; cellspacing=&quot;1&quot; width=&quot;90%&quot;&gt;
	&lt;tbody&gt;
		&lt;tr&gt;
			 	  
			&lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;strong&gt;Code:&lt;/strong&gt;&lt;/span&gt;&lt;/td&gt;	
		&lt;/tr&gt;
			
		&lt;tr&gt;
				  
			&lt;td class=&quot;code&quot;&gt;imgmount d PATH_TO_YOUR_ISO -t iso&lt;/td&gt;	
		&lt;/tr&gt;
	&lt;/tbody&gt;
&lt;/table&gt;
&lt;span class=&quot;postbody&quot;&gt;
&lt;br /&gt;
&lt;br /&gt;
Assuming your image file is in C:\Images\Daggerfall.iso, the command would become :
&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;
&lt;table align=&quot;center&quot; border=&quot;0&quot; cellpadding=&quot;3&quot; cellspacing=&quot;1&quot; width=&quot;90%&quot;&gt;
	&lt;tbody&gt;
		&lt;tr&gt;
			 	  
			&lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;strong&gt;Code:&lt;/strong&gt;&lt;/span&gt;&lt;/td&gt;	
		&lt;/tr&gt;
			
		&lt;tr&gt;
				  
			&lt;td class=&quot;code&quot;&gt;imgmount d C:\Images\Daggerfall.iso -t iso&lt;/td&gt;	
		&lt;/tr&gt;
	&lt;/tbody&gt;
&lt;/table&gt;
&lt;span class=&quot;postbody&quot;&gt;
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-weight: bold&quot;&gt;&lt;span style=&quot;text-decoration: underline&quot;&gt;5 - Installing the game&lt;/span&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;br /&gt;
As of now, you&#039;ve got DOSBox running at pretty much top speed with a virtual hard drive and an access to Daggerfall&#039;s CD.
&lt;br /&gt;
&lt;br /&gt;
If you&#039;re not familiar with DOS, you might want to get acquainted with some of its commands : &lt;a href=&quot;http://en.wikipedia.org/wiki/List_of_DOS_commands&quot; target=&quot;_blank&quot;&gt;http://en.wikipedia.org/wiki/List_of_DOS_commands&lt;/a&gt; .
&lt;br /&gt;
&lt;br /&gt;
Basically, there are 2 essentials here : CD and DIR .
&lt;br /&gt;
&lt;br /&gt;
CD means change directory and is used to enter a folder.
&lt;br /&gt;
&lt;br /&gt;
DIR lists the content of the current directory (that&#039;s right, you can only open one folder at any given time).
&lt;br /&gt;
&lt;br /&gt;
You can see the current directory by looking at the prompt.
&lt;br /&gt;
&lt;br /&gt;
You might want to read the wiki and mess around with DOSBox for a bit. If you don&#039;t feel like it, just do what I tell you to do.
&lt;br /&gt;
&lt;br /&gt;
Type (always press ENTER after typing a command) :
&lt;br /&gt;
&lt;/span&gt;
&lt;table align=&quot;center&quot; border=&quot;0&quot; cellpadding=&quot;3&quot; cellspacing=&quot;1&quot; width=&quot;90%&quot;&gt;
	&lt;tbody&gt;
		&lt;tr&gt;
			 	  
			&lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;strong&gt;Code:&lt;/strong&gt;&lt;/span&gt;&lt;/td&gt;	
		&lt;/tr&gt;
			
		&lt;tr&gt;
				  
			&lt;td class=&quot;code&quot;&gt;D:&lt;/td&gt;	
		&lt;/tr&gt;
	&lt;/tbody&gt;
&lt;/table&gt;
&lt;span class=&quot;postbody&quot;&gt;
&lt;br /&gt;
&lt;br /&gt;
This I&#039;ll change the current drive to the CD.
&lt;br /&gt;
&lt;br /&gt;
Then type :
&lt;br /&gt;
&lt;/span&gt;
&lt;table align=&quot;center&quot; border=&quot;0&quot; cellpadding=&quot;3&quot; cellspacing=&quot;1&quot; width=&quot;90%&quot;&gt;
	&lt;tbody&gt;
		&lt;tr&gt;
			 	  
			&lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;strong&gt;Code:&lt;/strong&gt;&lt;/span&gt;&lt;/td&gt;	
		&lt;/tr&gt;
			
		&lt;tr&gt;
				  
			&lt;td class=&quot;code&quot;&gt;install&lt;/td&gt;	
		&lt;/tr&gt;
	&lt;/tbody&gt;
&lt;/table&gt;
&lt;span class=&quot;postbody&quot;&gt;
&lt;br /&gt;
&lt;br /&gt;
This isn&#039;t one of DOS&#039; internal commands. If you type something
that isn&#039;t a command, the OS searches the current directory and tries
to find a program named (minus the extension, which is the text after
the dot - e.g. &lt;span style=&quot;font-style: italic&quot;&gt;.exe&lt;/span&gt; -) after what you&#039;ve entered.
&lt;br /&gt;
&lt;br /&gt;
Luckily, the CD contains a program named install.exe which means DOSBox can run this.
&lt;br /&gt;
&lt;br /&gt;
The installation should begin. When the License Agreement comes up,
&amp;quot;lock&amp;quot; the mouse within DOSBox by clicking on the window (you can use
CTRL+F10 to &amp;quot;unlock&amp;quot; the mouse). Agree with the terms.
&lt;br /&gt;
&lt;br /&gt;
You should be able to install the program on your own, just pick
&amp;quot;Install the game on your hard drive&amp;quot;, &amp;quot;Change the install size&amp;quot;,
select the biggest size, accept, accept the default folder and let the
program do its job.
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-weight: bold&quot;&gt;&lt;span style=&quot;text-decoration: underline&quot;&gt;6 - Configuring the sound card&lt;/span&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;br /&gt;
DOSBox emulates a bunch of common sound cards.
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-style: italic&quot;&gt;Select Digital&lt;/span&gt;
&lt;br /&gt;
Using the arrow keys on your keyboard, enter this section.
&lt;br /&gt;
&lt;br /&gt;
Pick Sound Blaster 16/AWE 32, and set the port to 220, the DMA to 1 and the IRQ to 7.
&lt;br /&gt;
&lt;br /&gt;
Then select OK
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-style: italic&quot;&gt;Select MIDI&lt;/span&gt;
&lt;br /&gt;
Using the arrow keys on your keyboard, enter this section.
&lt;br /&gt;
&lt;br /&gt;
Pick Sound Blaster 16, MIDI Port 388.
&lt;br /&gt;
&lt;br /&gt;
Then select OK.
&lt;br /&gt;
&lt;br /&gt;
Leave the &lt;span style=&quot;font-style: italic&quot;&gt;HMI Sound Operating System Setup Utility&lt;/span&gt; by selecting OK from the main menu. You may try Test Digital and Test MIDI if you feel like it.
&lt;br /&gt;
&lt;br /&gt;
Leave the installation, you&#039;re done.
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-weight: bold&quot;&gt;&lt;span style=&quot;text-decoration: underline&quot;&gt;7 - Preparing the game&lt;/span&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;br /&gt;
Close DOSBox. You can to this by using the [x] button on the top-right corner or by pressing CTRL+F9.
&lt;br /&gt;
&lt;br /&gt;
Open up Notepad (or any other ASCII editor) and type the following (make sure you do the replacing with your own paths) :
&lt;br /&gt;
&lt;br /&gt;
If you&#039;re running the game from a CD Drive...
&lt;br /&gt;
&lt;/span&gt;
&lt;table align=&quot;center&quot; border=&quot;0&quot; cellpadding=&quot;3&quot; cellspacing=&quot;1&quot; width=&quot;90%&quot;&gt;
	&lt;tbody&gt;
		&lt;tr&gt;
			 	  
			&lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;strong&gt;Code:&lt;/strong&gt;&lt;/span&gt;&lt;/td&gt;	
		&lt;/tr&gt;
			
		&lt;tr&gt;
				  
			&lt;td class=&quot;code&quot;&gt;
			&lt;br /&gt;
			mount d PATH_TO_YOUR_DRIVE -t cdrom -usecd 0 -ioctl
			&lt;br /&gt;
			c:
			&lt;br /&gt;
			cd dagger
			&lt;br /&gt;
			fall z.cfg
			&lt;br /&gt;
			&lt;/td&gt;	
		&lt;/tr&gt;
	&lt;/tbody&gt;
&lt;/table&gt;
&lt;span class=&quot;postbody&quot;&gt;
&lt;br /&gt;
&lt;br /&gt;
If you&#039;re running the game from an image...
&lt;br /&gt;
Running from a CD Drive...
&lt;br /&gt;
&lt;/span&gt;
&lt;table align=&quot;center&quot; border=&quot;0&quot; cellpadding=&quot;3&quot; cellspacing=&quot;1&quot; width=&quot;90%&quot;&gt;
	&lt;tbody&gt;
		&lt;tr&gt;
			 	  
			&lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;strong&gt;Code:&lt;/strong&gt;&lt;/span&gt;&lt;/td&gt;	
		&lt;/tr&gt;
			
		&lt;tr&gt;
				  
			&lt;td class=&quot;code&quot;&gt;
			&lt;br /&gt;
			imgmount d PATH_TO_YOUR_ISO -t iso
			&lt;br /&gt;
			c:
			&lt;br /&gt;
			cd dagger
			&lt;br /&gt;
			fall z.cfg
			&lt;br /&gt;
			&lt;/td&gt;	
		&lt;/tr&gt;
	&lt;/tbody&gt;
&lt;/table&gt;
&lt;span class=&quot;postbody&quot;&gt;
&lt;br /&gt;
&lt;br /&gt;
Save this file directly inside DOSBox&#039;s virtual hard drive folder (don&#039;t put it in a subdirectory).
&lt;br /&gt;
&lt;br /&gt;
Name it go.bat (make sure it&#039;s a .bat, not a .txt).
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-weight: bold&quot;&gt;&lt;span style=&quot;text-decoration: underline&quot;&gt;8 - Patching the game&lt;/span&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;br /&gt;
Yea, Daggerfall is buggy...
&lt;br /&gt;
&lt;br /&gt;
Get the patch : &lt;a href=&quot;http://rapidshare.com/files/32589539/dag213.zip.html&quot; target=&quot;_blank&quot;&gt;http://rapidshare.com/files/32589539/dag213.zip.html&lt;/a&gt; (yeah, yea, I know, rapidshare sucks).
&lt;br /&gt;
&lt;br /&gt;
Unzip this in daggerfall&#039;s directory (i.e. PATH_TO_DOSBOX_VIRTUAL_HARD_DRIVE\dagger)
&lt;br /&gt;
&lt;br /&gt;
As an example, if I had to install, I&#039;d unzip the file to C:\DDRIVE\dagger.
&lt;br /&gt;
&lt;br /&gt;
Open up DOSBox. Enter the following commands :
&lt;br /&gt;
&lt;/span&gt;
&lt;table align=&quot;center&quot; border=&quot;0&quot; cellpadding=&quot;3&quot; cellspacing=&quot;1&quot; width=&quot;90%&quot;&gt;
	&lt;tbody&gt;
		&lt;tr&gt;
			 	  
			&lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;strong&gt;Code:&lt;/strong&gt;&lt;/span&gt;&lt;/td&gt;	
		&lt;/tr&gt;
			
		&lt;tr&gt;
				  
			&lt;td class=&quot;code&quot;&gt;cd dagger
			&lt;br /&gt;
			dag213&lt;/td&gt;	
		&lt;/tr&gt;
	&lt;/tbody&gt;
&lt;/table&gt;
&lt;span class=&quot;postbody&quot;&gt;
&lt;br /&gt;
&lt;br /&gt;
Answer the patch&#039;s questions (just type y and press enter) and let the program do its job.
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-weight: bold&quot;&gt;&lt;span style=&quot;text-decoration: underline&quot;&gt;9 - Running the game&lt;/span&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;br /&gt;
Now that the game has been patched, all that is left to do is run it.
&lt;br /&gt;
&lt;br /&gt;
Within DOSBox, type :
&lt;br /&gt;
&lt;br /&gt;
&lt;/span&gt;
&lt;table align=&quot;center&quot; border=&quot;0&quot; cellpadding=&quot;3&quot; cellspacing=&quot;1&quot; width=&quot;90%&quot;&gt;
	&lt;tbody&gt;
		&lt;tr&gt;
			 	  
			&lt;td&gt;&lt;span class=&quot;genmed&quot;&gt;&lt;strong&gt;Code:&lt;/strong&gt;&lt;/span&gt;&lt;/td&gt;	
		&lt;/tr&gt;
			
		&lt;tr&gt;
				  
			&lt;td class=&quot;code&quot;&gt;cd \
			&lt;br /&gt;
			go&lt;/td&gt;	
		&lt;/tr&gt;
	&lt;/tbody&gt;
&lt;/table&gt;
&lt;span class=&quot;postbody&quot;&gt;
&lt;br /&gt;
&lt;br /&gt;
This&#039;ll bring the current directory back to the virtual drive&#039;s
root and run the batch file we&#039;ve created earlier. The game should now
be running.
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-weight: bold&quot;&gt;&lt;span style=&quot;text-decoration: underline&quot;&gt;10 - Enjoy !&lt;/span&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;br /&gt;
You might want to press ALT+ENTER to have DOSBox go into fullscreen mode.
&lt;br /&gt;
&lt;br /&gt;
You&#039;re on your own now...
&lt;br /&gt;
&lt;br /&gt;
&lt;span style=&quot;font-weight: bold&quot;&gt;&lt;span style=&quot;text-decoration: underline&quot;&gt;10b - Running the game from now on...&lt;/span&gt;&lt;/span&gt;
&lt;br /&gt;
&lt;br /&gt;
Next time you want to run the game, start DOSBox, type &amp;quot;go&amp;quot; and press ENTER.&lt;/span&gt;
   </description>
   <link>http://debianstable.nowblogging.net/1587_linux_debian_stable_new_apps_and_bash_codes/archive/6129_dosbox_and_cdroms_for_games.html</link>
   <comments>http://debianstable.nowblogging.net/1587_linux_debian_stable_new_apps_and_bash_codes/archive/6129_dosbox_and_cdroms_for_games.html</comments>
   <guid>http://debianstable.nowblogging.net/1587_linux_debian_stable_new_apps_and_bash_codes/archive/6129_dosbox_and_cdroms_for_games.html</guid>
      <dc:creator>debianstable</dc:creator>
      
    <category>General</category>
         <pubDate>Sat, 07 Jun 2008 11:30:16 -0400</pubDate>
   <source url="http://debianstable.nowblogging.net/1587_linux_debian_stable_new_apps_and_bash_codes/feeds/rss20">Linux, Debian Stable, New apps and bash codes</source>
     </item>
    <item>
   <title>/usr/bin/playall script</title>
   <description>
    &lt;h5&gt;#/bin/bash&lt;/h5&gt;
&lt;p&gt;
while [ 1 ] 
&lt;/p&gt;
&lt;p&gt;
do find -iname &amp;quot;$1&amp;quot; -print | while read i ; do xterm -e mplayer &amp;quot;$i&amp;quot; -fs ; done ; done
&lt;/p&gt;
   </description>
   <link>http://debianstable.nowblogging.net/1587_linux_debian_stable_new_apps_and_bash_codes/archive/6058_usrbinplayall_script.html</link>
   <comments>http://debianstable.nowblogging.net/1587_linux_debian_stable_new_apps_and_bash_codes/archive/6058_usrbinplayall_script.html</comments>
   <guid>http://debianstable.nowblogging.net/1587_linux_debian_stable_new_apps_and_bash_codes/archive/6058_usrbinplayall_script.html</guid>
      <dc:creator>debianstable</dc:creator>
      
    <category>General</category>
         <pubDate>Wed, 04 Jun 2008 16:50:12 -0400</pubDate>
   <source url="http://debianstable.nowblogging.net/1587_linux_debian_stable_new_apps_and_bash_codes/feeds/rss20">Linux, Debian Stable, New apps and bash codes</source>
     </item>
    <item>
   <title>INSTALLING SDLMESS 0125</title>
   <description>
    &lt;p&gt;
&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;
&amp;nbsp;
&lt;/p&gt;
&lt;p&gt;
One has to type this into the console:
&lt;/p&gt;
&lt;pre class=&quot;alt2&quot; dir=&quot;ltr&quot; style=&quot;border: 1px inset ; margin: 0px; padding: 6px; overflow: auto; width: 640px; height: 194px; text-align: left&quot;&gt;
mkdir -p /usr/share/games/sdlmess/roms
cd /usr/share/games/
wget -c -N -U &amp;quot;Mozilla/5.0 (X11; U; Linux i686; en-US; rv:1.9) Gecko/2008052909 Firefox/3.0&amp;quot; --referer=&amp;quot;http://rbelmont.mameworld.info/?page_id=163&amp;quot; http://rbelmont.mameworld.info/sdlmess0125.zip
unzip sdlmess0125.zip
cd sdlmess0125
make -f makefile.sdl
beep
echo &amp;quot;please put all the zip files into /usr/share/games/sdlmess0125/roms&amp;quot;
ln -sf $PWD/mess /usr/bin/sdlmess 
echo &amp;quot;to run a floppy game : sdlmess cpc464 -flop1 renegade.dsk&amp;quot;
echo &amp;quot;to run a console game : sdlmess n64 -cart mario64.n64&amp;quot;
&lt;/pre&gt;
   </description>
   <link>http://debianstable.nowblogging.net/1587_linux_debian_stable_new_apps_and_bash_codes/archive/5962_installing_sdlmess_0125.html</link>
   <comments>http://debianstable.nowblogging.net/1587_linux_debian_stable_new_apps_and_bash_codes/archive/5962_installing_sdlmess_0125.html</comments>
   <guid>http://debianstable.nowblogging.net/1587_linux_debian_stable_new_apps_and_bash_codes/archive/5962_installing_sdlmess_0125.html</guid>
      <dc:creator>debianstable</dc:creator>
      
    <category>General</category>
         <pubDate>Sun, 01 Jun 2008 11:21:15 -0400</pubDate>
   <source url="http://debianstable.nowblogging.net/1587_linux_debian_stable_new_apps_and_bash_codes/feeds/rss20">Linux, Debian Stable, New apps and bash codes</source>
     </item>
   </channel>
</rss>