<?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>潘魏增 &#187; thinkpad</title>
	<atom:link href="http://panweizeng.com/archives/tag/thinkpad/feed" rel="self" type="application/rss+xml" />
	<link>http://panweizeng.com</link>
	<description>活在回忆里,细数时间下过的蛋.</description>
	<lastBuildDate>Sun, 29 Aug 2010 17:03:11 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.1-alpha</generator>
		<item>
		<title>T61安装ubuntu8.04</title>
		<link>http://panweizeng.com/archives/206</link>
		<comments>http://panweizeng.com/archives/206#comments</comments>
		<pubDate>Sun, 16 Nov 2008 14:38:58 +0000</pubDate>
		<dc:creator>Pan</dc:creator>
				<category><![CDATA[学习]]></category>
		<category><![CDATA[linux]]></category>
		<category><![CDATA[t61]]></category>
		<category><![CDATA[thinkpad]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[vim]]></category>

		<guid isPermaLink="false">http://panweizeng.com/?p=206</guid>
		<description><![CDATA[分了个2G的swap分区，一个30G左右的逻辑分区作为根。中间没插网线，所以安装很快。安装完成后，触摸板，音量控制，键盘灯和屏幕亮度调节等驱动都已经装好，无线网络也都很正常。 安装后第一件事情就是要查找速度最快的软件源 然后就是装一些常用软件 sudo apt-get install scim-chinese scim-pinyin sudo apt-get install scim-config-socket scim-gtk2-immodule scim-tables-zh sudo apt-get install vim vim-full sudo apt-get install ctags sudo apt-get install gftp sudo apt-get install kchmviewer 常用配置文件直接从工作机拷贝 .bashrc .vimrc .vim/ .dircolors .screenrc /etc/hosts 中文字体少了点，也从工作机上面(/usr/share/fonts/)拷过来 sudo mkfontscale sudo mkfontdir sudo fc-cache -fv 后来发现vim退出时控制台变成乱码，用下面的方法解决了 sudo update-alternatives &#8211;config vi sudo update-alternatives &#8211;config vim [...]]]></description>
			<content:encoded><![CDATA[<p>分了个2G的swap分区，一个30G左右的逻辑分区作为根。中间没插网线，所以安装很快。安装完成后，触摸板，音量控制，键盘灯和屏幕亮度调节等驱动都已经装好，无线网络也都很正常。</p>
<p>安装后第一件事情就是要查找速度最快的软件源</p>
<p>然后就是装一些常用软件<br />
sudo apt-get install scim-chinese scim-pinyin<br />
sudo apt-get install scim-config-socket scim-gtk2-immodule scim-tables-zh<br />
sudo apt-get install vim vim-full<br />
sudo apt-get install ctags<br />
sudo apt-get install gftp<br />
sudo apt-get install kchmviewer</p>
<p>常用配置文件直接从工作机拷贝<br />
.bashrc<br />
.vimrc<br />
.vim/<br />
.dircolors<br />
.screenrc<br />
/etc/hosts</p>
<p>中文字体少了点，也从工作机上面(/usr/share/fonts/)拷过来<br />
sudo mkfontscale<br />
sudo mkfontdir<br />
sudo fc-cache -fv</p>
<p>后来发现vim退出时控制台变成乱码，用下面的方法解决了<br />
sudo update-alternatives &#8211;config vi<br />
sudo update-alternatives &#8211;config vim<br />
sudo update-alternatives &#8211;config vimdiff<br />
&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8212;&#8211;<br />
          1    /usr/bin/vim.tiny<br />
*+      2    /usr/bin/vim.gnome<br />
          3    /usr/bin/vim.basic<br />
选择第3个使用“/usr/bin/vim.basic”来提供“vi”。</p>
<p><strong>常用设置：</strong><br />
1. bash中去掉当前的绝对路径<br />
修改~/.bashrc<br />
if [ "$color_prompt" = yes ]; then<br />
    PS1=&#8217;${debian_chroot:+($debian_chroot)}\[\033[01;32m\]\u@\h\[\033[00m\]:\[\033[01;34m\]\w\[\033[00m\]\$ &#8216;<br />
else<br />
    PS1=&#8217;${debian_chroot:+($debian_chroot)}\u@\h:\w\$ &#8216;<br />
fi<br />
把其中的\w改为\W</p>
<p>2.查看是否已经安装了电源管理套件 dpkg -l pm-utils 如果还没有安装则apt-get install pm-utils<br />
然后在系统－》首选项－》电源管理中可以设置合上笔记本即休眠<br />
也可以修改/etc/acpi/events/lidbtn，把其中的action=/etc/acpi/lid.sh改成action/etc/acpi/sleep.sh sleep </p>
<p>3.变废为宝 给蓝色的ThinkVantage键增加映射（<a href="http://www.krizka.net/2008/06/14/the-thinkvantage-button-and-ubuntu-hardy-heron/">参考文章</a>）<br />
sudo vi /etc/rc.local<br />
在exit 0之前加上<br />
setkeycodes e017 148<br />
setkeycodes 0082 192<br />
然后sudo /etc/init.d/rc.local start  或者sudo /etc/init.d/rc.local restart<br />
然后在系统－》首选项－》键盘快捷键   把ThinkVantage映射给你最喜欢的软件吧，我给的是终端Gnome Terminal。</p>
<p>4.<a href="http://www.getdeb.net">http://www.getdeb.net</a>和<a href="https://launchpad.net">https://launchpad.net</a>这两个网站都不错，可以找到ubuntu最新的deb包。</p>
<p>5. 我喜欢装的软件<br />
截屏软件shutter（以前叫“GScrot”）<br />
作图软件gimp<br />
登录bbs用Qterm<br />
休息提醒workrave<br />
源代码管理svn<br />
项目流程管理和源代码浏览trac</p>
<p>目前遇到的问题<br />
1. 声卡驱动可能有一些问题，因为flash视频播放和音乐播放器不能同时使用，比如同时看youku视频和使用songbird听音乐就不行。<br />
2. 安装nvidia的驱动（sudo apt-get install envyng-gtk）后，显示效果很好，但是笔记本的休眠后会花屏，只能恢复使用ubuntu自带的驱动（sudo dpkg-reconfigure xserver-xorg）。</p>
]]></content:encoded>
			<wfw:commentRss>http://panweizeng.com/archives/206/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
	</channel>
</rss>
