<?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/tag/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>Mon, 14 May 2012 22:32:56 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>Installing the nVidia driver in Kubuntu 12.04</title>
		<link>http://dragly.org/2012/05/04/installing-the-nvidia-driver-in-kubuntu-12-04/</link>
		<comments>http://dragly.org/2012/05/04/installing-the-nvidia-driver-in-kubuntu-12-04/#comments</comments>
		<pubDate>Fri, 04 May 2012 09:25:22 +0000</pubDate>
		<dc:creator>Svenn-Arne Dragly</dc:creator>
				<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[apt-get]]></category>
		<category><![CDATA[error]]></category>
		<category><![CDATA[graphics]]></category>
		<category><![CDATA[install]]></category>
		<category><![CDATA[jockey]]></category>
		<category><![CDATA[noveau]]></category>
		<category><![CDATA[nvidia]]></category>
		<category><![CDATA[nvidia-current]]></category>

		<guid isPermaLink="false">http://dragly.org/?p=739</guid>
		<description><![CDATA[Running the vanilla install of Kubuntu 12.04 worked incredibly well. It took me quite some time to notice that I was in fact using the open source noveau driver. Dual displays, desktop effects and all other first impressions worked without &#8230; <a href="http://dragly.org/2012/05/04/installing-the-nvidia-driver-in-kubuntu-12-04/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Running the vanilla install of Kubuntu 12.04 worked incredibly well. It took me quite some time to notice that I was in fact using the open source noveau driver. Dual displays, desktop effects and all other first impressions worked without glitches. In fact, it was not before I tried to run Google Maps&#8217; WebGL version that I started noticing some rendering errors. And according to the <a href="http://nouveau.freedesktop.org/wiki/">noveau</a> project&#8217;s own webpages, the OpenGL acceleration is exactly where noveau is still lacking.</p>
<p>In addition, the graphics card seemed to heat itself more easily with the noveau driver.</p>
<p>Sadly this lead me to realize that I would still have to use the proprietary NVIDIA driver to make use of my graphics card and the applications I use daily. Even worse, getting this installed would prove to harder than in earlier versions of Ubuntu. I don&#8217;t know if this is due to using Kubuntu or not, but if you should experience some of the same symptoms, here is how I fixed it.</p>
<p>First of all, the symptoms were as follows after installing the <strong>nvidia-current</strong> package:</p>
<ul>
<li>The computer started only with one display and with a very low resolution (640 x 480)</li>
<li>Enabling the nvidia driver using jockey-kde or jockey-text resulted in errors such as</li>
<ul>
<li><em>ERROR: XorgDriverHandler.enable(): package or module not installed, aborting</em></li>
<li><em>WARNING: modinfo for module nvidia_current_updates failed: ERROR: modinfo: could not find module nvidia_current_updates</em></li>
</ul>
<li>Finally, installing <strong>nvidia-current</strong> only gave the error:</li>
<ul>
<li><em>Module build for the currently running kernel was skipped since the</em><br />
<em>kernel source for this kernel does not seem to be installed.</em></li>
</ul>
</ul>
<p>So, if you experience any of these, the reason is most likely missing kernel source and header libraries. The fix is thankfully simple, just run the following commands in a terminal:</p>
<pre>sudo apt-get update
sudo apt-get purge nvidia-current
sudo apt-get install linux-source
sudo apt-get install linux-headers-generic
sudo apt-get install linux-image
sudo apt-get install nvidia-current
jockey-text -e xorg:nvidia_current</pre>
<p>After this, if you get no errors, try to reboot and run</p>
<pre>nvidia-settings</pre>
<p>after booting. Now you should be able to set up and use your system with full graphics acceleration.</p>
<p>Good luck!</p>
]]></content:encoded>
			<wfw:commentRss>http://dragly.org/2012/05/04/installing-the-nvidia-driver-in-kubuntu-12-04/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Passwordless access to MySQL by using sudo</title>
		<link>http://dragly.org/2012/03/19/passwordless-access-to-mysql-by-using-sudo/</link>
		<comments>http://dragly.org/2012/03/19/passwordless-access-to-mysql-by-using-sudo/#comments</comments>
		<pubDate>Mon, 19 Mar 2012 17:33:18 +0000</pubDate>
		<dc:creator>Svenn-Arne Dragly</dc:creator>
				<category><![CDATA[Databases]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[no password]]></category>
		<category><![CDATA[passwordless]]></category>
		<category><![CDATA[root]]></category>
		<category><![CDATA[sudo]]></category>

		<guid isPermaLink="false">http://dragly.org/?p=681</guid>
		<description><![CDATA[Tired of remembering root passwords for MySQL on your servers? Fear no more, help is on the way. I&#8217;ll assume that you have a Linux system set up with sudo and mysql already installed. Fire up a terminal and type &#8230; <a href="http://dragly.org/2012/03/19/passwordless-access-to-mysql-by-using-sudo/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Tired of remembering root passwords for MySQL on your servers? Fear no more, help is on the way.</p>
<p>I&#8217;ll assume that you have a Linux system set up with sudo and mysql already installed. Fire up a terminal and type</p>
<pre>sudo su</pre>
<p>Open up ~/.my.cnf in your favorite editor (the ~ points to the root account now).</p>
<pre>vim ~/.my.cnf</pre>
<p>and add the following contents:</p>
<pre>[client]
user = root
password = yourpassword</pre>
<p>Follow up with logging out of root:</p>
<pre>exit</pre>
<p>And run sudo to start MySQL. Remember to use the -H option to point all requests for ~ to root&#8217;s home directory:</p>
<pre>sudo -H mysql</pre>
<p>It is a simple as that <img src='http://dragly.org/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://dragly.org/2012/03/19/passwordless-access-to-mysql-by-using-sudo/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<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>1</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>Using Wacom tablet with dual monitors (TwinView) in Ubuntu</title>
		<link>http://dragly.org/2011/01/25/using-wacom-tablet-with-dual-monitors-twinview-in-ubuntu/</link>
		<comments>http://dragly.org/2011/01/25/using-wacom-tablet-with-dual-monitors-twinview-in-ubuntu/#comments</comments>
		<pubDate>Tue, 25 Jan 2011 18:40:25 +0000</pubDate>
		<dc:creator>Svenn-Arne Dragly</dc:creator>
				<category><![CDATA[Graphics]]></category>
		<category><![CDATA[dual]]></category>
		<category><![CDATA[monitor]]></category>
		<category><![CDATA[monitors]]></category>
		<category><![CDATA[screen]]></category>
		<category><![CDATA[tablet]]></category>
		<category><![CDATA[twin]]></category>
		<category><![CDATA[twinview]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[wacom]]></category>

		<guid isPermaLink="false">http://dragly.org/?p=431</guid>
		<description><![CDATA[I have a setup with two monitors on my computer and wanted to restrict my Wacom tablet to only one of the screens. Otherwise, the tablet is expanded to the entire two screens, making any drawing stretched. This has shown &#8230; <a href="http://dragly.org/2011/01/25/using-wacom-tablet-with-dual-monitors-twinview-in-ubuntu/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>I have a setup with two monitors on my computer and wanted to restrict my Wacom tablet to only one of the screens. Otherwise, the tablet is expanded to the entire two screens, making any drawing stretched.</p>
<p>This has shown to be quite simple to fix if you can live with a script doing the job for you. First, type the following in a terminal and note the output:</p>
<pre class="brush:shell">xinput --list</pre>
<p>You will see a bunch of names for you peripheral devices. You should look for anything that has to do with &#8220;Wacom&#8221;. For instance, on my machine, I see these names:</p>
<pre class="brush:shell">⎡ Virtual core pointer                    	id=2	[master pointer  (3)]
⎜   ↳ Wacom Graphire4 4x5 eraser              	id=12	[slave  pointer  (2)]
⎜   ↳ Wacom Graphire4 4x5 cursor              	id=13	[slave  pointer  (2)]
⎜   ↳ Wacom Graphire4 4x5 pad                 	id=14	[slave  pointer  (2)]
⎜   ↳ Wacom Graphire4 4x5 stylus              	id=15	[slave  pointer  (2)]</pre>
<p>Now, create a file somewhere on your computer. I&#8217;ve put mine in a subdir of my home directory, naming it &#8220;wacom-settings.sh&#8221;. Add these contents to the file and <strong>change the name of each &#8220;Wacom&#8230;&#8221;</strong> to whatever you received as output above:</p>
<pre class="brush:shell">#!/bin/sh
xsetwacom --set "Wacom Graphire4 4x5 stylus" Twinview Horizontal
xsetwacom --set "Wacom Graphire4 4x5 stylus" Screen_No 0x001
xsetwacom --set "Wacom Graphire4 4x5 cursor" Twinview Horizontal
xsetwacom --set "Wacom Graphire4 4x5 cursor" Screen_No 0x001
xsetwacom --set "Wacom Graphire4 4x5 pad" Twinview Horizontal
xsetwacom --set "Wacom Graphire4 4x5 pad" Screen_No 0x001
xsetwacom --set "Wacom Graphire4 4x5 eraser" Twinview Horizontal
xsetwacom --set "Wacom Graphire4 4x5 eraser" Screen_No 0x001</pre>
<p>Then you&#8217;ll just have to make the file executable. This could be done from terminal by issuing the command</p>
<pre class="brush:shell">chmod +x wacom-settings.sh</pre>
<p>in the same directory as the file.</p>
<p>You could also right-click the file, select Properties &gt; Permissions tab and check &#8220;Allow executing this file as a program&#8221;.</p>
<p>You might either add this file to your startup applications under System &gt; Preferences &gt; Startup Applications (this will only work if your tablet is connected when logging in) or you could add a launcher on either your desktop or in one of your panels by dragging the file there.</p>
<p>This should be it. To test that the configuration really works, double click the file and click &#8220;Run in Terminal&#8221;. If the tablet appears on the wrong screen, change the Screen_No above from  0&#215;001 to 0&#215;000.</p>
<p>Good luck with your notes and drawings!</p>
]]></content:encoded>
			<wfw:commentRss>http://dragly.org/2011/01/25/using-wacom-tablet-with-dual-monitors-twinview-in-ubuntu/feed/</wfw:commentRss>
		<slash:comments>11</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>LaTeX It! (and a new blog)</title>
		<link>http://dragly.org/2010/09/09/latex-it-and-a-new-blog/</link>
		<comments>http://dragly.org/2010/09/09/latex-it-and-a-new-blog/#comments</comments>
		<pubDate>Thu, 09 Sep 2010 10:52:34 +0000</pubDate>
		<dc:creator>Svenn-Arne Dragly</dc:creator>
				<category><![CDATA[Mindseye]]></category>
		<category><![CDATA[LaTeX]]></category>
		<category><![CDATA[Thunderbird]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://dragly.org/?p=350</guid>
		<description><![CDATA[Together with my good friend, Mikael, I&#8217;ve started a blog about physics, chemistry, maths and technology over at Mindseye.no. Some of my postings over there will be dual posted here. Especially those about technical notes and tutorials. This is the &#8230; <a href="http://dragly.org/2010/09/09/latex-it-and-a-new-blog/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p>Together with my good friend, Mikael, I&#8217;ve started a blog about physics, chemistry, maths and technology over at <a href="http://mindseye.no">Mindseye.no</a>. Some of my postings over there will be dual posted here. Especially those about technical notes and tutorials. This is the first one, about LaTeX equations in Thunderbird.</p>
<p>If you are using Thunderbird for e-mail and want to send mathematical formulas to your contacts, you should consider the <a href="https://addons.mozilla.org/en-US/thunderbird/addon/48583/">LaTeX It! plugin</a> or the <a href="https://addons.mozilla.org/en-US/thunderbird/addon/6247/">Equations plugin</a>. The former requires you to have <a href="http://www.latex-project.org/">LaTeX</a> and <a href="http://www.imagemagick.org/script/index.php">ImageMagick</a> installed, while Equations uses an external server to generate your images.</p>
<p><span id="more-350"></span></p>
<p>There are a few pros and cons to both approaches. If you are using  the Equations plugin, your images won&#8217;t be integrated in your e-mail as  files, but will simply be linked to. You will see the images, of course,  but if the server should crash or no longer be operative, your LaTeX  formulas will become invisible.</p>
<p>This will probably not happen in the nearest future, but if you want  to see your formulas forever, it might be a good idea to use LaTeX It!  instead.</p>
<p>The problem with LaTeX It! is that it requires your computer to have  the right set of packages installed. In Ubuntu this is no problem &#8211; you  just install the packages <strong>texlive-latex-base</strong>, <strong>texlive-binaries</strong> and <strong>imagemagick</strong> using either Synaptic or by issuing the following command in a Terminal:</p>
<pre>sudo apt-get install texlive-latex-base texlive-binaries imagemagick</pre>
<p>In Windows you need to install LaTeX and ImageMagick by using the automatic installers, and you will also need <a href="http://sourceforge.net/projects/ghostscript/">GhostScript</a>. On a Mac, however, I&#8217;ve not yet got the installation to work. You could try to see if everything is installable from <a href="http://www.macports.org/">MacPorts</a>, but I have been unlucky with the converting, and would suggest you use the Equations plugin if everything else fails.</p>
]]></content:encoded>
			<wfw:commentRss>http://dragly.org/2010/09/09/latex-it-and-a-new-blog/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Internal licensing error</title>
		<link>http://dragly.org/2010/08/31/internal-licensing-error/</link>
		<comments>http://dragly.org/2010/08/31/internal-licensing-error/#comments</comments>
		<pubDate>Mon, 30 Aug 2010 22:08:43 +0000</pubDate>
		<dc:creator>Svenn-Arne Dragly</dc:creator>
				<category><![CDATA[Networking]]></category>
		<category><![CDATA[fail]]></category>
		<category><![CDATA[Internet]]></category>
		<category><![CDATA[rdp]]></category>
		<category><![CDATA[rdpv5]]></category>
		<category><![CDATA[remote desktop server]]></category>
		<category><![CDATA[terminal server client]]></category>
		<category><![CDATA[Ubuntu]]></category>
		<category><![CDATA[windows]]></category>

		<guid isPermaLink="false">http://dragly.org/?p=300</guid>
		<description><![CDATA[What do you say? Is there something wrong with the internal license? Well, just change the name of that client, and we'll be alright! <a href="http://dragly.org/2010/08/31/internal-licensing-error/">Continue reading <span class="meta-nav">&#8594;</span></a>]]></description>
			<content:encoded><![CDATA[<p><strong>What do you say? Is there something wrong with the internal license?  Well, just change the name of that client, and we&#8217;ll be alright!</strong></p>
<p>Welcome to the world of connecting an Ubuntu computer to a Windows Server. The later years this has become quite easy, but this summer the University of Oslo has upgraded its servers. And with a new version of Windows, there is bound to be new problems on the way.</p>
<p><span id="more-300"></span></p>
<p><strong><span style="color: #000000;"><span style="font-family: Georgia,&amp;amp;quot;">Update:</span></span></strong> After another search I found the following workaround. Just run the two following commands in 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;">chown</span> root:root ~<span style="color: #000000; font-weight: bold;">/</span>.rdesktop
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">chmod</span> <span style="color: #000000;">500</span> ~<span style="color: #000000; font-weight: bold;">/</span>.rdesktop</pre></div></div>

<p>Now you may connect again without problems. If you want to see the alternative workaround, keep reading.</p>
<p>Connecting to a Windows machine running Remote Desktop is easy in Ubuntu if you use the Terminal Server Client. You just type in whatever you need in this window, and you&#8217;re set to connect:</p>
<p><a href="http://dragly.org/wp-content/uploads/2010/08/Screenshot-Terminal-Server-Client.png" rel="lightbox[300]"><img class="aligncenter size-full wp-image-301" title="Screenshot-Terminal Server Client" src="http://dragly.org/wp-content/uploads/2010/08/Screenshot-Terminal-Server-Client.png" alt="" width="405" height="535" /></a>Notice that &#8220;hmm&#8230;&#8221; in there? Well, that&#8217;s what it is. It&#8217;s a hmm&#8230;</p>
<p>Quite frankly I haven&#8217;t investigated what this Client Hostname is supposed to do, but it turned out to be the solution for today&#8217;s problem. And the problem is that whenever I try to connect to a University terminal server I receive the following error:</p>
<p><a href="http://dragly.org/wp-content/uploads/2010/08/Screenshot-Terminal-Server-Client-Error.png" rel="lightbox[300]"><img class="aligncenter size-full wp-image-302" title="Screenshot-Terminal Server Client Error" src="http://dragly.org/wp-content/uploads/2010/08/Screenshot-Terminal-Server-Client-Error.png" alt="" width="265" height="206" /></a>After a quick search on the Internet, the &#8220;Internal licensing error&#8221; turned out to be a common beast, but with no obvious solution for me. I realized quickly that I was not in a position to do administrative modifications on one of UiO&#8217;s terminal servers, so no luck with those suggestions. Instead I gave the good old trial-and-error approach a try.</p>
<p>Typing in different settings for domain, protocol, display, local resources, keyboard and so forth I came to change the Client Hostname of my Terminal Server Client.</p>
<p>Success!</p>
<p>I connected to the terminal server without any hick-ups.</p>
<p>Once.</p>
<p>Whenever I reconnect now I get the same error as above. However, if I change the Client Hostname to something new, I get back in.</p>
]]></content:encoded>
			<wfw:commentRss>http://dragly.org/2010/08/31/internal-licensing-error/feed/</wfw:commentRss>
		<slash:comments>7</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>
	</channel>
</rss>

