<?xml version="1.0"?>
<rss version="2.0">
<channel>
  <title>Weiqi Gao&#039;s Observations - debian tag</title>
  <link>http://www.weiqigao.com/blog/tags/debian/</link>
  <description>Sharing My Experience...</description>
  <language>en</language>
  <copyright>Weiqi Gao</copyright>
  <lastBuildDate>Fri, 11 May 2012 12:48:36 GMT</lastBuildDate>
  <generator>Pebble (http://pebble.sourceforge.net)</generator>
  <docs>http://backend.userland.com/rss</docs>
  
  <image>
    <url>http://pebble.sourceforge.net/common/images/powered-by-pebble.gif</url>
    <title>Weiqi Gao&#039;s Observations</title>
    <link>http://www.weiqigao.com/blog/</link>
  </image>
  
  
  <item>
    <title>Killing Flash But Not Firefox: Yes You Can (On 64-bit Debian)</title>
    <link>http://www.weiqigao.com/blog/2008/09/08/killing_flash_but_not_firefox_yes_you_can_on_64_bit_debian.html</link>
    
      
        <description>
          &lt;p&gt;Reading the Google Chrome comic book last week lead me to the following line of thoughts:&lt;/p&gt;

&lt;p style=&#034;margin-left:3em&#034;&gt;&lt;b&gt;A&lt;/b&gt;: It would be nice if I can kill a tab as easily in Firefox as in Google Chrome.&lt;br/&gt;
&lt;b&gt;B&lt;/b&gt;: Nah, I can&#039;t because everything runs in the same process.&lt;br/&gt;
&lt;b&gt;A&lt;/b&gt;: But those darn Flash/Flex apps&amp;mdash;they routinely eats 100% of my CPU and hang all tabs, all the time&lt;br/&gt;
&lt;b&gt;B&lt;/b&gt;: Too bad they are in-proc.  But wait, &lt;span style=&#034;color:red&#034;&gt;they aren&#039;t on 64-bit Debian&lt;/span&gt;.&lt;/p&gt;

&lt;p&gt;Recall that Adobe provides their Flash plug-in for 32-bit Linux only.  And to use it in 64-bit Linux, a &lt;a href= &#034;http://gwenole.beauchesne.info//en/projects/nspluginwrapper&#034; &gt;nspluginwrapper&lt;/a&gt; is needed (as I reported &lt;a href= &#034;http://www.weiqigao.com/blog/2007/07/26/flash_player_9_for_64_bit_debian_4_0_heres_the_link.html&#034; &gt;410 days ago&lt;/a&gt;.)&lt;/p&gt;

&lt;p&gt;Yesterday, I got into one of those situations where Firefox is using 100% CPU and is not responding.  I fired up SystemMonitor and sure enough, underneath &lt;tt&gt;firefox-bin&lt;/tt&gt; there is a subprocess called &lt;tt&gt;nsviewer.bin&lt;/tt&gt;.  I killed the &lt;tt&gt;nsviewer.bin&lt;/tt&gt; process and Firefox (well, IceWeasel, to be precise) became responsive again.&lt;/p&gt;

&lt;p&gt;I was happy.&lt;/p&gt;
        </description>
      
      
    
    
    
    <comments>http://www.weiqigao.com/blog/2008/09/08/killing_flash_but_not_firefox_yes_you_can_on_64_bit_debian.html#comments</comments>
    <guid isPermaLink="true">http://www.weiqigao.com/blog/2008/09/08/killing_flash_but_not_firefox_yes_you_can_on_64_bit_debian.html</guid>
    <pubDate>Mon, 08 Sep 2008 16:31:35 GMT</pubDate>
  </item>
  
  <item>
    <title>Upgraded Weblog Software To Pebble 2.3.1</title>
    <link>http://www.weiqigao.com/blog/2008/08/07/upgraded_weblog_software_to_pebble_2_3_1.html</link>
    
      
        <description>
          &lt;p&gt;You won&#039;t feel it too much, but I have migrated this blog from gao-2002 (a.k.a my wife&#039;s workstation) to gao-2006 (my workstation), in order to give gao-2002 a much needed OS upgrade, from
Fedora Core 6 to something newer, maybe Fedora 9.&lt;/p&gt;

&lt;p&gt;I had a false start on Sunday when my first attempt resulted in some errors.  I spent the last few evenings experimenting with different migration procedures.  The final move this evening took me about 27 minutes, from 8:43pm to 9:10pm, most of the time was spent on customizing the page templates.&lt;/p&gt;

&lt;p&gt;Here&#039;s some parameters of the new setup of this blog:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;AMD Athlon(tm) 64 Processor 3500+&lt;/li&gt;
&lt;li&gt;cpu MHz: 2210.216&lt;/li&gt;
&lt;li&gt;Debian GNU/Linux 4.0&lt;/li&gt;
&lt;li&gt;&lt;span style=&#034;color:red&#034;&gt;Java 6 OpenJDK&lt;/span&gt;&lt;/li&gt;
&lt;li&gt;Apache Web Server 2.2.3&lt;/li&gt;
&lt;li&gt;apache2.2-common including proxy_ajp&lt;/li&gt;
&lt;li&gt;Tomcat 5.5.26&lt;/li&gt;
&lt;li&gt;Pebble 2.3.1&lt;/li&gt;
&lt;li&gt;JavaMail 1.4.1&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;[&lt;b&gt;Update&lt;/b&gt;] I&#039;m having some additional challenges with the new setup.  When I saved this blog entry, I received an error page.  I&#039;ll see if I can get this blog entry published by some other means.  The worse thing that can happen is this blog may become unreadable for a short time.&lt;/p&gt;

&lt;p&gt;[&lt;b&gt;Update&lt;/b&gt;] The above attempt did result in the home page not rendering correctly.  I reindexed the whole blog.  I hope this time it works.&lt;/p&gt;

&lt;p&gt;[&lt;b&gt;Update&lt;/b&gt;] OK.  It finally worked.  It&#039;s 11:46pm now.  Time for bed.&lt;/p&gt;
        </description>
      
      
    
    
    
    <comments>http://www.weiqigao.com/blog/2008/08/07/upgraded_weblog_software_to_pebble_2_3_1.html#comments</comments>
    <guid isPermaLink="true">http://www.weiqigao.com/blog/2008/08/07/upgraded_weblog_software_to_pebble_2_3_1.html</guid>
    <pubDate>Fri, 08 Aug 2008 04:51:15 GMT</pubDate>
  </item>
  
  <item>
    <title>Want OpenJDK 6 On Your Debian 4.0 AMD64 Box?...</title>
    <link>http://www.weiqigao.com/blog/2008/07/15/want_openjdk_6_on_your_debian_4_0_amd64_box.html</link>
    
      
        <description>
          &lt;p&gt;... Do this:&lt;/p&gt;

&lt;pre style=&#034;margin-left:3em&#034;&gt;[root@gao] # &lt;b&gt;feta install &lt;span style=&#034;color:red&#034;&gt;-t unstable&lt;/span&gt; openjdk-6-jdk&lt;/b&gt;&lt;/pre&gt;

&lt;p&gt;Be warned that this command is potentially very risky: it has the potential of removing programs on your system, or render your whole system inoperable, or both.&lt;/p&gt;

&lt;p&gt;Recall that I have added the Debian unstable (sid) repository to my &lt;tt&gt;/etc/apt/sources.list&lt;/tt&gt; in &lt;a href= &#034;http://www.weiqigao.com/blog/2007/11/04/getting_sun_java_6_on_debian_4_0_with_apt_pinning.html&#034; &gt;Getting Sun Java 6 On Debian 4.0 With APT Pinning&lt;/a&gt; 254 days ago.  That is still the foundation of what we are doing today.&lt;/p&gt;

&lt;p&gt;The difference between today&#039;s command and previously used commands is the &lt;tt&gt;-t unstable&lt;/tt&gt; switch.  This switch tells &lt;tt&gt;feta&lt;/tt&gt; to install the package requested and &lt;span style=&#034;color:red&#034;&gt;resolve any dependencies&lt;/span&gt; in the unstable repository.  This switch is necessary because the &lt;tt&gt;openjdk-6-*&lt;/tt&gt; packages have dependencies on later versions of other Debian packages (such as libc) that&#039;s available only in the unstable repository.&lt;/p&gt;

&lt;p&gt;Have I warned you that this command may wreck havoc on your system?  When I mentioned this yesterday at lunch time, Dale said &#034;You are a brave man.&#034;&lt;/p&gt;

&lt;p&gt;A transcript of what happened when I invoked the command is available &lt;a href= &#034;./files/getting-openjdk-6-on-debian.txt&#034; &gt;here&lt;/a&gt;.

&lt;p&gt;Some highlights:&lt;/p&gt;

&lt;ul&gt;
&lt;li&gt;20 other packages are upgraded, including &lt;tt&gt;libc6&lt;/tt&gt; (this is the scary part, because many programs depends on libc6 and could potentially be broken.)&lt;/li&gt;
&lt;li&gt;9 NEW packages are installed, including &lt;tt&gt;openjdk-6-jdk&lt;/tt&gt;, &lt;tt&gt;openjdk-6-jre&lt;/tt&gt;, &lt;tt&gt;openjdk-6-jre-headless&lt;/tt&gt;, &lt;tt&gt;openjdk-6-jre-lib&lt;/tt&gt;, and &lt;tt&gt;rhino&lt;/tt&gt;.  I was surprised that the &lt;tt&gt;openjdk-6-jdk&lt;/tt&gt; package has a dependency on &lt;tt&gt;rhino&lt;/tt&gt;.&lt;/li&gt;
&lt;li&gt;2 packages are REMOVED: &lt;tt&gt;linux-kernel-headers&lt;/tt&gt; and &lt;tt&gt;linux32&lt;/tt&gt;, which means that I can&#039;t build any kernel modules afterwards, something that I don&#039;t do that often.&lt;/li&gt;
&lt;/ul&gt;

&lt;p&gt;The installation went smoothly.  During the reboot (not a forced reboot, but one I initiated myself) after the install I noticed the failures of three services: &lt;tt&gt;avahi-daemon&lt;/tt&gt;, &lt;tt&gt;postgresql&lt;/tt&gt; and &lt;tt&gt;tomcat55&lt;/tt&gt;.  The cause of the PostgreSQL started up failure was tracked down to be a full filesystem on &lt;tt&gt;/var&lt;/tt&gt;, which is filled up by the apt cache.&lt;/p&gt;

&lt;p&gt;To make Tomcat start again, I have to edit &lt;tt&gt;/etc/init.d/tomcat55&lt;/tt&gt; to add an entry to the &lt;tt&gt;JDK_DIRS&lt;/tt&gt; list.&lt;/p&gt;

&lt;p&gt;At this moment, I decided to remove the previously installed Sun JDK 5 and 6 to free up some disk space.  I did that in Synaptic.  Somehow that also removed NetBeans 6.0.1
(see &lt;a href= &#034;http://www.weiqigao.com/blog/2007/12/11/netbeans_6_0_a_week_later_and_a_much_better_story.html&#034; &gt;NetBeans 6.0: A Week Later, And A Much Better Story&lt;/a&gt; for how I got NetBeans in the first place).&lt;/p&gt;

&lt;p&gt;After I told IntelliJ IDEA where the new JDK is, IDEA started up and worked OK.  It&#039;s a little bit slower than running under the Sun JDK 6.  It took quite a bit longer (my perception only, no measurement was taken) to parse all the new jars in the OpenJDK.&lt;/p&gt;

&lt;p&gt;The same story for Eclipse 3.2.  I have to edit &lt;tt&gt;/etc/eclipse/java_home&lt;/tt&gt;.&lt;/p&gt;

&lt;p&gt;Tomcat 5.5 worked fine.  (This is on my workstation, not my wife&#039;s workstation, a.k.a. the server for this blog.  That box still runs Fedora Core 6.)&lt;/p&gt;

&lt;p&gt;All the other applications that I use daily (email client, web browser, flash, etc.) seems to be working OK.&lt;/p&gt;

&lt;p&gt;BTW, the Sun JDK 6 packages in unstable has gone through some changes since I first mentioned them.  Now, they are available both in unstable (sid) and testing (lenny), the one in unstable is a version ahead of the one in testing.  I hope the openjdk packages will progress quickly to testing, and eventually the next release of Debian.&lt;/p&gt;

&lt;p&gt;While we are at it, I can&#039;t help but to think a little bit about the situation on Windows and the Mac.  Will OpenJDK make an appearance on Windows any time soon?  Mario told me that he&#039;s using Soy Latte on his Core 2 Duo Tiger box now.  He had some issues with it related to the X server.&lt;/p&gt;
        </description>
      
      
    
    
    
    <comments>http://www.weiqigao.com/blog/2008/07/15/want_openjdk_6_on_your_debian_4_0_amd64_box.html#comments</comments>
    <guid isPermaLink="true">http://www.weiqigao.com/blog/2008/07/15/want_openjdk_6_on_your_debian_4_0_amd64_box.html</guid>
    <pubDate>Tue, 15 Jul 2008 12:38:34 GMT</pubDate>
  </item>
  
  </channel>
</rss>

