<?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"
	>

<channel>
	<title>DEAN LEE:/DEV/BLOG &#187; linux</title>
	<atom:link href="http://www.deanlee.cn/tag/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.deanlee.cn</link>
	<description>mount /dev/brain &#124;&#124; tail -f /var/log/thoughts &#62;&#62; /pub/www</description>
	<pubDate>Fri, 30 Dec 2011 13:27:51 +0000</pubDate>
	<generator>http://wordpress.org/?v=2.6.2</generator>
	<language>en</language>
	<atom:link rel="hub" href="http://pubsubhubbub.appspot.com"/><atom:link rel="hub" href="http://superfeedr.com/hubbub"/>		<item>
		<title>Ubuntu tricks - how to create a list software and use it to restore your pc</title>
		<link>http://www.deanlee.cn/linux/ubuntu-tricks-how-to-create-a-list-software-and-use-it-to-restore-your-pc/</link>
		<comments>http://www.deanlee.cn/linux/ubuntu-tricks-how-to-create-a-list-software-and-use-it-to-restore-your-pc/#comments</comments>
		<pubDate>Sun, 15 Oct 2006 08:45:59 +0000</pubDate>
		<dc:creator>Dean Lee</dc:creator>
		
		<category><![CDATA[linux]]></category>

		<category><![CDATA[howto]]></category>

		<category><![CDATA[packages]]></category>

		<category><![CDATA[tutorial]]></category>

		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://www.deanlee.cn/2006/10/15/ubuntu-tricks-how-to-create-a-list-software-and-use-it-to-restore-your-pc/</guid>
		<description><![CDATA[一个关于如何快速重装UBUNTU上的应用程序的指南.
I&#8217;ve recently had the occasion to make a complete list of software installed on one of my Ubuntu boxes, and then reinstall it from scratch. Here&#8217;s a quick and easy way to generate a list of installed .deb packages, and then use that list to quickly reinstall them.
read more &#124; digg story
]]></description>
			<content:encoded><![CDATA[<p>一个关于如何快速重装UBUNTU上的应用程序的指南.<br />
I&#8217;ve recently had the occasion to make a complete list of software installed on one of my Ubuntu boxes, and then reinstall it from scratch. Here&#8217;s a quick and easy way to generate a list of installed .deb packages, and then use that list to quickly reinstall them.</p>
<p><a href="http://www.arsgeek.com/?p=564">read more</a> | <a href="http://digg.com/linux_unix/Ubuntu_tricks_how_to_create_a_list_software_and_use_it_to_restore_your_pc">digg story</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.deanlee.cn/linux/ubuntu-tricks-how-to-create-a-list-software-and-use-it-to-restore-your-pc/feed/</wfw:commentRss>
		</item>
		<item>
		<title>apt-get &#8230; Segmentation Faulty Tree</title>
		<link>http://www.deanlee.cn/linux/apt-get-segmentation-faulty-tree/</link>
		<comments>http://www.deanlee.cn/linux/apt-get-segmentation-faulty-tree/#comments</comments>
		<pubDate>Sun, 27 Aug 2006 06:55:53 +0000</pubDate>
		<dc:creator>Dean Lee</dc:creator>
		
		<category><![CDATA[linux]]></category>

		<category><![CDATA[apt-get]]></category>

		<category><![CDATA[synaptic]]></category>

		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://deanlee.cn:8080/index.php/2006/08/27/apt-get-segmentation-faulty-tree/</guid>
		<description><![CDATA[I have tried to use both Synaptic and apt-get, Running apt-get install (anything) from the command line (as root) yeilds this result:
root@dean-laptop:/# apt-get install netselect
Reading package lists&#8230; Done
Segmentation faulty tree&#8230; 0%
I&#8217;ve done some GOOGLING and it seems this bug has been seen before,
but no intelligent handling has been added to apt. See bug Bug#84277
where  [...]]]></description>
			<content:encoded><![CDATA[<p>I have tried to use both Synaptic and apt-get, Running apt-get install (anything) from the command line (as root) yeilds this result:</p>
<p>root@dean-laptop:/# apt-get install netselect<br />
Reading package lists&#8230; Done<br />
Segmentation faulty tree&#8230; 0%</p>
<p>I&#8217;ve done some GOOGLING and it seems this bug has been seen before,<br />
but no intelligent handling has been added to apt. See bug Bug#84277<br />
where  Jason Gunthorpe  writes:</p>
<p>> apt-get segfaults w/out (in my opinion) any reason:</p>
<p>This has always been traced back to file corruption in /var/cache/apt/*.bin</p>
<p>If you can erase those files and run the apt command and have it work then<br />
that is definately the problem.</p>
<p>Nobody has ever been able to reproduce it, unless they have buggy hardware<br />
:></p>
<p>Jason</p>
<p>So I suspect corrupted data files.  delete  /var/cache/apt/*.bin followed by &#8220;apt-get update&#8221; to reset apt.Which indeed fixed this error condition.</p>
<p>but that&#8217;s very strange,My Laptop does not not have buggy hardware, apt-get has been working fine from the start.</p>
]]></content:encoded>
			<wfw:commentRss>http://www.deanlee.cn/linux/apt-get-segmentation-faulty-tree/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Compile the new 2.6.17 Linux kernel for IBM ThinkPad T43</title>
		<link>http://www.deanlee.cn/linux/compile-the-new-2617-linux-kernel-for-ibm-thinkpad-t43/</link>
		<comments>http://www.deanlee.cn/linux/compile-the-new-2617-linux-kernel-for-ibm-thinkpad-t43/#comments</comments>
		<pubDate>Thu, 24 Aug 2006 03:06:30 +0000</pubDate>
		<dc:creator>Dean Lee</dc:creator>
		
		<category><![CDATA[linux]]></category>

		<category><![CDATA[compile]]></category>

		<category><![CDATA[IBM]]></category>

		<category><![CDATA[kernel]]></category>

		<category><![CDATA[T43]]></category>

		<category><![CDATA[ThinkPad]]></category>

		<guid isPermaLink="false">http://deanlee.cn:8080/index.php/2006/08/24/compile-the-new-2617-linux-kernel-for-ibm-thinkpad-t43/</guid>
		<description><![CDATA[I just finished compiling the newest 2.6.17 Linux kernel and I am getting much better performance. In what follows, I will show you how to compile and configure the latest kernel for IBM Thinkpad T43.
Before you begin, you will need to get a kernel
Download the 2.6.17 kernel and it&#8217;s performance patch: The 2.6.17 kernel
Latest Kernel [...]]]></description>
			<content:encoded><![CDATA[<p>I just finished compiling the newest 2.6.17 Linux kernel and I am getting much better performance. In what follows, I will show you how to compile and configure the latest kernel for IBM Thinkpad T43.</p>
<p>Before you begin, you will need to get a kernel<br />
Download the 2.6.17 kernel and it&#8217;s performance patch: The 2.6.17 kernel<br />
Latest Kernel Patch</p>
<p>1. Install needed utilities to configure the kernel<br />
sudo apt-get install build-essential bin86 kernel-package libqt3-headers libqt3-mt-dev<br />
2. Now we are going to move the kernel and unpack it.<br />
sudo cp linux-2.6.16.tar.bz2 /usr/src<br />
3. Now we are going to move to /usr/src<br />
cd /usr/src<br />
4. Now unpack it:<br />
sudo tar -xvjf linux-2.6.17.tar.bz2<br />
5. Rename the folder:<br />
sudo mv linux-2.6.17/ linux-2.6.17ck1<br />
6. Now we are going to remove the link to the linux directory:<br />
sudo rm -rf linux<br />
7. Make a new link to the new kernel:<br />
sudo ln -s /usr/src/linux-2.6.17ck1 linux<br />
8. Move to the Linux directory:<br />
cd /usr/src/linux<br />
9. Make yourself root:<br />
sudo -s -H<br />
10. Apply the performance patch:<br />
bzcat /home/$USER/patch-2.6.17-ck1.bz2| patch -p1<br />
11. Now we are going to import your current kernel configuration:<br />
uname -r<br />
12. Now import it: Make sure to replace the kernel version in this following command from the one from uname -r.<br />
sudo cp /boot/config-2.6.14-ck1 .config<br />
or you can download my .config file,full optmized for IBM T43</p>
<p>13.Configure the kernel:<br />
make xconfig<br />
14. Let&#8217;s build the kernel: Make sure that you are in /usr/src/linux with full root access. Make sure that you are. This will build a debian file that you can install.</p>
<p><span id="more-21"></span>Now, in terminal do the following:<br />
make-kpkg clean<br />
make-kpkg -initrd &#8211;revision=IBM+T43 kernel_image kernel_headers modules_image<br />
Note: You can replace &#8220;IBM+T43&#8243; with anything you want.</p>
<p>15. Install the .deb fine in /usr/src. In terminal do<br />
sudo dpkg -i<br />
Now reboot and you will have a much faster system !</p>
<p>16. Setup the HDAPS (IBM Hard Drive Active Protection System)</p>
<p>HDAPS is already included in kernel 2.6.14 and later,but not loaded by default.in terminal do the following:</p>
<p>sudo modprobe hdaps<br />
sudo echo hdaps >> /etc/modules<br />
sudo reboot</p>
<p>the hdaps is working now,if you having problems,check dmesg :</p>
<p>sudo dmesg |grep hdaps<br />
hdaps: IBM ThinkPad T43 detected.<br />
hdaps: initial latch check good (0&#215;01).<br />
hdaps: device successfully initialized.<br />
input: hdaps as /class/input/input3<br />
hdaps: driver successfully loaded.</p>
<p>17.install the monitor for hdaps<br />
download gnome-tilt at https://sourceforge.net/project/showfiles.php?group_id=138242<br />
in terminal do the following:<br />
sh ./configure<br />
make install</p>
<p>and add the tilt to System->Preference->Sessions->Startup Programs。</p>
<p>16. Colorzing the prompt<br />
This step is very simple. And can be endlessly customized if you so feel.<br />
Code:</p>
<p>cp ~/.bashrc ~/.bashrc_bak<br />
gedit ~/.bashrc</p>
<p>Look for the following:<br />
Code:</p>
<p># set a fancy prompt (non-color, unless we know we &#8220;want&#8221; color)<br />
case &#8220;$TERM&#8221; in<br />
xterm-color)<br />
PS1=&#8217;${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ &#8216;<br />
;;<br />
*)<br />
PS1=&#8217;${debian_chroot:+($debian_chroot)}\u@\h:\w\$ &#8216;<br />
;;<br />
esac</p>
<p># Comment in the above and uncomment this below for a color prompt<br />
PS1=&#8217;${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ &#8216;</p>
<p>and replace it with:<br />
Code:</p>
<p># set a fancy prompt (non-color, unless we know we &#8220;want&#8221; color)<br />
#case &#8220;$TERM&#8221; in<br />
#xterm-color)<br />
# PS1=&#8217;${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ &#8216;<br />
# ;;<br />
#*)<br />
# PS1=&#8217;${debian_chroot:+($debian_chroot)}\u@\h:\w\$ &#8216;<br />
# ;;<br />
#esac</p>
<p># Comment in the above and uncomment this below for a color prompt<br />
PS1=&#8217;${debian_chroot:+($debian_chroot)}\[\033[32m\]\u@\h\[\033[00m\]:\[\033[34m\]\w\[\033[00m\]\$ &#8216;</p>
]]></content:encoded>
			<wfw:commentRss>http://www.deanlee.cn/linux/compile-the-new-2617-linux-kernel-for-ibm-thinkpad-t43/feed/</wfw:commentRss>
		</item>
		<item>
		<title>Open Office无法正常启动的问题</title>
		<link>http://www.deanlee.cn/linux/open_office_hang/</link>
		<comments>http://www.deanlee.cn/linux/open_office_hang/#comments</comments>
		<pubDate>Wed, 16 Aug 2006 05:08:18 +0000</pubDate>
		<dc:creator>Dean Lee</dc:creator>
		
		<category><![CDATA[linux]]></category>

		<category><![CDATA[openoffice]]></category>

		<category><![CDATA[ubuntu]]></category>

		<guid isPermaLink="false">http://deanlee.cn:8080/index.php/2006/08/16/open_office_hang/</guid>
		<description><![CDATA[我的open office启动时就挂住，或者异常退出。google了个把小时没有解决。最后用&#8221;暴力方式&#8221;解决了：
sudo apt-get remove openoffice.org*
sudo reboot
sudo apt-get install openoffice.org2
然后运行openoffice，一切正常。可能真的是RP问题:S
]]></description>
			<content:encoded><![CDATA[<p>我的open office启动时就挂住，或者异常退出。google了个把小时没有解决。最后用&#8221;暴力方式&#8221;解决了：</p>
<p>sudo apt-get remove openoffice.org*<br />
sudo reboot<br />
sudo apt-get install openoffice.org2</p>
<p>然后运行openoffice，一切正常。可能真的是RP问题:S</p>
]]></content:encoded>
			<wfw:commentRss>http://www.deanlee.cn/linux/open_office_hang/feed/</wfw:commentRss>
		</item>
	</channel>
</rss>

