<?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>Dragly &#187; Tutorials</title>
	<atom:link href="http://dragly.org/category/tutorials/feed/" rel="self" type="application/rss+xml" />
	<link>http://dragly.org</link>
	<description>It was about time I started writing my own tutorials to share some of the knowledge I&#039;ve picked up from around.</description>
	<lastBuildDate>Wed, 25 Jan 2012 18:57:04 +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>How to draw a spring in Inkscape</title>
		<link>http://dragly.org/2010/02/25/how-to-draw-a-spring-in-inkscape/</link>
		<comments>http://dragly.org/2010/02/25/how-to-draw-a-spring-in-inkscape/#comments</comments>
		<pubDate>Thu, 25 Feb 2010 21:23:28 +0000</pubDate>
		<dc:creator>Svenn-Arne Dragly</dc:creator>
				<category><![CDATA[Graphics]]></category>
		<category><![CDATA[Inkscape]]></category>
		<category><![CDATA[Tutorials]]></category>

		<guid isPermaLink="false">http://svenni.dragly.com/v7/?p=198</guid>
		<description><![CDATA[Update: Check out the new spring drawing method here. The old one on this page is still useful, but the new one is a bit faster. I&#8217;ve been working on some free-body diagrams lately, and in my last paper I &#8230; <a href="http://dragly.org/2010/02/25/how-to-draw-a-spring-in-inkscape/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><strong>Update: </strong>Check out the <a href="http://dragly.org/2010/09/27/updated-method-for-drawing-springs-in-inkscape/">new spring drawing method here</a>. The old one on this page is still useful, but the new one is a bit faster.</p>
<p>I&#8217;ve been working on some free-body diagrams lately, and in my last paper I needed to draw a spring. Since I didn&#8217;t find any simple way to do this, I thought I should give a quick tutorial here.</p>
<p>First of all, turn on the grid by clicking SHIFT + 3 on your keyboard (the # key).</p>
<p><img class="aligncenter size-full wp-image-199" title="Screenshot-New document 1 - Inkscape" src="http://svenni.dragly.com/v7/wp-content/uploads/2010/02/Screenshot-New-document-1-Inkscape.png" alt="" width="375" height="428" />When your grid is turned on, enable the bezier curve editor by clicking this button:</p>
<p><span id="more-198"></span></p>
<p><img class="aligncenter size-full wp-image-200" title="bezier" src="http://svenni.dragly.com/v7/wp-content/uploads/2010/02/bezier.png" alt="" width="35" height="33" />Now, draw a shape similar to this. I&#8217;ve enabled the grid so you may see the distance between the points:</p>
<p><img class="aligncenter size-full wp-image-201" title="Screenshot-New document 1 - Inkscape-1" src="http://svenni.dragly.com/v7/wp-content/uploads/2010/02/Screenshot-New-document-1-Inkscape-1.png" alt="" width="418" height="308" />If you&#8217;re having trouble with the handles you may want to enable cornered points by clicking this button:</p>
<p><img class="aligncenter size-full wp-image-202" title="curve" src="http://svenni.dragly.com/v7/wp-content/uploads/2010/02/curve.png" alt="" width="36" height="26" />Next, you should make a copy of your newly drawn curve and open this for editing (double click on it).</p>
<p><img class="aligncenter size-full wp-image-203" title="Screenshot-New document 1 - Inkscape-3" src="http://svenni.dragly.com/v7/wp-content/uploads/2010/02/Screenshot-New-document-1-Inkscape-3.png" alt="" width="552" height="399" />Select the two leftmost points (as shown above) and delete these. Then move the new shape next to the other.</p>
<p><img class="aligncenter size-full wp-image-204" title="Screenshot-New document 1 - Inkscape-4" src="http://svenni.dragly.com/v7/wp-content/uploads/2010/02/Screenshot-New-document-1-Inkscape-4.png" alt="" width="534" height="346" />As you see, in my drawing the shapes don&#8217;t really fit. We&#8217;ll fix this by editing the second curve.<img class="aligncenter size-full wp-image-205" title="Screenshot-New document 1 - Inkscape-5" src="http://svenni.dragly.com/v7/wp-content/uploads/2010/02/Screenshot-New-document-1-Inkscape-5.png" alt="" width="534" height="330" /></p>
<p>Now we&#8217;re soon done. All we need to do now is to exit editing mode by clicking the arrow tool:</p>
<p><img class="aligncenter size-full wp-image-206" title="arrow" src="http://svenni.dragly.com/v7/wp-content/uploads/2010/02/arrow.png" alt="" width="39" height="33" /></p>
<p>Then select the second curve and copy + paste it as many times as you like:</p>
<p><img class="aligncenter size-full wp-image-207" title="Screenshot-New document 1 - Inkscape-6" src="http://svenni.dragly.com/v7/wp-content/uploads/2010/02/Screenshot-New-document-1-Inkscape-6.png" alt="" width="603" height="157" /></p>
<p>Copy+paste the first shape and flip it</p>
<p><img class="aligncenter size-full wp-image-208" title="Screenshot-New document 1 - Inkscape-8" src="http://svenni.dragly.com/v7/wp-content/uploads/2010/02/Screenshot-New-document-1-Inkscape-8.png" alt="" width="524" height="459" /></p>
<p>Now, move this to the end of the spring:</p>
<p><img class="aligncenter size-full wp-image-209" title="Screenshot-New document 1 - Inkscape-9" src="http://svenni.dragly.com/v7/wp-content/uploads/2010/02/Screenshot-New-document-1-Inkscape-9.png" alt="" width="756" height="177" /></p>
<p>I did some final editing on the last part, but all in all you should be finished now! If you want to reuse this string, save it in a folder and import it when you need it or use it right away in your new diagram. Or just download the source here: <a href="http://svenni.dragly.com/v7/wp-content/uploads/2010/02/spring.svg_.zip">Spring model</a>.</p>
<p><img class="aligncenter size-full wp-image-210" title="rect3765" src="http://svenni.dragly.com/v7/wp-content/uploads/2010/02/rect3765.png" alt="" width="760" height="321" /></p>
]]></content:encoded>
			<wfw:commentRss>http://dragly.org/2010/02/25/how-to-draw-a-spring-in-inkscape/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Automount an SSH server in Ubuntu</title>
		<link>http://dragly.org/2009/11/12/automount-a-ssh-server-in-ubuntu/</link>
		<comments>http://dragly.org/2009/11/12/automount-a-ssh-server-in-ubuntu/#comments</comments>
		<pubDate>Thu, 12 Nov 2009 15:06:07 +0000</pubDate>
		<dc:creator>Svenn-Arne Dragly</dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[auto mount]]></category>
		<category><![CDATA[automount]]></category>
		<category><![CDATA[mount]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://svenni.dragly.com/v7/?p=114</guid>
		<description><![CDATA[If you ever need to mount a SSH server in Ubuntu, this is probably the easiest way to do it. This method uses a public/private key pair to authenticate with the server, making the whole process work without passwords. <a href="http://dragly.org/2009/11/12/automount-a-ssh-server-in-ubuntu/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>If you ever need to mount an SSH server in Ubuntu, this is probably the easiest way to do it. This method uses a public/private key pair to authenticate with the server, making the whole process work without passwords.</p>
<p>If you don&#8217;t  have SSH available to host, but you&#8217;ve got a Windows shared directory, I suggest you have a look at a <a href="http://svenni.dragly.com/v7/2009/06/09/mounting-a-windows-shared-folder-in-ubuntu/">tutorial I&#8217;ve written earlier on that topic</a>.</p>
<h3>Generating a key pair</h3>
<p>You are probably used to connect to your SSH host using a login and a password. This might seem secure, but there is actually another way which is much more convenient, and much more secure. That way is the way of a public/private key pair. If it sounds a bit advanced I will give you a short explanation in a moment, but first you should know that you are not to worry about doing this. It&#8217;s quite easy to set up an SSH key pair in Ubuntu.</p>
<p>A private/public key pair has a pretty easy way of functioning. First of all, you should know that the &#8220;keys&#8221; we are talking about are two small files. They contain a long text which makes up the two keys. These two keys are used to encrypt and decrypt other messages. For instance the data sent back and forth to your SSH host.</p>
<p>The amazing part with these keys, are that they are the only keys which can decrypt whatever message was encrypted with the other key. This makes sure that the server is the only computer able to read your messages, and that your computer is the only which might read the server&#8217;s messages. A huge problem with sending passwords over the Internet is the fact that even though the password was encrypted, it might get picked up by someone else who&#8217;s sniffing on your wireless connection. That way it might be reused in the encrypted form to log back in on the server. SSH is a bit more sophisticated by encrypting the password differently every time, but essentially it follows a pattern which is easily decrypted.</p>
<p>With a key pair the connection is way more secure, and in short terms it works like this:</p>
<ol>
<li>Your computer connects to your host</li>
<li>The server sends back a message, for instance &#8220;hi!&#8221;, encrypted with your public key</li>
<li>Your computer decrypts the message with your private key, reads it as &#8220;hi!&#8221;, and encrypts it again</li>
<li>The server recieves your encrypted message, decrypts it with the public key, and checks that the message is the same as when it was sent out. You are now logged in.</li>
</ol>
<p>This way the server knows that you are who you say you are for two reasons: You are the only one who could decrypt the message with your key, and you are the only one who could encrypt the message again so that it could be decrypted by the server.</p>
<p>The reason we call them private and public keys are pretty obvious. The private key should be kept private so that nobody else may pretend they are you, but the public key may be spread around (thereby &#8216;public&#8217;) since it is useless for anything but encrypting messages for you.</p>
<h3>Enough with the theory, get to the tutorial already!</h3>
<p>To generate a key pair in Ubuntu, go to Applications &gt; Accessories &gt; Passwords and Encryption keys. A window like this should show up:</p>
<p><a href="http://svenni.dragly.com/v7/wp-content/uploads/2009/11/Screenshot-Passwords-and-Encryption-Keys.png" rel="lightbox[114]"><img class="aligncenter size-medium wp-image-123" title="Screenshot-Passwords and Encryption Keys" src="http://svenni.dragly.com/v7/wp-content/uploads/2009/11/Screenshot-Passwords-and-Encryption-Keys-300x223.png" alt="Screenshot-Passwords and Encryption Keys" width="300" height="223" /></a>Click File &gt; New&#8230;</p>
<p><a href="http://svenni.dragly.com/v7/wp-content/uploads/2009/11/Screenshot-Create-New-....png" rel="lightbox[114]"><img class="aligncenter size-medium wp-image-124" title="Screenshot-Create New ..." src="http://svenni.dragly.com/v7/wp-content/uploads/2009/11/Screenshot-Create-New-...-300x210.png" alt="Screenshot-Create New ..." width="300" height="210" /></a>Choose Secure Shell Key and click Continue.</p>
<p><a href="http://svenni.dragly.com/v7/wp-content/uploads/2009/11/Screenshot-New-Secure-Shell-Key.png" rel="lightbox[114]"><img class="aligncenter size-medium wp-image-125" title="Screenshot-New Secure Shell Key" src="http://svenni.dragly.com/v7/wp-content/uploads/2009/11/Screenshot-New-Secure-Shell-Key-300x189.png" alt="Screenshot-New Secure Shell Key" width="300" height="189" /></a>Type in your e-mail address and click Create and Set Up.</p>
<p><a href="http://svenni.dragly.com/v7/wp-content/uploads/2009/11/Screenshot-Passphrase-for-New-Secure-Shell-Key.png" rel="lightbox[114]"><img class="aligncenter size-medium wp-image-126" title="Screenshot-Passphrase for New Secure Shell Key" src="http://svenni.dragly.com/v7/wp-content/uploads/2009/11/Screenshot-Passphrase-for-New-Secure-Shell-Key-300x113.png" alt="Screenshot-Passphrase for New Secure Shell Key" width="300" height="113" /></a>Add a passphrase for the key. This might be anything you&#8217;d like. It just makes the key a bit more secure.</p>
<p><a href="http://svenni.dragly.com/v7/wp-content/uploads/2009/11/Screenshot-Set-Up-Computer-for-SSH-Connection.png" rel="lightbox[114]"><img class="aligncenter size-medium wp-image-127" title="Screenshot-Set Up Computer for SSH Connection" src="http://svenni.dragly.com/v7/wp-content/uploads/2009/11/Screenshot-Set-Up-Computer-for-SSH-Connection-300x154.png" alt="Screenshot-Set Up Computer for SSH Connection" width="300" height="154" /></a>Now, type in the address of your host and your username and click Set Up.</p>
<p>You will be prompted for your SSH password. Type this in and click OK.</p>
<p>Ubuntu will now take care of the rest for you, and you should be able to connect to the server without any hassle.</p>
<h3>So, how do we mount it automatically?</h3>
<p>After you have generated your keypair, you just go to System &gt; Preferences &gt; Startup Applications and add the following command:</p>
<pre>sshfs username@server.example.com: /home/username/myssh</pre>
<p>That is how easy it is. If you, like me, are using a server which formats the folder names with norwegian characters, you might want to add</p>
<pre>-o modules=iconv,from_code=ISO-8859-1</pre>
<p>to the end of the command, making the whole command look like:</p>
<pre>sshfs username@server.example.com: /home/username/myssh -o modules=iconv,from_code=ISO-8859-1</pre>
]]></content:encoded>
			<wfw:commentRss>http://dragly.org/2009/11/12/automount-a-ssh-server-in-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Revision and build numbers for your NetBeans apps</title>
		<link>http://dragly.org/2009/10/11/revision-and-build-numbers-for-your-netbeans-apps/</link>
		<comments>http://dragly.org/2009/10/11/revision-and-build-numbers-for-your-netbeans-apps/#comments</comments>
		<pubDate>Sun, 11 Oct 2009 11:31:51 +0000</pubDate>
		<dc:creator>Svenn-Arne Dragly</dc:creator>
				<category><![CDATA[Java]]></category>
		<category><![CDATA[NetBeans]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[version]]></category>
		<category><![CDATA[version numbering]]></category>

		<guid isPermaLink="false">http://svenni.dragly.com/v7/?p=106</guid>
		<description><![CDATA[It's hassle to update version numbers manually. At least revision and build numbers. But in the modern day of computing, there is no need to waste precious time on these time-consuming tasks. <a href="http://dragly.org/2009/10/11/revision-and-build-numbers-for-your-netbeans-apps/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>After going through a couple of guides on the net, I figured out how to add build numbers and revision numbers to my NetBeans projects. The build number will be incremented for each build, and the revision number is gathered from your subversion repository. If you don&#8217;t use Subversion just skip that part and add the revision number manually.</p>
<p>In this tutorial I assume you are creating an application based on the NetBeans Desktop Application wizard. Otherwise, you may just follow along and use whatever fits into your project. All you need is a java project being built by Ant (as all NetBeans projects are).</p>
<h3>Adding a build number</h3>
<p>First of all, figure out where the properties file for your application is located. This should be in <strong>[package name].resources</strong> (or if you are browsing the files, you will find it under <strong>/src/[package name]/resources</strong>) and is named the same as your application with the suffix &#8220;<strong>.properties</strong>&#8220;.</p>
<p>This could for instance be <strong>myapp.resources/myapp.properties</strong> or <strong>/src/myapp/resources/myapp.properties</strong>.</p>
<p>Open it up and find the version property. It should look something like this:</p>
<pre class="brush:xml">Application.version = 1.0</pre>
<p>Change this to the following</p>
<pre class="brush:xml">Application.version = 1.0.0.${Application.buildnumber}</pre>
<p>Now, we are ready to add a build number to your build.xml file. This is found in the nbproject folder if you browse for files (not in the Projects browser).</p>
<p>Add the following lines below the</p>
<pre class="brush:xml">&lt;import file="nbproject/build-impl.xml"/&gt;</pre>
<p>by replacing <strong>[Package Name]</strong> and <strong>[App Name]</strong> with your own values.</p>
<pre class="brush:xml">&lt;target name="-post-jar" description="Sets the buildversion for the current build"&gt;
    &lt;propertyfile file="${src.dir}/[Package Name]/[App Name].properties"&gt;
        &lt;entry key="Application.buildnumber" value="1" type="int" operation="+"/&gt;
    &lt;/propertyfile&gt;
&lt;/target&gt;</pre>
<p>This should now add your build number to your version number. If you want to have the version in the main title bar of your application just go back into the properties file and change the Application.title property to something like this:</p>
<pre class="brush:xml">Application.title = My Application Name ${Application.version}</pre>
<h3>Adding the Subversion revision number</h3>
<p>Go back to your <strong>build.xml</strong> file and add the following below everything else:</p>
<pre class="brush:xml">&lt;target name="-post-init" description="Sets the buildversion for the current build"&gt;
    &lt;exec outputproperty="svna.version" executable="svnversion"&gt;
        &lt;arg value="-c" /&gt;
        &lt;redirector&gt;
            &lt;outputfilterchain&gt;
                &lt;tokenfilter&gt;
                    &lt;replaceregex pattern="^[0-9]*:?" replace="" flags="g"/&gt;
                    &lt;replaceregex pattern="M" replace="" flags="g"/&gt;
                &lt;/tokenfilter&gt;
            &lt;/outputfilterchain&gt;
        &lt;/redirector&gt;
    &lt;/exec&gt;
    &lt;propertyfile file="${src.dir}/[Package Name]/[App Name].properties"&gt;
        &lt;entry key="Application.revision" value="${svna.version}" type="int" operation="="/&gt;
    &lt;/propertyfile&gt;
    &lt;echo&gt;Revision found from SVN: ${svna.version}&lt;/echo&gt;
&lt;/target&gt;</pre>
<p>Then, add the revision number to your version number by editing changing the Application.version property to something like this:</p>
<pre class="brush:xml">Application.version = 1.0.${Application.revision}.${Application.buildnumber}</pre>
<p>This should be all it takes. Just leave a comment if it does not work out as expected.</p>
]]></content:encoded>
			<wfw:commentRss>http://dragly.org/2009/10/11/revision-and-build-numbers-for-your-netbeans-apps/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>Mounting a Windows share folder in Ubuntu</title>
		<link>http://dragly.org/2009/06/09/mounting-a-windows-shared-folder-in-ubuntu/</link>
		<comments>http://dragly.org/2009/06/09/mounting-a-windows-shared-folder-in-ubuntu/#comments</comments>
		<pubDate>Tue, 09 Jun 2009 20:06:09 +0000</pubDate>
		<dc:creator>Svenn-Arne Dragly</dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[Tutorials]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://svenni.dragly.com/v7/?p=14</guid>
		<description><![CDATA[Are you mounting your shared folder from a Windows network over and over again in Ubuntu?
Annoy yourself no more, here is the solution for permanent pleasure. <a href="http://dragly.org/2009/06/09/mounting-a-windows-shared-folder-in-ubuntu/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I have been connecting to my home folder at the Universitiy of Oslo for quite some time now, and since they use the Windows file-sharing protocol for this purpose, there has been room for quite som headaches.</p>
<p>After some googling I was able to figure out how to connect and mount a folder temporarily, but I had to re-mount it with my password every time I rebooted the computer. Finally, after realizing I actually tried this when I first figured the temporary method, I am now able to mount it permanently. I&#8217;ll show you how, in just a few, simple steps:</p>
<p>First of all, we need to install the samba file system. Type the following in to a terminal:</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;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> smbfs</pre></div></div>

<p>Next, we need to get our username and password ready. Type the following into a terminal while replacing  [your username] with your username:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">gksudo gedit <span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">&#91;</span>your username<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #000000; font-weight: bold;">/</span>.smbcredentials</pre></div></div>

<p>In the new file, add the following while using your own username and password:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">username</span>=<span style="color: #7a0874; font-weight: bold;">&#91;</span>your username on the windows <span style="color: #7a0874; font-weight: bold;">&#40;</span>smb<span style="color: #7a0874; font-weight: bold;">&#41;</span> server<span style="color: #7a0874; font-weight: bold;">&#93;</span>
<span style="color: #007800;">password</span>=<span style="color: #7a0874; font-weight: bold;">&#91;</span>your password on the windows <span style="color: #7a0874; font-weight: bold;">&#40;</span>smb<span style="color: #7a0874; font-weight: bold;">&#41;</span> server<span style="color: #7a0874; font-weight: bold;">&#93;</span></pre></div></div>

<p>Close the file, and type the following in to your terminal:</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;">mkdir</span> <span style="color: #000000; font-weight: bold;">/</span>media<span style="color: #000000; font-weight: bold;">/</span>sambamount
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">cp</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>fstab <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>fstab.backup
<span style="color: #c20cb9; font-weight: bold;">sudo</span> gedit <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>fstab</pre></div></div>

<p>We have now made a backup of the current fstab (the file managing your mounted file systems) and opened it for editing. Add the following line to the file while substituting the brackets with your own values:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #000000; font-weight: bold;">//</span><span style="color: #7a0874; font-weight: bold;">&#91;</span>server name or DNS<span style="color: #7a0874; font-weight: bold;">&#93;</span><span style="color: #000000; font-weight: bold;">/</span><span style="color: #7a0874; font-weight: bold;">&#91;</span>folder on server to <span style="color: #c20cb9; font-weight: bold;">mount</span><span style="color: #7a0874; font-weight: bold;">&#93;</span> <span style="color: #000000; font-weight: bold;">/</span>media<span style="color: #000000; font-weight: bold;">/</span>sambamount cifs <span style="color: #007800;">credentials</span>=<span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>svenni<span style="color: #000000; font-weight: bold;">/</span>.smbcredentials,<span style="color: #007800;">uid</span>=<span style="color: #7a0874; font-weight: bold;">&#91;</span>your <span style="color: #7a0874; font-weight: bold;">local</span> username<span style="color: #7a0874; font-weight: bold;">&#93;</span>,<span style="color: #007800;">gid</span>=<span style="color: #c20cb9; font-weight: bold;">users</span>,<span style="color: #007800;">iocharset</span>=utf8 <span style="color: #000000;">0</span> <span style="color: #000000;">0</span></pre></div></div>

<p>Save and close the file.</p>
<p>Everything should now be ready for the directory to be mounted when you boot the computer, but you could test it before you have to close the browser and take a two minute break away from your precious desktop.</p>
<p>Type the following into your terminal to test the mount:</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;">mount</span> <span style="color: #660033;">-a</span></pre></div></div>

<p>Your shared windows directory should now appear on the desktop as a hard drive icon with the name «sambamount».</p>
]]></content:encoded>
			<wfw:commentRss>http://dragly.org/2009/06/09/mounting-a-windows-shared-folder-in-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

