<?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; Ubuntu</title>
	<atom:link href="http://dragly.org/category/ubuntu/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>Getting a headless connection to a server</title>
		<link>http://dragly.org/2012/01/25/getting-a-headless-connection-to-a-server/</link>
		<comments>http://dragly.org/2012/01/25/getting-a-headless-connection-to-a-server/#comments</comments>
		<pubDate>Wed, 25 Jan 2012 18:54:10 +0000</pubDate>
		<dc:creator>Svenn-Arne Dragly</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[before]]></category>
		<category><![CDATA[early ssh]]></category>
		<category><![CDATA[headless]]></category>
		<category><![CDATA[luks]]></category>
		<category><![CDATA[lvm]]></category>
		<category><![CDATA[server]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://dragly.org/?p=627</guid>
		<description><![CDATA[I just learnt how to get a headless connection to a server before it has even booted. This gives access to LUKS and LVM, giving the oppurtunity to decrypt an encrypted hard drive. The solution was in this blog post. &#8230; <a href="http://dragly.org/2012/01/25/getting-a-headless-connection-to-a-server/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I just learnt how to get a headless connection to a server before it has even booted. This gives access to LUKS and LVM, giving the oppurtunity to decrypt an encrypted hard drive. The solution was in <a href="http://blog.nguyenvq.com/2011/09/13/remote-unlocking-luks-encrypted-lvm-using-dropbear-ssh-in-ubuntu/" rel="nofollow">this blog post</a>. I also found a post about this on <a href="http://unix.stackexchange.com/questions/5017/ssh-to-decrypt-encrypted-lvm-during-headless-server-boot/29990#29990">Stack Exchange</a>, which I decided to contribute to. For my own later reference, I&#8217;ll repost the walkthrough here.</p>
<p>&#8212;-</p>
<div>
<p>I have summarized what you need to do in the following. For more details, have a look at the post above:</p>
<ol>
<li>Install BusyBox and Dropbear on your <strong>server</strong>
<pre><code>sudo apt-get install dropbear busybox </code></pre>
</li>
<li>Update your initramfs on the <strong>server</strong>
<pre><code>sudo update-initramfs -u </code></pre>
</li>
<li>Copy the private key generated by dropbear to your client machine. You may have to copy this to a new dir and change ownership to do this. On your <strong>server</strong>do the following:
<pre><code>sudo cp /etc/initramfs-tools/root/.ssh/id_rsa ~/. sudo chown user:user ~/id_rsa </code></pre>
<p>Remember to replace user with your username. Password logins don&#8217;t seem to work.</li>
<li>Now you may transfer the private key with scp by calling the following on your <strong>client</strong>:
<pre><code>scp user@remote.server:~/id_rsa ~/.ssh/id_rsa_dropbear </code></pre>
</li>
<li>Set up your <strong>client</strong>&#8216;s ~/.ssh/config file for easy login. Open it up with a text editor and add the following:
<pre>Host myremoteserver
HostName my.remote.server
User root
UserKnownHostsFile ~/.ssh/known_hosts.initramfs
IdentityFile ~/.ssh/id_rsa_dropbear </pre>
<p>Change the Host to whatever you like and HostName to the name of your server. Let the user be root. It appears to be the only accepted user in Dropbear. Save and close the file.</li>
<li>Restart your <strong>server</strong> and wait for the passphrase prompt. Give Dropbear a few seconds to detect and set up its internet connection. Connect to your server with the following command on your <strong>client</strong>:
<pre><code>ssh myremoteserver # or any name you chose </code></pre>
</li>
<li>When logged in, issue the following command on your <strong>server</strong>. See the blog post for details:
<pre>pid=`ps | grep "/scripts/local-top/cryptroot" | cut -d " " -f 3`;
kill -9 $pid; sleep 35; /scripts/local-top/cryptroot;
pid=`ps | grep "/bin/sh" | cut -d " " -f 3`;
kill -9 $pid;</pre>
<p>It will take some time (30 seconds) before you get to type your passphrase. Type it in when prompted.</li>
<li>Close the connection by typing
<pre><code>exit </code></pre>
</li>
<li>Your server should now have unlocked its encrypted hard drive and boot as normal.</li>
</ol>
<p>(A huge thanks to the original author of the blog post!)</p>
<p>&#8212;-</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://dragly.org/2012/01/25/getting-a-headless-connection-to-a-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Thunderbird with Lightning on Ubuntu</title>
		<link>http://dragly.org/2012/01/25/thunderbird-with-lightning-on-ubuntu/</link>
		<comments>http://dragly.org/2012/01/25/thunderbird-with-lightning-on-ubuntu/#comments</comments>
		<pubDate>Wed, 25 Jan 2012 12:42:19 +0000</pubDate>
		<dc:creator>Svenn-Arne Dragly</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[add-on]]></category>
		<category><![CDATA[calendar]]></category>
		<category><![CDATA[extension]]></category>
		<category><![CDATA[grayed out]]></category>
		<category><![CDATA[greyed out]]></category>
		<category><![CDATA[lightning]]></category>
		<category><![CDATA[options]]></category>
		<category><![CDATA[plugin]]></category>

		<guid isPermaLink="false">http://dragly.org/?p=624</guid>
		<description><![CDATA[I&#8217;m trying out Thunderbird with Lightning as my calendar application, but for some reason Lightning did not show up under Add-ons in Thunderbird. Instead I installed it by using the xul-ext-lightning package. However, this ended up with all options in &#8230; <a href="http://dragly.org/2012/01/25/thunderbird-with-lightning-on-ubuntu/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I&#8217;m trying out Thunderbird with Lightning as my calendar application, but for some reason Lightning did not show up under Add-ons in Thunderbird. Instead I installed it by using the xul-ext-lightning package. However, this ended up with all options in Lightning grayed out. To fix this I had to install the libstdc++5 package as well, as reported in <a href="http://ubuntuforums.org/showthread.php?t=1005807&amp;highlight=lightning+thunderbird">this forum thread</a>.</p>
<p>This is strange, since it worked fine on a laptop i tried to install Lighting on just a few days ago. But in any case, it works now, so if you want Thunderbird with Lightning on Ubuntu and are having trouble installing it, you might want to try this command in a terminal:</p>
<pre class="brush:shell">sudo apt-get install thunderbird xul-ext-lightning libstdc++5</pre>
<p>That should do the trick.</p>
]]></content:encoded>
			<wfw:commentRss>http://dragly.org/2012/01/25/thunderbird-with-lightning-on-ubuntu/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Bookmarks in terminal</title>
		<link>http://dragly.org/2011/11/01/bookmarks-in-terminal/</link>
		<comments>http://dragly.org/2011/11/01/bookmarks-in-terminal/#comments</comments>
		<pubDate>Tue, 01 Nov 2011 12:02:34 +0000</pubDate>
		<dc:creator>Svenn-Arne Dragly</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[bookmarks]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[terminal]]></category>

		<guid isPermaLink="false">http://dragly.org/?p=567</guid>
		<description><![CDATA[Today I found a great tool to ease the navigation in terminal, called apparix. It lets you bookmark a folder so that you easily can navigate to it just by typing to nameofbookmark To install apparix in Ubuntu, type sudo &#8230; <a href="http://dragly.org/2011/11/01/bookmarks-in-terminal/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Today I found a great tool to ease the navigation in terminal, called apparix. It lets you bookmark a folder so that you easily can navigate to it just by typing</p>
<pre class="brush:shell">to nameofbookmark</pre>
<p>To install apparix in Ubuntu, type</p>
<pre class="brush:shell">sudo apt-get install apparix</pre>
<p>in a terminal window.</p>
<p>After installation you need to set up the aliases &#8220;bm&#8221; for bookmarking and &#8220;to&#8221; for going to a bookmark by adding a few functions to your .bashrc file in your home folder (if you don&#8217;t have this file, you can create it yourself).</p>
<p>You&#8217;ll find the functions you need to add by issuing the command</p>
<pre class="brush:shell">apparix --shell-examples</pre>
<p>in a terminal window. Copy everything below &#8220;Bash-style functions&#8221; except the &#8220;CSH-style aliases&#8221;. Paste this into your .bashrc file.</p>
<p>Open up a new terminal, cd to your directory of choice and type</p>
<pre class="brush:shell">bm mybookmark</pre>
<p>to bookmark the folder. Afterwards you can go to any folder and type</p>
<pre class="brush:shell">to mybookmark</pre>
<p>to go to your bookmark.</p>
<p>This tool is of course available for other Linux distributions too.</p>
]]></content:encoded>
			<wfw:commentRss>http://dragly.org/2011/11/01/bookmarks-in-terminal/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Fixing the volume treshold and intervals in Ubuntu on Dell XPS M1330</title>
		<link>http://dragly.org/2011/10/13/fixing-the-volume-treshold-and-intervals-in-ubuntu-on-dell-xps-m1330/</link>
		<comments>http://dragly.org/2011/10/13/fixing-the-volume-treshold-and-intervals-in-ubuntu-on-dell-xps-m1330/#comments</comments>
		<pubDate>Thu, 13 Oct 2011 11:23:54 +0000</pubDate>
		<dc:creator>Svenn-Arne Dragly</dc:creator>
				<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://dragly.org/?p=557</guid>
		<description><![CDATA[So the new Ubuntu version is finally out and as with every other time I&#8217;ve been upgrading from one version of Ubuntu to a new one, I keep forgetting how to fix the sound issue on the Dell XPS M1330. &#8230; <a href="http://dragly.org/2011/10/13/fixing-the-volume-treshold-and-intervals-in-ubuntu-on-dell-xps-m1330/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>So the new Ubuntu version is finally out and as with every other time I&#8217;ve been upgrading from one version of Ubuntu to a new one, I keep forgetting how to fix the sound issue on the Dell XPS M1330. It is no big issue, really. It is simply that the lowest volume threshold is a bit high with headphones plugged in and that the volume intervals are a bit too large.</p>
<p>Fixing this is thankfully simple even though I keep forgetting. I guess this has to do with the fact that I&#8217;m only doing this once every six months.</p>
<p>If you&#8217;re having the same issue, open up a terminal and open the file &#8220;/etc/pulse/default.pa&#8221; in your favorite editor:</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>etc<span style="color: #000000; font-weight: bold;">/</span>pulse<span style="color: #000000; font-weight: bold;">/</span>default.pa</pre></div></div>

<p>Change the line that says</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">load-module module-udev-detect</pre></div></div>

<p>into</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">load-module module-udev-detect <span style="color: #007800;">ignore_dB</span>=<span style="color: #000000;">1</span></pre></div></div>

<p>Save and close the file.</p>
<p>Now, let&#8217;s restart pulseaudio and open alsamixer in terminal</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">pulseaudio <span style="color: #660033;">-k</span>
alsamixer</pre></div></div>

<p>Use the arrow keys on your keyboard to bring down the PCM volume to about 50 % (or whatever suits your ears). Close alsamixer with ESC.</p>
<p>Now you should be able to enjoy your listening without blowing out your ears. Just note that whenever you are using your speakers and need them back at full volume, you might have to open up alsamixer again and bring the PCM volume back up.</p>
<p>Editing the default.pa file just makes pulseaudio respect your PCM setting. Otherwise it would set it to 100 % whenever you change the volume.</p>
]]></content:encoded>
			<wfw:commentRss>http://dragly.org/2011/10/13/fixing-the-volume-treshold-and-intervals-in-ubuntu-on-dell-xps-m1330/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Spotify for Linux</title>
		<link>http://dragly.org/2010/09/28/spotify-for-linux/</link>
		<comments>http://dragly.org/2010/09/28/spotify-for-linux/#comments</comments>
		<pubDate>Mon, 27 Sep 2010 22:21:36 +0000</pubDate>
		<dc:creator>Svenn-Arne Dragly</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[API]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[music]]></category>
		<category><![CDATA[N900]]></category>
		<category><![CDATA[Spotify]]></category>

		<guid isPermaLink="false">http://dragly.org/?p=405</guid>
		<description><![CDATA[Awesome news! Spotify is now finally available as a native client for Linux. I have no idea why I haven&#8217;t spotted this earlier, as it was already announced in July, but in any case it is finally here. Although they &#8230; <a href="http://dragly.org/2010/09/28/spotify-for-linux/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Awesome news! Spotify is now finally available as a <a href="http://www.spotify.com/no/blog/archives/2010/07/12/linux/">native client for Linux</a>. I have no idea why I haven&#8217;t spotted this earlier, as it was already announced in July, but in any case it is finally here.</p>
<p>Although they call it a preview, it seems to be a very finished and good-looking product, and I finally might get rid of those annoying sudden playback stops I experienced while Spotify under Wine. At least I haven&#8217;t experienced any of them yet.</p>
<p>I wish they would release it as an open source application as well, but for now, I&#8217;m very satisfied seeing that the money I&#8217;m spending on it pays off for Linux users as well. At the moment though, it seems like it is only packaged for Ubuntu and Debian, but hackers using other distros out there are probably going to figure out how to run it on other machines.</p>
<p>Now I&#8217;ll be hoping for a native version for N900, as most of the projects attempting to run Spotify on Maemo appear to be left unusable each time Spotify updates their API.</p>
]]></content:encoded>
			<wfw:commentRss>http://dragly.org/2010/09/28/spotify-for-linux/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Connect to your N900 while developing via usb</title>
		<link>http://dragly.org/2010/07/18/connect-to-your-n900-while-developing-via-usb/</link>
		<comments>http://dragly.org/2010/07/18/connect-to-your-n900-while-developing-via-usb/#comments</comments>
		<pubDate>Sun, 18 Jul 2010 17:16:43 +0000</pubDate>
		<dc:creator>Svenn-Arne Dragly</dc:creator>
				<category><![CDATA[Mobile]]></category>
		<category><![CDATA[N900]]></category>
		<category><![CDATA[Programming]]></category>
		<category><![CDATA[Qt]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[mobile]]></category>
		<category><![CDATA[Network Manager]]></category>
		<category><![CDATA[terminal]]></category>

		<guid isPermaLink="false">http://dragly.org/?p=251</guid>
		<description><![CDATA[Sometimes it feels good to be a bit lazy and let your OS do that boring terminal-typing for you whenever you connect a new device. <a href="http://dragly.org/2010/07/18/connect-to-your-n900-while-developing-via-usb/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>If you are developing for Nokia N900 using the Nokia Qt SDK, you are most likely following <a href="http://doc.qt.nokia.com/nokia-qtsdk-1.0/creator-developing-maemo.html">this guide</a> to set up your environment. This is all nice and easy, but if you are connecting using usb you have to open a terminal each time you plug in your N900 and write</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">ifconfig</span> usb0 192.168.2.14 up</pre></div></div>

<p>If you, like me, get tired of doing this you may instead let Network Manager in Gnome do the work for you. First of all, connect your N900 via an available USB port. Next, right click the Network Manager icon and hit &#8220;Edit Connections&#8230;&#8221;.</p>
<p><span id="more-251"></span></p>
<p><a href="http://dragly.org/wp-content/uploads/2010/07/Screenshot-Network-Connections.png" rel="lightbox[251]"><img class="size-full wp-image-252 alignnone" title="Screenshot-Network Connections" src="http://dragly.org/wp-content/uploads/2010/07/Screenshot-Network-Connections.png" alt="" width="436" height="300" /></a></p>
<p>This window will pop up. Press the &#8220;Add&#8221; button.</p>
<p><a href="http://dragly.org/wp-content/uploads/2010/07/Screenshot-Editing-N900-via-usb.png" rel="lightbox[251]"><img class="alignnone size-full wp-image-253" title="Screenshot-Editing N900 via usb" src="http://dragly.org/wp-content/uploads/2010/07/Screenshot-Editing-N900-via-usb.png" alt="" width="361" height="471" /></a></p>
<p>Type in a useful name, such as &#8220;N900 via usb&#8221;, and leave everything under &#8220;Wired&#8221; as is. Select the &#8220;IPv4 Settings&#8221; tab.</p>
<p><a href="http://dragly.org/wp-content/uploads/2010/07/Screenshot-Editing-N900-via-usb-1.png" rel="lightbox[251]"><img class="alignnone size-full wp-image-254" title="Screenshot-Editing N900 via usb-1" src="http://dragly.org/wp-content/uploads/2010/07/Screenshot-Editing-N900-via-usb-1.png" alt="" width="403" height="471" /></a></p>
<p>Set the Method to &#8220;Manual&#8221; and click &#8220;Add&#8221;.</p>
<p>Type in 192.168.2.14 as the address and 255.255.255.0 as the netmask. Leave the gateway blank.</p>
<p>Hit &#8220;Apply&#8221; and you are good to go!</p>
<p>Next, just click the Network Manager icon and select &#8220;N900 via usb&#8221;. If nothing went wrong, you should now be connected to your device, enabling you to use Qt Creator to its full extent. The next time you plug in your N900, Network Manager will do the work for you automatically.</p>
<p><strong>Update: </strong>Note that if you already have a wired connection, Network Manager might try to connect to this so-called &#8220;Auto Ethernet&#8221; connection when you plug in. If this happens, just click the network manager icon and select the correct connection.</p>
<p>This might also happen the other way around, connecting to your USB connection with your Ethernet card, which of course won&#8217;t work. To avoid this completely, you might want to disable auto-connection for you N900 USB.</p>
]]></content:encoded>
			<wfw:commentRss>http://dragly.org/2010/07/18/connect-to-your-n900-while-developing-via-usb/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Why I&#8217;m not using Ubuntu One</title>
		<link>http://dragly.org/2010/02/16/why-im-not-using-ubuntu-one/</link>
		<comments>http://dragly.org/2010/02/16/why-im-not-using-ubuntu-one/#comments</comments>
		<pubDate>Mon, 15 Feb 2010 22:55:12 +0000</pubDate>
		<dc:creator>Svenn-Arne Dragly</dc:creator>
				<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://svenni.dragly.com/v7/?p=193</guid>
		<description><![CDATA[Recently I&#8217;ve had some issues with my previous solution for synchronizing files between my computers. I used to have an SSH server which I placed all my files on, and usually I edited them directly on this server. Whenever needed &#8230; <a href="http://dragly.org/2010/02/16/why-im-not-using-ubuntu-one/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Recently I&#8217;ve had some issues with my previous solution for synchronizing files between my computers. I used to have an SSH server which I placed all my files on, and usually I edited them directly on this server. Whenever needed offline I used to synchronize them to my computers using Unison. Recently, however, the SSH connection to the server has been pretty sluggish on my laptop, causing the work flow to slow down.</p>
<p>I went looking for an alternative, and since Ubuntu comes with Ubuntu One preinstalled, I thought I should give it a try. The results were not even close to what I wanted.</p>
<p>First of all, there appears to be no kind of encryption on the Ubuntu One server &#8211; didn&#8217;t really bother me. I just set up an EncFS folder on my local computer and put all the files to synchronize inside this folder. The problem, however, occured when I needed to synchronize some of my papers while working on them. I went ahead and saved everything, waited a couple of minutes after seeing the message from Ubuntu One telling me that the files where syncing, and shut down the laptop. Back home, however, the sync would not start at first. I waited a little and when the sync seemed to have started, I opened the folder with the files &#8211; but, there where only my old files in there.</p>
<p>In frustration I picked up my laptop, put it on the desk, connected it to the Internet, and watched Ubuntu One sync the files over again. Wasn&#8217;t it supposed to do this four hours ago?</p>
<p>I went back to the main computer and looked at the folder, refreshed it, stared at it, cursed at it. Nothing happened. Not even after 30 minutes.</p>
<p>Okay. Back to looking for alternatives.</p>
<h3>Spideroak and Dropbox</h3>
<p>So, are all synchronization solutions this bad? You don&#8217;t have to worry, they are not even close!</p>
<p>I tried out Dropbox. Installed it and placed a few files in the Dropbox folder. Time to sync? I don&#8217;t have a clue. I didn&#8217;t even get to push the button on my stopwatch to check! Once the file was placed in the folder on my main computer, it was already on my laptop. Quite nice.</p>
<p>Spideroak on the other hand took 20 seconds or so before synchronizing, but that&#8217;s still an enormous improvement compared to Ubuntu One. And Spideroak has a couple of other benefits.</p>
<p>Where Dropbox only let&#8217;s you sync files in a specific folder, Spideroak let&#8217;s you set up several folders in different paths on your computer to sync. And you may also backup files which are not supposed to be synced.</p>
<p>The probably most important feature that Spideroak has is that the files are encrypted on each computer, making them unreadable even to the Spideroak employees. This is an important security measure which Dropbox lacks. On the other hand you could just put everything in an encrypted folder in the first place, which I think you should do even with Spideroak. The latter is because Spideroak decrypts the files when you watch them through the web-viewer, which means it&#8217;s technically possible to read your files when you are doing the same online.</p>
<h3>Speed vs. features</h3>
<p>I guess it&#8217;s up to you to decide what&#8217;s most important for you. The ease of use and speed which Dropbox offers, or the more advanced features and all over decent speed of Spideroak.</p>
<p>At the moment I&#8217;m running a sync of 900 MB of files using both solutions. I&#8217;ll update this post whenever they finish to give you some information about whether the speed differs on large synchronizations. Currently Dropbox is already syncing all the files, while Spideroak is &#8220;Pending new calculations&#8221;.</p>
]]></content:encoded>
			<wfw:commentRss>http://dragly.org/2010/02/16/why-im-not-using-ubuntu-one/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Fixing a bug with python-visual in Ubuntu Karmic</title>
		<link>http://dragly.org/2010/01/21/fixing-a-bug-with-python-visual-in-ubuntu-karmic/</link>
		<comments>http://dragly.org/2010/01/21/fixing-a-bug-with-python-visual-in-ubuntu-karmic/#comments</comments>
		<pubDate>Thu, 21 Jan 2010 12:42:00 +0000</pubDate>
		<dc:creator>Svenn-Arne Dragly</dc:creator>
				<category><![CDATA[Programming]]></category>
		<category><![CDATA[Python]]></category>
		<category><![CDATA[Ubuntu]]></category>

		<guid isPermaLink="false">http://svenni.dragly.com/v7/?p=158</guid>
		<description><![CDATA[I was preparing to do some tasks in my physics course today, and experienced a rather annoying problem when attempting to use the python-visual package in Ubuntu. There seems to be a bug in Ubuntu Karmic which results in the &#8230; <a href="http://dragly.org/2010/01/21/fixing-a-bug-with-python-visual-in-ubuntu-karmic/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I was preparing to do some tasks in my physics course today, and experienced a rather annoying problem when attempting to use the python-visual package in Ubuntu.</p>
<p>There seems to be a bug in Ubuntu Karmic which results in the following output when trying to run this command:</p>

<div class="wp_syntax"><div class="code"><pre class="python" style="font-family:monospace;"><span style="color: #ff7700;font-weight:bold;">from</span> visual <span style="color: #ff7700;font-weight:bold;">import</span> <span style="color: #66cc66;">*</span></pre></div></div>

<p>The output is as follows:</p>

<div class="wp_syntax"><div class="code"><pre class="bash" style="font-family:monospace;">Traceback <span style="color: #7a0874; font-weight: bold;">&#40;</span>most recent call <span style="color: #c20cb9; font-weight: bold;">last</span><span style="color: #7a0874; font-weight: bold;">&#41;</span>:
  File <span style="color: #ff0000;">&quot;cooper.py&quot;</span>, line <span style="color: #000000;">1</span>, <span style="color: #000000; font-weight: bold;">in</span>
    from visual import <span style="color: #000000; font-weight: bold;">*</span>
  File <span style="color: #ff0000;">&quot;/usr/lib/python2.6/dist-packages/visual/__init__.py&quot;</span>, line <span style="color: #000000;">59</span>, <span style="color: #000000; font-weight: bold;">in</span>
    import cvisual
AttributeError: <span style="color: #ff0000;">'Boost.Python.StaticProperty'</span> object attribute <span style="color: #ff0000;">'__doc__'</span> is read-only</pre></div></div>

<p>The fix is luckily quite simple.</p>
<p>Andrew Mitchell has a package repository for Ubuntu which contains an update to a library called &#8220;boost&#8221;. You can add this repository by selecting System &gt; Administration &gt; Software Sources. Then select &#8220;Other Software&#8221; and click on &#8220;Add&#8230;&#8221;.</p>
<p>Now, type in the following in the textbox:</p>
<pre><strong>ppa:ajmitch/ppa
</strong></pre>
<p>Then click &#8220;Add source&#8221; and &#8220;Close&#8221;. If prompted, select &#8220;Reload&#8221; and then go to System &gt; Administration &gt; Update Manager. Click &#8220;Check&#8221; and then install all updates.</p>
<p>When this has been done, you are ready to run your python script.</p>
<p>Happy coding!</p>
]]></content:encoded>
			<wfw:commentRss>http://dragly.org/2010/01/21/fixing-a-bug-with-python-visual-in-ubuntu-karmic/feed/</wfw:commentRss>
		<slash:comments>0</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>

