<?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/" xmlns:creativeCommons="http://backend.userland.com/creativeCommonsRssModule"><channel><title>Idea Excursion &#187; Linux</title> <atom:link href="http://www.ideaexcursion.com/category/linux/feed/" rel="self" type="application/rss+xml" /><link>http://www.ideaexcursion.com</link> <description>Technology Musings</description> <lastBuildDate>Wed, 18 Jan 2012 16:33:17 +0000</lastBuildDate> <language>en</language> <sy:updatePeriod>hourly</sy:updatePeriod> <sy:updateFrequency>1</sy:updateFrequency> <generator>http://wordpress.org/?v=3.3.1</generator> <atom:link rel='hub' href='http://www.ideaexcursion.com/?pushpress=hub'/> <creativeCommons:license>http://creativecommons.org/licenses/by-sa/3.0/us/</creativeCommons:license> <item><title>Ubuntu VirtualBox Server Redux</title><link>http://www.ideaexcursion.com/2010/03/16/ubuntu-virtualbox-server-redux/</link> <comments>http://www.ideaexcursion.com/2010/03/16/ubuntu-virtualbox-server-redux/#comments</comments> <pubDate>Tue, 16 Mar 2010 17:12:19 +0000</pubDate> <dc:creator>Taylor Gerring</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[VirtualBox]]></category> <category><![CDATA[Ubuntu]]></category><guid isPermaLink="false">http://www.ideaexcursion.com/?p=1493</guid> <description><![CDATA[Create, operate, and manage a dedicated virtual machine server from the terminal. Full guide on installation and configuring VM's.]]></description> <content:encoded><![CDATA[<p>Both VirtualBox and Ubuntu have drastically changed since I wrote <a title="HOWTO: Ubuntu VirtualBox Server" href="http://www.ideaexcursion.com/2008/08/24/howto-ubuntu-virtualbox-server/">HOWTO: Ubuntu VirtualBox Server</a>. In fact, they&#8217;ve change to such a degree that the previous article isn&#8217;t even relevant. Fret not, as I&#8217;ve rebuilt the guide from scratch based on Ubuntu 9.10 Karmic Koala and VirtualBox 3.1.2, which has since been upgraded to 3.1.4.</p><p>The only assumptions I&#8217;m making is that a fresh, recent version of Ubuntu is installed on some relatively recent hardware and you have an ISO of the <abbr title="Operating System">OS</abbr> installation. Ideally, you&#8217;re using an Intel Core 2 Duo or better. I installed it with a normal Desktop Edition, but this guide is targeted at command-line management. You&#8217;re welcome to install Server Edition in which you&#8217;re getting a command-line only version of Ubuntu to reduce system requirements and operate with utmost efficiency.<br /> <span id="more-1493"></span></p><h3>Install VirtualBox</h3><ol><li>Add VirtualBox repositories to apt&#8217;s sources (this assumes they&#8217;re not already there)<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">printf</span> <span style="color: #ff0000;">&quot;<span style="color: #000099; font-weight: bold;">\n</span># VirtualBox<span style="color: #000099; font-weight: bold;">\n</span>deb http://download.virtualbox.org/virtualbox/debian karmic non-free<span style="color: #000099; font-weight: bold;">\n</span>&quot;</span> <span style="color: #000000; font-weight: bold;">|</span> <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">tee</span> <span style="color: #660033;">-a</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>apt<span style="color: #000000; font-weight: bold;">/</span>sources.list</pre></div></div></li><li>Install the public key<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">wget</span> <span style="color: #660033;">-q</span> <span style="color: #660033;">-O</span> - http:<span style="color: #000000; font-weight: bold;">//</span>download.virtualbox.org<span style="color: #000000; font-weight: bold;">/</span>virtualbox<span style="color: #000000; font-weight: bold;">/</span>debian<span style="color: #000000; font-weight: bold;">/</span>sun_vbox.asc <span style="color: #000000; font-weight: bold;">|</span>  <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-key</span> add -</pre></div></div></li><li>Update repo contents and upgrade<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> update <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> upgrade</pre></div></div></li><li>Install main VirtualBox package<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> virtualbox-<span style="color: #000000;">3.1</span></pre></div></div></li></ol><p>That&#8217;s all there is to getting VirtualBox installed. Unfortunately, it&#8217;s not too useful without any virtual machines or operating systems, so that will be our next step.</p><h3>Create a Virtual Machine</h3><ol><li>Create a Virtual Machine named &#8220;LAMP1&#8243; and keep it registered<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">VBoxManage createvm <span style="color: #660033;">--name</span> <span style="color: #ff0000;">&quot;LAMP1&quot;</span> <span style="color: #660033;">--register</span></pre></div></div></li><li>Configure the new <abbr title="Virtual Machine">VM</abbr>. The setting should be somewhat obvious, so feel free to tweak as necessary. Memory = 256<abbr title="MegaByte">MB</abbr>, <abbr title="Advanced Configuration and Power Interface">ACPI</abbr>, hardware virtualization, and <abbr title="Virtual Remote Desktop Protocol">VRDP</abbr> enabled. Set the <abbr title="Virtual Remote Desktop Protocol">VRDP</abbr> port to 3391. Make NIC1 be of type bridged and bind that bridge to eth0. If you&#8217;re using wireless, you might need to change this to wlan0 or something similar.<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">VBoxManage modifyvm <span style="color: #ff0000;">&quot;LAMP1&quot;</span> \
<span style="color: #660033;">--memory</span> <span style="color: #000000;">256</span> \
<span style="color: #660033;">--acpi</span> on \
<span style="color: #660033;">--hwvirtex</span> on \
<span style="color: #660033;">--vrdp</span> on \
<span style="color: #660033;">--vrdpport</span> <span style="color: #000000;">3391</span> \
<span style="color: #660033;">--nic1</span> bridged \
<span style="color: #660033;">--bridgeadapter1</span> eth0</pre></div></div></li><li>Create a new hard drive file of size 10<abbr title="GigaByte">GB</abbr> and remember it.<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">VBoxManage createhd <span style="color: #660033;">--filename</span> LAMP1.vdi <span style="color: #660033;">--size</span> <span style="color: #000000;">10000</span> <span style="color: #660033;">--remember</span></pre></div></div></li><li>Add a <acronym title="Serial Advanced Technology Attachment">SATA</acronym> storage controller to the <abbr title="Virtual Machine">VM</abbr> for the hard disk to attach to.<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">VBoxManage storagectl <span style="color: #ff0000;">&quot;LAMP1&quot;</span> <span style="color: #660033;">--name</span> <span style="color: #ff0000;">&quot;SATAController&quot;</span> <span style="color: #660033;">--add</span> sata</pre></div></div></li><li>Now, bind the <abbr title="Virtual Desktop Image">VDI</abbr> file to the <acronym title="Serial Advanced Technology Attachment">SATA</acronym> controller. This is like plugging the hard drive into a <acronym title="Serial Advanced Technology Attachment">SATA</acronym> port.<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">VBoxManage storageattach <span style="color: #ff0000;">&quot;LAMP1&quot;</span> <span style="color: #660033;">--storagectl</span> <span style="color: #ff0000;">&quot;SATAController&quot;</span> <span style="color: #660033;">--port</span> <span style="color: #000000;">0</span> <span style="color: #660033;">--device</span> <span style="color: #000000;">0</span> <span style="color: #660033;">--type</span> hdd <span style="color: #660033;">--medium</span> <span style="color: #ff0000;">&quot;LAMP1.vdi&quot;</span></pre></div></div></li><li>Also add an <abbr title="Integrated Disk Electronics">IDE</abbr> controller for things like ISO mounting<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">VBoxManage storagectl <span style="color: #ff0000;">&quot;LAMP1&quot;</span> <span style="color: #660033;">--name</span> <span style="color: #ff0000;">&quot;IDEController&quot;</span> <span style="color: #660033;">--add</span> ide</pre></div></div></li><li>Attach <abbr title="Operating System">OS</abbr> installation media to the <abbr title="Integrated Disk Electronics">IDE</abbr> controller.<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">VBoxManage storageattach <span style="color: #ff0000;">&quot;LAMP1&quot;</span> <span style="color: #660033;">--storagectl</span> <span style="color: #ff0000;">&quot;IDEController&quot;</span> <span style="color: #660033;">--port</span> <span style="color: #000000;">0</span> <span style="color: #660033;">--device</span> <span style="color: #000000;">0</span> <span style="color: #660033;">--type</span> dvddrive <span style="color: #660033;">--medium</span> ~<span style="color: #000000; font-weight: bold;">/</span>ubuntu-<span style="color: #000000;">9.10</span>-server-i386.iso</pre></div></div></li></ol><p>That&#8217;s it, you&#8217;re done! Well, mostly. Depending on your exact circumstances, you may have to tweak a few things.</p><h3>Verify and Start</h3><ol><li>Verify everything looks good<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">VBoxManage showvminfo <span style="color: #ff0000;">&quot;LAMP1&quot;</span></pre></div></div></li><li>Start the Virtual Machine.<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">VBoxHeadless <span style="color: #660033;">--startvm</span> <span style="color: #ff0000;">&quot;LAMP1&quot;</span></pre></div></div></li></ol><p>The major component to managing virtual machines on the command-line is simply knowing the correct commands and parameters to configure everything. I plan to write an addendum which addresses some advanced features such as <abbr title="Universal Serial Bus">USB</abbr>, remote management, and automated startup/shutdown.</p><p><em><strong>Update</strong></em>: The addendum for <a href="http://www.ideaexcursion.com/2010/05/25/ubuntu-virtualbox-server-redux-addendum/" title="Ubuntu VirtualBox Server Redux Addendum">extra features</a> is up.</p> ]]></content:encoded> <wfw:commentRss>http://www.ideaexcursion.com/2010/03/16/ubuntu-virtualbox-server-redux/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>Updating SSH known hosts fingerprints (WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!)</title><link>http://www.ideaexcursion.com/2010/02/08/updating-ssh-known-hosts-fingerprints-warning-remote-host-identification-has-changed/</link> <comments>http://www.ideaexcursion.com/2010/02/08/updating-ssh-known-hosts-fingerprints-warning-remote-host-identification-has-changed/#comments</comments> <pubDate>Mon, 08 Feb 2010 20:16:50 +0000</pubDate> <dc:creator>Taylor Gerring</dc:creator> <category><![CDATA[Linux]]></category><guid isPermaLink="false">http://www.ideaexcursion.com/?p=1479</guid> <description><![CDATA[If the RSA host key has changed, SSH will block you from connecting. Bypassing this warning is easy as removing and re-storing the known host fingerprint.]]></description> <content:encoded><![CDATA[<p>If you&#8217;ve previously connected to an ssh server on a machine and reformatted or fundamentally changed the OS in some way, the RSA host key will have changed, causing ssh to throw up an ugly error as exhibited here:</p><div class="wp_syntax"><div class="code"><pre class="none" style="font-family:monospace;">@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
@    WARNING: REMOTE HOST IDENTIFICATION HAS CHANGED!     @
@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@@
IT IS POSSIBLE THAT SOMEONE IS DOING SOMETHING NASTY!
Someone could be eavesdropping on you right now (man-in-the-middle attack)!
It is also possible that the RSA host key has just been changed.
The fingerprint for the RSA key sent by the remote host is
8b:ff:a1:b5:32:06:4d:fd:2e:2f:67:80:9e:ba:8d:ff.
Please contact your system administrator.
Add correct host key in /home/taylorg/.ssh/known_hosts to get rid of this message.
Offending key in /home/taylorg/.ssh/known_hosts:2
RSA host key for 192.168.1.100 has changed and you have requested strict checking.
Host key verification failed.</pre></div></div><p>All the message says is that the fingerprint for the host that was previously stored no longer matches the target. If you know this is okay and want to clear out the error, the process is very simple &#8211; just remove the stored fingerprint.<br /> <span id="more-1479"></span><br /> You have a couple of options how to do this depending on your situation:<br /> The first, preferable method would be to use ssh-keygen with the following syntax:</p><div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">ssh-keygen</span> <span style="color: #660033;">-R</span> <span style="color: #c20cb9; font-weight: bold;">hostname</span></pre></div></div><p>Assuming all goes well, you should receive a message similar to this:</p><div class="wp_syntax"><div class="code"><pre class="none" style="font-family:monospace;">/home/taylorg/.ssh/known_hosts updated.</pre></div></div><p>Alternatively, if ssh-keygen is not available for some reason, you can manually update the known_hosts file:</p><ol><li>Open up the known hosts file:<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">nano</span> ~<span style="color: #000000; font-weight: bold;">/</span>.ssh<span style="color: #000000; font-weight: bold;">/</span>known_hosts</pre></div></div></li><li>Delete the line containing the hostname of the server you&#8217;re trying to connect to (Ctrl+K). The name should be the left-most item on each line, or use Ctrl+W to search.</li><li>Ctrl+O to save the file, then Ctrl+X to exit nano.</li></ol><p>Try to ssh again (ssh username@hostname) and you should receive a message akin to the following:</p><div class="wp_syntax"><div class="code"><pre class="non" style="font-family:monospace;">The authenticity of host '192.168.1.100 (192.168.1.100)' can't be established.
RSA key fingerprint is 8b:ff:a1:b5:32:06:4d:fd:2e:2f:67:80:9e:ba:8d:ff.
Are you sure you want to continue connecting (yes/no)? yes
Warning: Permanently added '192.168.1.100' (RSA) to the list of known hosts.</pre></div></div><p>As the last message indicates, the ssh client will store the current fingerprint back into known_hosts, bypassing the warning for future connections.</p> ]]></content:encoded> <wfw:commentRss>http://www.ideaexcursion.com/2010/02/08/updating-ssh-known-hosts-fingerprints-warning-remote-host-identification-has-changed/feed/</wfw:commentRss> <slash:comments>2</slash:comments> </item> <item><title>Fixing &#8220;passwd: Authentication token manipulation error&#8221; when changing passwords</title><link>http://www.ideaexcursion.com/2009/09/11/fixing-authentication-token-manipulation-error-when-changing-passwords-with-passwd/</link> <comments>http://www.ideaexcursion.com/2009/09/11/fixing-authentication-token-manipulation-error-when-changing-passwords-with-passwd/#comments</comments> <pubDate>Fri, 11 Sep 2009 18:33:27 +0000</pubDate> <dc:creator>Taylor Gerring</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Ubuntu]]></category><guid isPermaLink="false">http://www.ideaexcursion.com/?p=1420</guid> <description><![CDATA[Having Likewise Open installed may be causing a problem for those attempting to use passwd to update a local account. The solution is to remove certain packages]]></description> <content:encoded><![CDATA[<p>I attempted to update my password on Ubuntu today and encountered a strange error. I thought I&#8217;d disseminate my solution in hopes that it saves other time. A few suggest playing with pwconvert, /etc/shadow and /etc/passwd, but my solution was much simpler.</p><p>Basically, if you run passwd and receive the error,&#8221;passwd: Authentication token manipulation error&#8221;, the culprit is likely Likewise Open. Unfortunately, even having this installed &mdash; but not configured &mdash; will prevent you from using passwd to update a local users&#8217;s password. Fortunately, the fix is very easy if you don&#8217;t actually use Likewise Open &#8211; just remove it from your system with this command:<br /> <span id="more-1420"></span></p><pre>sudo apt-get remove likewise-open</pre><p>Confirm the prompts and after apt-get is done, you should be able to use passwd like normal. Thanks to <a title="[Bug 302026] Re: likewise-open prevents local passwords from being changed" href="https://lists.ubuntu.com/archives/ubuntu-server-bugs/2009-April/012267.html" target="_blank">Bug 302026</a> for guiding me to the solution. The <em>bad </em>news is that if you need to change the password of a local account and need Likewise Open installed, you might be out of luck.</p> ]]></content:encoded> <wfw:commentRss>http://www.ideaexcursion.com/2009/09/11/fixing-authentication-token-manipulation-error-when-changing-passwords-with-passwd/feed/</wfw:commentRss> <slash:comments>10</slash:comments> </item> <item><title>Top 10 Cross-Platform Open Source Apps</title><link>http://www.ideaexcursion.com/2009/02/10/top-10-cross-platform-open-source-apps/</link> <comments>http://www.ideaexcursion.com/2009/02/10/top-10-cross-platform-open-source-apps/#comments</comments> <pubDate>Tue, 10 Feb 2009 20:01:59 +0000</pubDate> <dc:creator>Taylor Gerring</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Mac]]></category> <category><![CDATA[Windows]]></category> <category><![CDATA[Research]]></category> <category><![CDATA[Review]]></category> <category><![CDATA[Software]]></category><guid isPermaLink="false">http://www.ideaexcursion.com/?p=446</guid> <description><![CDATA[Open source applications have a natural inclination to be compiled for multiple operating systems. Although many <abbr title="Operating System">OS</abbr>'s and tools are converging in functionality, it's nice to have a homogeneous environment of favorite programs to make the transition from machine to machine more seamless. I use Windows and work and Linux at home, but that doesn't mean I have to give up anything in the process. Below are - in no particular order - some of my favorite cross-platform open source applications.]]></description> <content:encoded><![CDATA[<p>Open source applications have a natural inclination to be compiled for multiple operating systems. Although many <abbr title="Operating System">OS</abbr>&#8216;s and tools are converging in functionality, it&#8217;s nice to have a homogeneous environment of favorite programs to make the transition from machine to machine more seamless. I use Windows and work and Linux at home, but that doesn&#8217;t mean I have to give up anything in the process. Below are &#8211; in no particular order &#8211; some of my favorite cross-platform open source applications.<br /> <span id="more-446"></span></p><h3>The List</h3><h4><a title="Deluge BitTorrent Client" href="http://deluge-torrent.org/" target="_blank">Deluge</a></h4><p>Deluge is a bittorrent client similar to the now-official <a title="µTorrent - The Lightweight and Efficient BitTorrent Client" href="http://utorrent.com/" target="_blank">µTorrent</a> in Windows. While this particular program is not alone in this space, I find the interface of <a title="Transmission" href="http://www.transmissionbt.com/" target="_blank">Transmission</a> far too simple for my preference. Fortunately, we have choice! Deluge supports popular features such as encryption and web interface. Extensibility is built-in with support for plugins, including an eMule-style <abbr title="Internet Protocol">IP</abbr> block list.</p><div id="attachment_450" class="wp-caption alignnone" style="width: 310px"><a href="http://static.ideaexcursion.com/wp-content/uploads/2009/02/cposdeluge.png"><img class="size-medium wp-image-450" title="Deluge Screenshot" src="http://static.ideaexcursion.com/wp-content/uploads/2009/02/cposdeluge-300x191.png" alt="Deluge Screenshot" width="300" height="191" /></a><p class="wp-caption-text">Deluge Screenshot</p></div><h4><a title="FileZilla - The free FTP solution" href="http://filezilla-project.org/" target="_blank">FileZilla</a></h4><p>I discovered this application years ago when it was Windows-only. Since then, the author has completely rewritten it from the ground up using wxWidgets and a variety of other open source tools. FileZilla is an absolutely amazing <abbr title="File Transfer Protocol">FTP</abbr> client that also supports <abbr title="File Transfer Protocol over Secure Sockets Layer">FTPS</abbr> and <abbr title="Secure File Transfer Protocol">FTP</abbr> along with a bevy of helpful features such as bookmarks, filename filters and proxy support. This utility is one that I install <em>everywhere</em>.</p><div id="attachment_451" class="wp-caption alignnone" style="width: 310px"><a href="http://static.ideaexcursion.com/wp-content/uploads/2009/02/cposfilezilla.png"><img class="size-medium wp-image-451" title="FileZilla Screenshot" src="http://static.ideaexcursion.com/wp-content/uploads/2009/02/cposfilezilla-300x233.png" alt="FileZilla Screenshot" width="300" height="233" /></a><p class="wp-caption-text">FileZilla Screenshot</p></div><h4><a title="Firefox web browser" href="http://www.mozilla.com/firefox/" target="_blank">Firefox</a></h4><p>Probably the most well-known open source application, Firefox&#8217;s usage share has steadily climbed since pre-1.0 days. It is the second most popular browser after only Internet Explorer and has widely spread on other <abbr title="Operating System">OS</abbr>&#8216;s where <abbr title="Internet Explorer">IE</abbr> is not a choice. The plugin and theme architecture mean that the browser can serve many needs &#8211; such as website debugging and even <abbr title="Internet Relay Chat">IRC</abbr> &#8211; that once required multiple utilities.</p><div id="attachment_452" class="wp-caption alignnone" style="width: 310px"><a href="http://static.ideaexcursion.com/wp-content/uploads/2009/02/cposfirefox.jpg"><img class="size-medium wp-image-452" title="Firefox Screenshot" src="http://static.ideaexcursion.com/wp-content/uploads/2009/02/cposfirefox-300x222.jpg" alt="Firefox Screenshot" width="300" height="222" /></a><p class="wp-caption-text">Firefox Screenshot</p></div><h4><a title="hellanzb" href="http://www.hellanzb.com/" target="_blank">hellanzb</a></h4><p>Continuing the network theme, we have probably my most favorite application, hellanzb. This is a usenet binary downloading program at its finest. Give it an NZB and it takes care of the rest, including download, parchive check, and extraction. If you use Usenet for downloads, go get this right now. It is officially supported on any Unix-like <abbr title="Operating System">OS</abbr>, including OS X. An automated installer and <a title="Cygwin Information and Installation" href="http://www.cygwin.com/" target="_blank">Cygwin</a> guide are available for Windows users. Be forewarned, hellanzb is a command-line tool, which works great in it&#8217;s own right. Fortunately, it provides an <abbr title="eXtensible Markup Language">XML</abbr> <abbr title="Remote Procedure Call">RPC</abbr> interface allowing <acronym title="Graphical User Interface">GUI</acronym> applications to be easily built on top of it. Below is a screenshot of one of those tools: Remote HellaNZB <acronym title="Graphical User Interface">GUI</acronym>. If you&#8217;re looking for a <abbr title="User Interface">UI</abbr> that is cross-platform as well, tools built on platforms like Adobe AIR will fit-the-bill.</p><div id="attachment_454" class="wp-caption alignnone" style="width: 310px"><a href="http://static.ideaexcursion.com/wp-content/uploads/2009/02/cposhellanzb.jpg"><img class="size-medium wp-image-454" title="Remote HellaNZB GUI Screenshot" src="http://static.ideaexcursion.com/wp-content/uploads/2009/02/cposhellanzb-300x148.jpg" alt="Remote HellaNZB GUI Screenshot" width="300" height="148" /></a><p class="wp-caption-text">Remote HellaNZB GUI Screenshot</p></div><h4><a title="Pidgin, the universal chat client" href="http://pidgin.im/" target="_blank">Pidgin</a></h4><p>Originally known as Gaim, Pidgin is probably the most-used multi-service <abbr title="Instant Messaging">IM</abbr> application across all operating systems. Even though OS X users love Adium, it&#8217;s the libpurple engine underneath Pidgin that drives it all. This is another program that supports theme and plugins, increasing its usefulness. I would suggest you try it out, but if you&#8217;re reading this, there&#8217;s a good chance you already have.</p><div id="attachment_456" class="wp-caption alignnone" style="width: 147px"><a href="http://static.ideaexcursion.com/wp-content/uploads/2009/02/cpospidgin.png"><img class="size-medium wp-image-456" title="Pidgin Screenshot" src="http://static.ideaexcursion.com/wp-content/uploads/2009/02/cpospidgin-137x300.png" alt="Pidgin Screenshot" width="137" height="300" /></a><p class="wp-caption-text">Pidgin Screenshot</p></div><h4><a title="KeePassX" href="http://www.keepassx.org/" target="_blank">KeePassX</a></h4><p>KeePassX started as a port of KeePass for Windows known as KeePass/L. When the application finally became cross-platform, KeePass/L was changed to its KeePassX. Although it can only read and save KeePass 1.x-style databases, this utility is becoming indispensable in a world of dozens of passwords. The database is stored in your choice of encryption (<abbr title="Advanced Encryption Standard">AES</abbr> or Twofish) with one or both of password and key file. In addition to simply storing login information, KeePassX can also generate passwords based on your own filters and help automate the filling-in of login forms.</p><div id="attachment_455" class="wp-caption alignnone" style="width: 310px"><a href="http://static.ideaexcursion.com/wp-content/uploads/2009/02/cposkeepassx.png"><img class="size-medium wp-image-455" title="KeePassX Screenshot" src="http://static.ideaexcursion.com/wp-content/uploads/2009/02/cposkeepassx-300x204.png" alt="KeePassX Screenshot" width="300" height="204" /></a><p class="wp-caption-text">KeePassX Screenshot</p></div><h4><a title="TrueCrypt - Free open-source disk encryption software" href="http://www.truecrypt.org/" target="_blank">TrueCrypt<br /> </a></h4><p>TrueCrypt is another piece of desktop encryption software. It allows users to create self-contained encrypted volumes or entire encrypted partitions. This utility also supports multiple encryption algorithms and forms of authentication. In addition to the end-user tools like a Quick-start guide, the author has posted a very detailed explanation of the internal mechanisms. Geeks rejoice!</p><div id="attachment_457" class="wp-caption alignnone" style="width: 310px"><a href="http://static.ideaexcursion.com/wp-content/uploads/2009/02/cpostruecrypt.png"><img class="size-medium wp-image-457" title="TrueCrypt Screenshot" src="http://static.ideaexcursion.com/wp-content/uploads/2009/02/cpostruecrypt-300x256.png" alt="TrueCrypt Screenshot" width="300" height="256" /></a><p class="wp-caption-text">TrueCrypt Screenshot</p></div><h4><a title="VirtualBox" href="http://www.virtualbox.org/" target="_blank">VirtualBox</a></h4><p>My love for VirtualBox is <a title="VirtualBox | IdeaExcursion" href="/tag/virtualbox/" target="_blank">no secret</a>. What I truly love about VirtualBox is that the underlying virtual disk images are <abbr title="Operating System">OS</abbr>-agnostic, I can easily move a VDI from Linux to Windows to Mac, and the guest operating system doesn&#8217;t care. Furthermore, with the added ability to read <abbr title="Virtual Hard Disk">VHD</abbr> and <abbr title="Virtual Machine DisK">VMDK</abbr> formats, this has become my virtualization software of choice.</p><div id="attachment_458" class="wp-caption alignnone" style="width: 310px"><a href="http://static.ideaexcursion.com/wp-content/uploads/2009/02/cposvirtualbox.png"><img class="size-medium wp-image-458" title="Virtualbox Screenshot" src="http://static.ideaexcursion.com/wp-content/uploads/2009/02/cposvirtualbox-300x244.png" alt="Virtualbox Screenshot" width="300" height="244" /></a><p class="wp-caption-text">Virtualbox Screenshot</p></div><h4><a title="HandBrake" href="http://handbrake.fr/" target="_blank">Handbrake</a></h4><p>Handbrake is an absolutely amazing video transcoding application. Give it just about any file format and convert it to many destination formats on-the-fly. Recently downloaded a <abbr title="FLash Video">FLV</abbr> off YouTube and want to keep a local copy on your iPhone? Just a few clicks and  Handbrake can help with that. Supports a queue for batch operation and works efficiently.</p><div id="attachment_453" class="wp-caption alignnone" style="width: 310px"><a href="http://static.ideaexcursion.com/wp-content/uploads/2009/02/cposhandbrake.png"><img class="size-medium wp-image-453" title="Handbrake Screenshot" src="http://static.ideaexcursion.com/wp-content/uploads/2009/02/cposhandbrake-300x173.png" alt="Handbrake Screenshot" width="300" height="173" /></a><p class="wp-caption-text">Handbrake Screenshot</p></div><h4><a title="VLC media player - Overview" href="http://www.videolan.org/vlc/" target="_blank">VLC</a></h4><p>The great thing about VLC is that it can play just about as many formats as Handbrake can convert. All the A/V support is built-in, so there&#8217;s no need to worry about gathering the necessary codecs. It can often stand on its own, but also works great as a supplemental video player.</p><div id="attachment_459" class="wp-caption alignnone" style="width: 310px"><a href="http://static.ideaexcursion.com/wp-content/uploads/2009/02/cposvlc.jpg"><img class="size-medium wp-image-459" title="VLC Screenshot" src="http://static.ideaexcursion.com/wp-content/uploads/2009/02/cposvlc-300x253.jpg" alt="VLC Screenshot" width="300" height="253" /></a><p class="wp-caption-text">VLC Screenshot</p></div> ]]></content:encoded> <wfw:commentRss>http://www.ideaexcursion.com/2009/02/10/top-10-cross-platform-open-source-apps/feed/</wfw:commentRss> <slash:comments>7</slash:comments> </item> <item><title>All About Linux Swap Part 3: Analysis</title><link>http://www.ideaexcursion.com/2009/02/06/all-about-linux-swap-part-3-analysis/</link> <comments>http://www.ideaexcursion.com/2009/02/06/all-about-linux-swap-part-3-analysis/#comments</comments> <pubDate>Fri, 06 Feb 2009 18:51:18 +0000</pubDate> <dc:creator>Taylor Gerring</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Analysis]]></category> <category><![CDATA[swap]]></category><guid isPermaLink="false">http://www.ideaexcursion.com/?p=424</guid> <description><![CDATA[After familiarizing yourself with swap, you might have a few questions. How much swap space? What do I set swappiness to? Do I even need swap anymore? This article is the third in a multipart series introducing the Linux swap and discusses the current state of swap usage and present opinions about its implementation today.]]></description> <content:encoded><![CDATA[<p>After familiarizing yourself with swap, you might have a few questions. How much swap space? What do I set swappiness to? Do I even need swap anymore?</p><p><em><strong>Note:</strong> This article is the third in a multipart series introducing the Linux swap. <a title="All About Linux Swap Part 1: Introduction" href="../../2009/01/29/all-about-linux-swap-part-1-introduction/">Part 1</a> is intended to familiarize the reader with the concept of swapping, why it exists, and what it’s used for. <a title="http://www.ideaexcursion.com/2009/02/02/all-about-linux-swap-part-2-management/" href="/2009/02/02/all-about-linux-swap-part-2-management/">Part 2</a> highlighted basic analysis and management techniques for handling swap space. Part 3 appears below and discusses the current state of swap usage and present opinions about its implementation today.</em><br /> <span id="more-424"></span></p><h3>Questions</h3><p>Several questions are repeatedly posed in regards to swap:</p><ul><li>How much swap space do I need?</li><li>What is the right settings for swappiness?</li><li>With so much memory, do I even need swap?</li></ul><p>I want to address each of these questions and hopefully provide a larger understanding of swap in the context of everyday use.</p><h4>How much swap space do I need?</h4><p>This is probably the most-asked question in regards to swap, and the answer isn&#8217;t entirely clear-cut, however, there are a couple of rules to be guided by.</p><p>In a strictly technical sense, the amount of swap you&#8217;ll need should be the total amount of virtual memory you&#8217;ll need minus system memory. In other words,</p><div id="attachment_432" class="wp-caption alignnone" style="width: 528px"><img class="size-full wp-image-432" title="How much swap?" src="http://static.ideaexcursion.com/wp-content/uploads/2009/02/howmuchswap.jpg" alt="Total Virtual Memory - Memory = Swap" width="518" height="302" /><p class="wp-caption-text">Total Virtual Memory - Memory = Swap</p></div><p>Traditionally, the recommendation was twice the amount of <acronym title="Random Access Memory">RAM</acronym>.  However, this was many years ago when 128<abbr title="MegaByte">MB</abbr> (or less) might have been standard, resulting in a 256<abbr title="MegaByte">MB</abbr> swap partition, totaling as much as 384<abbr title="MegaByte">MB</abbr> of virtual memory. This pales in comparison to today, when 2<abbr title="GigaByte">GB</abbr> is a standard amount on desktops. It is unlikely that a server with 16<abbr title="GigaByte">GB</abbr> of <acronym title="Random Access Memory">RAM</acronym> will ever need an additional 32<abbr title="GigaByte">GB</abbr> of swap.</p><h5>Desktop</h5><p>Remember that virtual memory is a mapping of all available memory to a system, no matter the device type. Therefore, if  you anticipate that you will never utilize more than 4<abbr title="GigaByte">GB</abbr> of virtual memory and have 2<abbr title="GigaByte">GB</abbr> of physical memory, 2<abbr title="GigaByte">GB</abbr> might be a good amount for you. But better than 2<abbr title="GigaByte">GB</abbr> of swap would be an additional 2<abbr title="GigaByte">GB</abbr> of memory, allowing your heaviest usage to wholly fit inside <acronym title="Random Access Memory">RAM</acronym>.</p><p>On my desktop at home (which currently runs Gnome + Compiz on Ubuntu 8.10 Intrepid Ibex), I started with 2<abbr title="GigaByte">GB</abbr> of <acronym title="Random Access Memory">RAM</acronym> and a 2<abbr title="GigaByte">GB</abbr> swap partition. I&#8217;ve since upgraded the memory to 4<abbr title="GigaByte">GB</abbr> and &#8211; as expected &#8211; seen swap usage drop to virtually none. The only situation in which my swap fills up, is when a process runs amok and grabs every last piece of memory available. Although I practically never reach into that extra memory, I was thankful it was there instead of having <a title="OOM Killer" href="http://linux-mm.org/OOM_Killer" target="_blank">OOM Killer</a> wreak havoc or forcing my system to a screeching halt.</p><p>Because the old &#8220;two times&#8221; model is bunk, some are recommending a new allocation guideline that goes something like this:</p><table border="0"><tbody><tr><th><acronym title="Random Access Memory">RAM</acronym></th><th>Swap</th></tr><tr><td>&le; 2<abbr title="GigaByte">GB</abbr></td><td>= <acronym title="Random Access Memory">RAM</acronym></td></tr><tr><td>&gt; 2<abbr title="GigaByte">GB</abbr></td><td>= 2<abbr title="GigaByte">GB</abbr></td></tr></tbody></table><h5>Laptop</h5><p>Assuming similar usage patterns, you can follow the guidelines as a desktop, with one major exception. Because of the ability to hibernate &#8211; if you plan to use this functionality &#8211; allocate <em>at least</em> as much swap as you have of system memory. This is especially important during partitioning, because Linux cannot hibernate to a swap file.</p><h5>Server</h5><p>Generally speaking, servers tend to be loaded with memory for speed and efficiency, reducing the tendency to page to disk. Because they are often designed with a particular function and load in mind, swap may be of little need. In fact, if the server is adversely swapping, it is likely indicative of a more serious problem requiring more memory or application changes.</p><p>A consequence of this would be a small amount of swap (half, quarter, or less of system memory). When provisioning the server, you might instead decide that the workload and applications have been set in a very specific way (i.e. a <abbr title="Virtual Machine">VM</abbr> server) and would prefer no swap at all. I wouldn&#8217;t recommend this, but it&#8217;s certainly possible from a technical and practical standpoint.</p><p>There are, of course, exceptions to these rules. If you anticipate gigantic workloads where you cannot reasonably fit the entire contents into memory (i.e. very large datasets on heavy-traffic, multi-user database systems), you may have no other choice than to allocate lots of swap space.</p><p>Red Hat&#8217;s own recommendations for <abbr title="Red Hat Enterprise Linux">RHEL</abbr>5 are as follows:</p><table border="0"><tbody><tr><th><acronym title="Random Access Memory">RAM</acronym></th><th>Swap</th></tr><tr><td>&le; 4<abbr title="GigaByte">GB</abbr></td><td>&ge; 2<abbr title="GigaByte">GB</abbr></td></tr><tr><td>4<abbr title="GigaByte">GB</abbr> &#8211; 16<abbr title="GigaByte">GB</abbr></td><td>&ge; 4<abbr title="GigaByte">GB</abbr></td></tr><tr><td>16<abbr title="GigaByte">GB</abbr> &#8211; 64<abbr title="GigaByte">GB</abbr></td><td>&ge; 8<abbr title="GigaByte">GB</abbr></td></tr><tr><td>64<abbr title="GigaByte">GB</abbr> &#8211; 256<abbr title="GigaByte">GB</abbr></td><td>&ge; 16<abbr title="GigaByte">GB</abbr></td></tr></tbody></table><h4>What is the right settings for swappiness?</h4><p>This is an entirely subjective setting, but there are a few strong opinions on what they feel is best. Because there is no way to anticipate the workload of an OS on installation, default swapiness setting falls somewhere in the middle. For example, on Ubuntu, the default value is 60.</p><h5>Very high</h5><p>One 2.6 kernel maintainer <a title="Linux: Tuning Swappiness" href="http://kerneltrap.org/node/3000" target="_blank">insists</a> that a very aggressive setting is preferred (i.e. 100). His logic is that wasting a lot of memory on large, bloated applications is not an ideal use of that memory space; instead, force those pages out to disk, freeing up memory for useful items. The counter to this argument is that this produces the undesired behavior of delayed interactivity between the user and system when switching back to that application, because the operating system is busy reading the pages off disk back into memory. A further concern of this behavior is that cache is being given greater importance than applications &#8211; a useful scenario in servers and development workstations, but less so for general desktop use.</p><h5>Very Low</h5><p>For the average end-user, system responsiveness likely trumps cache performance, so there is a tendency for users that tweak swappiness towards the bottom. Though many have tried setting swappiness to 0, they found it unworkable; instead, many report a better experience with a setting of 10. A group of members have even proposed that this value be <a title="Idea #5481: Swappiness to 10, not to 60" href="http://brainstorm.ubuntu.com/idea/5481/" target="_blank">tuned lower by default in Ubuntu</a>. Telling the kernel to swap as little as possible also has the effect of &#8220;as late as possible&#8221;. If memory cannot entirely cover the requirements of the next process, the kernel has no choice but to swap immediately, making loading the process slower. This speaks to the argument for a high setting if your system is typically memory-constrained.</p><h4>With so much memory, do I even need swap?</h4><p>Even if you decide that you have copious amounts of memory for the intended tasks, the inexpensiveness of disk space makes not having at least a small swap space (256<abbr title="MegaByte">MB</abbr>) ludicrous. Additionally, the kernel can do strange things when there is no swap available, throwing out-of-memory errors and killing processes, making this decision a no-brainier. Disk is cheap, so allocate <em>some</em> space for swap, even if as a swap file rather than partition.</p><h3>Final Thoughts</h3><p>As with most things in life, the answer to how to configure swap is, &#8220;It depends&#8221;. Your specific situation largely dictates how much space and how quickly the kernel should page items out to disk. Much like a financial budget, you make a best estimation at first and then changes as the situation requires. Aside from a few specific instances, you can grow or shrink swap area as your needs change.</p><p>With the additional knowledge on what swap is used for and how to gauge its importance to your workload, you can start making a better-informed decision on how much you need and how to configure it. Take a look back at <a href="/2009/02/02/all-about-linux-swap-part-2-management/" title="http://www.ideaexcursion.com/2009/02/02/all-about-linux-swap-part-2-management/">Part 2</a> and use those tools to measure how your system is responding to the hardware constraints and system settings. Even with all this in mind, there is a single overriding rule to swap space: more memory is better.</p> ]]></content:encoded> <wfw:commentRss>http://www.ideaexcursion.com/2009/02/06/all-about-linux-swap-part-3-analysis/feed/</wfw:commentRss> <slash:comments>3</slash:comments> </item> <item><title>All About Linux Swap Part 2: Management</title><link>http://www.ideaexcursion.com/2009/02/02/all-about-linux-swap-part-2-management/</link> <comments>http://www.ideaexcursion.com/2009/02/02/all-about-linux-swap-part-2-management/#comments</comments> <pubDate>Mon, 02 Feb 2009 19:47:11 +0000</pubDate> <dc:creator>Taylor Gerring</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Explanation]]></category> <category><![CDATA[swap]]></category><guid isPermaLink="false">http://www.ideaexcursion.com/?p=364</guid> <description><![CDATA[After providing an introduction to Linux swap in part 1, this article highlights basic analysis and management techniques for controlling swap space.]]></description> <content:encoded><![CDATA[<p><em><strong>Note:</strong> This article is the second in a multipart series introducing the Linux swap. <a title="All About Linux Swap Part 1: Introduction" href="/2009/01/29/all-about-linux-swap-part-1-introduction/">Part 1</a> is intended to familiarize the reader with the concept of swapping, why it exists, and what it’s used for. Part 2 appears below and highlights basic analysis and management techniques for handling swap space. <a href="/2009/02/06/all-about-linux-swap-part-3-analysis/" title="All About Linux Swap Part 3: Analysis">Part 3</a> will discuss the current state of swap usage and present opinions about its implementation today.</em><br /> <span id="more-364"></span></p><h3>Exploring Swap</h3><p>If you&#8217;re new to Linux and choose a guided installation where the partitioning was automatically configured for you, you may not even be aware of how much swap space you&#8217;ve allocated and where exactly it lives. Fortunately, there are a couple different ways that allows us to explore, analyze and manage this information.</p><h4>swapon/swapoff</h4><div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">swapon <span style="color: #660033;">-s</span></pre></div></div><p>swapon is part of a pair of commands (its complement being swapoff) intended to wholly toggle the state of swap. Specifically, man states, &#8220;enable/disable devices and files for paging and swapping&#8221;. The -s parameter simply displays current usage. The output should look similar to this:</p><div class="wp_syntax"><div class="code"><pre class="none" style="font-family:monospace;">Filename                                Type            Size    Used    Priority
/dev/sda3                               partition       2000084 5452    -1</pre></div></div><p>This result tells us a few things:</p><ul><li>Filename: /dev/sda3<ul><li>This is the actual device that swap lives on</li></ul></li><li>Type: partition<ul><li>This filename is actually a partition, rather than a file. Swap can live in either type of device</li></ul></li><li>Size: 2000084<ul><li>The size in KB of the device/file. In this case, 2GB</li></ul></li><li>Used: 5452<ul><li>The amount of space currently in use in KB. Just over 5MB currently</li></ul></li><li>Priority: -1<ul><li>This is an arbitrary number (typically from 0 through 10) that allows the user to configure the order in which Linux should utilize swap space (highest to lowest). Most users will only have a single swap file, but it is certainly possible to have multiple and spread them among several different files/partitions.</li></ul></li></ul><p><em>More information on priority:</em> A scenario that might exist in which you would need this, is if you decide to add another swap, but have it within a file rather than partition new space for it. You can set the partition to a priority of 5 and the new swap file to Priority of 1. Because the highest value is always preferred, this will ensure that the swap partition is used before the swap file. Another case is spreading the swap over multiple separate drives. If the priority is set the same for both swap devices, the kernel will utilize them in a manner similar to a striped array (round-robin). When it comes time to write to disk, this can help increase performance a bit.</p><h4>free</h4><p>Another utility, free, doesn&#8217;t give us anymore information than swapon -s, but it allows us to see swap usage in the context of overall system memory.</p><div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">free</span> <span style="color: #660033;">-mot</span></pre></div></div><p>The -m parameter simply displays the values in MB rather than KB. -t gives us a grand total at the bottom. The -o option hides some information we&#8217;ll get to shortly. The output might look something like this:</p><div class="wp_syntax"><div class="code"><pre class="none" style="font-family:monospace;">             total       used       free     shared    buffers     cached
Mem:          3959       3934         24          0        158       1957
Swap:         1953          5       1947
Total:        5912       3940       1972</pre></div></div><p>There are 3 lines in the output: Memory, Swap, and the aggregate Total. This gives a better overall picture as to what memory is allocated where. Most of the lines are self-explanatory, but it&#8217;s important to note that the very low value of free memory is somewhat misleading. In this example, there is usable free memory of 2140MB.</p><p>Without getting too far into the details, think of this as saving a seat next to you in the movie theater. Maybe a friend was joining you for a movie, but in an emergency they had to leave during the previews. Most people assume this seat is reserved, until the theater begins to reach capacity, in which case the seat might really be needed. This extra seat is analogous to cached memory. It was in use at one time, and is still being saved in case your friend comes back, but <em>could</em> be used by another person. Modern OS&#8217;s handle memory the same way: They mark the space as used, but available.</p><p>To get a simpler picture of how much space we have, we need to add the buffers and cached columns back into the free column, because after all, the seat is technically empty. We can accomplish this automatically by removing the -o and -t parameter from our example (free -m):</p><div class="wp_syntax"><div class="code"><pre class="none" style="font-family:monospace;">             total       used       free     shared    buffers     cached
Mem:          3959       3934         24          0        158       1957
-/+ buffers/cache:       1818       2140
Swap:         1953          5       1947</pre></div></div><p>Now, compare these values to the swap space. Although there is plenty of memory free, some swap is being utilized &#8211; a piddly 5MB of 1953MB &#8211; nothing to worry about. The final line, total sums things up, indicating we have 5912MB of usable space between all memory and swap, of which 3940 is in use, leaving 1972MB.</p><p>The -/+ buffers/cache sub-item simply summarizes how much used or free memory we actually have, and it becomes clear that there is plenty of available room for new applications. So why is swap being used up at all? Without exploring the gritty details, I can offer a much simpler solution: adjust how quickly swap is utilized.</p><h3>Controlling swap</h3><p>Because swap is intended as a supplement to memory, the process by which items are swapped in and out is automatic, giving the user little choice what goes into it. However, since kernel 2.6 a small tweak was added to configure how quickly the system swaps items &#8211; <strong>swappiness</strong>.</p><p>Swappiness is an arbitrary number from 0 to 100 that indicates how fast you want the system to page items out to disk, freeing up precious RAM. The higher the number, the sooner pages will be written out to swap. You can alter swappiness either temporarily or permanently, as outlined below. Before you go about that, check the value currently set:</p><div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">sysctl vm.swappiness</pre></div></div><h4>Temporary</h4><p>A simple terminal command is all that is required to change swappiness for the current session. If you want to keep things in memory longer than the current value provides, try lowering swappiness. For example, setting a value of 40:</p><div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> sysctl vm.swappiness=<span style="color: #000000;">40</span></pre></div></div><p>The nice thing about this, is that you can change the setting without rebooting and find a nice threshold that suits your needs. After restarting, the settings will be returned to the default value, so once you find a preferred value, you may decide to change swappiness permanently.</p><h4>Permanent</h4><p>This is only slightly harder, but not by much. It actually involved adding or editing a parameter in a single file.</p><div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">nano</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>sysctl.conf</pre></div></div><p>Then press Ctrl+W to search for &#8220;vm.swappiness&#8221;. If nano finds it, great! Just change the value from the current to your desired. If the value is not found, scroll to the bottom of sysctl.conf and add it. In either case, it should look like this:</p><div class="wp_syntax"><div class="code"><pre class="none" style="font-family:monospace;">vm.swappiness=40</pre></div></div><p>On succeeding boots, this value will be the default. We can re-read the config file, verifying any changes:</p><div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> sysctl <span style="color: #660033;">-p</span></pre></div></div><h4>Turn-offs and Turn-ons</h4><p>There&#8217;s one last thing we can actually do to control swap: completely disable and enable it. This brings us back to the first section on swapon and swapoff. There are several reasons why one might want to completely turn swap off. One of those reasons is to flush whatever is in swap back to memory. As long as you actually have enough system memory for the contents of swap, you&#8217;re not going to break anything, but it might by worthwhile to ask yourself what the system might have swapped the pages out in the first place. Maybe there&#8217;s a runaway process leaking memory. Assuming everything is acting appropriately, in the long run, it is probably better to adjust swappiness as detailed above.</p><p>If you&#8217;ve decided that you want to move pages out of swap and back into memory, all you need is a couple commands, which we can combine into a single line:</p><div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> swapoff <span style="color: #660033;">-a</span> <span style="color: #000000; font-weight: bold;">&amp;&amp;</span> <span style="color: #c20cb9; font-weight: bold;">sudo</span> swapon <span style="color: #660033;">-a</span></pre></div></div><p>The -a option on both of these command stands for &#8220;auto&#8221;. To be a more specific, it tells them to operate on all swap devices located in /etc/fstab that aren&#8217;t explicitly marked at &#8220;noauto&#8221;. Don&#8217;t worry about the details for now, just know it works.</p><p>After running this command, my memory looked like this:</p><div class="wp_syntax"><div class="code"><pre class="none" style="font-family:monospace;">             total       used       free     shared    buffers     cached
Mem:          3959       3935         23          0        159       1956
-/+ buffers/cache:       1819       2139
Swap:         1953          0       1953</pre></div></div><p>Notice that Swap now reports 0MB used, with a small decrease in the amount of cached and free memory. If there&#8217;s a lot of data in swap, it may take a bit of time for this to finish. Don&#8217;t panic, but instead, open another terminal and observe your memory usage:</p><div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">free</span> <span style="color: #660033;">-ms</span> <span style="color: #000000;">1</span></pre></div></div><p>Again, -m reports usage in MB. -s 1 activates a continuous polling delay of 1 second. In other words, free -m will continue to run every 1 second until you tell it to stop with Ctrl+C. If you use this while swapoff is at work, you should see all the memory numbers adjust magically.</p><h4>Last Resort</h4><p>If course, if all else fails, a simple reboot will clear out not only your swap, but also anything in memory.</p><h3>Wrap-up</h3><p>Fortunately, Linux allows us to tweak many settings and the GNU/Linux toolset gives us a great way to handle these changes. Hopefully, this article has shed some light on how to manage that mysterious swap partition and will provide a jump point to learning more about the specific commands involved.</p><p><a href="/2009/02/06/all-about-linux-swap-part-3-analysis/" title="All About Linux Swap Part 3: Analysis">Part 3</a> will be less technical, instead focusing on a discussion about modern swap usage and how that impacts the end-user today.</p> ]]></content:encoded> <wfw:commentRss>http://www.ideaexcursion.com/2009/02/02/all-about-linux-swap-part-2-management/feed/</wfw:commentRss> <slash:comments>1</slash:comments> </item> <item><title>All About Linux Swap Part 1: Introduction</title><link>http://www.ideaexcursion.com/2009/01/29/all-about-linux-swap-part-1-introduction/</link> <comments>http://www.ideaexcursion.com/2009/01/29/all-about-linux-swap-part-1-introduction/#comments</comments> <pubDate>Thu, 29 Jan 2009 19:40:13 +0000</pubDate> <dc:creator>Taylor Gerring</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[Basics]]></category> <category><![CDATA[Explanation]]></category> <category><![CDATA[swap]]></category><guid isPermaLink="false">http://www.ideaexcursion.com/?p=276</guid> <description><![CDATA[The first article in a multipart series exploring swap space, familiarizing the reader with the concept of swapping, why it exists, and what it's used for. ]]></description> <content:encoded><![CDATA[<p><em><strong>Note:</strong> This article is the first in a multipart series introducing the Linux swap. Part 1 appears below and is intended to familiarize the reader with the concept of swapping, why it exists, and what it&#8217;s used for. <a href="/2009/02/02/all-about-linux-swap-part-2-management/" title="All About Linux Swap Part 2: Management">Part 2</a> will highlight basic analysis and management techniques for handling swap space. <a href="/2009/02/06/all-about-linux-swap-part-3-analysis/" title="All About Linux Swap Part 3: Analysis">Part 3</a> will discuss the current state of swap usage and present opinions about its implementation today.</em></p><p><span id="more-276"></span></p><h3>What is swap?</h3><p>The first question in an introductory article about swap should probably be, &#8220;What is swap?&#8221;. But, before that question can be answered, we need to ensure a concrete understanding of a more fundamental concept in computers: memory. If you feel that you could use a brush-up on the different types of memory and their function within a modern computer, check out <a title="Computer Memory 101: A Primer" href="/2009/01/24/computer-memory-101-a-primer/">Memory 101: A Primer</a>.</p><p>On the most basic level, swap acts as storage space auxiliary to system memory. Fortunately for developers, modern systems need not know or care about swap. This is achieved by abstracting away the physical details through the use of &#8220;virtual memory&#8221;, which acts as a sort of mapping system. Of course, memory isn&#8217;t the only capacity in which this idea is utilized &#8211; quite the opposite. Just about every part of a contemporary general computing system abstracts physical details through various device drivers. Taking it a step further, programming languages themselves disconnect the details of the underlying system from the actual operations in the program. These techniques hide the complexities of where data is stored, and instead allows developers to focus on actually interacting with the device, rather than knowing the nuts-and-bolts of the system. Other common uses include video output and file systems. For example, although a program might be stored at <span style="white-space:nowrap;">/usr/bin/gcc</span>, the system largely doesn&#8217;t care which type of device, drive, platter, or cluster the file exists in, because the details have been dissociated from the functionality.</p><p>A discussion should also be had about the term &#8220;swapping&#8221;. In modern operating systems, swapping and paging have similar meaning and are nearly interchangeable. In the Windows world, the term paging is used almost exclusively, whereas swapping is a preferred term within Unix-like systems. The difference originally was in the amount of data that was changed from memory to disk or <span lang="la">vice versa</span>. In more primitive <abbr title="Operating System">OS</abbr>&#8216;s, swapping originally referred to an entire process being brought in and out of memory.  As technology advanced, the need to work on an entire process eventually faded; current systems instead switch out only portions of memory known as a page (a smaller fixed-length set of data). Because the older, traditional method of swapping is not longer utilized, the terms are mostly synonymous and will be for the purpose of these articles.</p><h3>Using Swap</h3><p>Although swap acts as an extension of system memory, there are several purposes swap space can serve within that descriptor.</p><h4>Extra &#8220;memory&#8221;</h4><p>In the classic scenario, swap space could be considered a last-resort for data before an application  &#8211; or the entire system &#8211; crashes. How does it work? Let&#8217;s pretend you have 1000<abbr title="MegaByte">MB</abbr> of RAM, of which 800 is used. You now load a program that consumes 300<abbr title="MegaByte">MB</abbr> of memory. In this simplistic scenario there is more data than memory available; therefore,  approximately 100<abbr title="MegaByte">MB</abbr> will be moved into swap. Is this inherently bad? It isn&#8217;t ideal, but typical far better than having the system grind to an uncontrollable halt and forcing a shutdown.</p><h4>Optimizing memory usage</h4><p>The operating system may anticipate that data will be repeatedly accessed, in which case it can be very beneficial to keep this information in memory. This is known as <em>cache</em>. If stale program data is sitting in memory, taking up valuable space that can be used for cached data, the kernel may decide to place the infrequently-accessed memory in swap. Probably a common example of this is the cache &#8211; or temporary internet files &#8211; in a web browser. Especially if you&#8217;re browsing around a particular website, there may be some common elements such as the logo that will be displayed continuously. There is no need to fetch the data from the server again, because the file has been placed in a local cache.</p><p>This could also be placed into an analogy comparing it to looking up information in a library. You can travel to the library, locate the book, then locate the actual page containing the information (and yes, the analogy holds true for the term &#8220;page&#8221; discussed above). Do you simply read the passage, close the book, and commute back home, hoping you never need it again? Or is it more efficient to make a copy of that passage and take it with you, just-in-case? Much like you might copy the page and keep it with you for referencing again, so too does a modern system copy a page of data into RAM and keep it there until no longer needed.</p><h4>Suspend-to-disk (a.k.a. Hibernation)</h4><p>This is a more esoteric use of swap space, but a convenience of modern <abbr title="Operating System">OS</abbr>&#8216;s (Linux &gt;= 2.6) &#8211; and particularly laptops &#8211; the ability to Sleep and Hibernate. Hibernating actually stores the entire contents of memory on non-volatile storage (usually a hard drive), then turns off. Because memory cannot be maintained without power and cached objects can be removed from memory, this makes swap space a prime candidate for the storage location.</p><h3>Putting it all together</h3><p>After familiarizing yourself with swap space and its common uses, you might be thinking that the drawbacks sometime outweigh the benefits, and you might be correct. In the desktop age, the much easier fix to using swap as an extension of memory is to simply increase system memory. In the past, this has been an expensive endeavor, but currently, lots of memory can be had for relatively little money. The solution is obvious, easy, and relatively cheap: <strong>buy more memory</strong>! If you&#8217;re at a memory limit due to hardware, software, or financial reasons, fret not, there are some solutions.</p><p>The next part of the swap space series, I&#8217;ll go into depth on <a href="/2009/02/02/all-about-linux-swap-part-2-management/" title="All About Linux Swap Part 2: Management">how to analyze and manage your swap</a>, tweaking it for performance and understanding how your system is shuffling data around. Additionally, it will provide examples for how to add more swap space.</p> ]]></content:encoded> <wfw:commentRss>http://www.ideaexcursion.com/2009/01/29/all-about-linux-swap-part-1-introduction/feed/</wfw:commentRss> <slash:comments>4</slash:comments> </item> <item><title>Dropbox: Simply Amazing &amp; Amazingly Simple</title><link>http://www.ideaexcursion.com/2009/01/20/dropbox-simply-amazing-amazingly-simple/</link> <comments>http://www.ideaexcursion.com/2009/01/20/dropbox-simply-amazing-amazingly-simple/#comments</comments> <pubDate>Tue, 20 Jan 2009 20:25:29 +0000</pubDate> <dc:creator>Taylor Gerring</dc:creator> <category><![CDATA[Google]]></category> <category><![CDATA[Linux]]></category> <category><![CDATA[Mac]]></category> <category><![CDATA[Windows]]></category> <category><![CDATA[Dropbox]]></category> <category><![CDATA[Review]]></category> <category><![CDATA[Software]]></category><guid isPermaLink="false">http://www.ideaexcursion.com/?p=103</guid> <description><![CDATA[What is it? It's a bidirectionally synchronized folder in The Cloud. I'm amazed. It works on every major platform. It works seamlessly. It just works. ]]></description> <content:encoded><![CDATA[<p>I finally decided to give <a title="Dropbox" href="https://www.getdropbox.com/referrals/NTQxODI1NDk~" target="_blank">Dropbox</a> a try. I had seen the videos and other reviews, but my curiosity was finally piqued enough to take it for a drive &#8211; and boy &#8211; I was <em>amazed</em>. It works on every major platform. It works seamlessly. It just works.</p><p>What is it? It&#8217;s a bidirectionally synchronized folder in <a title="Wikipedia: Cloud computing" href="http://en.wikipedia.org/wiki/Cloud_computing" target="_blank">The Cloud</a>. It synchronizes and shares files between your computers in addition to provided access through the web interface. I have 3 different computers I use on a regular basis, so keeping important files synchronized is a boon to productivity.<br /> <span id="more-103"></span><br /> Let&#8217;s say you need a few files at work. Copy them into your Dropbox folder at home and and be on your way. By the time you arrive to the office, the files have already replicated to all registered computers, and they&#8217;re ready to use.</p><div id="attachment_250" class="wp-caption alignnone" style="width: 160px"><a href="http://static.ideaexcursion.com/wp-content/uploads/2008/12/dbnautilusoverlay.png"><img class="size-thumbnail wp-image-250" title="Dropbox Nautilus Overlay Icons" src="http://static.ideaexcursion.com/wp-content/uploads/2008/12/dbnautilusoverlay-150x150.png" alt="DropBox Nautilus Overlay Icons" width="150" height="150" /></a><p class="wp-caption-text">Dropbox Nautilus Overlay Icons</p></div><h3>On the desktop</h3><p>How does it work? A tiny program runs in the background that monitors a special Dropbox folder. Any changes to that folder are copied up the server and then down to all your other computers.</p><div id="attachment_251" class="wp-caption alignnone" style="width: 50px"><a href="http://static.ideaexcursion.com/wp-content/uploads/2008/12/dbtrayicons.png"><img class="size-full wp-image-251" title="DropBox Tray Icons" src="http://static.ideaexcursion.com/wp-content/uploads/2008/12/dbtrayicons.png" alt="Dropbox Tray Icons" width="40" height="16" /></a><p class="wp-caption-text">Dropbox Tray Icons</p></div><p>In addition, overlay icons are displayed on files and folders to indicate the sync status. I can&#8217;t say enough about how well this integrates into the graphical shell, providing a nuanced view into the inner workings.</p><div id="attachment_249" class="wp-caption alignnone" style="width: 101px"><a href="http://static.ideaexcursion.com/wp-content/uploads/2008/12/dbexploreroverlay.png"><img class="size-full wp-image-249" title="DropBox Explorer Overlay Icons" src="http://static.ideaexcursion.com/wp-content/uploads/2008/12/dbexploreroverlay.png" alt="DropBox Explorer Overlay Icons" width="91" height="113" /></a><p class="wp-caption-text">Dropbox Explorer Overlay Icons</p></div><p>The simplicity of the whole system is what makes this software so powerful. Though most details are obscured, there&#8217;s still a few nerdy details that can be had with a little research:</p><p>Dropbox claims that files are transferred over <abbr title="Secure Sockets Layer">SSL</abbr> in addition to storing them encrypted on <a title="Amazon Simple Storage Service" href="http://aws.amazon.com/s3/" target="_blank">Amazon S3</a> servers. It supports change tracking, so you can revert to a previous revision if necessary. Also, the company claims to transfer only file deltas (changes), which helps conserve bandwidth and speed transfers.</p><div id="attachment_252" class="wp-caption alignnone" style="width: 306px"><a href="http://static.ideaexcursion.com/wp-content/uploads/2008/12/dbtraymenu.png"><img class="size-full wp-image-252" title="Dropbox Tray Right-click Menu" src="http://static.ideaexcursion.com/wp-content/uploads/2008/12/dbtraymenu.png" alt="DropBox Tray Right-click Menu" width="296" height="198" /></a><p class="wp-caption-text">Dropbox Tray Right-click Menu</p></div><h3>On the web</h3><p>In addition to the client goodies, Dropbox has a wonderful web front-end that provides a superset of desktop features.</p><p>There&#8217;s several management options that can only be accessed from the web: account type, contact information, and computer management. Because these are items not often changed, I don&#8217;t mind that they&#8217;ve been left out of the client application; it helps reinforce the <em>simple </em>mantra.</p><div id="attachment_255" class="wp-caption alignnone" style="width: 310px"><a href="http://static.ideaexcursion.com/wp-content/uploads/2008/01/dbmanagecomputers.png"><img class="size-medium wp-image-255" title="Dropbox Manage Computers" src="http://static.ideaexcursion.com/wp-content/uploads/2008/01/dbmanagecomputers-300x89.png" alt="Dropbox Web Interface: Manage Computers" width="300" height="89" /></a><p class="wp-caption-text">Dropbox Web Interface: Manage Computers</p></div><p>You can also add files via the website directly. This speaks to the universal usefulness, even while accessing files on a foreign computer.</p><p>Another interesting feature is the availability of an Event Feed in the form of <abbr title="Really Simple Syndication">RSS</abbr>. If you&#8217;re somehow sharing an account, this feature would work well to notify each other of changes. Even included is a direct download link to that file. My only suggestion, would be to also provide a link to that particular revision, instead of only the most recent copy.</p><div id="attachment_258" class="wp-caption alignnone" style="width: 280px"><a href="http://static.ideaexcursion.com/wp-content/uploads/2008/01/dbrssfeed.png"><img class="size-medium wp-image-258" title="Dropbox RSS Feed" src="http://static.ideaexcursion.com/wp-content/uploads/2008/01/dbrssfeed-270x300.png" alt="Dropbox RSS Feed" width="270" height="300" /></a><p class="wp-caption-text">Dropbox RSS Feed</p></div><p>Dropbox also directly supports various shared-use scenarios. It&#8217;s got built-in photo gallery support, collaboration features, and the ability to supply a public link to any file.</p><h3>Conclusion</h3><p>I certainly don&#8217;t use Dropbox for everything: Most documents I keep in <a title="Google Docs" href="http://docs.google.com/" target="_blank">Google Docs</a> and large amounts of data still lives on my <acronym title="Network-attached Storage">NAS</acronym>. Also, I&#8217;m not willing to synchronize a whole movie just to transfer between computers &#8211; traditional networks and <a title="Sneakernet - Wikipedia" href="http://en.wikipedia.org/wiki/Sneakernet" target="_blank">sneakernets</a> still have their place. Even still, I&#8217;d be crazy to not take advantage of the ridiculous simplicity that this service offers.</p><p>With Dropbox, I truly fell in love with a brand-new product. If you&#8217;d like to experience Dropbox for yourself, <a href="https://www.getdropbox.com/referrals/NTQxODI1NDk~" title="You've been invited to join Dropbox! ">get an extra 250MB free</a> by using my referral link.</p> ]]></content:encoded> <wfw:commentRss>http://www.ideaexcursion.com/2009/01/20/dropbox-simply-amazing-amazingly-simple/feed/</wfw:commentRss> <slash:comments>5</slash:comments> </item> <item><title>Windows 7 in VirtualBox: Shared Folders workaround</title><link>http://www.ideaexcursion.com/2009/01/15/windows-7-in-virtualbox-shared-folders-workaround/</link> <comments>http://www.ideaexcursion.com/2009/01/15/windows-7-in-virtualbox-shared-folders-workaround/#comments</comments> <pubDate>Thu, 15 Jan 2009 20:05:44 +0000</pubDate> <dc:creator>Taylor Gerring</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[VirtualBox]]></category> <category><![CDATA[Windows]]></category> <category><![CDATA[HOWTO]]></category> <category><![CDATA[Windows 7]]></category><guid isPermaLink="false">http://www.ideaexcursion.com/?p=222</guid> <description><![CDATA[You've installed VirtualBox Guest Additions in Windows 7, but Shared Folders don't yet work. There is a simple workaround that can provide basic functionality.]]></description> <content:encoded><![CDATA[<p>I&#8217;ve written about <a title="Installing Windows 7 Beta 1 in VirtualBox 2.1.0" href="http://www.ideaexcursion.com/2008/12/31/installing-windows-7-beta-1-in-virtualbox-210/" target="_blank">enabling Guest Additions on Windows 7 Beta 1</a> in VirtualBox. While most items work, such as mouse integration and Auto-resize Guest Display, one of the items that still doesn&#8217;t correctly function is Shared Folders. Fret not, because there is a simple workaround that can provide basic functionality. Also note, that this method works for any Windows guest, and could be adapted for a variety of other guests.<br /> <span id="more-222"></span><br /> First, a quick word about the host <abbr title="Operating System">OS</abbr>: It must be running some implementation of Microsoft Windows network file system (<a title="Server Message Block - Wikipedia" href="http://en.wikipedia.org/wiki/Server_Message_Block" target="_blank">SMB</a>/<acronym title="Common Internet File System">CIFS</acronym>) networking to work. If the host <abbr title="Operating System">OS</abbr> is Windows, you&#8217;re all set. If you&#8217;re on a Mac or Linux host environment, you&#8217;ll need to use <a title="Samba (software) - Wikipedia" href="http://en.wikipedia.org/wiki/Samba_(software)" target="_blank">Samba</a>. Fortunately, <a title="Samba" href="http://www.samba.org/" target="_blank">Samba</a> is nicely integrated with modern Mac and Linux releases. As for the guest <abbr title="Operating System">OS</abbr>, you&#8217;ll need to have some sort of networking enabled. With the <a title="VirtualBox 2.1 new features" href="http://www.ideaexcursion.com/2008/12/17/virtualbox-21-new-features/" target="_blank">revamped host networking in 2.1</a>, I highly recommend you use that if at all possible.</p><p>As long as the above requirement is met, you may share the folder you want to access. I say &#8220;may&#8221; only because if your host <abbr title="Operating System">OS</abbr> is Windows, you can access the hidden drive shares directly. If this is the case, skip the next section and head right for the next paragraph. If you&#8217;re new to sharing a folder, here are the steps to accomplish it.</p><p>Windows</p><ol><li>Right-click the folder name and choose, &#8220;Share&#8230;&#8221;<p><div id="attachment_228" class="wp-caption alignnone" style="width: 160px"><a href="http://static.ideaexcursion.com/wp-content/uploads/2009/01/sfvistasharemenu.png"><img class="size-thumbnail wp-image-228" title="Vista Share Menu" src="http://static.ideaexcursion.com/wp-content/uploads/2009/01/sfvistasharemenu-150x150.png" alt="Vista Share Menu" width="150" height="150" /></a><p class="wp-caption-text">Vista Share Menu</p></div></li><li>Verify the user with access is correct. It should be your current account and have Owner privileges</li><li>Click Share<p><div id="attachment_227" class="wp-caption alignnone" style="width: 160px"><a href="http://static.ideaexcursion.com/wp-content/uploads/2009/01/sfvistafilesharing.png"><img class="size-thumbnail wp-image-227" title="Vista File Sharing" src="http://static.ideaexcursion.com/wp-content/uploads/2009/01/sfvistafilesharing-150x150.png" alt="Vista File Sharing" width="150" height="150" /></a><p class="wp-caption-text">Vista File Sharing</p></div></li></ol><p>Ubuntu</p><ol><li>Browse to a folder using Nautilus (your default file manager when using Gnome)</li><li>Right-click and choose &#8220;Sharing Options&#8221;<p><div id="attachment_226" class="wp-caption alignnone" style="width: 160px"><a href="http://static.ideaexcursion.com/wp-content/uploads/2009/01/sfubuntusharingoptionsmenu.png"><img class="size-thumbnail wp-image-226" title="Ubuntu Sharing Options Menu" src="http://static.ideaexcursion.com/wp-content/uploads/2009/01/sfubuntusharingoptionsmenu-150x150.png" alt="Ubuntu Sharing Options Menu" width="150" height="150" /></a><p class="wp-caption-text">Ubuntu Sharing Options Menu</p></div></li><li>If this is your first time enabling sharing, you will be prompted to install the service. Authenticate and let the package manager download and configure Samba. I was prompted to reboot my computer, however, I did not reboot and was still able to continue configuring the shared folder<div id="attachment_225" class="wp-caption alignnone" style="width: 160px"><a href="http://static.ideaexcursion.com/wp-content/uploads/2009/01/sfubuntusambainstall.png"><img class="size-thumbnail wp-image-225" title="Ubuntu Samba Install" src="http://static.ideaexcursion.com/wp-content/uploads/2009/01/sfubuntusambainstall-150x150.png" alt="Install Samba service" width="150" height="150" /></a><p class="wp-caption-text">Install Samba service</p></div><p><div id="attachment_224" class="wp-caption alignnone" style="width: 160px"><a href="http://static.ideaexcursion.com/wp-content/uploads/2009/01/sfubuntunautiluspermissions.png"><img class="size-thumbnail wp-image-224" title="Ubuntu Nautilus Permissions" src="http://static.ideaexcursion.com/wp-content/uploads/2009/01/sfubuntunautiluspermissions-150x150.png" alt="Ubuntu Nautilus Permissions" width="150" height="150" /></a><p class="wp-caption-text">Ubuntu Nautilus Permissions</p></div></li></ol><p>Mac</p><ol><li>Sorry, I don&#8217;t have a Mac. If anyone wants to buy me one, or just generate some revenue through ad clicks, I would appreciate it!</li></ol><p>You should then be able to access the share by browsing <span style="white-space: nowrap;">&#8220;\\localhost\sharename&#8221;</span>. If you opted to skip creating a share, and want to use the built-in hidden shares, specify &#8220;C$&#8221; as the share name. Authenticate if necessary and you should be browsing your shared folder locally.</p><ol><li>Once that is complete, switch over to your <abbr title="Virtual Machine">VM</abbr> installation (Windows 7 or otherwise)</li><li>Bring up Computer (Start Orb&rarr;Computer)</li><li>Click the &#8220;map network drive&#8221; button<p><div id="attachment_231" class="wp-caption alignnone" style="width: 160px"><a href="http://static.ideaexcursion.com/wp-content/uploads/2009/01/sfwin7mapdrivebutton.png"><img class="size-thumbnail wp-image-231" title="Win7 Map Network Drive button" src="http://static.ideaexcursion.com/wp-content/uploads/2009/01/sfwin7mapdrivebutton-150x150.png" alt="Windows 7 Map Network Drive" width="150" height="150" /></a><p class="wp-caption-text">Windows 7 Map Network Drive</p></div></li><li>The &#8220;Map Network Drive&#8221; dialog box will open and you should configure several items:<ol><li><strong>Drive</strong>: Specify your preferred drive letter. I chose &#8220;S:&#8221;, but any available letter will work fine.</li><li><strong>Folder</strong>: This should be defined as <span style="white-space: nowrap;">&#8220;\\HostComputer\ShareName&#8221;</span>. Alternatively, you can specify the <abbr title="Internet Protocol">IP</abbr> address instead of hostname. Because you are now on the guest <abbr title="Operating System">OS</abbr>, this should <em>not</em> be &#8220;localhost&#8221; as above.</li><li><strong>Connect using different credentials</strong>: I like to check this, just to ensure I can specify the correct login and password instead of using my current user.</li><li>Press the <strong>Finish</strong> button<p><div id="attachment_232" class="wp-caption alignnone" style="width: 160px"><a href="http://static.ideaexcursion.com/wp-content/uploads/2009/01/sfwin7mapdriveoptions.png"><img class="size-thumbnail wp-image-232" title="Win7 Map Drive Options" src="http://static.ideaexcursion.com/wp-content/uploads/2009/01/sfwin7mapdriveoptions-150x150.png" alt="Windows 7 Map Drive Options" width="150" height="150" /></a><p class="wp-caption-text">Windows 7 Map Drive Options</p></div></li></ol></li></ol><p>A new window should open with your new share. You can also minimize this window &#8211; exposing the underlying Computer window. A new drive letter under Network Location should be available.</p><p>That&#8217;s it, you&#8217;re done. Windows shares don&#8217;t always behave as easily as they should, so if you encounter an error, don&#8217;t give up. Keep trying and post the error in the comments.</p> ]]></content:encoded> <wfw:commentRss>http://www.ideaexcursion.com/2009/01/15/windows-7-in-virtualbox-shared-folders-workaround/feed/</wfw:commentRss> <slash:comments>20</slash:comments> </item> <item><title>Running multiple X11 sessions</title><link>http://www.ideaexcursion.com/2008/12/24/running-multiple-x11-sessions/</link> <comments>http://www.ideaexcursion.com/2008/12/24/running-multiple-x11-sessions/#comments</comments> <pubDate>Wed, 24 Dec 2008 09:20:33 +0000</pubDate> <dc:creator>Taylor Gerring</dc:creator> <category><![CDATA[Linux]]></category> <category><![CDATA[HOWTO]]></category> <category><![CDATA[Ubuntu]]></category> <category><![CDATA[X11]]></category><guid isPermaLink="false">http://www.ideaexcursion.com/?p=126</guid> <description><![CDATA[Got a misbehaving application preventing logout or maybe there's a game that demands then entirety of your screen? There's a couple of different ways to start a second X11 instance, both of which are very easy to use. One requires just a few keystrokes, and the other allows you to embed one session within your existing.]]></description> <content:encoded><![CDATA[<p>Got a misbehaving application preventing logout or maybe there&#8217;s a game that demands then entirety of your screen? There&#8217;s a couple of different ways to start a second X11 instance, both of which are very easy to use. One requires just a few keystrokes, and the other allows you to embed one session within your existing.<br /> <span id="more-126"></span><br /> <strong>Note: This is tested on Ubuntu Intrepid Ibex (8.10)</strong></p><ol><li>Switch to tty1 (Ctrl-Alt-F1)</li><li>Start X on a second display &#8211; this  should kick you right into the new X session. <em>Note that displays are 0-base indexed.</em> Your normal session runs on :0. If you need more, use :2, :3, <abbr title="et cetera">etc</abbr>. and they should increase along with tty8, tty9.<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">startx <span style="color: #660033;">--</span> :<span style="color: #000000;">1</span></pre></div></div></li><li>To return to your original X session, switch to tty7 (Ctrl-Alt-F7)</li><li>To return to your new X session, switch to tty8 (Ctrl-Alt-F8)</li><li>To end your new X session, simply logout as normal, and switch back to tty7  (Ctrl-Alt-F7)</li></ol><p>You may also want to consider playing with xnest to embed one X session within another. I haven&#8217;t personally tried xnest, but I found <a href="http://www.debian-administration.org/articles/80" target="_blank" title="xnest instructions">a recommendation</a> and thought it might be worthwhile to someone out there.</p><p>Hope that helps!</p> ]]></content:encoded> <wfw:commentRss>http://www.ideaexcursion.com/2008/12/24/running-multiple-x11-sessions/feed/</wfw:commentRss> <slash:comments>0</slash:comments> </item> </channel> </rss>
<!-- Served from: www.ideaexcursion.com @ 2012-02-07 07:57:12 by W3 Total Cache -->
