<?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>A Linux User in a Windows World &#187; Linux</title>
	<atom:link href="http://jan.saell.org/blog/archives/category/linux/feed" rel="self" type="application/rss+xml" />
	<link>http://jan.saell.org/blog</link>
	<description>Ramblings from an old Linux guru</description>
	<lastBuildDate>Wed, 08 Sep 2010 07:44:10 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.0.1</generator>
		<item>
		<title>Am I hacked, or Twitter QOAuth problems</title>
		<link>http://jan.saell.org/blog/archives/1159</link>
		<comments>http://jan.saell.org/blog/archives/1159#comments</comments>
		<pubDate>Mon, 06 Sep 2010 13:05:51 +0000</pubDate>
		<dc:creator>jansaell</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://jan.saell.org/blog/?p=1159</guid>
		<description><![CDATA[I have been using twitter. You I know its perhaps sad, but I have started a bit on that road. I have been using the application choqok in Linux to post on my  twitter page. But the last 2 or 3 weeks I have seen a Auth popup asking for my twitter api key/password. And [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-medium wp-image-12" title="English" src="http://jan.saell.org/blog/wp-content/uploads/2008/06/uk.png" alt="" width="18" height="14" /> I have been using twitter. You I know its perhaps sad, but I have started a bit on that road. I have been using the application <em><strong>choqok</strong></em> in Linux to post on my  twitter page.</p>
<p>But the last 2 or 3 weeks I have seen a Auth popup asking for my twitter api key/password. And as I didn&#8217;t know what this was I did not fill in any information.</p>
<p><span id="more-1159"></span>Last week I had some spare time and started to look into this.</p>
<p>First I was a bit worried that I had gotten hacked, or that my Twitter Account was. But after googeling abit about this it seems that twitter has changed the way the it authenticate applications wanting to connect to twitter to post or read tweets. FOr the weeks leeding up to 1/9 2010 they did limit the access to the old way to 5 an hour i think it was and after 1/9 it was totally stop for the old way. You had to start using the new QOAuth way.</p>
<p>So what happened was that choqok was trying to connect more than 5 times and got the reject back and aked me for a new passord.</p>
<p>So I was NOT hacked &#8211; hurray. That&#8217;s good at-least.</p>
<p>But the bad part was that I now did not have an application that worked. Well I could still connect to the twitter website and post there but that was not what I wanted.</p>
<p>So I started to look for solutions.</p>
<p>First there is a new version of choqok out &#8211; not in the repositories so I have to build it from source, but that might work. Download it. Installed cmake as it requires that and then failed on that it did require QOAuth lib and QJson libs that I did not have. OK Skip this for now.</p>
<p>Checked other applications. They did not work, was not available for my ubuntu/kubuntu version or was not able to compile it. Some even crashed for some reason. No luck at all.</p>
<p>So now I have been without a microbloggning client for a while.</p>
<p>But today I came across one that I havent tried before. And that was qTwitter. Its kind of small and does what I want.</p>
<p>I did found it <a href="http://qt-apps.org/content/show.php?content=99087" target="_blank">here</a>, and at the bottom of the page you have a link to the ubuntu .deb packages, including the qoath library package.</p>
<p>So now I can do twitter again <img src='http://jan.saell.org/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://jan.saell.org/blog/archives/1159/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Startrek Online under wine</title>
		<link>http://jan.saell.org/blog/archives/1009</link>
		<comments>http://jan.saell.org/blog/archives/1009#comments</comments>
		<pubDate>Mon, 19 Jul 2010 07:39:30 +0000</pubDate>
		<dc:creator>jansaell</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Startrek Online]]></category>

		<guid isPermaLink="false">http://jan.saell.org/blog/?p=1009</guid>
		<description><![CDATA[Startrek Online has been out for a while now and I have been thinking of perhaps testing it. I read a bit about in on WineHQ and it seemd that it should run under Wine without to much problems. So i decided to have a go at it. Downloading the game I decided to start the thing [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-medium wp-image-12" title="English" src="http://jan.saell.org/blog/wp-content/uploads/2008/06/uk.png" alt="" width="18" height="14" /> Startrek Online has been out for a while now and I have been thinking of perhaps testing it. I read a bit about in on WineHQ and it seemd that it should run under Wine without to much problems. So i decided to have a go at it.</p>
<h2>Downloading the game</h2>
<p>I decided to start the thing by trying the Demo game you can donwload and try.</p>
<p><span id="more-1009"></span>The Demo allows you to create accounts, play through the tutorial mission and the &#8220;Stranded in Space&#8221; mission. This gives a nice test of the game and I wanted to see that I could run the game before committing and buying the game. I did found out that you cant go to the bridge, fly into any other star system (I wanted to visit Vulcan) so the demo is quite restricted, but works well for a test.</p>
<p>So lets get going. Go to <a href="http://startrekonline.com/demo" target="_blank">http://startrekonline.com/demo</a> and clikc on the download/Cryptic to get the download program down.</p>
<p>The downloader is some kind of P2P program and will NOT work under wine. It runs for a while but crashes fairly often. So I did end up running the downloader in Virtualbox and there it run nicely.</p>
<p>Make shure you download the game to a shared drive that you can access from both Virtualbox and from linux. This is because when you have downloaded the complete installer, you wil run that from Wine to do the install.</p>
<p>So when the download is complete, exit the installer and Virtualbox.</p>
<h2>Installing the game</h2>
<p>To install the game run the download/installer from wine when the download is completed.</p>
<p>You need to install some extra parts for Wine before the system and installer will run rightly. If you haven&#8217;t downloaded and installed winetricks there are some instructions <a href="http://wiki.winehq.org/winetricks" target="_blank">here</a>.</p>
<p>Then install ie6 from winetricks:</p>
<pre>sh winetricks ie6</pre>
<p>Then its time to do the install. I ran it with the command:</p>
<pre>env WINEPREFIX="$HOME/.wine" ^Cne explorer /desktop=3,1600x1000 PathToInstaller/STO_Demo_Installer.exe</pre>
<p>This will start the installer, Select the path where you downloaded the files from within Virtualbox and let it verify the files. Install and register the demo account with cryptic/startrek online.</p>
<p>When you run the game, website you will get some javascript errors, but just click yes to continue run javascript on this page and you should get there.</p>
<h2>Fixing the Icon</h2>
<p>The installer will create a desktop icon if you allow it, but I changed the command to run as I wanted the game to run in a virtual desktop and be able to run the game fullscreen in this. So I changed the <strong>Application:Command</strong> to be:</p>
<pre>env WINEPREFIX="$HOME/.wine" wine explorer /desktop=3,1600x1000 "C:\Program Files\Cryptic Studios\Star Trek Online.exe"</pre>
<p>There are a couple of things you need to fox to get the game to run well</p>
<h2>Fixing the sound problem</h2>
<p>Out of the box the sound will not work correctly. At least not for me. So to fox that you need to do the following:</p>
<ul>
<li>Startup winecfg</li>
<li>Click on the &#8220;libraries&#8221; tab</li>
<li>Under where it says &#8220;New override for library&#8221; enter mmdevapi then click add</li>
<li>Select it on the list, click edit, select disable, and click ok.</li>
<li>Click on the main OK to save and exit winecfg</li>
</ul>
<p>This should give you sound in game.</p>
<h2>Fixing the rolling problem</h2>
<p>The keyboard repeat in X is a problem for the game, so when running the game, turn that off before you run the game with (in a terminal window):</p>
<pre>xset r off</pre>
<p>And turn in on after the game is run with</p>
<pre>xset r on</pre>
<p>That will take care of that</p>
<h2>Game setting</h2>
<p>The only thing left now is to change the graphics options in game to &#8220;low&#8221; and set the window to run in full screen mode (remember that you are running in a virtual desktop so the size is what you specify in the /desktop part on the command line)</p>
<p>Done!!!!!</p>
<p>You can now test play the game. If you later decides to try out the full game, you only need to get the Download key to convert the install to a full game. No need to reinstall the game. <img src='http://jan.saell.org/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://jan.saell.org/blog/archives/1009/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Facebook chat from linux</title>
		<link>http://jan.saell.org/blog/archives/996</link>
		<comments>http://jan.saell.org/blog/archives/996#comments</comments>
		<pubDate>Sun, 04 Jul 2010 18:41:47 +0000</pubDate>
		<dc:creator>jansaell</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://jan.saell.org/blog/?p=996</guid>
		<description><![CDATA[I have a lot of friends and family on facebook. And facebook has a nice chat function, but the problem is that its only giving off a small sound when someone types to me and i usually dowt have the facebook up so I usually misset. But during the week I came a cross a [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-medium wp-image-12" title="English" src="http://jan.saell.org/blog/wp-content/uploads/2008/06/uk.png" alt="" width="18" height="14" /> I have a lot of friends and family on facebook. And facebook has a nice chat function, but the problem is that its only giving off a small sound when someone types to me and i usually dowt have the facebook up so I usually misset. But during the week I came a cross a site talking about how to access facebook from any XMPP or Jabber enabled chat client. And as Kopete can use that I set it up and it works very nice.</p>
<p><span id="more-996"></span>So here are the instructions:</p>
<p>Start by going onto facebook, login as usuall and go to <a href="http://www.facebook.com/sitetour/chat.php" target="_blank">http://www.facebook.com/sitetour/chat.php</a></p>
<p>There you can click on Other Windows/Mac/Linux.</p>
<p>And you will get a popup shoing you the login, and other information you need.</p>
<p>Open up Kopete and Click “Settings” in the top menu and then click “Configure”.</p>
<p>Click on “Accounts”, and then click “Add Account…”</p>
<p>Select “Jaber (XMPP, Jabber, Google talk)” from the list of services. Then click on next.</p>
<p>Use the <strong>Jabber ID</strong> you got from the chat page, and type it into the Jabber ID field.</p>
<p>Click on <strong>Remember Password</strong> and type in your normal Facebook password. Then click on next.</p>
<p>Under Connection preferences, leave all three options unchecked.</p>
<p>ANd no clikc on OK and you should be able to connect.</p>
<p>Be warned that you will see all you facebook friends so it might give you a lot of new persons in kopete.</p>
]]></content:encoded>
			<wfw:commentRss>http://jan.saell.org/blog/archives/996/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Java versus .Net</title>
		<link>http://jan.saell.org/blog/archives/989</link>
		<comments>http://jan.saell.org/blog/archives/989#comments</comments>
		<pubDate>Tue, 29 Jun 2010 18:49:29 +0000</pubDate>
		<dc:creator>jansaell</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://jan.saell.org/blog/?p=989</guid>
		<description><![CDATA[I did came across this video in another blog today and can help sharing it with you all:]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-medium wp-image-12" title="English" src="http://jan.saell.org/blog/wp-content/uploads/2008/06/uk.png" alt="" width="18" height="14" /> I did came across this video in another blog today and can help sharing it with you all:<br />
<object width="560" height="340"><param name="movie" value="http://www.youtube.com/v/fzza-ZbEY70&#038;hl=en_US&#038;fs=1&#038;"></param><param name="allowFullScreen" value="true"></param><param name="allowscriptaccess" value="always"></param><embed src="http://www.youtube.com/v/fzza-ZbEY70&#038;hl=en_US&#038;fs=1&#038;" type="application/x-shockwave-flash" allowscriptaccess="always" allowfullscreen="true" width="560" height="340"></embed></object></p>
]]></content:encoded>
			<wfw:commentRss>http://jan.saell.org/blog/archives/989/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Editing m4a with easytag</title>
		<link>http://jan.saell.org/blog/archives/986</link>
		<comments>http://jan.saell.org/blog/archives/986#comments</comments>
		<pubDate>Tue, 22 Jun 2010 07:56:03 +0000</pubDate>
		<dc:creator>jansaell</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://jan.saell.org/blog/?p=986</guid>
		<description><![CDATA[Today I was fixing som of my audio-books. I have a way of converting them from audible to mp3 and then to m4b, as I have described here. But today i could not edit the tags. I have done this a number of times before so I was a bit perplexed over why it just now [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-medium wp-image-12" title="English" src="http://jan.saell.org/blog/wp-content/uploads/2008/06/uk.png" alt="" width="18" height="14" /> Today I was fixing som of my audio-books. I have a way of converting them from audible to mp3 and then to m4b, as I have described <a href="/blog/archives/526" target="_blank">here</a>.</p>
<p>But today i could not edit the tags.</p>
<p><span id="more-986"></span>I have done this a number of times before so I was a bit perplexed over why it just now stopped working.</p>
<p>But I found the problem. When upgrading to 9.10 aparently i got the &#8220;normal&#8221; easytag packages installaed, and to be able to tag m4a you need the easytag-aac packages.</p>
<p>So install it with:</p>
<pre>sudo apt-get install easytag-aac</pre>
<p>and all works as it should again</p>
]]></content:encoded>
			<wfw:commentRss>http://jan.saell.org/blog/archives/986/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Remote desktop on kubuntu</title>
		<link>http://jan.saell.org/blog/archives/949</link>
		<comments>http://jan.saell.org/blog/archives/949#comments</comments>
		<pubDate>Mon, 31 May 2010 14:52:09 +0000</pubDate>
		<dc:creator>jansaell</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://jan.saell.org/blog/?p=949</guid>
		<description><![CDATA[So Im down at the summer house, but before I left Stockholm i needed to fix remote access to my home system. Well I have had access via ssh to my home system regardless where I am but I would prefer so really control my desktop on my home server from anywhere. So I started looking into how to do this. Preferable secure and safe and all [...]]]></description>
			<content:encoded><![CDATA[<div>
<p><img title="English" src="http://jan.saell.org/blog/wp-content/uploads/2008/06/uk.png" alt="" width="18" height="14" /> So Im down at the summer house, but before I left Stockholm i needed to fix remote access to my home system.</p>
<p>Well I have had access via <em><strong>ssh</strong></em> to my home system regardless where I am but I would prefer so really control my desktop on my home server from anywhere.</p>
<p><img title="More..." src="http://jan.saell.org/blog/wp-includes/js/tinymce/plugins/wordpress/img/trans.gif" alt="" />So I started looking into how to do this. Preferable secure and safe and all that. <img src='http://jan.saell.org/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<p>So my home system is a kubuntu 8,04 and yes I know its kind of old but i don&#8217;t want to upgrade it yet.</p>
<p>So i first started out trying the built in version <strong><em>krfb</em></strong>. Well regardless of what I tried I could not get it to work. I could connect to the system but as soon as I did that it crashed. So i investigated a bit and found a number of similar post out there so its not unheard of.</p>
<p>So what to do?</p>
<p>Well the solution is to remove that and get <strong><em>x11vnc</em></strong> working instead.</p>
<p>So I installed this with apt-get:</p>
<pre>sudo apt-get install x11vnc</pre>
<p>Then logout and restart the Xserver just to make sure all things are loaded correctly. Just to be paranoid I setup a password with <strong><em>vncpasswd</em><em> </em><span style="font-weight: normal;">to be used so that its harder to login.</span></strong></p>
<p><strong><span style="font-weight: normal;">Then you can login to the system and forward the defalt vnc port (5900) to the remote machine, start x11vnc on that system and it will work.</span></strong></p>
<p>So on your local system start the ssh:</p>
<pre>ssh -L 5900:localhost:5900 username@10.10.10.10</pre>
<p>When youhave logged in to your remote system, fire up x11vnc:</p>
<pre>x11vnc -usepw -display :0</pre>
<p>And back on you local system in another window start up vncviewer:</p>
<pre>vncviewer localhost::5900</pre>
<p>and you should get a copy of your remote desktop.</p>
</div>
]]></content:encoded>
			<wfw:commentRss>http://jan.saell.org/blog/archives/949/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>padevchooser won&#8217;t start</title>
		<link>http://jan.saell.org/blog/archives/945</link>
		<comments>http://jan.saell.org/blog/archives/945#comments</comments>
		<pubDate>Sat, 29 May 2010 18:00:59 +0000</pubDate>
		<dc:creator>jansaell</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://jan.saell.org/blog/?p=945</guid>
		<description><![CDATA[Today I&#8217;m down it the summerhouse and as im mowing lawns I decided to convert some of my audiobooks. So I fired up Virtualbox and started my itunes in there. Then i decided to check the route to my spekaers and clicked on the pulseaudio applet. But wait its not in the taskbar. Not to much to [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-medium wp-image-12" title="English" src="http://jan.saell.org/blog/wp-content/uploads/2008/06/uk.png" alt="" width="18" height="14" /> Today I&#8217;m down it the summerhouse and as im mowing lawns I decided to convert some of my audiobooks.</p>
<p>So I fired up Virtualbox and started my itunes in there. Then i decided to check the route to my spekaers and clicked on the pulseaudio applet. But wait its not in the taskbar.</p>
<p><span id="more-945"></span>Not to much to worry about. Chose it from the menu and start it. And it won&#8217;t start up. What the f..ck.</p>
<p>So I fired up a terminal windows and tried to start it from there. And the error message I got was:</p>
<pre>** (padevchooser:9169): WARNING **: pa_browser_new() failed.</pre>
<p>OK &#8211; Not to obvious. Google to teh rescue. And after reading 2 or 3 pages or different things I found the problem.</p>
<p>Its the <em>avahi-daemon</em> that isn&#8217;t started. And what is avahi then. Well its a deamon that helps you discover printer, people tochat with and so on, on the local network. And for some reason it wasn&#8217;t started.</p>
<p>So i checked the status of ith with the comand:</p>
<pre>sudo service avahi-daemon status</pre>
<p>And got back:</p>
<pre>avahi-daemon stop/waiting</pre>
<p>I then started it with:</p>
<pre>sudo service avahi-daemon start</pre>
<p>(If you whant to check that its running after that you can do status again and will get <em>avahi-daemon start/running, process 9228</em> as a result)</p>
<p>And now <em>padevchooser</em> starts as it should.</p>
<p>If you still has a problem starting up avahi-daemon, you could trie to remove the status/lock file with:</p>
<pre>sudo rm /var/run/avahi-daemon/disabled-for-unicast-local</pre>
<p>That might help. and the do the start again.</p>
]]></content:encoded>
			<wfw:commentRss>http://jan.saell.org/blog/archives/945/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Upgrade to Kubuntu Karmic (9.10) from 8.04 – Part 7 – Fixing phpmyadmin</title>
		<link>http://jan.saell.org/blog/archives/869</link>
		<comments>http://jan.saell.org/blog/archives/869#comments</comments>
		<pubDate>Thu, 29 Apr 2010 15:53:06 +0000</pubDate>
		<dc:creator>jansaell</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://jan.saell.org/blog/?p=869</guid>
		<description><![CDATA[﻿In an older post here i wrote about changing the session lifetime in phpmyadmin so that I did not have to login every 30 minutes or so. It worked a bit but stopped to work after some time. When I upgraded to a new veriosn 9.10. I actually got a warning from phpmyadmin. To fix the logout [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-medium wp-image-12" title="English" src="http://jan.saell.org/blog/wp-content/uploads/2008/06/uk.png" alt="" width="18" height="14" /> ﻿In an older post <a href="http://jan.saell.org/blog/archives/383" target="_blank">here</a> i wrote about changing the session lifetime in phpmyadmin so that I did not have to login every 30 minutes or so. It worked a bit but stopped to work after some time.</p>
<p>When I upgraded to a new veriosn 9.10. I actually got a warning from phpmyadmin.</p>
<p><span id="more-869"></span></p>
<p>To fix the logout problem i added the following line to <em>/etc/phpmyadmin/config.inc.php</em> file:</p>
<pre>$cfg['LoginCookieValidity'] = 3600 * 4; // 4 hours</pre>
<p>This will set the valid time for login to 4 hours – that shoud be ok for me atleast. But that exseeds the max time for a cookie in php so you have to make a change to php.ini also. Change <em>﻿/etc/php5/apache2/php.ini</em> with the command:</p>
<pre>﻿sudo vi /etc/php5/apache2/php.ini</pre>
<p>and add/change the line</p>
<pre>﻿session.gc_maxlifetime</pre>
<p>to</p>
<pre>session.gc_maxlifetime = 14400</pre>
<p>This will set it to teh same as the phpmyadmin cookie validity and it will now work.</p>
]]></content:encoded>
			<wfw:commentRss>http://jan.saell.org/blog/archives/869/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Virtualbox and Lucid Lynx</title>
		<link>http://jan.saell.org/blog/archives/907</link>
		<comments>http://jan.saell.org/blog/archives/907#comments</comments>
		<pubDate>Thu, 29 Apr 2010 07:13:35 +0000</pubDate>
		<dc:creator>jansaell</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[open-source]]></category>

		<guid isPermaLink="false">http://jan.saell.org/blog/?p=907</guid>
		<description><![CDATA[I found this litte blogpost today &#8211; about how to install the virtual box guest extensions in lucid lynx. This is good if you whant to run a test of lucid in you normal machine.]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-medium wp-image-12" title="English" src="http://jan.saell.org/blog/wp-content/uploads/2008/06/uk.png" alt="" width="18" height="14" /> I found this litte <a href="http://blog.brettalton.com/2010/04/28/installing-guest-additions-in-virtualbox-for-an-ubuntu-server-guest/" target="_blank">blogpost</a> today &#8211; about how to install the virtual box guest extensions in lucid lynx. This is good if you whant to run a test of lucid in you normal machine.</p>
]]></content:encoded>
			<wfw:commentRss>http://jan.saell.org/blog/archives/907/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Upgrade to Kubuntu Karmic (9.10) from 8.04 – Part 6 – Fixing thunderbird openning links</title>
		<link>http://jan.saell.org/blog/archives/872</link>
		<comments>http://jan.saell.org/blog/archives/872#comments</comments>
		<pubDate>Wed, 28 Apr 2010 07:45:31 +0000</pubDate>
		<dc:creator>jansaell</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://jan.saell.org/blog/?p=872</guid>
		<description><![CDATA[One other thing that really enoyed me when moving over to 9.10 was that links in thunderbird open the wrong browser. As firefox is a nice browser but it takes for ever to start, I have started to use chrome as my web-browser. and I am fairly happy with it. Its stable and works well. But when I [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-medium wp-image-12" title="English" src="http://jan.saell.org/blog/wp-content/uploads/2008/06/uk.png" alt="" width="18" height="14" /> One other thing that really enoyed me when moving over to 9.10 was that links in thunderbird open the wrong browser. As firefox is a nice browser but it takes for ever to start, I have started to use chrome as my web-browser. and I am fairly happy with it. Its stable and works well. But when I am running thunderbird (mail-client) and get a mail with a link in, I would prefere that it open chrome. As it was it opens firefox.</p>
<p><span id="more-872"></span>After googleing something about it i found the solution. First you have to make some changes to thunderbird.</p>
<p>Go into the config editor:</p>
<pre>Edit -&gt; Preferences -&gt; Advanced -&gt; Config Editor</pre>
<p>Then adding two new config strings:</p>
<p>network.protocol-handler.app.http<br />
network.protocol-handler.app.https</p>
<p>and setting them both to the value &#8216;x-www-browser&#8217;.</p>
<p>That will tell thunderbird to use the debian alternative system for what to start when following a link. So when this done it will now open konqurer as the broswer &#8211; not really what I wanted.</p>
<p>No we need to fix the alternative system. This is done with the command:</p>
<pre>﻿sudo update-alternatives --verbose --config x-www-browser</pre>
<p>and select chrome as you default bowser. For me that was number 2. And now thunderbird will open the links in chrome.</p>
]]></content:encoded>
			<wfw:commentRss>http://jan.saell.org/blog/archives/872/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Upgrade to Kubuntu Karmic (9.10) from 8.04 – Part 5 &#8211; Fixing Vim</title>
		<link>http://jan.saell.org/blog/archives/862</link>
		<comments>http://jan.saell.org/blog/archives/862#comments</comments>
		<pubDate>Tue, 27 Apr 2010 13:17:17 +0000</pubDate>
		<dc:creator>jansaell</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://jan.saell.org/blog/?p=862</guid>
		<description><![CDATA[One problem I had with the change over to 9.10 was that when i started to edit a file, the highlighting of syntax was very bad and I could not see what was there. Yellow on a black background is not that god, so I started to switch over to white on black as my console colours. But I don&#8217;t like that. [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-medium wp-image-12" title="English" src="http://jan.saell.org/blog/wp-content/uploads/2008/06/uk.png" alt="" width="18" height="14" /> One problem I had with the change over to 9.10 was that when i started to edit a file, the highlighting of syntax was very bad and I could not see what was there. Yellow on a black background is not that god, so I started to switch over to white on black as my console colours. But I don&#8217;t like that. I prefers black on white.</p>
<p><span id="more-862"></span>So after some googeling I found what was the problem. And its that vim guesses what colour schema you have and it guesses wrong.</p>
<p>Fix this my adding this line to you <em>.vimrc</em> file in you home directory.</p>
<pre>﻿set background=light</pre>
<p>This will make the syntax highlighting right for viewing on a light background.</p>
]]></content:encoded>
			<wfw:commentRss>http://jan.saell.org/blog/archives/862/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Upgrade to Kubntu Karmic (9.10) from 8.04 – Part 3 – Wine and EVE Online and pulseaudio</title>
		<link>http://jan.saell.org/blog/archives/881</link>
		<comments>http://jan.saell.org/blog/archives/881#comments</comments>
		<pubDate>Sun, 18 Apr 2010 12:29:01 +0000</pubDate>
		<dc:creator>jansaell</dc:creator>
				<category><![CDATA[EVE-Online]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://jan.saell.org/blog/?p=881</guid>
		<description><![CDATA[So the next item on the upgrade list is to get sound and wine to work. Yes &#8211; I&#8217;m kind of addicted to EVE Online and i have to get that work. In the old system I had pulseaudio to work. I really like that as it handles multiple input and outputs and you can even adjust volumes and [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-medium wp-image-12" title="English" src="http://jan.saell.org/blog/wp-content/uploads/2008/06/uk.png" alt="" width="18" height="14" /> So the next item on the upgrade list is to get sound and wine to work. Yes &#8211; I&#8217;m kind of addicted to EVE Online and i have to get that work.</p>
<p>In the old system I had pulseaudio to work. I really like that as it handles multiple input and outputs and you can even adjust volumes and individual applications. So its a really god system. In the old system (8.04) it worked very well, but tended to hang some times, and I had to kill the pulseaudion daemon and restart it from time to time.</p>
<p><span id="more-881"></span></p>
<p>In 9.10 pulseaudion is the default use and I like that. Its very stable and works well. Unfortunately some applications is not OK with pulseaudio and there is some problems getting them to work.</p>
<p>Things that works well is:</p>
<ul>
<li>System sounds</li>
<li>Skype &#8211; latest version 2.1.0.81 has pulseaudio support</li>
<li>Audacity audion editor works now well with pulse</li>
<li>Flash via Chrome or Firefox works ok</li>
<li>Virtualbox works very well</li>
</ul>
<p>Not working:</p>
<ul>
<li>Realaudio player</li>
<li>IP Telephone &#8211; ekiga can work by using the headset without pulseaudio</li>
<li>VMWare &#8211; but im not using sound there</li>
<li>Wine out of the box</li>
</ul>
<p>So most is working but I need to get wine working.</p>
<p>I hate the fact that when you go out and surf for a problem with any application and pulseaudion the top 10 things you get is &#8220;Oh i solved the problem by uninstalling pulseaudio and now everything is working&#8221;. That is not a solution for me. I want pulseaudion to be able to handle multiple streams and so on and going back to an older system is a bit backwards in my opinion. Fix the bugs and get the new things to work instead.</p>
<p>In the old system I had wine working with padsp &#8211; the pulseaudion OSS wrapper. And it was working well. But in this new OS its not working well at all. <img src='http://jan.saell.org/blog/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>After googeling and checking I found the Winepulse project. Apparently someone in Canada did make a sound backend for wine that can talk to the pulseaudio server. Unfortunately it will not be included in the normal wine as the wine people are rewriting wine to use OpenAL and that has pulseaudio build in so it will be available when that is in. When that now will happen.</p>
<p>So in the mean time you have to use winepulse patch or download from their archive.</p>
<p>So did it work &#8211; YES &#8211; perfectly and without any problem.</p>
<p>So what did I do.</p>
<ul>
<li>First i removed the old wine installation.</li>
<li>Then i disabled the winehw archine from the source list</li>
<li>And added Neil Wilson’s PPA: <a href="https://launchpad.net/~neil-aldur/+archive/ppa">https://launchpad.net/~neil-aldur/+archive/ppa</a></li>
<li>And installed the <em>wine1.2 &#8211; 1.1.31.oubuntu+winepulse0.33</em> package</li>
</ul>
<p>And now I happily can play my eve. Almost!!!</p>
<p>There is a bug in the ubuntu kernel that apparently locks up eve when you start it up. There are some fixes but I changed the start-up icon to do this instead of  anything else. What is does is change the <em>bitsCancelled=1</em> to <em>bitsCanccelled=0</em> in the prefs.ini file before starting up eve. And this works 95% of all cases.</p>
<pre>env WINEPREFIX="/home/xxx/.wine" sed -i -e '/bitsCancelled/ s/1/0/'
 "/home/xxx/.wine/drive_c/Program Files/CCP/EVE/cache/prefs.ini"
&amp;&amp; wine explorer /desktop=0,1600x1000 "C:\Program Files\CCP\EVE\eve.exe"  /end /LUA:OFF</pre>
<p>It shuld be all on one line. And if you have multiple start-up for different clients you need to change them to. Don&#8217;t forget to change the xxx to you home directory.</p>
<p>There are a few times when the startup dont work for me. By doing a <em>wineboot -k </em>command and then start again usually works then.</p>
<p>Now I can play eve as I whant.</p>
]]></content:encoded>
			<wfw:commentRss>http://jan.saell.org/blog/archives/881/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Upgrade to Kubntu Karmic (9.10) from 8.04 – Part 2 &#8211; Nvidia</title>
		<link>http://jan.saell.org/blog/archives/867</link>
		<comments>http://jan.saell.org/blog/archives/867#comments</comments>
		<pubDate>Sun, 11 Apr 2010 16:59:24 +0000</pubDate>
		<dc:creator>jansaell</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://jan.saell.org/blog/?p=867</guid>
		<description><![CDATA[So after my problems with the upgrade and that not all packages worked it was time to get the screen to work. When upgrading i lost my accelerated nvidia driver, but that was kind of expected. So how to fix it? Well I went in to my normal download directory and tried to rebuild the [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-medium wp-image-12" title="English" src="http://jan.saell.org/blog/wp-content/uploads/2008/06/uk.png" alt="" width="18" height="14" /> So after my problems with the upgrade and that not all packages worked it was time to get the screen to work.</p>
<p>When upgrading i lost my accelerated nvidia driver, but that was kind of expected. So how to fix it?</p>
<p><span id="more-867"></span></p>
<p>Well I went in to my normal download directory and tried to rebuild the nvidia drover from there. I was running 190 and nvidia is up to 195 so i did not think it was to far out. It worked kind of and I copied the xorg config file back ffrom jy old copy and tried to reboot. No luck.</p>
<p>I got the message that no driver was found &#8211; dam. And had go to text mode.</p>
<p>So I started to see if I could find the problem. I did try a number of different version, installing the latest, reverting back to and old one. No luck.</p>
<p>And finally i found it. There where 3 files left in /etc/modprobe.d &#8211; probably left since the upgrade but they seems to be blocking modprobe to work and being able to install the new nvidea driver. So here s the solution:</p>
<h2>Fix for installing latest nvideadriver</h2>
<p>Remove ﻿<em>alas-base</em>, <em>blacklist-modem</em> and <em>lrm-video</em> from <em>/etc/modprobe.d</em>:</p>
<pre>sudo rm /etc/modprobe.d/alas-base /etc/modprobe.d/blacklist-modem /etc/modprobe.d/lrm-video</pre>
<p>Then add the new ubuntu repository from nvidea with the latest driver. Add</p>
<pre>ppa:nvidia-vdpau/ppa</pre>
<p>as a new software source (in System-&gt;Setting-&gt;System Setting-&gt;Settings-&gt;Software Source), and you should be able to select the new nvidea drive (195) and install that.</p>
<p>This worked for me.</p>
]]></content:encoded>
			<wfw:commentRss>http://jan.saell.org/blog/archives/867/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Upgrade to Kubntu Karmic (9.10) from 8.04 &#8211; Part 1</title>
		<link>http://jan.saell.org/blog/archives/846</link>
		<comments>http://jan.saell.org/blog/archives/846#comments</comments>
		<pubDate>Mon, 05 Apr 2010 12:02:20 +0000</pubDate>
		<dc:creator>jansaell</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://jan.saell.org/blog/?p=846</guid>
		<description><![CDATA[So its time to take the plunge and upgrade. I will report what i found when i upgraded till Kubuntu 9.10 from my old 8.04 this week. OBS &#8211; Do not start the upgrade before you read this part. It might fail totally. First of all &#8211; make a backup. I was going to change my hard drive, [...]]]></description>
			<content:encoded><![CDATA[<p><img title="English" src="http://jan.saell.org/blog/wp-content/uploads/2008/06/uk.png" alt="" width="18" height="14" /> So its time to take the plunge and upgrade. I will report what i found when i upgraded till Kubuntu 9.10 from my old 8.04 this week.</p>
<h2>OBS &#8211; Do not start the upgrade before you read this part. It might fail totally.</h2>
<p><span id="more-846"></span>First of all &#8211; make a backup. I was going to change my hard drive, so i used the command dd_resuce to clone my harddrive to a new drive. I pluged in my new drive as a USB2 device &#8211; yes i have a nice cable for that and issue the command:</p>
<pre>sudo dd_rescue -v /dev/sda /dev/sdc</pre>
<p><strong><em>OBS!!</em></strong> Make sure you check /var/log/messages so you ARE SURE that /dev/sdc is the right device for you. If you do this to the wrong disk it will overwrite the destination disk without any problem and destroy the content.</p>
<p>After this was done i removed my old boot disk and installed this new one and booted up. No problem. Started the upgrade and that was when things when wrong.</p>
<p>2 packages that I had installed on the old system did make the upgrade fail, or atleast one of them.</p>
<p>The 2 packages that was the problem was <em>flashplugin-nonfree</em> and <em>libgl1-mesa-dev</em>.</p>
<p>So i had to go back and start all over again. The new installatin was so screwed up that you could not remove the flashplugin-nonfree, and you could not fix it so I started over, copied the disk, removed the packages and started over and now it works.</p>
<p>So here are the tips what to do before you start.</p>
<h2>Before Upgrading</h2>
<p>1. First and formost, make a backup, or several.<br />
2. if you have installed flashplugin-nonfree packages in the old system, please remove that.</p>
<pre>sudo apt-get remove﻿ nspluginwrapper flashplugin-nonfree</pre>
<p>3. If you have installed libgl1-mesa-dev in the old system, please remove that.</p>
<pre>sudo apt-get remove libgl1-mesa-dev</pre>
<p>Then you can go ahead and start the upgrade. And you should in an hour or so have a new kde4 system up and running.</p>
<p>Things to go over in the following parts (And the status of it):</p>
<ul>
<li>Get the bluetooth mouse to work (working).</li>
<li>Get the sound to work (working).</li>
<li>Get the nvidia advanced driver to work (working)</li>
<li>Get virtualbox to work (working)</li>
<li>Get vmware to work (working)</li>
<li>Get palm sync to work (working)</li>
<li>Get ipod sync to work (partly working)</li>
</ul>
<p>I will now follow up this in more parts in the comming week. Most was easy to get working even of the nvidia driver took 1 days to fix due to some remaning stuff from old installation.</p>
]]></content:encoded>
			<wfw:commentRss>http://jan.saell.org/blog/archives/846/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Version fascists</title>
		<link>http://jan.saell.org/blog/archives/839</link>
		<comments>http://jan.saell.org/blog/archives/839#comments</comments>
		<pubDate>Sat, 03 Apr 2010 13:59:56 +0000</pubDate>
		<dc:creator>jansaell</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://jan.saell.org/blog/?p=839</guid>
		<description><![CDATA[So what is a version fascist. Well they come in different flavors. First we have the package maintainer fascists. These are the presons that make computer packages for different distributions. And they specify the absolute latest version of everything, regardless of its needed or now. I have a problem with this as its hard to install stuff [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-medium wp-image-12" title="English" src="http://jan.saell.org/blog/wp-content/uploads/2008/06/uk.png" alt="" width="18" height="14" /> So what is a version fascist. Well they come in different flavors. First we have the package maintainer fascists. These are the presons that make computer packages for different distributions. And they specify the absolute latest version of everything, regardless of its needed or now. I have a problem with this as its hard to install stuff that way.</p>
<p><span id="more-839"></span>I have no problems with a program that requires a specific version of another package if you have a reason for it. For instance i am using opendnssec for signing and handling keys for dnssec and it requires sqlite version 3.3.9 or newer and the reason for this is that they have found bugs in the older versions. And then I don&#8217;t have any problems with that. Its a reason and its documented.</p>
<p>I also had an experience with a web designer for one other of my customers this week. This is the second flavor of version fascist. They had make a new website for my customer and on that page there fas a flash part for just changing images. You can do this in many ways but flash is one way. I think its overkill but its an OK option. But they demanded the latest version (or at least a newer version of flash that i had on my machine). And this for no reason.</p>
<p>Definitely bad. So i hope that people starts paying a bit attention to what they are demanding for websites and for packages.</p>
]]></content:encoded>
			<wfw:commentRss>http://jan.saell.org/blog/archives/839/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Ubuntu One Music Store</title>
		<link>http://jan.saell.org/blog/archives/831</link>
		<comments>http://jan.saell.org/blog/archives/831#comments</comments>
		<pubDate>Thu, 25 Mar 2010 06:52:05 +0000</pubDate>
		<dc:creator>jansaell</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://jan.saell.org/blog/?p=831</guid>
		<description><![CDATA[The open source is moving over to sell music also. Aparently there is work on getting a music store like itunes for ubuntu on its way. There you will be able to by mp3 files. Not correptes and locked down music files like some of the music on itunes. parently its in beta test face [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-medium wp-image-12" title="English" src="http://jan.saell.org/blog/wp-content/uploads/2008/06/uk.png" alt="" width="18" height="14" /> The open source is moving over to sell music also. Aparently there is work on getting a music store like itunes for ubuntu on its way. There you will be able to by mp3 files. Not correptes and locked down music files like some of the music on itunes.</p>
<p>parently its in beta test face acording ot <a href="http://fridge.ubuntu.com/node/2000" target="_blank">ubuntu news</a>.</p>
<p>A god project i think.</p>
]]></content:encoded>
			<wfw:commentRss>http://jan.saell.org/blog/archives/831/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Middle mouse button mania</title>
		<link>http://jan.saell.org/blog/archives/779</link>
		<comments>http://jan.saell.org/blog/archives/779#comments</comments>
		<pubDate>Wed, 17 Feb 2010 14:01:21 +0000</pubDate>
		<dc:creator>jansaell</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://jan.saell.org/blog/?p=779</guid>
		<description><![CDATA[I have an external bluetooth mouse that I have been using for ages. Its a microsoft intelimous with a number of buttons and a mouse wheel. And I realy love it &#8211; except fo one small thing. And its not realy the mouse problem, but the mouse driver in linux. I use the wheel to [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-medium wp-image-12" title="English" src="http://jan.saell.org/blog/wp-content/uploads/2008/06/uk.png" alt="" width="18" height="14" /> I have an external bluetooth mouse that I have been using for ages. Its a microsoft intelimous with a number of buttons and a mouse wheel.</p>
<p>And I realy love it &#8211; except fo one small thing. And its not realy the mouse problem, but the mouse driver in linux.</p>
<p><span id="more-779"></span></p>
<p>I use the wheel to scroll quite frequently and I also is very used to use &#8220;the third&#8221; button as paste in X. And I use left and right click at the same time to emulate the 3:rd button. And that works perfectly except for those times when I managed to click the wheel button while scrolling. This happens some times and the the driver goes</p>
<p>- Oh &#8211; he has a third buttong &#8211; better stop using the emulation then</p>
<p>And there is no way to get back to the emulation. Except for rebooting, or atleast logout, restart X server and in again.</p>
<p>And today my patience ran out &#8211; I did start to read about the config options in xorg.conf to see what I could do.</p>
<p>And i found a quick and easy way:</p>
<p>Emulate a left click with the middle button instead.</p>
<p>So here it is &#8211; add the following line to the mouse config part in xorg.conf:</p>
<pre>Option         "ButtonMapping" "1 1 3 4 5"</pre>
<p>That makes the second button emulate left click and the driver never sees a button 2 and never disable the emulation mode.</p>
<p>Simple &#8211; and easy when you know how to do it!</p>
]]></content:encoded>
			<wfw:commentRss>http://jan.saell.org/blog/archives/779/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Penguins dont need navigators!</title>
		<link>http://jan.saell.org/blog/archives/735</link>
		<comments>http://jan.saell.org/blog/archives/735#comments</comments>
		<pubDate>Wed, 06 Jan 2010 18:29:22 +0000</pubDate>
		<dc:creator>jansaell</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://jan.saell.org/blog/?p=735</guid>
		<description><![CDATA[Yesturday is was out and moved my car as we have date parking and one are not alowed to have the car parked outside. I also had to do some small shopping, so I went to the shoppingmall and bought what I was missing. On my way out I thought about getting a gps navigator [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-medium wp-image-12" title="English" src="http://jan.saell.org/blog/wp-content/uploads/2008/06/uk.png" alt="" width="18" height="14" /> Yesturday is was out and moved my car as we have date parking and one are not alowed to have the car parked outside.</p>
<p>I also had to do some small shopping, so I went to the shoppingmall and bought what I was missing.</p>
<p>On my way out I thought about getting a gps navigator for the car. I want one for 1 reason &#8211; warnings for speed cameras.</p>
<p>So i have a few requirements:</p>
<ul>
<li>Speed camera warning</li>
<li>Updating of speed cameras</li>
<li>Road hinderence and congestion update (I dont remember the name for it) by radio</li>
<li>and should work with linux.</li>
</ul>
<p>And most points where not a big issue except the last one. None of the ones they had in the store works with linux.</p>
<p>And tomtom is the most interesting of them. The machine itself is running a linux system, and they have even released the os or atleast the kernel as open source, but to run the updating proram on linux &#8211; no way.</p>
<p>So for now its no luck for me to get one. I have to look more. <img src='http://jan.saell.org/blog/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://jan.saell.org/blog/archives/735/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Pingviner behöver ingen navigator!</title>
		<link>http://jan.saell.org/blog/archives/732</link>
		<comments>http://jan.saell.org/blog/archives/732#comments</comments>
		<pubDate>Wed, 06 Jan 2010 17:54:13 +0000</pubDate>
		<dc:creator>jansaell</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://jan.saell.org/blog/?p=732</guid>
		<description><![CDATA[I går var jag ute och flyttade på bilen (det är städdag/plogdag hos oss på tisdagar) och jag hade bilen parkerad lite bort där dom har städ/plogdag på onsdagar, så jag var tvungen att ge mej ut i kylan. Jag hade också tänkt mej lite grillad kyckling till kvällen men den jag köpte hade datumen [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-medium wp-image-11" title="Svenska" src="http://jan.saell.org/blog/wp-content/uploads/2008/06/se.png" alt="" width="18" height="14" /> I går var jag ute och flyttade på bilen (det är städdag/plogdag hos oss på tisdagar) och jag hade bilen parkerad lite bort där dom har städ/plogdag på onsdagar, så jag var tvungen att ge mej ut i kylan.</p>
<p>Jag hade också tänkt mej lite grillad kyckling till kvällen men den jag köpte hade datumen gått ut på så den fick jag slänga. Jag är ganska liberal med att tolka sista förbrukningsdatum utom när det gäller kyckling. Den kan man ju bli så dålig av. Så det blev en liten tripp till affären. Handlade lite grillat och på vägen ut tänkte jag att jag går förbi och kolla vilka navigatorer dom har på OnOff.</p>
<p>Jag vill ha en navigator av 1 anledning och det är att få varningar om fartkameror. Så givetvis ska den uppdatera detta, så mina önskemål är:</p>
<ul>
<li>Varning för fartkameror</li>
<li>Uppdatering av fartkameror</li>
<li>Gärna uppdatering via radio om hinder</li>
<li>Och skall fungera med linux</li>
</ul>
<p>Och det flesta sakerna var inga problem utom detta lilla att jag vill köra linux. Ingen av navigatorerna fungerar med Linux.</p>
<p>Tomtom är extra interesant för maskinen i sig själv kör ett linuxsystem, dom har till och med publicera tos&#8217;et eller kerneln som open source, men att köra uppdaterings programmen på linux &#8211; inte.</p>
<p>Så för nu är det inte möjligt för mej att skaffa en verkar det som. Jag får väl leta mera. <img src='http://jan.saell.org/blog/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
]]></content:encoded>
			<wfw:commentRss>http://jan.saell.org/blog/archives/732/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Setting up ssh-agent on ubuntu/kubuntu</title>
		<link>http://jan.saell.org/blog/archives/684</link>
		<comments>http://jan.saell.org/blog/archives/684#comments</comments>
		<pubDate>Tue, 10 Nov 2009 11:47:32 +0000</pubDate>
		<dc:creator>jansaell</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://jan.saell.org/blog/?p=684</guid>
		<description><![CDATA[Last week I got tired of typing passwords. Well what really was happening was that I decided to start using svn (or subversion) for all of our source code. And I like that fact that svn can work over ssh. So I set up our own archive on our main machine and started to fill [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-medium wp-image-12" title="English" src="http://jan.saell.org/blog/wp-content/uploads/2008/06/uk.png" alt="" width="18" height="14" /> Last week I got tired of typing passwords. Well what really was happening was that I decided to start using svn (or subversion) for all of our source code. And I like that fact that svn can work over ssh. So I set up our own archive on our main machine and started to fill it up. But using svn over ssh also means that you need to specify you password a number of times, and even more that once for a svn command.</p>
<p><span id="more-684"></span>I have no problems with typing in my password when I log in to a server, but now it was getting a bit annoying.</p>
<h2>ssh-agent</h2>
<p>Well one of the solutions is ssh-agent. This little program sits and holds the key and send them on towards a new system. I can also forwards it if you login with ssh to another machine (if you allows it). The best way to run it is as a main program and have all other programs to be a childes to it. Then all the settings and so it inherited. And guess what &#8211; ubuntu and kubuntu does that. When you login and startup X it seems that ssh-agent is started by default.</p>
<p>To make it even simpler its a good thing to add you main key to it. You can do that with the command:</p>
<pre>ssh-add</pre>
<p>and it will ask for the key for the private keys you have in your ssh directory. An even better version is to have ssh-add run as the X system starts up. To do this you need to install the package <em>ssh-askpass</em>. This contains a small X11 program that will grab the keyboard and allow you to enter the key. Install it with:</p>
<pre>sudo apt-get install ssh-askpass</pre>
<h2>Autostart of ssh-add</h2>
<p>When we now have that installed we can setup so that we get ssh-add to run when we tart up X.</p>
<p>create a file .kde/Autostart/ssh-add.sh</p>
<p>With this content:</p>
<pre>#!/bin/sh
# set SSH_ASKPASS if not set elsewhere
export SSH_ASKPASS=/usr/bin/ssh-askpass
ssh-add &lt;/dev/null</pre>
<p>This will start ssh-add and popup a windows asking for the password. Set the right permissions on it with:</p>
<p>chmod 755 .kde/Autostart/ssh-add.sh</p>
<p>Ths only thing now it to forward ssh-agent requests if you whant that. I did write about my way of creating small scripts fo conecting to other servers <a href="http://jan.saell.org/blog/archives/167" target="_blank">here</a>, and I now added a -A flag to the ssh command line to get that to work.  Then when you log in to a new server you dont have to enter the password and if you run ssh (or svn over ssh) on that machone the password questions gets back to the original ssh-agent.</p>
]]></content:encoded>
			<wfw:commentRss>http://jan.saell.org/blog/archives/684/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting virtualbox to work</title>
		<link>http://jan.saell.org/blog/archives/674</link>
		<comments>http://jan.saell.org/blog/archives/674#comments</comments>
		<pubDate>Sun, 01 Nov 2009 11:10:31 +0000</pubDate>
		<dc:creator>jansaell</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://jan.saell.org/blog/?p=674</guid>
		<description><![CDATA[So on friday I updated my system with the latest patches. And all went well untill i tried to start virtualbox and the windows programs im using there. No luck &#8211; a big warning and it stoped and said that the kernel module was not started. So off to google a nd there is a [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-medium wp-image-12" title="English" src="http://jan.saell.org/blog/wp-content/uploads/2008/06/uk.png" alt="" width="18" height="14" /> So on friday I updated my system with the latest patches. And all went well untill i tried to start virtualbox and the windows programs im using there. No luck &#8211; a big warning and it stoped and said that the kernel module was not started. <img src='http://jan.saell.org/blog/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>So off to google a nd there is a bug and the odule for virtualbox has not compiled and been added to the repositories.<span id="more-674"></span></p>
<p>Found some sites talking about that you can download and make one yourself. And when trying that the command fails.</p>
<p>What i did trie was</p>
<pre>sudo apt-get install module-assistant</pre>
<pre>sudo apt-get install virtualbox-ose-source</pre>
<pre>sudo module-assistant auto-install virtualbox-ose-source</pre>
<p>But the build in the end failed.  I got some weird asambler error in the end. So i did some thinking and thought of getting the source out and build it manually to see what the problem is. So i did:</p>
<pre>sudo module-assistant unpack virtualbox-ose-source</pre>
<p>That will unpack the sourve in /usr/src/modules/virtualbox-ose. So i cd there and tred a</p>
<pre>sudo make</pre>
<p>to se whats going wrong. And t comples &#8211; weird. Well lets test and install it:</p>
<pre>sudo make install</pre>
<p>and that works to &#8211; except that i make some complains about autoconf.</p>
<p>So i tested and loaded the module:</p>
<pre>sudo /etc/init.d/vboxdrv start</pre>
<p>And it loaded the module. And now i have virtualbox working again.</p>
<p> <img src='http://jan.saell.org/blog/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> </p>
<div id="_mcePaste" style="overflow: hidden; position: absolute; left: -10000px; top: 214px; width: 1px; height: 1px;">sudo module-assistant unpack virtualbox-ose-source</div>
]]></content:encoded>
			<wfw:commentRss>http://jan.saell.org/blog/archives/674/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Audible content in amaroc again, virtualbox to the rescue</title>
		<link>http://jan.saell.org/blog/archives/526</link>
		<comments>http://jan.saell.org/blog/archives/526#comments</comments>
		<pubDate>Sun, 04 Oct 2009 16:41:41 +0000</pubDate>
		<dc:creator>jansaell</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Linux]]></category>
		<category><![CDATA[ipod]]></category>

		<guid isPermaLink="false">http://jan.saell.org/blog/?p=526</guid>
		<description><![CDATA[Some time ago I wrote about getting my audible content into my ipod without using a window system. It was working fine until November last year and then it stoped working all together. No matter what I was doing and how i fiddled around with the settings, installed new programs or whatever i did. The [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-medium wp-image-12" title="English" src="http://jan.saell.org/blog/wp-content/uploads/2008/06/uk.png" alt="" width="18" height="14" /> Some time ago I <a href="/blog/archives/39" target="_blank">wrote about</a> getting my audible content into my ipod without using a window system. It was working fine until November last year and then it stoped working all together. No matter what I was doing and how i fiddled around with the settings, installed new programs or whatever i did. The files came down perfectly but I could not play them on my ipod.</p>
<p>What was happening (I think) is that audible has timed up with itunes for the ipod delivery and as the system is not seeing my ipod it defaults to remove the ipod from my device list after a while (some years or so). So the drm will not let me play it on my ipod. I was kind of crossed as I just bought 2 new books that was a continuation of a book i already read, and now I could not read (well listen) to them.</p>
<p><span id="more-526"></span></p>
<p>One way of perhaps solving this would have been to reformat and connect the ipod to a vmware instance that I have for some windows programs that I do need to run, like the bank and so, but as i have had problems with that (linux sees the ipod first and grabs it) and that I do want amarok to handle my podcast that was not real way for me. And as vmware dont talk to pulseaudio I could not play it in &#8220;windows&#8221; and capture the audio.</p>
<p>Some days ago I started to play with virtualbox as an other way of doing other systems that I sometimes need to run uner linux. I have some customer sometimes that requires stuff to be done on a windows system with ASP and MsSQL server and so, so I am forced to run it some times. And as  Virtualbox is free I was looking into that.</p>
<p>And I found that the virtualbox works better than vmware does. It handles pulseaudio as it should. So i get the sound working in the windows instance that I run under virtalbox. Well this is interesting.</p>
<p>This guide also requires that you have pulseaudio working on your system but as I have covered that earlier I will not go into that here.</p>
<h2>Install virtualbox</h2>
<p>Installing virtualbox is fairly easy. You install the virtualbox-ose version (this is the open one thats in the normal repository). Im shure you can download and install the new versions from suns site directly but as this solved my problem i just did that. You also need to install the <em>virtualbox-ose-modules-generic</em> package also to gte the networks and so working.</p>
<pre>sudo apt-get install virtualbox-ose
sudo apt-get install virtualbox-ose-modules-generic</pre>
<h2>Setup a virtualbox for playing</h2>
<p>To set up a virtualbox its a straight forward job. You just click on new in the virtualbox control program, select a name and windows xp as os type. You create a new virtual disk of at least 5 gb (5g is enough for setting up the os and itunes, and some audiobooks).</p>
<p>You then select NAT as a network drive</p>
<p><a href="http://jan.saell.org/blog/wp-content/uploads/2009/10/vbox2.jpg" target="_blank"><img class="alignnone size-medium wp-image-627" title="vbox2" src="http://jan.saell.org/blog/wp-content/uploads/2009/10/vbox2-300x251.jpg" alt="vbox2" width="300" height="251" /></a></p>
<p>Then setup the audio as pulseaudio</p>
<p><a href="http://jan.saell.org/blog/wp-content/uploads/2009/10/vbox1.jpg" target="_blank"><img class="alignnone size-medium wp-image-626" title="vbox1" src="http://jan.saell.org/blog/wp-content/uploads/2009/10/vbox1-300x251.jpg" alt="vbox1" width="300" height="251" /></a></p>
<p>And after you have installed the OS and the guest additions you can add a shared drive to store the data on</p>
<p><a href="http://jan.saell.org/blog/wp-content/uploads/2009/10/vbox3.jpg" target="_blank"><img class="alignnone size-medium wp-image-628" title="vbox3" src="http://jan.saell.org/blog/wp-content/uploads/2009/10/vbox3-300x251.jpg" alt="vbox3" width="300" height="251" /></a></p>
<p>This should give you an OS that should work well and play ipod music.</p>
<p>Then go ahead and install the audible download manager and the itunes program.</p>
<h2>Configure pulseaudio</h2>
<p>Pulseaudio has many config files and many options. I am sure that someone that is very knowable in configuring a pulseaudio setup can do this better, and if you already are using pulseaudio over the network you might need to work more on this,  but this worked for me.</p>
<p>As pulseaudio has a option of sending audio out over the network, and in creating this you have a sink to use to send the audio from our virtualbox os out on, and record from you can use this separatly from any other sound device so that normal system sounds and so will not disturb the recording.</p>
<p>You go into the &#8220;Pulseaudio Preferences&#8221;. and go to tab 2.</p>
<p><a href="http://jan.saell.org/blog/wp-content/uploads/2009/10/pulseaudio1.jpg"><img class="alignnone size-medium wp-image-631" title="pulseaudio1" src="http://jan.saell.org/blog/wp-content/uploads/2009/10/pulseaudio1-300x188.jpg" alt="pulseaudio1" width="300" height="188" /></a></p>
<p>Click the &#8220;Enable Multicast/RTP sender&#8221; and then the &#8220;Create separate audio device for Multicast/RTP&#8221;. This is all that is needed to make it work.</p>
<h2>Install pacpl</h2>
<p>To convert the file later on we need the <em>pacpl</em> program. This is a perl audio converter and it can convert from mp3 to mp4&#8242;s for the ipod. It has quite some prerequisites so the easiest way is to follow the instrucrtions <a href="http://ubuntuforums.org/showthread.php?t=712064" target="_blank">here</a>. I think im using a slightly newer version, 4.0.5 insted of 4.0.4 but the procedure is the same.</p>
<p>In short:</p>
<ul>
<li>Install/Setup the mediabuntu repostitory</li>
<li>Install Ubuntu Restricted Extras and build-essential</li>
<li>Download and build pacpl package</li>
<li>Install it and all prerequisites</li>
</ul>
<p>The we can use the <em>pacpl</em> program later to convert the file.</p>
<h2>Install gpac</h2>
<p>To get the best files for the ipod we need to install gpac packages also. This will give us the <em>MP4Box</em> program that we can use later to fix the files for the ipod.</p>
<pre>sudo apt-get install gpac</pre>
<p>will install this.</p>
<h2>Install lame</h2>
<p>To convert the file to mp3 files we also need the <em>lame</em> encoder. Install this with:</p>
<pre>sudo apt-get install lame</pre>
<h2>Running the audio capture</h2>
<p>So now its time to run the audio capture. And yes &#8211; it will require you to play the audible file in your virtalbox windows, but as this is just running I don&#8217;t see the problem with that. It just take time. So startup itunes in there, and select the file you whant to play. But don&#8217;t start playing it yet. I have created one small playlist called ToConvert that I use and add one file to that the time. This is often the case because I like the unabridged versions of the books.</p>
<p>Then we need to move the audio output of the virtualbox to the rtp.multicast.sink. You do this by opening up the Pulseaudio Volum Control program, rightclick on the VBOX (with the right name if you are running multiple virtual boxes), select Move stream, and move it to the rtp.multicast.sink.</p>
<p><a href="http://jan.saell.org/blog/wp-content/uploads/2009/10/pa1.jpg" target="_blank"><img class="alignnone size-medium wp-image-636" title="pa1" src="http://jan.saell.org/blog/wp-content/uploads/2009/10/pa1-300x181.jpg" alt="pa1" width="300" height="181" /></a></p>
<p>Then open up a terminal windows to start the recorder. The command to capture is (type in the command but don&#8217;t press enter yet):</p>
<pre>parec --format=s16le --device="rtp.monitor" | lame -r -x --bitwidth 16 -m s -a - &gt; /tmp/js.mp3</pre>
<p>We use the parec to capture from the rpt.monitor and send ot out as 16 bits little endian raw pcm file.</p>
<p>Then we use lame to encode it to mp3. The flags for lame is -r for raw pcm file, -x for little endian, &#8211;bitwith 16 for 16 bits file, -m s for stereo and -a for downsample to mono.</p>
<p>When you are ready, have the virtual box ready and the parec ready, press enter on the command line to start the recorder and then click on play in itunes to start recordning.</p>
<p>This will give you the file /tmp/js.mp3 with the audio you have played in itunes. You have to have the windows open and press &lt;CTRL&gt; + C when the playing is done. If you miss and record silence in the end, you can use audacity to trim down the file.</p>
<p>So now we have the mp3 file and you can play that in your ipod. But there is some problems.</p>
<ol>
<li>The file will not come in right without the ID3 tag</li>
<li>If you just copy over a mp3 you can play it, but if you navigate away from the playing and play something else you will loose where you where.</li>
<li>And the file will not be under Audiobooks.</li>
</ol>
<p>Number 1 is sorted out by using a good ID3 tag editor &#8211; i prefer the EasyTAG one.</p>
<p>Number 2 and 3 is handled by converting it to a m4b file. The m4b file is just an mp4 file (m4a), but renamed to m4b.</p>
<h2>Convert to m4a</h2>
<p>To convert the file to mp4 we will use the pacpl program. The commadn line to do the conversion is:</p>
<pre>pacpl --defopts 0 -v -to m4a --aacqual 50 --eopts="-b 32" /tmp/js.mp3</pre>
<p>This will set no default options (&#8211;defoptions 0), be verbose (-v), convert to m4a (-to m4a), set the m4a quality to 50 (&#8211;aacqual 50) and set the encoding options to use 32 bits bitrate (&#8211;eopts=&#8221;-b 32). This will produce a m4a files that is just lightly bigger than the audible file we started with.</p>
<h2>Setting ID3 tags</h2>
<p>Before one renames the m4a files to m4b i run the easyTag to set the ID3 tags. Remember to add Part1.. and to to the title if you are spliting the file in multiple parts to keep the size down (i have found that files under 100mb works best). I usually sets the tags for both the mp3 file and the m4a file.</p>
<h2>Fixing file for ipod</h2>
<p>There is a problem with just converting the mp3 to m4a. Some times when you start up your ipod it will fail to read in the file in memory, or miss to skip to the right place, and then it will jump to next file. Enoying. But you can make it less frequent by just waiting for 5 seconds before pressing to play. But it seems that this last step will fix this to. Apparently the itunes creates an interleaved version of the file, and <em>MP4Box</em> program can do this to. So run the following command on the file:</p>
<pre>MP4Box -ipod /tmp/js.m4a</pre>
<p>And now you are ready to rename the file:</p>
<pre>mv /tmp/js.m4a /tmp/js.m4b</pre>
<p>And you can now tranfer the file to your ipod with amarol, and listen to it.</p>
<p>Hope you enjoy this as much as i do.</p>
]]></content:encoded>
			<wfw:commentRss>http://jan.saell.org/blog/archives/526/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Handelsbanken goes linux</title>
		<link>http://jan.saell.org/blog/archives/620</link>
		<comments>http://jan.saell.org/blog/archives/620#comments</comments>
		<pubDate>Thu, 01 Oct 2009 18:36:34 +0000</pubDate>
		<dc:creator>jansaell</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Personal]]></category>

		<guid isPermaLink="false">http://jan.saell.org/blog/?p=620</guid>
		<description><![CDATA[Jag har ju handelsbanken som bank (en av dom i alla fall) och i många år har jag kört, först vmware och sen virtualbox för att köra en emulerad XP för att kunna köra signerings/krypterings programvaran som dom använder. Det är ett certifikat som ligger på &#8220;datorn&#8221; &#8211; i mitt fall en emulerad pc med [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-medium wp-image-11" title="Svenska" src="http://jan.saell.org/blog/wp-content/uploads/2008/06/se.png" alt="" width="18" height="14" /> Jag har ju handelsbanken som bank (en av dom i alla fall) och i många år har jag kört, först vmware och sen virtualbox för att köra en emulerad XP för att kunna köra signerings/krypterings programvaran som dom använder. Det är ett certifikat som ligger på &#8220;datorn&#8221; &#8211; i mitt fall en emulerad pc med xp på, och som används för att logga in och för att signera saker, tex betalningar.</p>
<p>Men nu idag fick jag nya dosan och inloggningskortet från dom. Och om man vill använda USB och sladd så måste man installera programvara och drivrutiner för det, men jag brydde mej inte ens om att se om det kan fungera under linux utann kör den utan sladd. Det innebär att jag måste knappa lite mer men nu slipper jag att köra XP bara för den saken.</p>
<p>Hurra.</p>
]]></content:encoded>
			<wfw:commentRss>http://jan.saell.org/blog/archives/620/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>External access to smoothwall without a webinterface</title>
		<link>http://jan.saell.org/blog/archives/499</link>
		<comments>http://jan.saell.org/blog/archives/499#comments</comments>
		<pubDate>Fri, 12 Jun 2009 21:08:41 +0000</pubDate>
		<dc:creator>jansaell</dc:creator>
				<category><![CDATA[Internet]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://jan.saell.org/blog/?p=499</guid>
		<description><![CDATA[Last week i installed a new smoothwall firewall. The old one we had at the summerhouse blow up last year &#8211; last weeks of the authum we where there and I did not have time then to fix it so I just took it home. After checking it now I did found out that the [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-medium wp-image-12" title="English" src="http://jan.saell.org/blog/wp-content/uploads/2008/06/uk.png" alt="" width="18" height="14" /> Last week i installed a new smoothwall firewall.</p>
<p>The old one we had at the summerhouse blow up last year &#8211; last weeks of the authum we where there and I did not have time then to fix it so I just took it home. After checking it now I did found out that the motherboard is probably fried and not the harddrive as I suspected, but I will have to do more investigation into this. I had more small boxes that can be used for this (the one we had in the house in uppsala could be reused) so i installed a new version of smoothwall on it. The old one was a Smoothwall Express 2 and there is a new version 3 out that I wanted to test.</p>
<p><span id="more-499"></span>So I installed the new version on the box and as I whanted to test it as much as I could I plugged the red network into my home network and that was good and well and it got a network adress over DHCP just as it would down at the summerhouse when I plug it into the telia ADSL connection.</p>
<p>Except for the fact that after the initial config you are suposed to login to the webinterface from the INSIDE (or the green network) to finnish the config. And my machines are ofcuase on my green home network, and that is now the red on the new smoothwall. So what to do. Well im shure there is a way of changing the config manually so I started too look around and checked if I could change it from the command line.</p>
<p>And there is a way but I could not find any one mention this so thats why I write this down. Hopefully someone else can use this aswell.</p>
<p>So you go into the machine (on the console) and login with root and the password you set.</p>
<p>At the prompt you do:</p>
<pre>vi /var/smoothwall/xtaccess/config</pre>
<p>And then add the line:</p>
<pre>tcp,0.0.0.0/0,441,on</pre>
<p>Save the file, back to the command line and reboot the system (reboot command)<em><strong></strong></em>.</p>
<p>This will open up the access to the 441 port and the web interface from the red network and after this you can login on the red network to the webinterface also and continue the config process.</p>
]]></content:encoded>
			<wfw:commentRss>http://jan.saell.org/blog/archives/499/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Edit PDF in linux</title>
		<link>http://jan.saell.org/blog/archives/474</link>
		<comments>http://jan.saell.org/blog/archives/474#comments</comments>
		<pubDate>Thu, 04 Jun 2009 07:42:24 +0000</pubDate>
		<dc:creator>jansaell</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://jan.saell.org/blog/?p=474</guid>
		<description><![CDATA[I had the interesting shore of making a pdf published on a web page. The PDF was a fax and it had both the real page and a start page showing from and to as you usually do in a fax, but that first page was not interested at all to publish and I only [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-medium wp-image-12" title="English" src="http://jan.saell.org/blog/wp-content/uploads/2008/06/uk.png" alt="" width="18" height="14" /> I had the interesting shore of making a pdf published on a web page. The PDF was a fax and it had both the real page and a start page showing from and to as you usually do in a fax, but that first page was not interested at all to publish and I only wanted the second page.</p>
<p>What to do.</p>
<p>Well fist i did some googeling and found a god application for this. Its called PDFEdit and works perfectly.</p>
<p>So I installed it with:</p>
<pre>sudo apt-get install pdfedit</pre>
<p>And I had no problems opening the PDF &#8211; delete the 1 page and save it again. Wounderfull.</p>
]]></content:encoded>
			<wfw:commentRss>http://jan.saell.org/blog/archives/474/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Wine 1.22</title>
		<link>http://jan.saell.org/blog/archives/455</link>
		<comments>http://jan.saell.org/blog/archives/455#comments</comments>
		<pubDate>Sun, 24 May 2009 16:42:12 +0000</pubDate>
		<dc:creator>jansaell</dc:creator>
				<category><![CDATA[EVE-Online]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://jan.saell.org/blog/?p=455</guid>
		<description><![CDATA[So yesterday the new version of Wine (the windows emulator for Linux) came out. I have not had very much problems with the old version 1.21, the only problem is that the autopatcher for new versions of EVE-Online did not work. And one person has reported that the only thing that was wrong with that [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-medium wp-image-12" title="English" src="http://jan.saell.org/blog/wp-content/uploads/2008/06/uk.png" alt="" width="18" height="14" /> So yesterday the new version of Wine (the windows emulator for Linux) came out. I have not had very much problems with the old version 1.21, the only problem is that the autopatcher for new versions of EVE-Online did not work. And one person has reported that the only thing that was wrong with that was that the code was trying to call a function for setting the priority of the download and that was not implemented in Wine so the call returned an error and the download failed.</p>
<p>But he fixed that, wrote a small stub function that only returns OK, and that is now included in the 1.22 version so I would liked to have that going.</p>
<p>So i let the upgrade program do it works and had wine 1.22 running in no time.</p>
<p>Started up eve and &#8220;Oh No&#8221; &#8211; when I was inside the station i only had a black screen &#8211; no interior at all. So out in space and my show is permanently cloaked &#8211; even for me <img src='http://jan.saell.org/blog/wp-includes/images/smilies/icon_sad.gif' alt=':(' class='wp-smiley' /> </p>
<p>So reading a bit in the forum it seems that this is a bug in the ATI driver and there is a patch for it, and apparently it should work on Nvidia cards. It might be the fact that i am running a bit old version of the Nvidia drivers. I am running the 169.12 version and the new version that is out is 180.51 so perhaps it is time to think of upgrading that, but as i am about to upgrade the whole system (I don&#8217;t like it and don&#8217;t have the time, but have to eventually) to the new version 9.04, I think I will do it then.</p>
<p>So now I need to downgrade to version 1.21 to have my game going as I whant it. I can live with the fact that I have to download the patches manually.</p>
<p>Downgrading wine</p>
<p>First i need to download the old version. You just go into the link on the wne HQ page and go to the Ubuntu pages and the old archives (<a href="http://wine.budgetdedicated.com/archive/index.html" target="_blank">here</a>) and download the old version (1.21).</p>
<p>Then you install that with dpkg:</p>
<pre>sudo dpkg --install wine_1.1.21~winehq0~ubuntu~8.04-0ubuntu1_amd64.deb</pre>
<p>Next thing you need to do is to lock the version. if you dont do that the system will upgrade wine next time you run the upgrade program. And you do that with:</p>
<pre>echo wine hold | sudo dpkg --set-selections</pre>
<p>And if you as me have Synaptic package manager installed, you can go in there and lock the version also.</p>
<p>This now get me a god working wine that pays my eve, and I have to live with the not working autopatcher for now.</p>
]]></content:encoded>
			<wfw:commentRss>http://jan.saell.org/blog/archives/455/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>New version of Kubuntu</title>
		<link>http://jan.saell.org/blog/archives/415</link>
		<comments>http://jan.saell.org/blog/archives/415#comments</comments>
		<pubDate>Fri, 24 Apr 2009 09:24:06 +0000</pubDate>
		<dc:creator>jansaell</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://jan.saell.org/blog/?p=415</guid>
		<description><![CDATA[Yesterday (23 of april) they released the new version of Kubuntu &#8211; the linux os that I&#8217;m running. The main ubuntu version of 9.04 has been out for a while but the KDE version (kubuntu) usually takes some time to do and get out there. And yesterday was the date. I am a bit hopefull [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-medium wp-image-12" title="English" src="http://jan.saell.org/blog/wp-content/uploads/2008/06/uk.png" alt="" width="18" height="14" /> Yesterday (23 of april) they released the new version of Kubuntu &#8211; the linux os that I&#8217;m running. The main ubuntu version of 9.04 has been out for a while but the KDE version (kubuntu) usually takes some time to do and get out there.</p>
<p>And yesterday was the date. I am a bit hopefull that this will solve some of my problems. I have a number of small anying things that I can get around but makes life a bit hard and I hope that the new version will solve some of it.</p>
<p><span id="more-415"></span></p>
<p>The problems I&#8217;m having is:</p>
<ol>
<li>Amarok cant handle my audiblebooks any more</li>
<li>My palm don&#8217;t sync as it should</li>
<li>Some problems with realaudio and pulseaudio</li>
</ol>
<p>Its not a major thing but its a bit annoying.</p>
<p>So I will do the update but not just yet on my laptop. Its to much hassle to do in the middle of everything but I need to plan it.</p>
<h2>Torrent seeding</h2>
<p>There has been quite some hassle in the press about Pirate bay and the fact that downloading has gone down quite a lot in sweden. So to help that I have now decided to download all the CD*s and DVD&#8217;s for the new kubuntu release and seed them over bit torrent. This is perfectly legal as its a non copyrighted materia and I think that it will be hard to see that torrent as right and other torrent as wrong.</p>
<p>Lets all start sharing real materials over torrent and se how the anti pirate bay maffia can track this.</p>
<p>Happy sharing for now.</p>
]]></content:encoded>
			<wfw:commentRss>http://jan.saell.org/blog/archives/415/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Linux stitching</title>
		<link>http://jan.saell.org/blog/archives/391</link>
		<comments>http://jan.saell.org/blog/archives/391#comments</comments>
		<pubDate>Wed, 15 Apr 2009 13:34:03 +0000</pubDate>
		<dc:creator>jansaell</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://jan.saell.org/blog/?p=391</guid>
		<description><![CDATA[So you come home from the holiday, remembering that wonderful sky and white snow and the horizon and when you look at the pictures its not quite that way. Why? Well lets assume that you did took nice clear pictures, but they still don&#8217;t make the same impact as in real life. Its a matte [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-medium wp-image-12" title="English" src="http://jan.saell.org/blog/wp-content/uploads/2008/06/uk.png" alt="" width="18" height="14" /> So you come home from the holiday, remembering that wonderful sky and white snow and the horizon and when you look at the pictures its not quite that way. Why? Well lets assume that you did took nice clear pictures, but they still don&#8217;t make the same impact as in real life. Its a matte of field of view. A normal eye has a field of view of around 140° while a normal camera has max 40°. So that&#8217;s why the images are not that god.</p>
<p><span id="more-391"></span></p>
<p>So what to do. Well there are special panoramic cameras but they are very expensive. The second options is to use programs to take pictures with overlapping areas and mount them together as one picture. This is called <strong>stitching</strong>.</p>
<p>I was doing that quite a lot when I was running windows but I havent had time to do it under Linux. There was some god programs for it under windows but now its time to se what I can find under Linux.</p>
<p>After some searching on the net, i did come acreoss <strong>Hugin</strong>. This is a descendant of PanoTools, an excellent suite of panorama processing applications first developed by German university professor Helmut Dersch. The original PanoTools are no longer being developed, so Hugin is what I started to test.</p>
<h2>Installing</h2>
<p>Installing Hugin was easy &#8211; its in the kubuntu repositories so I only had to do an apt-get install to get it installed:</p>
<pre>sudo apt-get install hugin</pre>
<h2>Testing out</h2>
<p>So the program is installed and the default place is under graphics. Staring it up gives you the assistance page. First klick on the Load image button.</p>
<p>I tested with 2 of the images from my latest vacation:</p>
<p><a href="http://jan.saell.org/blog/wp-content/uploads/2009/04/pict0389.jpg"><img class="alignnone size-medium wp-image-394" title="pict0389" src="http://jan.saell.org/blog/wp-content/uploads/2009/04/pict0389-300x225.jpg" alt="" width="300" height="225" /></a></p>
<p><a href="http://jan.saell.org/blog/wp-content/uploads/2009/04/pict0390.jpg"><img class="alignnone size-medium wp-image-395" title="pict0390" src="http://jan.saell.org/blog/wp-content/uploads/2009/04/pict0390-300x225.jpg" alt="" width="300" height="225" /></a></p>
<p>You can select multiple images with CTRL. When this is down it starts the scanning and processing of the images. It takes some time and when its done it will present the panorma preview. If you are happy you can close that down.</p>
<p>I then went into the sticher tab and changed the output format to jpeg. Then you can generate the images with stitch now, or go back to the assistance tab and click on create panorama button. This will give you a nice panorama:</p>
<p><a href="http://jan.saell.org/blog/wp-content/uploads/2009/04/pict0389-pict0390c2.jpg"><img class="alignnone size-medium wp-image-396" title="pict0389-pict0390c2" src="http://jan.saell.org/blog/wp-content/uploads/2009/04/pict0389-pict0390c2-300x190.jpg" alt="" width="300" height="190" /></a></p>
<p>First you see tha the images is not blended. This is because the stitching engine can&#8217;t do that, I found out, when doing jpegs, so i did a new one and let it save it as tiff and then i converted outside of Hugin to jpeg and got this result:</p>
<p><a href="http://jan.saell.org/blog/wp-content/uploads/2009/04/pict0389-pict0390c.jpg"><img class="alignnone size-medium wp-image-397" title="pict0389-pict0390c" src="http://jan.saell.org/blog/wp-content/uploads/2009/04/pict0389-pict0390c-300x190.jpg" alt="" width="300" height="190" /></a></p>
<p>Much nicer blending but the pictures are a bit off in balance/contract and so, so you need to do some processing first. And when that&#8217;s done i also cut down the image and removed all the black background. Here is the final result:</p>
<p><a href="http://jan.saell.org/blog/wp-content/uploads/2009/04/pict0389b-pict0390b.jpg"><img class="alignnone size-medium wp-image-398" title="pict0389b-pict0390b" src="http://jan.saell.org/blog/wp-content/uploads/2009/04/pict0389b-pict0390b-300x132.jpg" alt="" width="300" height="132" /></a></p>
<h2>Conclusion</h2>
<p>I think that this show that most image processing and specificaly creating panoramas can be done in Linux without any problem.</p>
]]></content:encoded>
			<wfw:commentRss>http://jan.saell.org/blog/archives/391/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Chaning phpmyadmin timeout</title>
		<link>http://jan.saell.org/blog/archives/383</link>
		<comments>http://jan.saell.org/blog/archives/383#comments</comments>
		<pubDate>Wed, 08 Apr 2009 14:25:15 +0000</pubDate>
		<dc:creator>jansaell</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://jan.saell.org/blog/?p=383</guid>
		<description><![CDATA[OK I finally had anogth. I uses phpmyadmin fairly much as thats a god tool to use. I have talked about if before, how you use it to have ssh forwards ports and so for it here, but there has been one enoying thing left. TImeout. The default setting in the phpmyadmin systemis 1800 seconds [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-medium wp-image-12" title="English" src="http://jan.saell.org/blog/wp-content/uploads/2008/06/uk.png" alt="" width="18" height="14" /> OK I finally had anogth. I uses phpmyadmin fairly much as thats a god tool to use. I have talked about if before, how you use it to have ssh forwards ports and so for it here, but there has been one enoying thing left. TImeout. The default setting in the phpmyadmin systemis 1800 seconds (1/2 hour) and that is usually to short, so I end up logging in all the time. Ding some short checking and then back to programming.</p>
<p>So i investigared the system a bit and there is a config flags for this.</p>
<p>Add the following line to your config.inc.php file:</p>
<pre>$cfg['LoginCookieValidity'] = 3600 * 4; // 4 hours</pre>
<p>This will set the valid time for login to 4 hours &#8211; that shoud be ok for me atleast.</p>
]]></content:encoded>
			<wfw:commentRss>http://jan.saell.org/blog/archives/383/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>New kernel &amp; EVE on Wine 1.1.12</title>
		<link>http://jan.saell.org/blog/archives/240</link>
		<comments>http://jan.saell.org/blog/archives/240#comments</comments>
		<pubDate>Sun, 11 Jan 2009 15:24:29 +0000</pubDate>
		<dc:creator>jansaell</dc:creator>
				<category><![CDATA[EVE-Online]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://jan.saell.org/blog/?p=240</guid>
		<description><![CDATA[So new kernel out. With all the problem that can give. I have refrained from installing it during the week as I did not want to much interruption during normal workdays. But now on a Sunday I feel i can afford the time to do it. So first of all i start installing the updates [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-medium wp-image-12" title="English" src="http://jan.saell.org/blog/wp-content/uploads/2008/06/uk.png" alt="" width="18" height="14" /> So new kernel out. With all the problem that can give. I have refrained from installing it during the week as I did not want to much interruption during normal workdays. But now on a Sunday I feel i can afford the time to do it.</p>
<p>So first of all i start installing the updates and the kernel. I&#8217;m a bit chicken and not going to install wine yet.</p>
<p>The upgrade works as it should. Still no built in support for the network cards so I have to compile and install that module again. Not a big deal.</p>
<p>And then i have to install/configure vmware modules also. Still not a big problem. And now all things is working as it should. Sort of.</p>
<p><span id="more-240"></span></p>
<h2>Testing palm</h2>
<p>Next step is to se if the new kernel has solved the problem with my palm &#8211; and guess what &#8211; it has not. Dam. But not a big deal as I can use the palm xfer programs to get my work done and its working &#8211; even if its a bit cumbersome.</p>
<p>So onto the big issue &#8211; Wine</p>
<h2>Installing wine 1.1.12</h2>
<p>When wine 1.1.10 came out I started to get some problem. The EVE online game had problems when starting or when warping into some new area. I could get it to work better is I remembers to not do anything, not move the mouse, pan or zoom or anything when warping in but its hard to remember this all time.</p>
<p>So I backed down to the 1.1.9 version that worked perfectly for me. But its kind of annoying to always have that reminder that there is new things to install all the time.</p>
<p>So this week the 1.1.12 version came out so I decided to test that.</p>
<p>Removed the lock on the install and let the system upgare wine. And the the big test &#8211; startup eve and run and test it.</p>
<p>And I can gladly now report that it works like a charm.</p>
]]></content:encoded>
			<wfw:commentRss>http://jan.saell.org/blog/archives/240/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Getting CD&#8217;s to mpg</title>
		<link>http://jan.saell.org/blog/archives/223</link>
		<comments>http://jan.saell.org/blog/archives/223#comments</comments>
		<pubDate>Sat, 10 Jan 2009 13:21:00 +0000</pubDate>
		<dc:creator>jansaell</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://jan.saell.org/blog/?p=223</guid>
		<description><![CDATA[OK, so I&#8217;m running an Ubuntu system, well actually its a Kbuntu system but that&#8217;s fairly close. Yesterday I decided to rip some CD&#8217;s to my music library and add them to my ipod. And had quite a bit of a hard time getting this going. The fist try was to just use amarok program [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-medium wp-image-12" title="English" src="http://jan.saell.org/blog/wp-content/uploads/2008/06/uk.png" alt="" width="18" height="14" /> OK, so I&#8217;m running an Ubuntu system, well actually its a Kbuntu system but that&#8217;s fairly close. Yesterday I decided to rip some CD&#8217;s to my music library and add them to my ipod.</p>
<p>And had quite a bit of a hard time getting this going.</p>
<p>The fist try was to just use amarok program and play the CD. No problem. Then i went around the menus to see if one could import the files directly there but no sucess. There seems not to be any way to do it directly in amarok.</p>
<p><span id="more-223"></span></p>
<p>So the next try is to use the k3b and the item directly in the CD desktop shortcut. Starts up k3b and goes into the ripping. It fetches the album info from the net and all seems ok. So lets go.</p>
<p>Well its starts and pops up a window:</p>
<p><a href="http://jan.saell.org/blog/wp-content/uploads/2009/01/k3b01.png" target="_blank"><img class="alignnone size-medium wp-image-226" title="k3b01" src="http://jan.saell.org/blog/wp-content/uploads/2009/01/k3b01-300x169.png" alt="" width="300" height="169" /></a></p>
<p>OK. Already in use &#8211; as an old unix guru it looked like l should quit the other application and get on with it. And that&#8217;s what i did &#8211; clicking on &#8220;Quit the other application&#8221; and after some confirmation it started up.</p>
<p>Run for 2 seconds &#8211; cd starts spinning, stops spinning again. Repeat. And it takes forever. This is not working. I had a similar kind of problem in the summer when i ripped another CD and I cant for my life remember how I solved it then.</p>
<p>What to do now. Well i started googeling to find some answers.</p>
<h2>ripperx</h2>
<p>After searching the net for some time I did found one program that looked promising. It was called ripperx and is using the lame encoder to get the files to mp3. So I downloaded it and installed it with apt-get:</p>
<p>sudo apt-get install ripperx</p>
<p>Test run and after some settings it seemed to do the work.</p>
<p>So i ripped the cd and got it into my amarok collection.</p>
<h2>back to k3b</h2>
<p>Well I think it was strange that k3b did not work so i thought that i should trie it one more time if it was just a coincident that it did not work.</p>
<p>So I tried again. Inserted the CD. Selected rip with k3b. Got the warning. Closed other applications and tried and the same result. Click, Click and no result.</p>
<p>Ok. This is weird. Just from a hint I did try again and disregarded the fairly strong wordings in the message  box and just let k3b go on with it and it did work. Very weird. But god.</p>
<p>So I think i will be using k3b now for the ripping. There are some settings that one needs to do to get it to work the way I whant it to work.</p>
<h2>Configure k3b</h2>
<p>So k3b can rip the cd&#8217;s for me, but I do need to configure it right.</p>
<p>First of all I have to tell it to store the mp3 files in the right format and the right names and so on.</p>
<p>You do this in the rip windows after you selected &#8220;Start ripping&#8221; from the main k3b window.</p>
<p><a href="http://jan.saell.org/blog/wp-content/uploads/2009/01/k3b02.png" target="_blank"><img class="alignnone size-medium wp-image-230" title="k3b02" src="http://jan.saell.org/blog/wp-content/uploads/2009/01/k3b02-300x241.png" alt="" width="300" height="241" /></a></p>
<p>I have all my music stored in /CD/MyItunesMusic so I set that in the target. Then you have to get the filenames right. Click on File Names tab and you get this</p>
<p><a href="http://jan.saell.org/blog/wp-content/uploads/2009/01/k3b03.png" target="_blank"><img class="alignnone size-medium wp-image-232" title="k3b03" src="http://jan.saell.org/blog/wp-content/uploads/2009/01/k3b03-300x241.png" alt="" width="300" height="241" /></a></p>
<p>And its the ripped file name you need to change. I set it to:</p>
<p>%{albumartist}/%{albumtitle}/%{number} %{title}</p>
<p>to correspond with what I have in my music album before.</p>
<p>The next thing to do is to configure the lame encoder to use 192 kb  bit rate instead of the default 128.</p>
<p>Go back to the fist tab and select the Mp3 (lame) file type and then press edit (the small button n the right if the dropdown).</p>
<p><a href="http://jan.saell.org/blog/wp-content/uploads/2009/01/k3b04.png" target="_blank"><img class="alignnone size-medium wp-image-233" title="k3b04" src="http://jan.saell.org/blog/wp-content/uploads/2009/01/k3b04-191x300.png" alt="" width="191" height="300" /></a></p>
<p>I Changed the name to Mp3 (lame) 192 kbps and then inserted the -b 192 to the command line.</p>
<p>Click on ok and DONT FORGET now to save this. Its the litte save button on the bottom left of the windows. No you can go ahead and rip the CD&#8217;s and it will remember this setting.</p>
<h2>Amarok</h2>
<p>Next on the list is to get amarok to read in the new files names. You do this with the Tools-&gt;Rescan collection meny item and there you have your new mp3&#8242;s.</p>
<h2>Syncing to home server</h2>
<p>The last thing is to get the CD&#8217;s over to my main home server with all th CD&#8217;s for my Squeese Center to play on my stereo.</p>
<p>rsync does the job there and the command is:</p>
<p>rsync -avzuc -e ssh /CD/MyItunesMusic/ jan@192.168.0.10:/CD/MyItunesMusic</p>
<p>Thats all &#8211; i can now play my cd&#8217;s as i whant. Perfect</p>
]]></content:encoded>
			<wfw:commentRss>http://jan.saell.org/blog/archives/223/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Still no luck with palmsync</title>
		<link>http://jan.saell.org/blog/archives/203</link>
		<comments>http://jan.saell.org/blog/archives/203#comments</comments>
		<pubDate>Thu, 11 Dec 2008 09:30:58 +0000</pubDate>
		<dc:creator>jansaell</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://jan.saell.org/blog/?p=203</guid>
		<description><![CDATA[I am still fighting with my palm and syncing. The visor module is still not working and I needed to get my memos over or synced. I am using a palm program to keep track om my car mileage and I need to get that over. I&#8217;m using the Trip Deux program and have been [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-medium wp-image-12" title="English" src="http://jan.saell.org/blog/wp-content/uploads/2008/06/uk.png" alt="" width="18" height="14" /> I am still fighting with my palm and syncing. The visor module is still not working and I needed to get my memos over or synced. I am using a palm program to keep track om my car mileage and I need to get that over.</p>
<p>I&#8217;m using the Trip Deux program and have been using it for many years now. Some time ago i found out that the easiest way to get this to work under Linux is to export the month driving entries to a csv file in the memopad and get that into excel / well open office. But now I have a problem as my sync is not fully working.</p>
<p><span id="more-203"></span></p>
<p>So I did some more invenstigating in the pilot-link package and there is a program for manipulation the memopads exntries. So im running this command:</p>
<pre>cd ~
pilot-memos -p usb: -s tmp/palm_memos</pre>
<p>This will get all the entries out of the palmpilot and I can then get the memo i whant from the Unfiles categorei/directory.</p>
<p>The only small thing is to edit the datefield as it will inport wrong if not having a full year (2008) instead of 08.</p>
]]></content:encoded>
			<wfw:commentRss>http://jan.saell.org/blog/archives/203/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Having fun with dcop</title>
		<link>http://jan.saell.org/blog/archives/167</link>
		<comments>http://jan.saell.org/blog/archives/167#comments</comments>
		<pubDate>Thu, 13 Nov 2008 07:51:43 +0000</pubDate>
		<dc:creator>jansaell</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://jan.saell.org/blog/?p=167</guid>
		<description><![CDATA[So what is dcop and why am i playing with that. I have been working over the internet for quite some time now and usually in a day i have over 8 different terminals open to different serves that I&#8217;m monitoring, updating, checking, maintaining, or all kind of other stuff. And I need to keep [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-medium wp-image-12" title="English" src="http://jan.saell.org/blog/wp-content/uploads/2008/06/uk.png" alt="" width="18" height="14" /> So what is dcop and why am i playing with that.</p>
<p>I have been working over the internet for quite some time now and usually in a day i have over 8 different terminals open to different serves that I&#8217;m monitoring, updating, checking, maintaining, or all kind of other stuff. And I need to keep track about what windows is what. I usually uses the konsole application and open all different sessions in different tabs, and sometimes i have more than one windows so its a lot to keep track of.</p>
<p>I have previous used the old &#8220;Prompt&#8221; trick and changing the shell prompt for different machines, but that was not enogth. For some time i have been changing the tab name but doing this manuallay every time is a bit tideous. I have looked at different ways of chaning the tab name and there are eacape sequences that does it but I have not had a god result.</p>
<p><span id="more-167"></span></p>
<p>Some time ago I ceated a number of small scripts for connecting to different servers. One of the reason to do this is that I am using <em>phpmyadmin</em> to connecto to databases that I maintain and work on, so to avoid to keep typing all that I used the small script as i talked about <a href="http://jan.saell.org/blog/archives/42">here</a>.</p>
<p>So why not change it to also set the Tab name.</p>
<p>And here is when DCOP comes to help. DCOP is KDE&#8217;s IPC/RPC mechanism. In other words is used to communicate between different DCOP aware applications on the KDE desktop. Its quite like the Microsoft Automation system, but it has no means of starting applications or services only runnning applications can be controlled.</p>
<p>The &#8216;dcop&#8217; program provides command line access to the DCOP system. The syntax is:</p>
<pre>dcop [application] [object] [function] [arguments ...]</pre>
<p>To see which applications are available, enter &#8216;dcop&#8217; with no arguments.</p>
<p>The interesting thing here is that konsole has some integration into this and there are 2 environment variables, <em><strong>KONSOLE_DCOP</strong></em> and <em><strong>KONSOLE_DCOP_SESSION</strong></em>.</p>
<p>So if you in a konsole window run the command:</p>
<p>dcop $KONSOLE_DCOP_SESSION sessionName</p>
<p>It will tell you the name of the sessson that is shown on the tab.</p>
<p>if you just run <em>dcop $KONSOLE_DCOP_SESSION</em> it will show all the tings you can get and you can set (and yes there is a nice graphocal tool also &#8211; kdcop &#8211; but thats a separate thing). And the interesting here is teh line</p>
<pre>void renameSession(QString name)</pre>
<p>This means that you can set the title to anyting you whant. So after realising this I cerated a scipt that i now use for all the different system i regularly connect to.</p>
<pre>#!/bin/bash
#Start ssh to foobar

CMD="ssh jan@foobar.foo.bar"
NEW_TITLE="foobar"

DCOP=/usr/bin/dcop

echo $CMD

function restore_title() {
        $DCOP "$KONSOLE_DCOP_SESSION" renameSession "$OLD_TITLE"
}

if [ ! -z "$KONSOLE_DCOP_SESSION" ]
then
        # Get old title for restore
        OLD_TITLE=`dcop "$KONSOLE_DCOP_SESSION" sessionName`
        $DCOP "$KONSOLE_DCOP_SESSION" renameSession "$NEW_TITLE"

        # If SSH is interrupted (CTRL-C), restore the old title
        trap "restore_title" SIGINT
        $CMD
        restore_title

else
        $CMD
fi</pre>
<p>This alows me to set a short name for the conneciton.</p>
]]></content:encoded>
			<wfw:commentRss>http://jan.saell.org/blog/archives/167/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Palmsync stopped working</title>
		<link>http://jan.saell.org/blog/archives/149</link>
		<comments>http://jan.saell.org/blog/archives/149#comments</comments>
		<pubDate>Mon, 03 Nov 2008 09:12:06 +0000</pubDate>
		<dc:creator>jansaell</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://jan.saell.org/blog/?p=149</guid>
		<description><![CDATA[Some time ago my laptop system got upgraded to a new kernel. This is 2.6.24-21. I did not notice any problems with this except the normal problem when upgrading to a new kernel. I had to rebuild the Ethernet driver, but that&#8217;s as expected. Today i was going to sync my palmpilot and I did [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-medium wp-image-12" title="English" src="http://jan.saell.org/blog/wp-content/uploads/2008/06/uk.png" alt="" width="18" height="14" /> Some time ago my laptop system got upgraded to a new kernel. This is 2.6.24-21. I did not notice any problems with this except the normal problem when upgrading to a new kernel. I had to rebuild the Ethernet driver, but that&#8217;s as expected.</p>
<p>Today i was going to sync my palmpilot and I did as I usually did. Put the palm in the cradel. Press the sync and it all started. Wait &#8211; it did not. Noting happend for a long time and then i finally got the errro message on the palm that it could not connect to the computer.</p>
<p><span id="more-149"></span></p>
<p>I did some investigation and found <a href="https://bugs.launchpad.net/ubuntu/+source/linux/+bug/226197" target="_blank">this</a> on the web. Apparently there is a bug in the 2.6.24 kernel that prevents the visor module to work. And as its not working the usb devices is not created and the kpilot will not be able to sync.</p>
<p>I did some test with different settings and could not get this to work in any way.</p>
<p>So i did unload the visor drive and uses the pilot-xfer program directly to get a backup atleast so i can do my timesheet.</p>
<pre>cd ~
pilot-xfer -p usb: -b tmp/palm_backup</pre>
<p>This will start pilot-xfer and connect it to the usb. When you then press the sync button it starts the sync and get all the apps and dbs over. I can then use teh tmp/palm_backup directory to get some of the db files into my timesheet progtam</p>
]]></content:encoded>
			<wfw:commentRss>http://jan.saell.org/blog/archives/149/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Firefox and Realplayer</title>
		<link>http://jan.saell.org/blog/archives/74</link>
		<comments>http://jan.saell.org/blog/archives/74#comments</comments>
		<pubDate>Mon, 15 Sep 2008 17:03:45 +0000</pubDate>
		<dc:creator>jansaell</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://jan.saell.org/blog/?p=74</guid>
		<description><![CDATA[Currently I&#8217;m in London for a weeks work with my associate Andrew. And that means usually listen to BBC radio. I thought that I would fire up the BBC Radio website and listen to some music in the morning. And all they are doing is RealPlayer. So I looked a bit more and there is [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-medium wp-image-12" title="English" src="http://jan.saell.org/blog/wp-content/uploads/2008/06/uk.png" alt="" width="18" height="14" /> Currently I&#8217;m in London for a weeks work with my associate Andrew. And that means usually listen to BBC radio. I thought that I would fire up the BBC Radio website and listen to some music in the morning. And all they are doing is RealPlayer. So I looked a bit more and there is ofcuase a RealPlayer install for Linux. Current version is RealPlayer 11. But its not that easy. RealPlayer don&#8217;t work with pulseaudio so that has to be sorted out and there are also problems with RealPlayer and firefox. There is also a small glitch in firefox. They have moved all the application associations out to a separate pane in the preference windows, but on my machine the list it totally empty.</p>
<p><span id="more-74"></span></p>
<p>So there are thing to fix and get going before its all ok.</p>
<h2>Firefox and empty application list</h2>
<p>So apparently after some googeling there is one package that&#8217;s not getting installed when installing firefox on a Kubuntu system. Its the <em><strong>firefox-gnome-support</strong></em> package.</p>
<p>So I install that with:</p>
<pre>sudo apt-get install firefox-gnome-support</pre>
<p>And that solves the problem with the application list and its now filled up with the applications to open for different file types.</p>
<h2>Install Realplayer</h2>
<p>So next in the list is to install RealPlayer.</p>
<p>There are some packages you can find for the RealPlayer out there but its not hard to download the player from Realplayer site directly.</p>
<p>I did the following.</p>
<ul>
<li>Create a temporary directory &#8211; if you dont have one already</li>
<li>Go to teh directory you just created</li>
<li>Download the bin file with wget</li>
<li>Change permissions on the file</li>
<li>and run it to install all the parts</li>
</ul>
<p>So open a terminal window and do the following:</p>
<pre>mkdir ~/tmp
cd ~/tmp
wget http://www.real.com/realcom/R?href=http://forms.real.com/real/player/download.html?f=unix/RealPlayer11GOLD.bin
chmod 755 RealPlayer11GOLD.bin
sudo ./RealPlayer11GOLD.bin</pre>
<p>For all the question you can use the default. It will install itself and install a link in the multimedia sub menu.</p>
<h2>Get RealPlayer to work with pulseaudio</h2>
<p>Unfortunately realplayer is one of these other applications that don&#8217;t work with pulseaudio, and trying it to run to alsa will even crash it without any error messages on my system. But there are the god news that padsp program works with it. So running</p>
<pre>padsp realplay</pre>
<p>starts up realplayer with the emulates oss driver and you can the go in and select oss as the sound driver under tools-&gt;preferences-&gt;hardware and it will play perfectly under pulseaudio.</p>
<p>The only thing left now it to change the menu and file association for the realplayer files to play with <em>padsp realplay</em>.</p>
<p>Go in and click on the kde menu, and the click on the multimedia sub menu and the right click on the realplayer menu item and select <em><strong>Edit Item</strong></em> from the menu. In the box that comes up change the command from <em>realplay %U</em> to <em><strong>padsp realplay %U</strong></em>. This will also change the file association for realplayer audio files so when clicking on a file it will startup padsp first and have realplayer working on that virtual device. Don&#8217;t forget to save the setting when you are done.</p>
<h2>Realplayer and firefox</h2>
<p>Last in the list of things to fix is fixing so that you can click and listen to a file directly from firefox. Unfortunately, no matter of how I trie to fix this it will not work. So the best solution for this is to get into prefrences-&gt;applications and set the filetype realaudio to save file. Then when you click on the link &#8211; save the file somewhere (in /tmp is what i usually do and then manually open it with <em><strong>padsp realplay</strong></em>). Im kind of sorry and anoyed that I could not get this to work but I guess its a combination from both the 64 bits version of firefox and that the realplayer is a 32 bits and the fact that realplayer also dont work with the pulseaudio. I hate being beeten but as I can workaround it its end of this for now.</p>
]]></content:encoded>
			<wfw:commentRss>http://jan.saell.org/blog/archives/74/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Asterisk on ubuntu</title>
		<link>http://jan.saell.org/blog/archives/49</link>
		<comments>http://jan.saell.org/blog/archives/49#comments</comments>
		<pubDate>Sat, 30 Aug 2008 18:05:51 +0000</pubDate>
		<dc:creator>jansaell</dc:creator>
				<category><![CDATA[Asterisk]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://jan.saell.org/blog/?p=49</guid>
		<description><![CDATA[So I do a lot of work on SIP, IP-Telephony and Asterisk. Yes. Have been working for an international SIP phone company for quite some time and built up a distributed, resilient network and servers for operating their ATA residential business (ATA is short for Analog Telephony Adapter) offerings. That is build up by combining [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-medium wp-image-12" title="English" src="http://jan.saell.org/blog/wp-content/uploads/2008/06/uk.png" alt="" width="18" height="14" /> So I do a lot of work on SIP, IP-Telephony and Asterisk. Yes. Have been working for an international SIP phone company for quite some time and built up a distributed, resilient network and servers for operating their ATA residential business (ATA is short for Analog Telephony Adapter) offerings. That is build up by combining both a lot of open source systems. Mysql for database ofcuase. Asterisk as the main telephony system. OpenSIP (previously known as OpenSER or just SER) and so on. So I wanted to play a bit with Asterisk on my home server, not on my laptop. So I decided to install asterisk. The OS is the same as I have on my laptop its Kubuntu 8.04 Hardy Heron on a Lenovo. Its a Intel Dual Core 2.2. Ghz with 1 gb of memory &#8211; not the greatest machine in the world but ok for me.</p>
<p><span id="more-49"></span></p>
<p>So i downloaded and installed the asterisk package with:</p>
<pre>sudo apt-get install asterisk asterisk-dev asterisk-doc</pre>
<p>This was to get the development and the documentation also. After installing this i have asterisk working. I now connected my Grandsteram GXP2000 sip phone and  can hear the test and do echo and so.</p>
<p>So the next part is to get some of my special sounds and getting the conference services to work. On of the interesting things with the default ubuntu or kubuntu install of asterisk is that the sound is moved to <em><strong>/usr/share/asterisk</strong></em> instead of /var/lib/asterisk (well that is there to) but all the sound files are in <em><strong>/usr/share/asterisk/sounds/</strong></em>.</p>
<p>So i installed the sound files and changed the extensions.conf to include my meetme conferences. And its not working. Hum. When accessing the meetme application if get the error message that asterisk cant access the timing device. Yes &#8211; I forgot to install zaptel and the ztdummy device. So checking and ofcourse there is a package with the zaptel devices so I installed it with:</p>
<pre>sudo apt-get install zaptel</pre>
<p>And got errors &#8211; the installer cant find any zaptel devices and that absolutely true as I dont have any in this machine. And it will not install the ztdummy device. Dam. So i need to build it probably. I can download the source with <em><strong>apt-get source zaptel</strong></em> but i hope for someting else if i could.</p>
<p>The I read about the module-asistance comand in ubuntu. This is actually to start with a debian comand. Remember that ubuntu and kybntu comes from the debian system and a lot of the tings in the system id debian based. Module assistant is a script that helps download and build kernel modules from source. It has a lot of different commands but if you whant to make it all you can use the <em><strong>auto-install</strong></em> command that will just do all the job. There is also a short name for module assistant &#8211; m-a that you can use if you dont what to type that much, and even a short cut for auto-install &#8211; use <em><strong>a-i</strong></em> instead.</p>
<p>If you dont have module assistant installed you do that with:</p>
<pre>sudo apt-get install module-assistant</pre>
<p>In my case it was already installed, but if you dont have it installed, install it and ofcourse install all the dependencies also. So I went ahead and installed the zaptel vith this:</p>
<pre>sudo m-a a-i zaptel</pre>
<p>This did the job and installed the zaptel driver for me &#8211; and now i have ztdummy running and I can run the meetme application.</p>
<p>If you do need to install the package again you find it under /usr/src, and you can use m-a install to install it also.</p>
]]></content:encoded>
			<wfw:commentRss>http://jan.saell.org/blog/archives/49/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>Playing with ipod and audiobooks</title>
		<link>http://jan.saell.org/blog/archives/47</link>
		<comments>http://jan.saell.org/blog/archives/47#comments</comments>
		<pubDate>Sat, 23 Aug 2008 21:11:15 +0000</pubDate>
		<dc:creator>jansaell</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Personal]]></category>
		<category><![CDATA[ipod]]></category>
		<category><![CDATA[aac]]></category>
		<category><![CDATA[hommade m4b]]></category>
		<category><![CDATA[m4b]]></category>

		<guid isPermaLink="false">http://jan.saell.org/blog/?p=47</guid>
		<description><![CDATA[So you have an ipod and you have audiobooks. Me to. As i talked about erlier i listen to a lot of audiobooks and I am using audible for a lot of the books. So i have just listen to Larry Niven&#8217;s and Edward M. Lerner&#8217;s new book Fleet of Worlds. Great book. So it [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-medium wp-image-12" title="English" src="http://jan.saell.org/blog/wp-content/uploads/2008/06/uk.png" alt="" width="18" height="14" /> So you have an ipod and you have audiobooks. Me to. As i talked about <a href="http://jan.saell.org/blog/archives/39" target="_blank">erlier</a> i listen to a lot of audiobooks and I am using audible for a lot of the books. So i have just listen to Larry Niven&#8217;s and <span class="Blk">Edward M. Lerner&#8217;s new book </span><em><strong>Fleet of Worlds</strong></em>. Great book. So it reborn my interest in the Known world SF and the Ringworld books. I did listen to the Ringworld and the other books years back and I have all the Ringworld books on tape. Not easily transferable to my ipod. So what to do. Well i usually don&#8217;t download stuff from piratebay and other torrent sites like that. But as I have the tapes and payed for it I don&#8217;t think its totally unfair to have it transfered to mp3&#8242;s.</p>
<p>So I downloaded it and have a nice mp3 set of the books &#8211; 70 files of it. Not ideal. I could ofcourse transfer them and make a playlist, but thats not ideal. One can use audacity to merge all the files to one big mp3. That would work to. But there are a problem with that to.</p>
<p><span id="more-47"></span></p>
<p>All my normal audiobooks is under the audiobook menu in the ipod. When transferring a audible book (.aa) file it pops up there. And transferring a .mp3 file it will go to the normal list of music. A mp3 will also start to play from the beginning when you go back to it. For podcast it remembers the place where you left of from playing and the same goes for an audiobook.</p>
<p>Checking a bit I found out that to have the ipod recognize the file as an audiobook as has to be an AAC encoded mp4 file (.m4a) file and that the filename has to be .m4b.</p>
<h2>AAC</h2>
<p>AAC or Advanced Audio Coding, is a MPEG (Motion Pictures Experts Group) audio standard first adopted as part of the MPEG-2 family of standards. The best known example of this is Apple&#8217;s iTunes online store and software. iTunes AAC files are stored in the standard MP4 container, but generally with an extention of .M4A to denote that they only contain audio.</p>
<p>The audiobooks is a normal m4a file but just renamed to m4b. So we need to convert the file. This can be done with mpg123 and faac. So we download and install them.</p>
<pre>sudo apt-get install mpg123 faac</pre>
<p>Now we can use mpg123 to play the files and pipe it to faac to convert it. This files I have for the ringworld book is normal mp3 files &#8211; MPEG 1.0 layer III, 128 kbits/s, 44100 Hz joint-stereo files. So we can convert them with the standard commands:</p>
<pre>mpg123 -s * | faac -b 80 -P -X -w -o output.m4a -</pre>
<p>This works nicely and create a big file (460mb), bu in all workable on the ipod. So i started to do the same for the Ringwold Engeneer &#8211; book 2 in the Ringworld series and it is playing like on 4 times the speed. Annoying. It seems that the files are 22khx mono files and that faac or mpg123 is not making the conversation right.</p>
<p>So i found another tool  &#8211; <em><strong>MP3 to iPod Audio Book Converter</strong></em> &#8211; and its free but runs under windows &#8211; well actually if you look under the hood and gt the source you can se that it seems to be a java program, but I downloaded the installer from <a href="http://www.freeipodsoftware.com/index.php" target="_blank">here</a>, and tested it under wine and it works perfectly. It creates m4b files. It handles my 22 khz mono files right. It is graphical &#8211; kind of OK &#8211; but not really needed, and it has a built in ID tag editor. So thats what i&#8217;m using now.</p>
<p>When you run the instaler it installs it and created a meny item in Wine -&gt; Programs -&gt; MP3 to iPod Audio Book Converter -&gt;  MP3 to iPod Audio Book Converter and you can run it from there.</p>
<h2>Ipod and homemade m4b</h2>
<p>There are problems with homemade m4b files, and it seems that when the ipod goes into sleep mode and you press play again to wake it up and press play again to start the load of the 460 mb file takes to long time and it fails and goes back to the main menu. It seems like its timing out.</p>
<p>I have noticed that all the audible files is max 100 mb large and if the files gets bigger they divide it into multiple parts. Can that be a trick to use. I reencoded my ringworld file into 4 parts and now its seems to play ok.</p>
]]></content:encoded>
			<wfw:commentRss>http://jan.saell.org/blog/archives/47/feed</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>phpmyadmin and remote databases</title>
		<link>http://jan.saell.org/blog/archives/42</link>
		<comments>http://jan.saell.org/blog/archives/42#comments</comments>
		<pubDate>Tue, 19 Aug 2008 19:02:24 +0000</pubDate>
		<dc:creator>jansaell</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[phpmyadmin]]></category>
		<category><![CDATA[remote database]]></category>
		<category><![CDATA[ssh]]></category>
		<category><![CDATA[ssh tunneling]]></category>

		<guid isPermaLink="false">http://jan.saell.org/blog/?p=42</guid>
		<description><![CDATA[So you are using mysql as a database and want to control and work with it. Same here. We have all our own system mostly running on Linux and a lot of applications are using the mysql database. I also have a lot of customer using mysql so I need to be able to use [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-medium wp-image-12" title="English" src="http://jan.saell.org/blog/wp-content/uploads/2008/06/uk.png" alt="" width="18" height="14" /> So you are using mysql as a database and want to control and work with it. Same here. We have all our own system mostly running on Linux and a lot of applications are using the mysql database. I also have a lot of customer using mysql so I need to be able to use it and work a lot with mysql.</p>
<p>You can ofcouse use the command line for a lot of things and many times I do use that. But some times a graphical tool is god to use, especially when you are converting old applications and need to jump between tables and getting an overview of a system.</p>
<p>When I was using my old machine under windows there was a program called EMS SQL Manager (comercial) so you had to by it but it was very good. So i was looking for a simmelar program under linux and came across phpmyadmin ofcouse.</p>
<p><span id="more-42"></span></p>
<p>This is a webapplications written in PHP and you can install it on a server or on your own system. I would prefer to have it running on my local server / laptop and access databases remote as I don&#8217;t want to install web and software in all serves im working on. So I started with installing phpmyadmin on my laptop. There is an package that is called phpmyadmin os its just to install that with:</p>
<pre>sudo apt-get install phpmyadmin</pre>
<p>I can then go to locahost/phpmyadmin and login and work on the local databases.</p>
<h2>Access other servers</h2>
<p>Thats all god and fine but now i want to access other servers. There is 2 different ways of doing this. First you can enable the &#8220;Any Server&#8221; field so that anyone can enter in an address and that phpmyadmin will connect to that database. Its something I kind off need as sometimes you dont want to add the server to the phpmyadmin config file, but just access it a few time.</p>
<p>It is ofcouse a security problem as anyone with web access to your machine can use it to connect to any other mysql sever, but as most of the time my laptop is behind a firewall with very restricted access to it, I can cope.</p>
<p>What you do to enable this is to add one line to the config file (/etc/phpmyadmin/config.inc.php):</p>
<pre>$cfg['AllowArbitraryServer'] = TRUE;</pre>
<p>This will pop up one more input field on the login page called <em><strong>Server</strong></em> and that will allow you to enter the server you whnat to connect to. You can actually enter both the IP or hostname of the server and the port name (after a : ) if you are running mysql on a special port.</p>
<p>And this leads into ssh tunnelling.</p>
<h2>Mysql ssh tunneling</h2>
<p>One other way to get to a mysql database even through firewalls and other hindrance is to use ssh tunnelling.</p>
<p>You do this with the <em><strong>-L</strong></em> flag to ssh.</p>
<p>So as en example:</p>
<pre>ssh -L 7778:localhost:3306 jan@www.foo.net</pre>
<p>will take port 7778 on my local machine and forward that to port 3306 on the other end (localhost on that end). And that is ofcuase the mysql port. So if you can log in to a server ytou can forward a port that way.</p>
<p>This is ofcuase a great way of working with severs and mysql servers, and you can then type in 127.0.0.1:7778 in the server field on the login page of phpmyadmin and work with the remote database.</p>
<p>If you have one or more servers that you regularly are working on the is a way of makeing this even easier.</p>
<p>I have created on small shellscript in the bin directory in my home directory. Its has the same name as the server &#8211; lets say <em><strong>foo</strong></em> and consists of:</p>
<pre>#!/bin/sh
#Start ssh to foo with forwarding of mysql port
echo "ssh -L 7778:localhost:3306 jan@www.foo.net"
ssh -L 7778:localhost:3306 jan@www.foo.net</pre>
<p>This way i only have to type <em><strong>foo</strong></em> to access the server and the right ports get forwarded. You could do the same with the <em><strong>config</strong></em> file in ~ssh also.</p>
<p>The you can add the folloing lines to the config file (/etc/phpmyadmin/config.inc.php):</p>
<pre>//-------------------------------------------------
$i++;
$cfg['Servers'][$i]['host']          = '127.0.0.1';
$cfg['Servers'][$i]['port']          = '7779';
$cfg['Servers'][$i]['socket']        = '';
$cfg['Servers'][$i]['connect_type']  = 'tcp';
$cfg['Servers'][$i]['extension']     = 'mysql';
$cfg['Servers'][$i]['compress']      = FALSE;
$cfg['Servers'][$i]['controluser']   = '';
$cfg['Servers'][$i]['controlpass']   = '';
$cfg['Servers'][$i]['auth_type']     = 'cookie';
$cfg['Servers'][$i]['user']          = '';
$cfg['Servers'][$i]['password']      = '';
$cfg['Servers'][$i]['only_db']       = '';
$cfg['Servers'][$i]['verbose']       = 'foo.net';</pre>
<p>This will give you one more server named <em><strong>foo.net</strong></em> that can be accessed in the drop down <em><strong>Server Choice</strong></em> box.</p>
<p>This is how I solved my need. Hope it will help someone else.</p>
]]></content:encoded>
			<wfw:commentRss>http://jan.saell.org/blog/archives/42/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Linux and Audible</title>
		<link>http://jan.saell.org/blog/archives/39</link>
		<comments>http://jan.saell.org/blog/archives/39#comments</comments>
		<pubDate>Thu, 07 Aug 2008 20:26:18 +0000</pubDate>
		<dc:creator>jansaell</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[ipod]]></category>

		<guid isPermaLink="false">http://jan.saell.org/blog/?p=39</guid>
		<description><![CDATA[As this dont work for me any more I have a new entry about how to use Virtualbox to convert and listen to audible content here. Summer time and reading is a god combination. As some of you know that knows me I do a lot of reading but I do most of it as [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-medium wp-image-12" title="English" src="http://jan.saell.org/blog/wp-content/uploads/2008/06/uk.png" alt="" width="18" height="14" /> As this dont work for me any more I have a new entry about how to use Virtualbox to convert and listen to audible content <a href="http://jan.saell.org/blog/archives/526">here</a>.</p>
<p>Summer time and reading is a god combination. As some of you know that knows me I do a lot of reading but I do most of it as Audio Books. I have for many years done quite some travelling and sitting and driving for a long time requires something to do. And I listen to Audio books. And preferable Science Fiction. I also listen to quite a lot of Pod Cast, both in general interest like the Weekly Science News and some for more specific interest, like the EVE pod cast for the EVE-Online game.</p>
<p>And I have already talked erlier about my set-up of Amarok so that it would handle my ipod and download my music and pod cast to that. No Problems.</p>
<p><span id="more-39"></span></p>
<p>To get my Audio books I have mainly used the <a title="Audible Home Page" href="http://www.auduble.com/" target="_blank">Audible</a> Site. This is quite a god site for audio books. Its ofcuase commercial and you have to pay for the books, but its kind of OK. I have been a premium member for 4 years now or so and it works very well. Except for one small think. It only Windows or Mac oriented.</p>
<p>The Audiobooks are encrypted and locked down to you devices &#8211; don&#8217;t ask me how but the files is a .aa file and you have to have special player for that. And they exists in the ipod, and on mac or windows. So you cant play the files on a Linux machine. That is not a big deal for me as I&#8217;m only transferring them to my ipod and listen to them there. On my old machine I used the VMware installation I had, and had a Itune setup on it so that it and the audible download helper downloaded it. And then I transferred it to my ipod using the files that itunes created and had Amarok to download it to the ipod. Worked kind of ok even it was an extra step to starup vmware as soon as you whanted to download you books. Well it did not happen that often, so it was ok but would have been nice to no have to do that all the time.</p>
<p>But now when i have moved over to the new machine itunes will not import the file.It complains about write permissions to my music directory and as far as I can see it has all the rights its should have. I was fiddling a bit with the download and found out that:</p>
<ol>
<li>I could move the download directory of the Virtual harddrive and to my shared device &#8211; the download helper had no problems with writing on that disk.</li>
<li>I could also get that file into Amarok and transfer it to the ipod, so it works again.</li>
</ol>
<h2>Wine to the rescue</h2>
<p>After thinking a bit and wondering a bit about it, I did some testing with Firefox 3 and Linux. When audible send a download, it will send a small .pl file. On windows the small AudibleDownloadHelper.exe program will then start and download the file and I guess decrypt it or something. So I looked into my vmware installation and saw that there is a directory where the audile things are installed. C:\Program\Audible and it has a Bin directory with 2 .exe files, 2 .dll files and .AUD file. SO i copied that over to my home diretory.</p>
<p>I then run the AudibleDownloadHelper.exe manually (with <em><strong>wine AudibleDownloadHelper.exe</strong></em>) and it popped up the config screen for the program and I could set where I wanted the downloaded files to be stored.</p>
<p><a href="http://jan.saell.org/blog/wp-content/uploads/2008/08/adh1.png" target="_blank"><img class="alignnone size-medium wp-image-40" title="AudibleDownloadHelper.exe config screen" src="http://jan.saell.org/blog/wp-content/uploads/2008/08/adh1-269x300.png" alt="" width="269" height="300" /></a></p>
<p>I then run it again with the .pl file as the argument and it actualy downloads the thing and stores it where i whanted. Horay.</p>
<p>So the last thing to test is to set the AudibleDownloadHelper.exe as the program to handle .pl files and it will start the program automatically. This works perfectly and I can now download my Audible books without even having to start vmware.</p>
]]></content:encoded>
			<wfw:commentRss>http://jan.saell.org/blog/archives/39/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>Acer, kubuntu and pulseaudio</title>
		<link>http://jan.saell.org/blog/archives/34</link>
		<comments>http://jan.saell.org/blog/archives/34#comments</comments>
		<pubDate>Thu, 31 Jul 2008 11:44:07 +0000</pubDate>
		<dc:creator>jansaell</dc:creator>
				<category><![CDATA[EVE-Online]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://jan.saell.org/blog/?p=34</guid>
		<description><![CDATA[So having got the sound to work on my Acer Aspire 8920 there was one small annoyance left and that is that I can only use one sound application at the time. It does not sound as a very bad thing, but its annoying. Like when i playing my game and someone sends me a [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-medium wp-image-12" title="English" src="http://jan.saell.org/blog/wp-content/uploads/2008/06/uk.png" alt="" width="18" height="14" /> So having got the sound to work on my Acer Aspire 8920 there was one small annoyance left and that is that I can only use one sound application at the time. It does not sound as a very bad thing, but its annoying. Like when i playing my game and someone sends me a msn message, kde tries to sound a audible warning or notification and I cant here then &#8211; all will pop up when the game closes down.</p>
<p>When reading about pulseaudio it seems to promise to solve all the problems, multiple applications and even individual volume controls for each application, so it seems promising. The only problem is that kde is not handling pulseaudio direct so there might be some work necessary to get the kde notifications going.</p>
<p>First thing ofcuase was to get the sound to work at all. Without ALSA working i dont think this would have succeeded at all. I did found 2 notes/links to information about how to do this so i followed that and added some things of my own.</p>
<p><span id="more-34"></span></p>
<h2>Install pulseaudio</h2>
<p>Started of with backing up important configuration files (don&#8217;t worry if you see &#8220;no such file or directory&#8221; warnings):</p>
<pre>mkdir ~/pulse-backup; sudo mv ~/.asoundrc* /etc/asound.conf ~/pulse-backup/
cp /etc/pulse/daemon.conf /etc/pulse/default.pa ~/.pulse/</pre>
<p>Then we install some packages to ensure that all the pulsaudio will work right. I also added the pulseaudio package to this (all on on line):</p>
<pre>sudo apt-get install libasound2 libasound2-plugins libasound2-dev padevchooser swh-plugins
libao-pulse libsdl1.2debian-pulseaudio ladspa-sdk pulseaudio</pre>
<p>Create a new &#8220;~/.libao&#8221; file and set the default driver to &#8220;pulse&#8221; for libao applications:</p>
<pre>echo "default_driver=pulse" &gt;~/.libao</pre>
<p>Create a new &#8220;~/.asoundrc&#8221; file:</p>
<pre>vi ~/.asoundrc</pre>
<p>And add the following to the file:</p>
<pre>pcm.!default {
  type pulse
}
ctl.!default {
  type pulse
}
pcm.pulse {
  type pulse
}
ctl.pulse {
  type pulse
}
</pre>
<p>This should have set everything up and so. The only thing left is to go into sound and hardware and set the sound system up to ALSA.</p>
<p>And still no sound.</p>
<p>So reading some more and found another guide, so I followed that to. This will probably be some overlaps but lets try it also.</p>
<p>Install additional packages:</p>
<pre>sudo apt-get install libao-pulse libasound2-plugins</pre>
<p>Edit <em><strong>/etc/asound.conf</strong></em> and set the following content:</p>
<pre>pcm.pulse {
    type pulse
}
ctl.pulse {
    type pulse
}
pcm.!default {
    type pulse
}
ctl.!default {
    type pulse
}</pre>
<p>Edit  <em><strong>/etc/libao.conf</strong></em> and have the content sat to:</p>
<div style="margin: 5px 20px 20px;">
<pre>default_driver=pulse</pre>
</div>
<p>If the files dont exists, create them..</p>
<p>Install more packages and packaged for the default libSDL:</p>
<pre>sudo apt-get install libflashsupport padevchooser pulseaudio-module-hal pulseaudio-module-x11
sudo apt-get install libsdl1.2debian libsdl1.2debian-alsa</pre>
<p>The last install will warn about conflicting installs but that as it should be. Allow it to install.</p>
<p>Now add the following lines to <em><strong>/etc/apt/sources.list</strong></em> (this will add a new repository, from zman0900 so that we can install the patched SDL driver):</p>
<pre>## zman0900's PPA
deb http://ppa.launchpad.net/zman0900/ubuntu hardy main
deb-src http://ppa.launchpad.net/zman0900/ubuntu hardy main</pre>
<p>Then run the following to get the patched DSL driver installed:</p>
<pre>sudo apt-get update
sudo apt-get upgrade
sudo apt-get install libsdl1.2debian-pulseaudio</pre>
<p>You will get a warning about installing from an unknown source but I went ahead and did it anyway.</p>
<p>Last thing to do now is setup one environment variable for the patched SDL driver and you do that by editing your .profile and add the following 2 lines to the end of the file:</p>
<pre># Make SDL audio work properly with Pulse
export SDL_AUDIODRIVER=pulse
</pre>
<p>This should be it and we can now reboot the machine and see if it works. And guess what, It did not. Hum more googeling and a bit of searching and I found out that for some reason the pulseaudion daemon did not start up as it should. First I tried to start it up manually with:</p>
<pre>pulseaudio -D</pre>
<p>And now the pulseaudio things works. Well kind of. I still don&#8217;t have any notifications from KDE but all other applications i start works so this is kind of on its way at least.</p>
<h2>Configure kde</h2>
<p>So KDE is not playing along so far. More sufring and checking for answers. Apparently KDE (and kde3 as I&#8217;m using) is using the artsd to play sounds. This daemon is not ready to work with pulseaudion, but it can be configured to work to esd (Enlightened Sound Daemon) and that one is OK with pulseaudio. So i reconfigured sound hardware and wolla I got it to work.</p>
<p>Sound from kopete when someone pings me, at the same time as i play music via amarok. Nice.</p>
<p>If you whant to do this you can edit the .kde/share/config/kcmartsrc</p>
<pre>[Arts]
AddOptions=
Arguments=\s-F 10 -S 4096 -a esd -n -s 1 -m artsmessage -c drkonqi -l 3 -f
AudioIO=esd
AutoSuspend=true
Bits=0
DeviceName=
FullDuplex=false
Latency=250
NetworkTransparent=true
SamplingRate=0
StartRealtime=true
StartServer=true
SuspendTime=1</pre>
<p>No its the only thing lft to test and thats to reboot the system and se that it works after that. So I reboot again and no sound &#8211; dam.</p>
<p>More checks and the sound daemon is not running. One suggestion is to make a small Autostart file in .kde/Autostart and that did start-up the pulseaudio daemon but there is still problem with the kde notifications and I think its due to the fact that Autostart starts up the pulseaudio deamon long after the time when the artsd has started and tried to access the sound already. Have to find a way to start the pulseaudio daemon earlier. After reading some manuals i found the way and its to configure Xsession (the program that normally start up Xsession in the X11 world). It has a number of config files and you can add new things in /etc/X11Xsession.d. So I created a new file <strong><em>/etc/X11/Xsession.d/99-pulseaudio</em></strong> withthe content:</p>
<pre>#!/bin/bash
pulseaudio -D</pre>
<p>And tested and rebooted the system (after removing the Autostart file first) and now the sound works perfectly as it should.</p>
<p>I did have a bit of a problem getting skype to work so you need to configure the daemon to get away with some of the stuttering. Se next part under skype for that config also.</p>
<h2>Applications</h2>
<p>So now the basics things in the system will work as it should and I can even adjust individual application sounds levels with the pulsaudio volume control &#8211; very nice. But not all applications are that well-behaved.</p>
<h3>amarok</h3>
<p>Amarok is using xine as a backend to play sounds and its fully integrated into the pulseaudio system so thats just works out of the box. Very nice.</p>
<h3>wine</h3>
<p>When reding the notes about wine it seems to be a problem but it also said that the latest version should work with <em><strong>padsp</strong></em> that emulates the oss layer onto pulseaudio.</p>
<p>So I started up winecfg and selected oss as the sound device. I then started up my EVE client with padsp:</p>
<pre>env WINEPREFIX="/home/jan/.wine" padsp wine "C:\Program Files\CCP\EVE\eve.exe" /end /LUA:OFF</pre>
<p>And it works prefectly. I changed my desktop icons to do the same and this is now working.</p>
<h3>skype</h3>
<p>Skype has some problems with pulseaudio it seems. There are some cases of stuttering an you can get that out of the way by changing the priority of the pulseaudio daemon.</p>
<p>Add your user to the groups &#8220;pulse-access&#8221; and &#8220;pulse-rt&#8221;:</p>
<pre>sudo adduser $USER pulse-access
sudo adduser $USER pulse-rt</pre>
<p>Edit <em><strong>~/.pulse/daemon.conf</strong></em>:</p>
<pre>vi ~/.pulse/daemon.conf</pre>
<p>Add the following lines to the end of the file, and save:</p>
<pre>high-priority = yes
nice-level = -11
realtime-scheduling = yes
realtime-priority = 5
default-fragments = 8
default-fragment-size-msec = 5
resample-method = speex-float-0</pre>
<p>As I&#8217;m using my USB headset for sound for my phone, I could set the output and input of the skype client to the USB plughw device, and set the ring device to pulse. This made my skype work.</p>
<h3>ekiga</h3>
<p>ekiga and my other softphone (sjphone) has a bit of a problem with pulseaudio, but the same thing as I did with skype, can be done with these to. As they do release the audio hardware after a call, and you really only can talk to one person at the same time, its not a big deal. Ekiga uses arts for its ring signal and that goes over the pulseaudio without any problem. So I can use it as it is now.</p>
<h3>audacity</h3>
<p>Audacity is the very nice sound tool for recording and manipulation sound files. It can unfortunately not use the pulseaudio system and will lock up and not work nicely if you try.</p>
<p>As this might happen for some applications there is a small utility called <em><strong>pasuspender</strong></em> that will stop the pulseaudio system, run one application and start up the pa system again after its done. Very handy. So to run audacity you do:</p>
<pre>pasuspender audacity</pre>
<p>That will make audacity having full access to the hardware while its running and when it stops you get the sound back over pulsaudio again. I changed my menu item for audacity to do te same.</p>
<h2>Links</h2>
<p><a href="http://ubuntuforums.org/showthread.php?t=789578" target="_blank">HOWTO: PulseAudio Fixes &amp; System-Wide Equalizer Support (Hardy Heron)</a></p>
<p><a href="http://ubuntuforums.org/showthread.php?t=776739" target="_blank">How To: The (almost) Perfect Pulse Audio Setup</a></p>
<p><a href="http://pulseaudio.org/wiki/PerfectSetup#ThirdPartyApplications" target="_blank">PulseAudio &#8211; The Perfect setup</a> talks a lot of different applications</p>
]]></content:encoded>
			<wfw:commentRss>http://jan.saell.org/blog/archives/34/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>Wine version 1.1.2</title>
		<link>http://jan.saell.org/blog/archives/31</link>
		<comments>http://jan.saell.org/blog/archives/31#comments</comments>
		<pubDate>Mon, 28 Jul 2008 15:18:06 +0000</pubDate>
		<dc:creator>jansaell</dc:creator>
				<category><![CDATA[EVE-Online]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://jan.saell.org/blog/?p=31</guid>
		<description><![CDATA[So most of you know that I&#8217;m playing EVE-Online on my machine and have been doing that on my Linux since I moved over over a year ago now. And it has been interesting and more or less very good. When moving over to the new machine i installed Wine version 0.9.58 as this version [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-medium wp-image-12" title="English" src="http://jan.saell.org/blog/wp-content/uploads/2008/06/uk.png" alt="" width="18" height="14" /> So most of you know that I&#8217;m playing EVE-Online on my machine and have been doing that on my Linux since I moved over over a year ago now. And it has been interesting and more or less very good.</p>
<p>When moving over to the new machine i installed Wine version 0.9.58 as this version worked and had almost no bugs. I have been trying new versions on and off when they come out but so far I haven&#8217;t found a newer version that was OK and worked well. So I stayed on 0.9.58. I have the Premium Graphics working and I can run 2 clients at the same time without the machine being to tired.</p>
<p>I did lock the version with both the synaptic package manager (package &gt;&gt; lock version) to lock it for synaptic but I also had to do a dpkg command to lock the adept package manager:</p>
<pre>echo wine hold | sudo dpkg --set-selections</pre>
<p>This was necessary for me so that the automatic updater would NOT update wine, but it was complaining all the time that there was a new release out there.</p>
<p><span id="more-31"></span></p>
<p>When I checked the updated today i saw that a new version of wine (1.1.2) was out there and after some checking on the forums it looked promising. So I decided to try it out. I just removed the hold of the application and let adept updated it:</p>
<pre>echo wine install | sudo dpkg --set-selections</pre>
<p>and then run the updater.</p>
<p>And it works &#8211; evryting except one small thing is working as it should. The thing that isn&#8217;t working is that when i start up the wine and eve client i get s 10 pixels or so alignment problem of the screen. So this requires a bit more googeling. But one way to solve it it to press &lt;ALT&gt; + &lt;ENTER&gt; to that wine switched to full screen more and then so the same again so it goes back into window mode &#8211; that works.</p>
]]></content:encoded>
			<wfw:commentRss>http://jan.saell.org/blog/archives/31/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>kubuntu and sound on a acer 8920</title>
		<link>http://jan.saell.org/blog/archives/30</link>
		<comments>http://jan.saell.org/blog/archives/30#comments</comments>
		<pubDate>Sat, 26 Jul 2008 10:11:04 +0000</pubDate>
		<dc:creator>jansaell</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://jan.saell.org/blog/?p=30</guid>
		<description><![CDATA[So its time to tackle the sound problem. When installing the Acer Aspier 8920 machine with Kubuntu 8.04 Hardy Heron I had the problem that it did not find the network card right and it also did not find the soundcard. Well it found the soundcard ok, but none of the speakers where working. The [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-medium wp-image-12" title="English" src="http://jan.saell.org/blog/wp-content/uploads/2008/06/uk.png" alt="" width="18" height="14" /> So its time to tackle the sound problem. When installing the Acer Aspier 8920 machine with Kubuntu 8.04 Hardy Heron I had the problem that it did not find the network card right and it also did not find the soundcard. Well it found the soundcard ok, but none of the speakers where working. The USB headset I had did work.</p>
<p>So after some googeling and finding out that the card i have in the machine is a new Intel HDA card, a Realtek ALC889. Apparently Intel has done this new standard of soundcards for on the motherboard mounting and as usually with a new standard its implemented slightly different on different machines.</p>
<p>So I did not find any notion of how to solve the problem, but there was this post that said that you could solve the problem by installing OSS4 instead of ALSA. There was ofcause a lot of discussions for and against OSS and if ALSA is better or of OSS of free enough, but frankly I don&#8217;t care. I want my stuff to work. I need the audible notification from kopete when someone send me a message, and i need my VOIP softphones to work, prefably with the USB Headset. What does it and how it does it I could not care less about.</p>
<p><span id="more-30"></span></p>
<p>This <a href="http://ubuntuforums.org/showthread.php?p=4874981" target="_blank">link &gt;&gt;</a> will show you how to install OSS4 on a ubuntu 8.04 machines.</p>
<p>So I did this and now the sound worked. Kind of. I got the sound partly to wok. Speakers works and I can here when someone send a message, and I can use wine to play my eve and get sound and use amarok to play music.</p>
<p>One small thing that they forgot to mention in the post was that OSS don&#8217;t fully come up when you reboot the machines, and you have to run <em><strong>ldconfig</strong></em> to get audacity to find the sound drivers right.</p>
<p>So i did edit <em><strong>/etc/rc.local</strong></em> with the command</p>
<pre>sudo vi /etc/rc.local</pre>
<p>and added the line</p>
<pre>ldconfig</pre>
<p>to the end before the <em><strong>exit 0</strong></em> line.</p>
<p>Then I started to test all my softphones and getting them over and working. And I found that no matter what I did and how I changed devices and setting I could not get the dam mic to work. Not the one on the machine itself or the USB headset one. So I put the project one ice for a while as sound kind of worked and it vacation time here in Sweden.</p>
<h2>Back to ALSA</h2>
<p>After some time on vacation its time to start working on the sound problem again.</p>
<p>For those who are interested just in the solving this is the solultion:</p>
<pre>Install alsa 1.0.17 (not totally shure if thats nessesary)
Set the model to acer-aspire in 7etc/mopdprobe.d/alsa-base
Download hda-verb from <a href="ftp://ftp.suse.com/pub/people/tiwai/misc/hda-verb-0.2.tar.bz2" target="_blank">here &gt;&gt;</a>
Compile and copy the hda-verb to /usr/local/bin
Add one line to /etc/rc.local:
/usr/local/bin/hda-verb /dev/snd/hwC0D0 0x15 SET_EAPD_BTLENABLE 2</pre>
<p>So the full explanation and all the links and so on.</p>
<p>I started by googeling and reading the forums. No full explenations what given enywhere, but some pointer here and there was given. The first one was to upgrade to ALSA 1.0.17. So i folowed the instructions <a href="http://ubuntu-utah.ubuntuforums.org/showthread.php?t=820959" target="_blank">here&gt;&gt;</a> and installed it. Make sure that you read all of the posting as the alsa_2.sh script is not working but the last post on page 3 has the right code to install the new ALSA on the right place. The code is:</p>
<pre>cd /lib/modules/2.6.24-19-generic
sudo cp -a kernel/sound/* ubuntu/sound/alsa-driver/</pre>
<p>But you will have to change the version of the kernel you are running.</p>
<p>Here is the output of my aplay -l command:</p>
<pre>**** List of PLAYBACK Hardware Devices ****
card 0: Intel [HDA Intel], device 0: ALC889 Analog [ALC889 Analog]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 0: Intel [HDA Intel], device 1: ALC889 Digital [ALC889 Digital]
Subdevices: 1/1
Subdevice #0: subdevice #0
card 1: Headset [Logitech USB Headset], device 0: USB Audio [USB Audio]
Subdevices: 1/1
Subdevice #0: subdevice #0</pre>
<p>And the output of the grep for Codecs is:</p>
<pre>Codec: Realtek ALC889
Codec: LSI ID 1040</pre>
<p>This installed the new version of ALSA, but the default config did not work. If you read the second replie in the previous mentioned post, you will find a list of all models and you can also find it in <em><strong>/usr/src/alsa/alsa-driver-1.0.17/alsa-kernel/Documentation/ALSA-Configuration.txt</strong></em> file after installing ALSA 1.0.17.</p>
<p>Unfortunately the alc889 card is not in the list, so I started out and tried all the models on the alc888 list. And after changing and rebooting like 40 times it felt like &#8211; none of them work. So i when back into googleing again. And found a <a href="http://mailman.alsa-project.org/pipermail/alsa-devel/2008-May/007653.html" target="_blank">link to a post</a> talking about the same problem and that you needed to send a code to the sound system to get it to work. I set the model to <em><strong>acer-aspire</strong></em> in <em><strong>/etc/modprobe.d/alsa-base</strong></em> as that seems to be the most logcal one.</p>
<p>So i downloaded the sourecode for the hda-verb program <a href="ftp://ftp.suse.com/pub/people/tiwai/misc/hda-verb-0.2.tar.bz2" target="_blank">here&gt;&gt;</a>. Unpacked it and compiled it. And then tested it by just running the command:</p>
<pre>./hda-verb /dev/snd/hwC0D0 0x15 SET_EAPD_BTLENABLE 2</pre>
<p>And it worked. So I copied the hda-verb program to <em><strong>/usr/local/bin</strong></em> and edited /etc/rc.local and inserted the line:</p>
<pre>/usr/local/bin/hda-verb /dev/snd/hwC0D0 0x15 SET_EAPD_BTLENABLE 2</pre>
<p>To the end of <em><strong>/etc/rc.local</strong></em>.before the <em><strong>exit 0</strong></em> line. And now my sound works as it should.</p>
<p>Testing with all the applications and all of my sipphones and it works.</p>
<p>I did offcause have to reinstall the alsa version of the skype program, but as i started with the one it ok.</p>
<h2>Update</h2>
<p>After some testing i found that I have a small problem with the sound and that is that the sound caard is locked up when using it from multiple applications. So i probably need to test with pulseaudio to se if that solves the problem. But ths a minor thing.</p>
]]></content:encoded>
			<wfw:commentRss>http://jan.saell.org/blog/archives/30/feed</wfw:commentRss>
		<slash:comments>61</slash:comments>
		</item>
		<item>
		<title>Kubuntu, telenor, 3G card and kppp</title>
		<link>http://jan.saell.org/blog/archives/23</link>
		<comments>http://jan.saell.org/blog/archives/23#comments</comments>
		<pubDate>Mon, 14 Jul 2008 10:09:43 +0000</pubDate>
		<dc:creator>jansaell</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://jan.saell.org/blog/?p=23</guid>
		<description><![CDATA[So this is time to get the backup 3G network card to work now. I have an extra 3G network card as a backup if I get stranded somewhere without a network. This is also god when he broadband connection fails or so. So i need to get that working on my new acer aspire [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-medium wp-image-12" title="English" src="http://jan.saell.org/blog/wp-content/uploads/2008/06/uk.png" alt="" width="18" height="14" /> So this is time to get the backup 3G network card to work now. I have an extra 3G network card as a backup if I get stranded somewhere without a network. This is also god when he broadband connection fails or so. So i need to get that working on my new acer aspire 8920g. The OS is kubuntu 8.04 Hardy Heron and my card is a telenor 3G card, made by Opteon and the model is ICON 7.2.</p>
<p>This is one of the new #G modems that behaves like a USB stick at first when you enter it as it has the drivers and stuff for windows on that. The driver the sends a command to the device to switch to Modem moden and can then use it for the connection.</p>
<p>This is ofcuase a small problem for us LInux users as linux will se the device as a USB stick and the drives there is ofcuase not any use to us linux users.</p>
<p><span id="more-23"></span></p>
<p>Fortunately a program for handling this as been developed by Josua Dietze at <a href="http://www.draisberghof.de/usb_modeswitch/" target="_blank">http://www.draisberghof.de/usb_modeswitch/</a></p>
<p>This little program has a config file for different cards and will be used tgether with some config of the udev system to get all of this to work. I am using version 0.9.3 of the software.</p>
<p>So you start with downloading the software, and unpack it into a directory. Then compile it for your machine (a simple shellscript &#8211; compile.sh) is included. You need to have libusb installed as its using that so if your minssing that you need to do a:</p>
<pre>sudo apt-get install libusb</pre>
<p>I then copied the config file to <em><strong>/etc/usb_modemswitch.conf</strong></em> and the binary to <em><strong>/sbin/usb_modemswitch</strong></em>.</p>
<p>In the config file you make shure that (and this if ofcuase for my card) the following lines are uncommented and all other lines are commted out:</p>
<pre>#######################################################
# Option GlobeSurfer Icon 7.2
#
# Contributor: The Pharscape Forum

DefaultVendor=          0x05c6
DefaultProduct= 0x1000

TargetVendor=           0x0af0
TargetProduct=          0x6901

MessageEndpoint=0x05
MessageContent="55534243123456780000000000000601000000000000000000000000000000"</pre>
<p>This setup will switch my card over.</p>
<h2>Udev</h2>
<p>So the next part is to configure udev so that it will run usb_modemswitch when the device is plugged in.</p>
<p>I created a small udev rule file called 99-opteon.rules in /etc/udev/rules.d with the content:</p>
<pre>##
#
# udev rule for Opteon ICON 7.2.
# ------------------------------
# Jan Saell &lt;jan@irial.com&gt;
#
# This rule switched over a Opteion ZeroCD (TM) usb modem card
# from storage mode to modem mode
#
##

BUS=="usb", ATTRS{idVendor}=="05c6", ATTRS{idProduct}=="1000",  RUN+="/sbin/usb_modeswitch"</pre>
<p>The idVendor and idProduct values has ofcuase to be changed if you have another card.</p>
<p>So when i now plug in the device, udev sees it, and runs usb_modemswitch and switched it over to modem mode.</p>
<h2>kppp</h2>
<p>Next step is to get kpp working.</p>
<p>I created one modem called &#8220;Card&#8221; and one account called &#8220;Telenor&#8221;.</p>
<p>For most of the time you don&#8217;t need any user name and password for the things so only fill it in with some dummy values.</p>
<p><a href="http://jan.saell.org/blog/wp-content/uploads/2008/07/kppp1.png"><img class="alignnone size-medium wp-image-24" title="kppp1" src="http://jan.saell.org/blog/wp-content/uploads/2008/07/kppp1-300x146.png" alt="" width="300" height="146" /></a></p>
<p>The Card is configures as follows:</p>
<p><a href="http://jan.saell.org/blog/wp-content/uploads/2008/07/kppp2.png"><img class="alignnone size-medium wp-image-25" title="kppp2" src="http://jan.saell.org/blog/wp-content/uploads/2008/07/kppp2-300x276.png" alt="" width="300" height="276" /></a></p>
<p>And you have to go into the Modem tab and change some settings:</p>
<p><a href="http://jan.saell.org/blog/wp-content/uploads/2008/07/kppp3.png"><img class="alignnone size-medium wp-image-26" title="kppp3" src="http://jan.saell.org/blog/wp-content/uploads/2008/07/kppp3-300x276.png" alt="" width="300" height="276" /></a></p>
<p>All the important settings is under the Modem Commands one:</p>
<p><a href="http://jan.saell.org/blog/wp-content/uploads/2008/07/kppp4.png"><img class="alignnone size-medium wp-image-27" title="kppp4" src="http://jan.saell.org/blog/wp-content/uploads/2008/07/kppp41-300x281.png" alt="" width="300" height="281" /></a></p>
<p>The important settings here is:</p>
<pre>AT+CGDCONT=1,"IP","services.vodafone.net"</pre>
<p>The services.vodafone.net part is the APN and that is different depending on what service and ISP you are using.</p>
<p>A list of a lot of APN can be found here: <a href="http://franson.com/forum/topic.asp?TOPIC_ID=6669" target="_blank">http://franson.com/forum/topic.asp?TOPIC_ID=6669</a>, <a href="http://www.vysoo.com/apn.php#416" target="_blank">http://www.vysoo.com/apn.php#416</a> or here: <a href="http://www.modmyifone.com/wiki/index.php/Carrier_APN_Settings" target="_blank">http://www.modmyifone.com/wiki/index.php/Carrier_APN_Settings</a>.</p>
<p>The last thing is the Account setting:</p>
<p><a href="http://jan.saell.org/blog/wp-content/uploads/2008/07/kppp5.png"><img class="alignnone size-medium wp-image-28" title="kppp5" src="http://jan.saell.org/blog/wp-content/uploads/2008/07/kppp5-300x275.png" alt="" width="300" height="275" /></a></p>
<p>This took care of everyting for me and I can now use the telnor services to connect over #G and get internet even if I dont have any other connectivity.</p>
]]></content:encoded>
			<wfw:commentRss>http://jan.saell.org/blog/archives/23/feed</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Mysql, amarok and ipod &#8211; Moving over part 4</title>
		<link>http://jan.saell.org/blog/archives/21</link>
		<comments>http://jan.saell.org/blog/archives/21#comments</comments>
		<pubDate>Tue, 01 Jul 2008 16:49:32 +0000</pubDate>
		<dc:creator>jansaell</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[ipod]]></category>

		<guid isPermaLink="false">http://jan.saell.org/blog/?p=21</guid>
		<description><![CDATA[So it is time to get the last bits over from the old machine. To make the search indexes happy the new machine is an acer aspire 8920g, OS is kubuntu 8.04 Hardy Heron and my ipod is and apple ipod video 60 gb and i think they say its a iPod (5th generation). As [...]]]></description>
			<content:encoded><![CDATA[<p><img title="English" src="http://jan.saell.org/blog/wp-content/uploads/2008/06/uk.png" alt="" width="18" height="14" /> So it is time to get the last bits over from the old machine. To make the search indexes happy the new machine is an acer aspire 8920g, OS is kubuntu 8.04 Hardy Heron and my ipod is and apple ipod video 60 gb and i think they say its a iPod (5th generation).</p>
<p>As a lot of you know I have had some change in my personal life, so I did this work the 1:th but haven&#8217;t had time to publish it. So thats why the date is perhapes a bit missleading.</p>
<p>I think now its 3 major things I need to get over:</p>
<ul>
<li>amarok and my music and connection to my ipod.</li>
<li>my palm and syncing the palm</li>
<li>the mobile network setting is have as a backup if networks fails.</li>
</ul>
<p>And today we will do the amarok.</p>
<p>Amarok is the preferred music program that plays my mp3&#8242;s and more important it handles all my pod casts and downloads them and transfers them to my ipod. So the first thing is to get Amarok going. But to get that going I have to get the mysql databases over from the old machine.</p>
<p>I have already transferred over all my music collection. But amarok keeps the podcast in its own directory. And it also uses mysql and a database for ll the music collection data. Well amarok can be configured in a number fo ways but as I am using the mysql-database for other things I can as well use it for amarok.</p>
<p><span id="more-21"></span></p>
<p>The fist thing is to dump the databases from the old machine. I have copied over all the data but not the databases, and the best thing to use is to dump the databases with mysqldump. Over to the old machine and do the dump. I then check what databases I had on the machine, and use mysqldump for each database to a file:</p>
<pre>mysqldump -p --extended-insert=FALSE amarok &gt; /tmp/amarok.sql</pre>
<p>And the repeat it for all the databases.</p>
<p>Ti start on the new machine I first have to get the right user and persmission into mysql as i plan to copy the amarok settings over. I dumped the mysql database also on the old machine just to be shure. And the user data is in the <em>user</em> table and the permissions is in the <em>db</em> table, so I edit the files and just take out the permissions and user data for the amarok db and amarok database user. Save it to a separate file. Then i ceated the amarok database and loaded the users with:</p>
<pre>mysql -u xxx -p mysql &lt; mysql_userload.sql</pre>
<p>and the loaded the amarok database with:</p>
<pre>mysql -u xxx -p amarok &lt; amarok.sql</pre>
<p>That should take care ok the database. Now it up to the settings of amarok itself.</p>
<h2>Amarok</h2>
<p>The config files for the amaok application is in .kde/share/config/amarokrc so i copied that from my old directory. The data for the application is in .kde/share/apps/amarok so that one to is copied over from the old directory. And now its time to start up nd test.</p>
<p>Starting amaork works fine &#8211; no error messages or anything and all my podcasts shows up. But nothing in the collection. None of my old album is in there,. Strange.</p>
<p>So after some more digging and googeling I found out that not only does the amarok stores the songs and albums and info in the database &#8211; it also stores the disk id&#8217;s in there. That to be able to handle removable disks and so its kind of god &#8211; but in this case its a bad thing.</p>
<p>The database table it is storing the information in is <em>devices</em>, so I cleaned out the amarok database and just started it up blank so it would fill in the information. I then dumped the database out and edited the old database dump so it reflected the new devices. I then reloaded the database but it still did not work.</p>
<p>Well I gave up the idea of reloading the database and just did a rescan of the music and that also worked.</p>
<h2>ipod</h2>
<p>So now when the amarok is working and downloading the podcasts I am listening to I need to get the ipod syncing going also.</p>
<p>So fist thing is just to plug it in and see if the system recognize it. And ofcause it does, and ask what to do with it. For now I select noting as im just testing. I had amarok turned of as i did not what that to interfere yet and it did not pop up and start automatically.</p>
<p>So eject the ipod and &#8230;. wait &#8211; that did not work. Ipod still attached. Eject again &#8211; noting works &#8211; now its not even mounted on the system but still connected according to the ipod &#8211; I hate hardware. Unpluging it did not make anything so i have to reset the ipod. I found the link to how to reset it <a title="REset ipod" href="http://support.apple.com/kb/HT1320?viewlocale=en_US" target="_blank">here&gt;&gt;</a>.</p>
<p>So reset the ipod and that did not damage the ipod and more googeling.</p>
<p>Apparently its a change in the udev system that makes the problem. I could plug in the ipod and do a sudo eject, and that worked but its kind of inconvenient and also &#8211; amarok will not make that working.</p>
<div class="boardCommentBody">
<div style="font-family: monospace;">
<p>Aparently at a Gutsy system udev would assign group rights of &#8220;plugdev&#8221; to USB portable storage, and Hardy is assigning &#8220;disk&#8221;.</p>
<p>Changing one line in /etc/udev/rules.d/40-permissions.rules will make it works. Its the line:</p>
<pre>ATTRS{type}=="0",                     GROUP="disk"</pre>
<p>This line is new in Hardy. After commenting it out I now get the right permissions and both the eject command works as expected and amarok works as it should.</p>
<p>So i did:</p>
<pre>sudo vi /etc/udev/rules.d/40-permissions.rules</pre>
<p>And then I did</p>
<pre>sudo udevadm control --reload_rules</pre>
<p>to have the udev system to reload the configurations. As far as i se its now fully working.</p>
<p>The last thing is to get amarok and ipod to work together and as I had the old one in the database and in the config, but that did not fully worked, I removed the old ipod from amarok and just added and new one and that worked perfectly.</p>
</div>
</div>
]]></content:encoded>
			<wfw:commentRss>http://jan.saell.org/blog/archives/21/feed</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Moving over &#8211; part 3</title>
		<link>http://jan.saell.org/blog/archives/19</link>
		<comments>http://jan.saell.org/blog/archives/19#comments</comments>
		<pubDate>Wed, 18 Jun 2008 11:58:26 +0000</pubDate>
		<dc:creator>jansaell</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://jan.saell.org/blog/?p=19</guid>
		<description><![CDATA[So its time to continu reporting of my move over to kubuntu8.04 on my new laptop &#8211; the Acer Aspire 8920. I have managed to get more and more of the necessary things over so im using the new laptop now for work every day, even if I am missing things. One of the main [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-medium wp-image-12" title="English" src="http://jan.saell.org/blog/wp-content/uploads/2008/06/uk.png" alt="" width="18" height="14" /> So its time to continu reporting of my move over to kubuntu8.04 on my new laptop &#8211; the Acer Aspire 8920. I have managed to get more and more of the necessary things over so im using the new laptop now for work every day, even if I am missing things.</p>
<p>One of the main things still to fully solve is the sound issue. I have tried to switch over to oss4 and that works and I do get sound from the KDE system, but it seems that a lot of the IP phones I&#8217;m using will not work. But lets go over the things one step at the time. The things I will cover today is the</p>
<ul>
<li>Blurtooth mouse</li>
<li>Flash for firefox</li>
<li>krdc</li>
<li>skype</li>
</ul>
<p><span id="more-19"></span></p>
<h2>Bluetooth mouse</h2>
<p>I do think that the touchpad is ok for some minor work, but when using the keyboard fully during the day and writing documents and other things, I think its in the way. I do have the tendency of moving the pointer while im typing and that usually means that I insert text wher I dont whant it. So I normally use a external Bluetooth mouse (from Microsoft <img src='http://jan.saell.org/blog/wp-includes/images/smilies/icon_smile.gif' alt=':-)' class='wp-smiley' />  ). But that has to be configured into the system.</p>
<p>Its realy not hard. I uses the command hcitool scan to se what different bluetooth devices is around and the do:</p>
<pre>sudo hidd --connect 00:xx:xx:xx:xx:xx</pre>
<p>where 00:xx:xx:xx:xx:xx if the adress of my mouse. That connects the mouse (and you have to remember to turn on bluetooth every time you boot the machine, but thats only one button). But I whant the connect to be done everytime the system boots, so we need to edit the /etc/default/blurtooth file.</p>
<p>Change the lines HIDD_ENABLED and HIDD_OPTIONS to the following</p>
<pre>HIDD_ENABLED=1
HIDD_OPTIONS="--connect 00:xx:xx:xx:xx:xx --master --server"</pre>
<p>This means that the system will connect to the mouse at startup and &#8211; as long as you remember to turn bluetooth on &#8211; you will have it running even during the login screen.</p>
<h2>Flash for firefox</h2>
<p>As im running hthe 64 bits version of the kubuntu OS and therefore the 64 bits version of firefox there is some notes out there about getting the flash plugin to work. After some googeling there seems to be quite easy to get it to work now. I needed only to install nspluginwrapper &#8211; this wrapper alows you to run the u386 versions of the plugins on 64 bits version of the OS and firefox. SO just run:</p>
<pre>sudo apt-get install nspluginwrapper flashplugin-nonfree lib32nss-mdns</pre>
<p>This installs the wrapper and the flash plugin and all works very well. Ther eis a small issue with th oss sound system but I will get back to that when I talk about the OSS install.</p>
<h2>krdc</h2>
<p>krdc is the KDE program for running remote desktop in the Linux world. Its a wonderful tool for using when you are a consultant like me and have customers with a lot of windows system. It allows you &#8211; among other things -  to connect to a windows server.</p>
<p>There is ofcuase a number of setting you need for that and I preferred to have my old setting copied over to the new system.</p>
<p>The config file for krdc is only in the file <em><strong>.kde/share/config/krdcrc</strong></em> so i copied that from the old system and now that works.</p>
<h2>Skype</h2>
<p>I have stuggled and keept out of the skype world for some time as I do work with free IP phones but more and more of my clients have skype and some is using that as a chat system also, so I did start and installed a client on the old system. I then ofcuase have to copy that over to the new system.</p>
<p>So the prerequsites for skype is ia32libs, and lib32asound2 so i installed this with:</p>
<pre>sudo apt-get install ia32-libs lib32asound2</pre>
<p>and the download the skype client with:</p>
<pre>wget -O skype-install.deb http://www.skype.com/go/getskype-linux-ubuntu</pre>
<p>and then install it all with:</p>
<p>sudo dpkg -i &#8211;force-all skype-install.deb</p>
<p>The &#8211;force-all is required as the .dep package is for the i376 platform specific and you whant to install it on this 64 bits version. This gives you the skype klient, and besides the oss / sound problem it works ok.</p>
]]></content:encoded>
			<wfw:commentRss>http://jan.saell.org/blog/archives/19/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Moving over &#8211; part2</title>
		<link>http://jan.saell.org/blog/archives/18</link>
		<comments>http://jan.saell.org/blog/archives/18#comments</comments>
		<pubDate>Sun, 15 Jun 2008 10:05:26 +0000</pubDate>
		<dc:creator>jansaell</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://jan.saell.org/blog/?p=18</guid>
		<description><![CDATA[So its time to move over. After fiddling and getting most of the stuff working I am now moving over to the new system. I already told you how I got the xplanet over to get my background and the firefox setting. I still have some issues with the system and OS but that has [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-medium wp-image-12" title="English" src="http://jan.saell.org/blog/wp-content/uploads/2008/06/uk.png" alt="" width="18" height="14" /> So its time to move over. After fiddling and getting most of the stuff working I am now moving over to the new system. I already told you how I got the xplanet over to get my background and the firefox setting. I still have some issues with the system and OS but that has to be solved during the trip. What&#8217;s relay left is:</p>
<ol>
<li>Sound system</li>
<li>Camera</li>
<li>Media card reader</li>
</ol>
<p>But none if this is very urgent &#8211; even if the sound part is a bit annoying and has to be solved fairly soon. The sound bit seems to be a bit OK as I managed to get the sound working with my USB headset so that should be OK, and means that I can use the system for the normal uses I think, like all my different softphones. I do work quite a lot with IP telephony and not being able to test on my main production system would be hard.</p>
<p><span id="more-18"></span></p>
<h2>knetworkmanager</h2>
<p>As I&#8217;m now in the summerhouse on the west coast of Sweden I connect to the network over wlan. This means to get the knetworkmanager settings over. This will help you get all the configs and networks you have connected to over to the new installation.</p>
<p>knetworkmanager has its setting in the file <em><strong>.kde/share/config/knetworkmanagerrc</strong></em> so i checked it and the only thing in the new one was that it had a new version in the [General] sections so i copied over all the rest of the lines.</p>
<h2>kwallet</h2>
<p>knetworkmanager also has all the passwords and so stored in a kwallet so i have to copy that settings over. The settings is in the .kde/share/config/knetworkmanagerrc and in .kde/share/apps/kwallet so i copied both tf hem over.</p>
<p>And then relogged in again and it just connected to the network. Nice.</p>
<h2>MSN/Kopete</h2>
<p>Well one of the main things to get over is the kopete or MSN messenger program. Kopete gives you the possibility to connect to msn and other messenger server and I do uses that as everyone else. The god thing with this program its that it can connect to more than one system at the same time.</p>
<p>It uses kwallet to store its passwords but thats already take care of, so the only files here is .kde/share/apps/kopete and .kde/share/config/kopeterc and .kde/share/config/kopete.eventsrc so i copied all of that over and now kopete starts up nice and easy and connected to all messenger services as i had.</p>
]]></content:encoded>
			<wfw:commentRss>http://jan.saell.org/blog/archives/18/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Taking the plunche</title>
		<link>http://jan.saell.org/blog/archives/16</link>
		<comments>http://jan.saell.org/blog/archives/16#comments</comments>
		<pubDate>Fri, 13 Jun 2008 16:38:17 +0000</pubDate>
		<dc:creator>jansaell</dc:creator>
				<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://jan.saell.org/blog/?p=16</guid>
		<description><![CDATA[So its time to take the full step and move over to the new laptop. I have made copies off all my data and all my music and so on so its time to start the full move over. I had to roads to head down on now. Move the old directory into place and [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-medium wp-image-12" title="English" src="http://jan.saell.org/blog/wp-content/uploads/2008/06/uk.png" alt="" width="18" height="14" /> So its time to take the full step and move over to the new laptop. I have made copies off all my data and all my music and so on so its time to start the full move over. I had to roads to head down on now.</p>
<ol>
<li>Move the old directory into place and trie to get KDE4 to work with that</li>
<li>Or to copy data over and get one application after another to work</li>
</ol>
<p>And I think that the second one was the best way. The old system i was running and moving from was an Kbuntu 7.04 so there was 2 versions to upgrade over and I was not shure that the upgrade system and all would cope with that, and I realy did not have much that I already had running on the new system so I decided to get application after application over.</p>
<p><span id="more-16"></span>There is not that many ones that is absolutly crutial, and there are some I would like. Im not shure I can rangorder them so im just going to talk about each one as I go along.</p>
<h2>xplanet</h2>
<p>As im kind of happy with how my old system worked I whant to have xplanet as the background. This program lets you have a background of, well any planet in the solar system, but I uses it to display a earthglobe centered over stockholm. This way I can see what the time is on different places on the world by just takeing a glance on the desktop. It can also download a cloudmap and ovelay that obver the normal earth picture so you also gets a notion of how the weather will be.</p>
<p>For some reason the xplanet was not installed so I had to install that:</p>
<pre>sudo apt-get install xplanet xplanet-images</pre>
<p>did the trick. Then i had to copy over the config files and the doanloader. The config files and the coordinates is under /usr/share/xplanet. The config file I uses is default.conf and the marker file i uses for the locations I whant is markers/earth. Copy them over and its ok.</p>
<p>The downloader is called doenload_clouds.pl and is also in /usr/share/xplanet. I  copied that one over and then installed it with sudo crontab -e. The line to add is:</p>
<pre>0 * * * *       /usr/share/xplanet/download_clouds.pl 2&gt;&amp;1 &gt; /dev/null</pre>
<p>The script will only do it of the file is older that 3 hours so thats ok.</p>
<h2>Firfox</h2>
<p>One other thing t get going is the bookmakrs and evryting with firefox. All the sertings fr firefox is in the .mozilla directory, and I was i bit curious if it would handle the old files right. The new system uses Firefox 3 and the old one had 2.</p>
<p>I moved teh new directory (.mozilla) over to .mozilla-new and copied in my old .mozilla directory. And the started up firefox. And that worked directly &#8211; no problems &#8211; and I it just worked. All my bookarks, password and even cookies is moved over &#8211; very nice and easy.</p>
]]></content:encoded>
			<wfw:commentRss>http://jan.saell.org/blog/archives/16/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Empyrian age is over us</title>
		<link>http://jan.saell.org/blog/archives/15</link>
		<comments>http://jan.saell.org/blog/archives/15#comments</comments>
		<pubDate>Wed, 11 Jun 2008 12:05:37 +0000</pubDate>
		<dc:creator>jansaell</dc:creator>
				<category><![CDATA[EVE-Online]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://jan.saell.org/blog/?p=15</guid>
		<description><![CDATA[So the new version of eve is over us. Will this work on Linux and will my client survive? It always a nice question as running the official client before was impossible on my laptop and the only way to run it was via wine. It run perfectly, usually. But sometimes it broke during patches [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-medium wp-image-12" title="English" src="http://jan.saell.org/blog/wp-content/uploads/2008/06/uk.png" alt="" width="18" height="14" /> So the new version of eve is over us. Will this work on Linux and will my client survive? It always a nice question as running the official client before was impossible on my laptop and the only way to run it was via wine. It run perfectly, usually. But sometimes it broke during patches and it took some time to fix wine to get it to work.</p>
<p>So while the eve system was down I spent some time trying to sync over all data from my old laptop to the new one.</p>
<p>First thing was to get all the installed applications installed the same way on the new machine. I found some references out on the net on how to dump the installed applications on the old machine to a file and then use that to install the same applications on the new one. So i tried that and it almost worked. Not quite.</p>
<p><span id="more-15"></span>To get all the installed applications out from a ubuntu/kubuntu or any debian based system you use the dpkg command and some grep and awk to make a nice list:</p>
<pre>sudo dpkg --get-selections | grep '[[:space:]]install' | awk '{print $1}'</pre>
<p>the command <em>dpkg &#8211;get-selections</em> gets all applications on the system. The <em>grep</em> then filters out only the installed ones and <em>awk</em> just prints out the package name.</p>
<p>Then do some editing of the list as there are some things you don&#8217;t want to install on the new system. Like i don&#8217;t want to install the fgl xorg drivers as i&#8217;m not using a ATI card on the new system, but already have installed the nvidia driver. So remove the following package in that case:</p>
<pre>fglrx-amdcccle
fglrx-kernel-2.6.20-16-generic
fglrx-kernel-source
xorg-driver-fglrx
xorg-driver-fglrx-dev
</pre>
<p>Then I removed all the linux version packages like <em>linux-headers-2.6.20-15</em> and others like that as i dont want old version on the system.</p>
<p>I then transfered the list over to the new system and use <em>xargs</em> to get <em>apt-get</em> to install it. The documentation out there just did a cat on the file and piped it into xargs &#8211; if you do this and you get some questions from <em>apt-get</em> you get a break as the input is connected to /dev/null. So i used the command:</p>
<pre>xargs -i /tmp/apt-get-list.txt -n 10 sudo apt-get install</pre>
<p>The -i flag tells xargs to use the file instead of stdin. and -n tell xargs to only do 10 args at a time.</p>
<p>Now it ran fine and I get a number of installs and I also had to say Y a number of times to install extra packages and so, but all in all I got all my applications installed now.</p>
<h2>Empyrian Age</h2>
<p>When I had installed everything I just &#8211; to make sure that the system still worked as it should &#8211; started up into the EVE client. I did not expect that the server would be back up, but it was. It asked if it should download the new patch and I said yes. It downloaded it and installed it &#8211; No problems. And finally I was in and all worked. A very nice patch indeed.</p>
<p>So i tested the official client also and that upgraded and installed a new version also without any problems.</p>
<p>So i can now run the new version of EVE. I&#8217;m happy.</p>
]]></content:encoded>
			<wfw:commentRss>http://jan.saell.org/blog/archives/15/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>EVE Premium graphics after a long weekend</title>
		<link>http://jan.saell.org/blog/archives/14</link>
		<comments>http://jan.saell.org/blog/archives/14#comments</comments>
		<pubDate>Tue, 10 Jun 2008 07:02:57 +0000</pubDate>
		<dc:creator>jansaell</dc:creator>
				<category><![CDATA[EVE-Online]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://jan.saell.org/blog/?p=14</guid>
		<description><![CDATA[So the weekend has been a very hot one in Sweden. The temperature has been over 30 degrees and thats very much by Swedish standards and when one is not quite prepared for it it gets very hot. We have been moving from the house to the apartment for the last month and the only [...]]]></description>
			<content:encoded><![CDATA[<p><img class="alignnone size-medium wp-image-12" title="English" src="http://jan.saell.org/blog/wp-content/uploads/2008/06/uk.png" alt="" width="18" height="14" /> So the weekend has been a very hot one in Sweden. The temperature has been over 30 degrees and thats very much by Swedish standards and when one is not quite prepared for it it gets very hot.</p>
<p>We have been moving from the house to the apartment for the last month and the only real thing left now is to finish off the garden so its in hand over state. And thats what we have been doing during the weekend.</p>
<p>But there has been small times when we haven&#8217;t moved or carried things. And I decided to test the wine and premium graphics to see if I could get it to work. From what I have read on the forum the wine version of EVE runs without any big problems.</p>
<p>So i copied all the .wine directory over form my old laptop and used that as a start &#8211; that way I also would retain my old setting in the EVE client and thats very useful.</p>
<p><span id="more-14"></span>First thing i tested was installing wine from the normal repository and that one did not work.</p>
<p>I got some strange errors and it would just not start. I then added the wine-hq repository with the command:</p>
<p><strong><em>sudo wget http://wine.budgetdedicated.com/apt/sources.list.d/hardy.list -O /etc/apt/sources.list.d/winehq.list</em></strong></p>
<p>And then do the install with:</p>
<p><strong><em>sudo apt-get install wine</em></strong></p>
<p>The version I got installed this time was the 1-0-rc3 and I still got the error. Problems &#8211; what to do. The error i got was:</p>
<pre>err:ole:CoGetClassObject class {9a5ea990-3034-4d6f-9128-01f3c61022bc} not registered
err:ole:CoGetClassObject no class object {9a5ea990-3034-4d6f-9128-01f3c61022bc}</pre>
<p>After checking and doing some reading is seems that the bug is due to some old initiation error and a patch for wine is out there. But its strange. I did run the old version and had no problem.</p>
<p>I decided to install the client from scratch. First i installed the msttcorefonts and copy them to ~/.wine/drive_c/windows/windows/fonts.</p>
<pre>cp /usr/share/fonts/trutype/msttcorefonts/* ~/.wine/drive_c/winedows/fonts/</pre>
<p>Then I went to the EVE-Online site and downloaded the windows premium client from the EVE-Online site. and then started the installer. After installing the client, dont start it just yet. Go into the eve directory and run the RedistD3DXOnly.exe with</p>
<pre>wine .wine/drive_c/Program\ Files/CC/EVE/bin/RedistD3DXOnly.exe</pre>
<p>That worked but i still got some weird error</p>
<pre>preloader: Warning: failed to reserve range 00000000-00010000</pre>
<p>This is because the new version of kubuntu has a harder memory protection and that conflicts with what wine does, so you need to relax that setting. This can be done with the command:</p>
<pre>sudo <span class="search_hit">sysctl</span> -w vm.mmap_min_addr=0</pre>
<p>But that only changes it temporary. To set it fully you need to edit /etc/sysctl.conf. Go in and change the line:</p>
<pre>vm.mmap_min_addr = 65536</pre>
<p>To</p>
<pre>vm.mmap_min_addr = 0</pre>
<p>This will change it for the futrure and keep the setting when you reboot the system.</p>
<p>Thats was it. I have wine working. BUt the latest version has some weird graphics errors, so I did some more googeling. Aparently the best version for running the eve premium grpahics is the 0.58 version.</p>
<p>So i downloaded it from the wine debian archive, removed the normal version and installed it. And perfect. You need to turn of shading in the client and change the wine registry setup for OffscreenRenderingMode.</p>
<p>Edit the <em><strong>~/.wine/user.reg</strong></em> file and add the following lines:</p>
<pre>[Software\\Wine\\Direct3D]
"DirectDrawRenderer"="opengl"
"OffscreenRenderingMode"="fbo"
"PixelShaderMode"="enabled"
"VertexShaderMode"="hardware"
"VideoMemorySize"="256"</pre>
<p>Then startup the client and change the shadow quality to of in the setting. This makes the premium graphics work very well,</p>
]]></content:encoded>
			<wfw:commentRss>http://jan.saell.org/blog/archives/14/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Testing EVE on the new machine</title>
		<link>http://jan.saell.org/blog/archives/7</link>
		<comments>http://jan.saell.org/blog/archives/7#comments</comments>
		<pubDate>Fri, 06 Jun 2008 15:33:20 +0000</pubDate>
		<dc:creator>jansaell</dc:creator>
				<category><![CDATA[EVE-Online]]></category>
		<category><![CDATA[Linux]]></category>

		<guid isPermaLink="false">http://jan.saell.org/blog/?p=7</guid>
		<description><![CDATA[More work on the new laptop. As I got my new nvidia card to work and its looks OK so far as I can see it, I need to do some testing. I have been playing EVE-Online now for quite some time and on the old laptop I could not play the official client and [...]]]></description>
			<content:encoded><![CDATA[<p><a href="http://jan.saell.org/blog/wp-content/uploads/2008/06/uk.png"><img class="alignnone size-medium wp-image-12" title="English" src="http://jan.saell.org/blog/wp-content/uploads/2008/06/uk.png" alt="" width="18" height="14" /></a> More work on the new laptop. As I got my new nvidia card to work and its looks OK so far as I can see it, I need to do some testing. I have been playing EVE-Online now for quite some time and on the old laptop I could not play the official client and had to run it via wine. That worked very well and I do want to continue doing that, but that will require some more install and transfer of data form the old laptop, so lets get the official one and do a quick test to see what the new graphics card can do.</p>
<p><span id="more-7"></span>I downloaded the official client for EVE-Online and saved the .deb file and run the installation as I should. No problem. Started up the configure program to configure it and I got an error that it missed some 32 bits libraries and I had not ofcourse installed that yet so that was kind of expected.</p>
<p>A bit more googleing gave me the info that I needed ia32-libs, util-linix, lib32nss.-mdns libasound2-plugins, so i installed that with the command:</p>
<pre>sudo ap-get install ia32-libs util-linux lib32nss-mdns libasound2-plugins</pre>
<p>Then it was time test again. Into the config and run all the test &#8211; no problems, all passed ok and no problem.</p>
<p>So fire up the game &#8211; and wow it starts but in full screen mode.</p>
<p>Bakc into the config program and change the &#8220;Run in Window&#8221; from No to 1280 x 1024. Back into the game and now it start as it should, but i can move the mouse outside the windows. Back into the config and change that to &#8211; thats the DCGrab check box and now the game works just right.</p>
<p>And the framerate i get outside our pos in 0.0 is almost up to 30 fps and on the old one I had around 8-10 fps &#8211; very nice and smooth.</p>
<p>When I get the wine version running its suposed to be able to run even the premium graphics moce so that will be nice.</p>
]]></content:encoded>
			<wfw:commentRss>http://jan.saell.org/blog/archives/7/feed</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>
