<?xml version='1.0' encoding='utf-8' ?>
<rss version='2.0' xmlns:dc='http://purl.org/dc/elements/1.1/'>
  <channel>
    <title>Wolfmans Howlings: Switching to KUbuntu from Redhat 9</title>
    <link>http://blog.wolfman.com/articles/2006/7/3/switching-to-kubuntu-from-redhat-9</link>
    <description>A programmers Blog about Ruby, Rails and a few other issue</description>
    <language>en-us</language>
    <ttl>40</ttl>
    <item>
      <title>Switching to KUbuntu from Redhat 9</title>
      <description>
        &lt;p&gt;OK it was time I upgraded my main development workstation from a
        highly modified Redhat 9 to something more up to date that actually
        gets security updates and has a good package manager.&lt;/p&gt;
        
        &lt;p&gt;I have been using Ubuntu for my servers for some time, and like the
        package management, but I am used to KDE now and don't really want to
        switch to Gnome on my workstation. So I decided to try to upgrade to
        KUbuntu.&lt;/p&gt;
        
        &lt;p&gt;Upgrading the actual Redhat 9 seemed a bad move, so I bought a new
        400GB drive (the Seagate ST3400633A, as its quiet and Fry's had it in
        sale for $118). The plan was to do a fresh install of KUbuntu onto that
        then copy over the stuff I need. After about 2 years of installing
        stuff and upgrading the kernel manually on the Redhat 9, this was
        going to be quite a task.&lt;/p&gt;
        
        &lt;h3&gt;First up Dual monitors.&lt;/h3&gt;
        
        &lt;p&gt;Unlike Windows and Mac OSX this doesn't &quot;just work&quot;. On my RH9 system,
        I had the proprietary ATI driver fglrx, running an old XFree86 Version
        4.3.0 server, and was only able to get two KDE desktops side by side
        but completely separate, this was OK, but part of the upgrade I wanted
        to be able to drag windows across monitors just like on Windows and
        OSX. My Video card was an ATI with a DVI and VGA connector which can
        both be ised at the same time.&lt;/p&gt;
        
        &lt;p&gt;After Googling it turned out some people found this easy and some
        hard, I finally got it to work, by installing the fglrx using aptitude
        install, getting the aticonfig to set up dual monitors, then telling
        KDE I had dual monitors. Seems you need to do both, oh and you need to
        actually power cycle between the changes to xorg.conf. Initially if I
        did not do the KDE setup step I got two screens but the cursor and
        windows were stuck on the first screen and KDE would not let the
        cursor or windows into the second screen. What seems to have happened
        is the latter step added the option &quot;Xinerama&quot;, even though everything
        I read said the fglrx drivers didn't need that option. (BTW it seemed
        to work on the standard Gnome version of Ubuntu without telling Gnome
        anything).&lt;/p&gt;
        
        &lt;p&gt;So following:&lt;/p&gt;
        
        &lt;pre&gt;&lt;code&gt;&amp;gt; sudo aticonfig --initial --dtop=horizontal
        &lt;/code&gt;&lt;/pre&gt;
        
        &lt;p&gt;I ran the System/Setup selected the monitor panel and set it to dual screen. then rebooted.&lt;/p&gt;
        
        &lt;p&gt;Ending up with this xorg.conf...&lt;/p&gt;
        
        &lt;pre&gt;&lt;code&gt;Section &quot;ServerLayout&quot;
          Identifier &quot;Default Layout&quot;
          screen 0 &quot;Primary Screen&quot; 0 0
          screen 1 &quot;screen1&quot; rightof &quot;Primary Screen&quot;
          InputDevice &quot;Mouse0&quot; &quot;CorePointer&quot;
          InputDevice &quot;Keyboard0&quot; &quot;CoreKeyboard&quot;
          InputDevice &quot;DevInputMice&quot; &quot;AlwaysCore&quot;
        EndSection
        
        Section &quot;Files&quot;
        
          # path to defoma fonts
          FontPath &quot;/usr/share/X11/fonts/misc&quot;
          FontPath &quot;/usr/share/X11/fonts/cyrillic&quot;
          FontPath &quot;/usr/share/X11/fonts/100dpi/:unscaled&quot;
          FontPath &quot;/usr/share/X11/fonts/75dpi/:unscaled&quot;
          FontPath &quot;/usr/share/X11/fonts/Type1&quot;
          FontPath &quot;/usr/share/X11/fonts/100dpi&quot;
          FontPath &quot;/usr/share/X11/fonts/75dpi&quot;
          FontPath &quot;/var/lib/defoma/x-ttcidfont-conf.d/dirs/TrueType&quot;
        EndSection
        
        Section &quot;Module&quot;
          Load &quot;i2c&quot;
          Load &quot;bitmap&quot;
          Load &quot;ddc&quot;
          Load &quot;extmod&quot;
          Load &quot;freetype&quot;
          Load &quot;int10&quot;
          Load &quot;type1&quot;
          Load &quot;vbe&quot;
          load &quot;glx&quot;
          load &quot;dbe&quot;
          load &quot;v4l&quot;
        EndSection
        
        Section &quot;InputDevice&quot;
          Identifier &quot;Keyboard0&quot;
          Driver &quot;kbd&quot;
          option &quot;XkbModel&quot; &quot;pc105&quot;
          option &quot;XkbLayout&quot; &quot;us&quot;
          option &quot;XkbRules&quot; &quot;xorg&quot;
        EndSection
        
        Section &quot;InputDevice&quot;
          Identifier &quot;Mouse0&quot;
          Driver &quot;mouse&quot;
          option &quot;Device&quot; &quot;/dev/input/mice&quot;
          option &quot;Protocol&quot; &quot;IMPS/2&quot;
          option &quot;Emulate3Buttons&quot; &quot;no&quot;
          option &quot;ZAxisMapping&quot; &quot;4 5&quot;
        EndSection
        
        Section &quot;InputDevice&quot;
          Identifier &quot;DevInputMice&quot;
          Driver &quot;mouse&quot;
          option &quot;Protocol&quot; &quot;IMPS/2&quot;
          option &quot;Device&quot; &quot;/dev/input/mice&quot;
          option &quot;ZAxisMapping&quot; &quot;4 5&quot;
          option &quot;Emulate3Buttons&quot; &quot;no&quot;
        EndSection
        
        Section &quot;Monitor&quot;
          identifier &quot;primarymonitor&quot;
          vendorname &quot;NEC&quot;
          modelname &quot;NEC MultiSync LCD1860NX (Analog)&quot;
          HorizSync 31.0-82.0
          VertRefresh 55.0-85.0
          modeline  &quot;1280x1024@60&quot; 108.0 1280 1328 1440 1688 1024 1025 1028 1066 +hsync +vsync
          gamma 1.0
        EndSection
        
        Section &quot;Device&quot;
          identifier &quot;Ati Radeon 9800 Pro 0&quot;
          boardname &quot;ati&quot;
          busid &quot;PCI:1:0:0&quot;
          driver &quot;fglrx&quot;
          screen 0
        EndSection
        
        Section &quot;Screen&quot;
          Identifier &quot;Primary Screen&quot;
          Device &quot;Ati Radeon 9800 Pro 0&quot;
          Monitor &quot;primarymonitor&quot;
          DefaultDepth 24
          SubSection &quot;Display&quot;
            depth 24
            modes &quot;1280x1024@60&quot;
          EndSubSection
        EndSection
        
        Section &quot;DRI&quot;
          Mode 0666
        EndSection
        
        Section &quot;device&quot; #
          identifier &quot;device1&quot;
          boardname &quot;ati&quot;
          busid &quot;PCI:1:0:0&quot;
          driver &quot;fglrx&quot;
          screen 1
        EndSection
        
        Section &quot;screen&quot; #
          identifier &quot;screen1&quot;
          device &quot;device1&quot;
          defaultdepth 24
          monitor &quot;monitor1&quot;
          SubSection &quot;Display&quot;
            depth 24
            modes &quot;1280x1024@60&quot;
          EndSubSection
        EndSection
        
        Section &quot;monitor&quot; #
          identifier &quot;monitor1&quot;
          vendorname &quot;Plug 'n' Play&quot;
          modelname &quot;Plug 'n' Play&quot;
          modeline  &quot;1280x1024@60&quot; 108.0 1280 1328 1440 1688 1024 1025 1028 1066 +hsync +vsync
          gamma 1.0
        EndSection
        
        Section &quot;ServerFlags&quot;
          option &quot;Xinerama&quot; &quot;true&quot;
        EndSection
        &lt;/code&gt;&lt;/pre&gt;
        
        &lt;p&gt;I had to hand edit the file to delete the duplicate monitor and screen definitions that were in there.&lt;/p&gt;
        
        &lt;h3&gt;Installing Ruby, Gems and fxruby&lt;/h3&gt;
        
        &lt;p&gt;I installed Ruby using the package manager, its just a matter of
        making sure you select everything you need.  The biggest problem I had
        was getting fxruby working (1.4.6 version). I installed fox1.4 from
        the package manager then loaded the fxruby gem using gem install.
        However none of my ruby progs using fox14 would work, they reported
        they couldn't load fox14. After much installing and uninstalling, the
        result was I found a bug in the fxruby gem install, the Makefile calls
        make clean after building the fox14.so, and happily deletes it after
        building it.. Duh!! I need to report that to the fxruby maintainer, it
        burnt about 2 hours of my time. What I did to fix it was simply...&lt;/p&gt;
        
        &lt;pre&gt;&lt;code&gt;&amp;gt; cd /usr/lib/ruby/gems/1.8/gems/fxruby-1.4.6/ext/fox14
        &amp;gt; make
        &lt;/code&gt;&lt;/pre&gt;
        
        &lt;p&gt;Update, according to the maintainer this is a bug in the latest release of gems 0.9.0&lt;/p&gt;
        
        &lt;p&gt;(BTW I wish Debian/Ubuntu put ruby in /usr/local where it belongs!)&lt;/p&gt;
        
        &lt;h3&gt;Thunderbird setup&lt;/h3&gt;
        
        &lt;p&gt;I simply copied the .thunderbird directory over to my new home, and
        everything seemed to work ok, except clicking on links in my email no
        longer worked. I had to edit my
        ~/.thunderbird/XXXXXXXXXXXX.default/prefs.js file and add the
        following...&lt;/p&gt;
        
        &lt;pre&gt;&lt;code&gt;user_pref(&quot;network.protocol-handler.app.ftp&quot;, &quot;/opt/firefox/firefox&quot;);
        user_pref(&quot;network.protocol-handler.app.http&quot;, &quot;/opt/firefox/firefox&quot;);
        &lt;/code&gt;&lt;/pre&gt;
        
        &lt;p&gt;Where XXXXXXXXX will be different on your machine, and also the path
        to firefox.&lt;/p&gt;
        
        &lt;p&gt;Also I copied my ~/.mozilla folder and firefox got al my bookmarks etc
        from before.&lt;/p&gt;
        
        &lt;h3&gt;Firefox setup&lt;/h3&gt;
        
        &lt;p&gt;Clicking on mailto links didn't work, this was fixed by adding this line&lt;/p&gt;
        
        &lt;pre&gt;&lt;code&gt;user_pref(&quot;network.protocol-handler.app.mailto&quot;,&quot;/opt/bin//thunderbird&quot;);
        &lt;/code&gt;&lt;/pre&gt;
        
        &lt;p&gt;to the user.js file (create a new one if it doesn't exist) that is found in ~/.mozilla/firefox/default.xxx&lt;/p&gt;
        
        &lt;p&gt;Of course the .xxx will be different on your system as will the path of thunderbird.&lt;/p&gt;
        
        &lt;h3&gt;Keyboard Mapping&lt;/h3&gt;
        
        &lt;p&gt;I like to map my caps lock key to the Win key, so I can use it to
        switch windows and desktops etc, I use a Unicomp Linux keboard, as it
        has a nice feel, with loud clicky keys, and the control key is where
        it is supposed to be, next to the A key, so it doesn't have a Win key,
        but the caps lock key is generally useless, so I use that.&lt;/p&gt;
        
        &lt;p&gt;It turns out that the Dapper version of KDE does not use the
        ~/.Xmodmap file as it is supposed to, so you need to manually run &lt;/p&gt;
        
        &lt;pre&gt;&lt;code&gt;&amp;gt; xmodmap ~/.Xmodmap
        &lt;/code&gt;&lt;/pre&gt;
        
        &lt;p&gt;One way that has been suggested to automate this is to put that
        command in the ~/.kde/Autostart, so that is what I did, I called the
        file mapwinkey, set chmod +x, put xmodmap $HOME/.Xmodmap in it, and
        put the shell script in the Autostart directory.&lt;/p&gt;
        
        &lt;p&gt;More to come as I do it...&lt;/p&gt;
        
        &lt;h3&gt;Migrating KDE settings&lt;/h3&gt;
        
        &lt;h3&gt;CPU/HW monitoring&lt;/h3&gt;
        
        &lt;h3&gt;Migrating applications&lt;/h3&gt;
        
        &lt;p&gt;&lt;a href=&quot;http://technorati.com/tag/ubuntu+dual+monitor&quot; rel=&quot;tag&quot;&gt;&lt;/a&gt;&lt;/p&gt;
        
        &lt;p&gt;&lt;a href=&quot;http://technorati.com/tag/ubuntu+xmodmap&quot; rel=&quot;tag&quot;&gt;&lt;/a&gt;&lt;/p&gt;
      </description>
      <author>Jim Morris</author>
      <pubDate>Mon, 03 Jul 2006 13:07:40 -0700</pubDate>
      <link>http://blog.wolfman.com/articles/2006/7/3/switching-to-kubuntu-from-redhat-9</link>
      <guid isPermaLink='false'>urn:uuid:6c02ab7f97716c75f6a803c378da702c</guid>
    </item>
  </channel>
</rss>
