<?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>The HyRax Macrocosm &#187; Launcher</title>
	<atom:link href="http://www.serenux.com/tag/launcher/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.serenux.com</link>
	<description>Life, the Universe and Ubuntu.</description>
	<lastBuildDate>Tue, 10 Jan 2012 06:59:40 +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>HowTo: Utilise the RAM disk</title>
		<link>http://www.serenux.com/2008/12/howto-utilise-the-ram-disk/</link>
		<comments>http://www.serenux.com/2008/12/howto-utilise-the-ram-disk/#comments</comments>
		<pubDate>Tue, 30 Dec 2008 00:41:51 +0000</pubDate>
		<dc:creator>HyRax</dc:creator>
				<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[HowTo]]></category>
		<category><![CDATA[Icons]]></category>
		<category><![CDATA[Launcher]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[RAM]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://www.serenux.com/?p=284</guid>
		<description><![CDATA[Those of you who are Amiga veterans from the 80&#8242;s and early 90&#8242;s will be familiar with the oh-so-useful RAM: disk. A virtual device that treated your unused system RAM as a disk device that you could extract temporary files to and make a general mess of without worrying about cleaning it up later, because [...]]]></description>
			<content:encoded><![CDATA[<p>Those of you who are Amiga veterans from the 80&#8242;s and early 90&#8242;s will be familiar with the oh-so-useful RAM: disk. A virtual device that treated your unused system RAM as a disk device that you could extract temporary files to and make a general mess of without worrying about cleaning it up later, because when you rebooted, the content of the RAM disk would be cleared. The amount of data you could put in it was simply limited to how much physical RAM you had. The RAM disk was always 100% full because it was dynamic in nature. If you had 10MB of data in there, then the RAM disk consumed 10MB of system RAM. If you only had 2MB of data in there, then it only consumed 2MB of system RAM &#8211; the RAM disk never impacted on the rest of system memory in a prejudiced fashion.</p>
<p>Microsoft DOS and Windows have tried to replicate this feature with limited success, and the RAM disk was always a fixed size and pre-allocated from the rest of the system as well, which made it somewhat useless. If you had a 512MB RAM system and allocated 50MB for the RAM disk, then you only had 462MB left for the rest of the system, and this also meant that you could not put more than 50MB of data into the RAM disk.</p>
<p>Ubuntu Linux (and pretty much every other distro) has its own RAM disk feature as well and is just as flexible as the Amiga&#8217;s RAM disk in its use. Here&#8217;s a guide on how to use it.</p>
<p><span id="more-284"></span>Using a RAM disk in Ubuntu is simplicity itself &#8211; it&#8217;s already setup for you!</p>
<p>The RAM disk is located at /dev/shm on your system. Anything placed in this directory is in the RAM disk and will be lost when you reboot the system. The RAM disk is already utilised for temporary files from PulseAudio, so if you list the content of the RAM disk in a terminal with:</p>
<pre><span style="color: #000080;">$ ls /dev/shm</span></pre>
<p>You might get one or more temporary files that look similar to &#8220;pulse-shm-2343031262&#8243;.</p>
<p>Let&#8217;s make the RAM disk more accessible &#8211; how about an icon for it on the Gnome desktop?</p>
<ol>
<li>Start by doing a single right-mouse-click  anywhere on the Gnome desktop. A menu appears.
<p><img class="aligncenter size-full wp-image-286" title="1. Create new Launcher on Desktop" src="http://www.serenux.com/wp-content/uploads/2008/12/createnewlaunchermenu.jpg" alt="1. Create new Launcher on Desktop" width="291" height="253" />.</li>
<li>Choose &#8220;Create Launcher&#8221; from this menu. A &#8220;Create Launcher&#8221; window will appear.
<p><img class="aligncenter size-full wp-image-285" title="2. Create new Launcher" src="http://www.serenux.com/wp-content/uploads/2008/12/createnewlauncherblank.jpg" alt="2. Create new Launcher" width="417" height="229" />.</li>
<li>Change the &#8220;Type&#8221; option from <em>Application</em> to <em>Location</em>.<br />
.</li>
<li>In the &#8220;Name&#8221; field, type in <em>My RAM disk</em> (or whatever you prefer).<br />
.</li>
<li>In the &#8220;Location&#8221; field, type in <em>file:///dev/shm/<br />
.<br />
</em></li>
<li>And finally in the &#8220;Comment&#8221; field, type in a suitable description such as <em>&#8220;Accesses the RAM disk for temporary data&#8221;</em>.
<p><img class="aligncenter size-full wp-image-287" title="3. Details for a RAM disk Launcher" src="http://www.serenux.com/wp-content/uploads/2008/12/createramdisklauncher.jpg" alt="3. Details for a RAM disk Launcher" width="417" height="229" />.</li>
<li>Click OK and a new icon will appear on the desktop entitled &#8220;My RAM disk&#8221;.
<p><img class="aligncenter size-full wp-image-288" title="4. Desktop RAM Disk Launcher" src="http://www.serenux.com/wp-content/uploads/2008/12/desktopramdisklauncher.jpg" alt="4. Desktop RAM Disk Launcher" width="129" height="114" />.</li>
<li>When you double-click on it, a Nautilus window will open showing the content of the RAM disk.
<p><img class="aligncenter size-full wp-image-292" title="5. RAM Disk Nautilus window" src="http://www.serenux.com/wp-content/uploads/2008/12/ramdisknautiluswindow.jpg" alt="5. RAM Disk Nautilus window" width="497" height="363" />.</li>
</ol>
<p>Try copying some data to the RAM disk now and then reboot your PC. When you re-open the RAM disk, you will find the data you copied is now gone because it was never physically saved to your hard-drive.</p>
<p>Great stuff, but that Launcher icon looks a bit boring. Let&#8217;s give it some meaning. On my system, I use an icon of a male sheep, or (you guessed it) a Ram! Male sheep = Ram = RAM disk, geddit? Oh never mind&#8230; You can use this visual gag yourself by replacing the icon of the launcher with an image file.</p>
<ol>
<li>First up, download the sheep icon from <a title="Male sheep icon" href="http://www.serenux.com/~hyrax/pics/misc/icons/RamSheep.png" target="_blank">here</a> and place it somewhere appropriate on your system where it can be re-retrieved from, eg: <em>/home/jbloggs/Pictures/RamSheep.png</em> because it needs to be reloaded as your Launcher icon whenever you reboot. Leave this Nautilus window showing pictures folder open as we&#8217;ll need it to drag and drop from later.<br />
.</li>
<li>Now do a single-right-click of your RAM disk icon on your desktop and choose &#8220;Properties&#8221; from the menu. A new window appears.
<p><img class="aligncenter size-full wp-image-291" title="6. RAM Disk Launcher properties" src="http://www.serenux.com/wp-content/uploads/2008/12/ramdisklauncherproperties.jpg" alt="6. RAM Disk Launcher properties" width="281" height="420" />.</li>
<li>The properties window shows the current icon for your Launcher.
<p><img class="aligncenter size-full wp-image-293" title="7. RAM Disk properties" src="http://www.serenux.com/wp-content/uploads/2008/12/ramdiskproperties.jpg" alt="7. RAM Disk properties" width="372" height="452" />.</li>
<li>Now drag the sheep icon from where you downloaded it to on top of the default icon of the launcher and release the mouse button to drop it. This will replace it with the picture of the sheep.
<p><img class="aligncenter size-full wp-image-296" title="8. Drag and drop sheep icon" src="http://www.serenux.com/wp-content/uploads/2008/12/draganddropsheepicon.jpg" alt="8. Drag and drop sheep icon" width="402" height="486" />.</li>
<li>Click <em>close</em> to close the Properties window.
<p><img class="aligncenter size-full wp-image-297" title="9. Finished new sheep icon for RAM Disk" src="http://www.serenux.com/wp-content/uploads/2008/12/newsheepiconforramdisk.jpg" alt="9. Finished new sheep icon for RAM Disk" width="504" height="507" />.</li>
<li>If the icon is too small for you, you can make it bigger by resizing it. Do a single-right-click on the  icon and choose &#8220;Stretch icon&#8221; from the menu. Four anchors will appear on the icon for you to pull on.
<p><img class="aligncenter size-full wp-image-295" title="10. Stretch RAM Disk icon" src="http://www.serenux.com/wp-content/uploads/2008/12/stretchramdiskicon.jpg" alt="10. Stretch RAM Disk icon" width="285" height="405" />.</li>
<li>Grab one of the anchors with your mouse and drag it until the icon is at the desired size.
<p><img class="aligncenter size-full wp-image-294" title="11. Stretching RAM Disk icon" src="http://www.serenux.com/wp-content/uploads/2008/12/stretchingramdiskicon.jpg" alt="11. Stretching RAM Disk icon" width="214" height="217" />.</li>
<li>Click anywhere outside of the icon to set the icon size and remove the anchors.<br />
.</li>
<li>You&#8217;re done!</li>
</ol>
]]></content:encoded>
			<wfw:commentRss>http://www.serenux.com/2008/12/howto-utilise-the-ram-disk/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

