


<?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>Wow! Ubuntu &#187; 投稿/转载</title>
	<atom:link href="http://wowubuntu.com/author/guest/feed" rel="self" type="application/rss+xml" />
	<link>http://wowubuntu.com</link>
	<description>Ubuntu 及 Linux 新闻、技巧、软件及游戏！</description>
	<lastBuildDate>Wed, 16 May 2012 04:19:29 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.2</generator>
		<item>
		<title>安装 Ubuntu 12.04 (Precise) 之后</title>
		<link>http://wowubuntu.com/after-install-ubuntu-precise.html</link>
		<comments>http://wowubuntu.com/after-install-ubuntu-precise.html#comments</comments>
		<pubDate>Wed, 02 May 2012 00:51:48 +0000</pubDate>
		<dc:creator>投稿/转载</dc:creator>
				<category><![CDATA[技巧]]></category>
		<category><![CDATA[Precise]]></category>

		<guid isPermaLink="false">http://wowubuntu.com/?p=6276</guid>
		<description><![CDATA[# 感谢 Huxuan 的来稿，原文地址。  曾经心血来潮写过一个 Ubuntu 的配置教程，还美其名曰《邂逅Ubuntu》系列，后来 Ubuntu 更新了，GNOME 也变成了gnome shell ，但是教程再也没更新过（惭愧不已）。适逢 Ubuntu 12.04 刚更新不久，简单记录下配置的流程。 本文主要记录了安装Ubuntu 12.04 (Precise) 之后的配置美化过程，主要包含： 配置软件源； 安装配置gnome shell取代unity； 安装相关软件； 配置杂项。 配置软件源 我的策略是教育网一组，公网一组，官网一组，其次主要考虑地理位置和具体连接的速度。 教育网推荐是使用清华、北交、上交的（其一即可），公网推荐sohu（中国官方源）、163的（同样选择其一）。 # /etc/apt/sources.list # tsinghua deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ precise main multiverse restricted universe deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ precise-backports main multiverse restricted universe deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ precise-proposed main multiverse restricted universe deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ precise-security [...]<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">相关文章：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwowubuntu.com%2Fprecise-alpha2.html&from=http%3A%2F%2Fwowubuntu.com%2Fafter-install-ubuntu-precise.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 13px !important;">Ubuntu 12.04 Precise Alpha 2 发布</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwowubuntu.com%2Fprecise-beta1.html&from=http%3A%2F%2Fwowubuntu.com%2Fafter-install-ubuntu-precise.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 13px !important;">Ubuntu 12.04 Precise Beta1 发布</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwowubuntu.com%2Fprecise.html&from=http%3A%2F%2Fwowubuntu.com%2Fafter-install-ubuntu-precise.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 13px !important;">Ubuntu 12.04 开发代号确定为 Precise Pangolin</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwowubuntu.com%2Fprecise-alpha1.html&from=http%3A%2F%2Fwowubuntu.com%2Fafter-install-ubuntu-precise.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 13px !important;">Ubuntu 12.04 Precise Alpha 1 发布</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwowubuntu.com%2Fprecise-beta2.html&from=http%3A%2F%2Fwowubuntu.com%2Fafter-install-ubuntu-precise.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 13px !important;">Ubuntu 12.04 LTS Precise Beta 2 发布</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p><em># 感谢 Huxuan 的来稿，<a href="http://huxuan.org/20120430/after-install-ubuntu-12-04-precise/" target="_blank">原文地址</a>。 </em></p>
<p>曾经心血来潮写过一个 Ubuntu 的配置教程，还美其名曰《<a title="邂逅Ubuntu" href="http://huxuan.org/20090827/%e9%82%82%e9%80%85ubuntu1-0%e7%89%88%ef%bc%8d20090827/" target="_blank">邂逅Ubuntu</a>》系列，后来 Ubuntu 更新了，GNOME 也变成了gnome shell ，但是教程再也没更新过（惭愧不已）。适逢 Ubuntu 12.04 刚更新不久，简单记录下配置的流程。</p>
<p>本文主要记录了安装Ubuntu 12.04 (Precise) 之后的配置美化过程，主要包含：</p>
<ol>
<li>配置软件源；</li>
<li>安装配置gnome shell取代unity；</li>
<li>安装相关软件；</li>
<li>配置杂项。</li>
</ol>
<p><strong>配置软件源</strong></p>
<p><strong></strong>我的策略是教育网一组，公网一组，官网一组，其次主要考虑地理位置和具体连接的速度。<br />
教育网推荐是使用清华、北交、上交的（其一即可），公网推荐sohu（中国官方源）、163的（同样选择其一）。</p>
<blockquote><p># /etc/apt/sources.list<br />
# tsinghua<br />
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ precise main multiverse restricted universe<br />
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ precise-backports main multiverse restricted universe<br />
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ precise-proposed main multiverse restricted universe<br />
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ precise-security main multiverse restricted universe<br />
deb http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ precise-updates main multiverse restricted universe<br />
deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ precise main multiverse restricted universe<br />
deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ precise-backports main multiverse restricted universe<br />
deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ precise-proposed main multiverse restricted universe<br />
deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ precise-security main multiverse restricted universe<br />
deb-src http://mirrors.tuna.tsinghua.edu.cn/ubuntu/ precise-updates main multiverse restricted universe</p>
<p># # bjtu<br />
# deb http://mirror.bjtu.edu.cn/ubuntu/ precise main multiverse restricted universe<br />
# deb http://mirror.bjtu.edu.cn/ubuntu/ precise-backports main multiverse restricted universe<br />
# deb http://mirror.bjtu.edu.cn/ubuntu/ precise-proposed main multiverse restricted universe<br />
# deb http://mirror.bjtu.edu.cn/ubuntu/ precise-security main multiverse restricted universe<br />
# deb http://mirror.bjtu.edu.cn/ubuntu/ precise-updates main multiverse restricted universe<br />
# deb-src http://mirror.bjtu.edu.cn/ubuntu/ precise main multiverse restricted universe<br />
# deb-src http://mirror.bjtu.edu.cn/ubuntu/ precise-backports main multiverse restricted universe<br />
# deb-src http://mirror.bjtu.edu.cn/ubuntu/ precise-proposed main multiverse restricted universe<br />
# deb-src http://mirror.bjtu.edu.cn/ubuntu/ precise-security main multiverse restricted universe<br />
# deb-src http://mirror.bjtu.edu.cn/ubuntu/ precise-updates main multiverse restricted universe</p>
<p># sohu (official China)<br />
deb http://cn.archive.ubuntu.com/ubuntu/ precise main restricted universe multiverse<br />
deb http://cn.archive.ubuntu.com/ubuntu/ precise-security main restricted universe multiverse<br />
deb http://cn.archive.ubuntu.com/ubuntu/ precise-updates main restricted universe multiverse<br />
deb http://cn.archive.ubuntu.com/ubuntu/ precise-proposed main restricted universe multiverse<br />
deb http://cn.archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse<br />
deb-src http://cn.archive.ubuntu.com/ubuntu/ precise main restricted universe multiverse<br />
deb-src http://cn.archive.ubuntu.com/ubuntu/ precise-security main restricted universe multiverse<br />
deb-src http://cn.archive.ubuntu.com/ubuntu/ precise-updates main restricted universe multiverse<br />
deb-src http://cn.archive.ubuntu.com/ubuntu/ precise-proposed main restricted universe multiverse<br />
deb-src http://cn.archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse</p>
<p># # 163<br />
# deb http://mirrors.163.com/ubuntu/ precise main restricted universe multiverse<br />
# deb http://mirrors.163.com/ubuntu/ precise-security main restricted universe multiverse<br />
# deb http://mirrors.163.com/ubuntu/ precise-updates main restricted universe multiverse<br />
# deb http://mirrors.163.com/ubuntu/ precise-proposed main restricted universe multiverse<br />
# deb http://mirrors.163.com/ubuntu/ precise-backports main restricted universe multiverse<br />
# deb-src http://mirrors.163.com/ubuntu/ precise main restricted universe multiverse<br />
# deb-src http://mirrors.163.com/ubuntu/ precise-security main restricted universe multiverse<br />
# deb-src http://mirrors.163.com/ubuntu/ precise-updates main restricted universe multiverse<br />
# deb-src http://mirrors.163.com/ubuntu/ precise-proposed main restricted universe multiverse<br />
# deb-src http://mirrors.163.com/ubuntu/ precise-backports main restricted universe multiverse</p>
<p># official<br />
deb http://archive.ubuntu.com/ubuntu/ precise main restricted universe multiverse<br />
deb http://archive.ubuntu.com/ubuntu/ precise-security main restricted universe multiverse<br />
deb http://archive.ubuntu.com/ubuntu/ precise-updates main restricted universe multiverse<br />
deb http://archive.ubuntu.com/ubuntu/ precise-proposed main restricted universe multiverse<br />
deb http://archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse<br />
deb-src http://archive.ubuntu.com/ubuntu/ precise main restricted universe multiverse<br />
deb-src http://archive.ubuntu.com/ubuntu/ precise-security main restricted universe multiverse<br />
deb-src http://archive.ubuntu.com/ubuntu/ precise-updates main restricted universe multiverse<br />
deb-src http://archive.ubuntu.com/ubuntu/ precise-proposed main restricted universe multiverse<br />
deb-src http://archive.ubuntu.com/ubuntu/ precise-backports main restricted universe multiverse</p>
<p># official security<br />
deb http://security.ubuntu.com/ubuntu precise-security main restricted<br />
deb-src http://security.ubuntu.com/ubuntu precise-security main restricted<br />
deb http://security.ubuntu.com/ubuntu precise-security universe<br />
deb-src http://security.ubuntu.com/ubuntu precise-security universe<br />
deb http://security.ubuntu.com/ubuntu precise-security multiverse<br />
deb-src http://security.ubuntu.com/ubuntu precise-security multiverse</p>
<p># canonical partner<br />
deb http://archive.canonical.com/ubuntu precise partner<br />
deb-src http://archive.canonical.com/ubuntu precise partner</p>
<p># official extras<br />
deb http://extras.ubuntu.com/ubuntu precise main<br />
deb-src http://extras.ubuntu.com/ubuntu precise main</p></blockquote>
<p>配置好之后记得更新升级</p>
<blockquote><p>sudo apt-get update<br />
sudo apt-get upgrade</p></blockquote>
<p># 安装配置gnome shell</p>
<p>之前折腾过Arch、Gentoo、Mint、Deepin都是因为Ubuntu换了unity，也算因祸得福，学到了很多东西，现在可以兼容了，当然果断上之。<br />
安装基本桌面</p>
<blockquote><p>sudo apt-get install gnome-shell # gnome shell 桌面<br />
sudo apt-get install gnome-tweak-tool # 高级配置工具</p></blockquote>
<p># 安装图标和GTK主题</p>
<blockquote><p>sudo add-apt-repository ppa:tiheum/equinox # 添加图标主题PPA<br />
sudo add-apt-repository ppa:satyajit-happy/themes # 添加GTK主题PPA<br />
sudo apt-get update # 更新软件源<br />
sudo apt-get install faenza-icon-theme faience-icon-theme # 两款Icon theme<br />
sudo apt-get install evolve-gtk-theme orion-gtk-theme # 两款 GTK theme</p></blockquote>
<p>我选择的Icon theme是Faience，Window theme和GTK+ theme都是Evolve</p>
<p># 安装gnome shell extension</p>
<p>可以通过PPA和网站两种方式安装，主要还是个人喜好和需要，通过gnome-tweak-tool进行设置即可，这里只列出作者使用的部分<br />
通过PPA安装</p>
<blockquote><p>sudo add-apt-repository ppa:webupd8team/gnome3 # 添加PPA<br />
sudo apt-get update<br />
sudo apt-get install gnome-shell-extensions # 官方插件<br />
sudo apt-get install gnome-shell-extensions-weather # 天气插件<br />
sudo apt-get install gnome-shell-system-monitor # 非官方系统监控插件，扩展性很强<br />
sudo apt-get install gnome-shell-classic-systray # 移动所有底边信息栏图标至顶部</p></blockquote>
<p>通过<a href="https://extensions.gnome.org/">GNOME Extensions</a>网站安装</p>
<p><a href="https://extensions.gnome.org/extension/112/remove-accesibility/">https://extensions.gnome.org/extension/112/remove-accesibility/</a></p>
<p>需要注意 user-themes 插件可能有问题，导致gnome-tweak-tool无法打开或者打开报错，通过以下两条命令可以解决</p>
<blockquote><p>sudo cp ~/.local/share/gnome-shell/extensions/user-theme@gnome-shell-extensions.gcampax.github.com/schemas/org.gnome.shell.extensions.user-theme.gschema.xml /usr/share/glib-2.0/schemas/<br />
sudo glib-compile-schemas /usr/share/glib-2.0/schemas</p></blockquote>
<p># 安装gnome shell theme</p>
<p>我有点洁癖，不喜欢下载安装，因为不方便更新，但暂时还未发现包含很合意的gnome shell theme的PPA，可以关注一下<a href="https://launchpad.net/~satyajit-happy/+archive/themes?field.series_filter=precise" target="_blank">Satya的PPA</a>（之前安装GTK主题时已经添加了）。我已经邮件和作者联系过了，确定还会维护更新的，就是需要等等。我现在安装的是<a href="http://therealpadster.deviantart.com/art/London-Smoke-Gnome-Shell-207708800" target="_blank">London Smoke Gnome-Shell</a>，作为暂时的选择。</p>
<p><strong>安装相关软件</strong></p>
<p><strong></strong>此部分列举了本人会用到的软件包，因根据个人需要选择</p>
<blockquote><p>sudo apt-get install ibus ibus-googlepinyin # ibus输入法 和 谷歌拼音输入法<br />
sudo apt-get install chromium-browser # Chromium 浏览器<br />
sudo apt-get install flashplugin-installer # flash 插件<br />
sudo apt-get install gnome-mplayer # 视频播放器<br />
sudo apt-get install gimp # PhotoShop 替代品<br />
sudo apt-get install pidgin xchat # 多协议聊天<br />
sudo apt-get install xchat # irc聊天<br />
sudo apt-get install libreoffice # office<br />
sudo apt-get install stardict # 翻译辞典<br />
sudo apt-get install gtg # GTD 工具<br />
sudo apt-get install bleachbit # 系统清洁<br />
sudo apt-get install skype # skype<br />
sudo apt-get install axel # 命令行下载<br />
sudo apt-get install pastebinit # 命令行下上传文本至 pastebin<br />
sudo apt-get install dia # 图表 (UML) 制作<br />
sudo apt-get install synergy # 多电脑共享键鼠<br />
sudo apt-get install vim # 神编辑器<br />
sudo apt-get install git # git 版本控制<br />
sudo apt-get install mercurial # hg 版本控制<br />
sudo apt-get install subversion # svn 版本控制<br />
sudo apt-get install bzr bzrtools # bzr 版本控制<br />
sudo apt-get install octave # Matlab 替代品<br />
sudo apt-get install python-dev python-pip # python dev pip<br />
sudo apt-get install apache2 # apache 服务器<br />
sudo apt-get install nginx # nginx 服务器<br />
sudo apt-get install mysql-server mysql-client # mysql 数据库</p>
<p>sudo apt-get install proxychains # 命令行代理<br />
# 配置好proxychains (/etc/proxychains.conf) 之后即可顺利安装dropbox<br />
sudo proxychains apt-get install nautilus-dropbox # dropbox 文件同步</p></blockquote>
<p>此外还有<a title="在Ubuntu上安装MongoDB" href="http://huxuan.org/20120430/install-mongodb-on-ubuntu/" target="_blank">MongoDB数据库</a>和<a title="在Ubuntu上安装fprint实现指纹识别" href="http://huxuan.org/20120430/install-fprint-on-ubuntu-to-implement-fingerprint/" target="_blank">指纹识别fprint</a>的安装，可以进入对应页面查看详情</p>
<p><strong>配置杂项</strong></p>
<p><strong></strong># 安装更新语言包</p>
<p>“System Settings” -&gt; “Language Support”，在”Install / Remove Languages…” 中选择安装 “Chinese (simplified)” 和 “English”<br />
最下方的输入法选择中选择ibus</p>
<p># 配置字体</p>
<p>安装中文语言包之后会安装相应中文字体，通过gnome-tweak-tool即可配置。我一直比较喜欢使用文泉驿的微黑（WenQuanYi Micro Hei），等宽字体也使用WenQuanYi Micro Hei Mono</p>
<p># 修改Chromium标题栏按钮位置问题</p>
<p>由于Unity的缘故，Chromium标题栏按钮会显示在左边，通过以下命令（其一）可以解决</p>
<blockquote><p># 让标题栏只有关闭按钮<br />
gconftool-2 --set /apps/metacity/general/button_layout --type string ":close"<br />
# 让标题栏包含常规的最小化、最大化和关闭按钮<br />
gconftool-2 --set /apps/metacity/general/button_layout --type string ":minimize,maximize,close"</p></blockquote>
<p>在Startup Applications Preferences中显示开启启动项，默认情况下很多启动项都没有显示，通过以下命令即可实现。</p>
<blockquote><p>sudo sed -i 's/NoDisplay=true/NoDisplay=false/g' /etc/xdg/autostart/*.desktop</p></blockquote>
<p>其他主要是根据个人喜好修改系统和相应软件的设置。至此，基本配置完毕，欢迎交流和提出改进意见</p>
# 本文采用<a href="http://creativecommons.org/licenses/by/2.5/cn/">CC协议</a>进行授权，转载本文请注明<a href="http://wowubuntu.com/after-install-ubuntu-precise.html" title="Permalink">本文链接<a>。/  17  条留言
<hr>
- <a href="http://twitter.com/ubuntu_tips">Twitter</a> 
/ <a href="http://t.sina.com.cn/utips">微博</a> 
/ <a href="http://wowubuntu.com/ask">问答</a> 
/ <a href="http://wowubuntu.com/submit">投稿</a>
/ <a href="http://wowubuntu.com/join">加入我们</a> wow0slx6bcs721xo1udcc<br>- 高性价比 <a href="http://wowubuntu.com/vps.html">Ubuntu VPS</a> / 本站架设于<a href="http://www.photonvps.com/billing/aff.php?aff=129"> PhotonVPS </a> / 定制 <a href="http://tto.me/kfstee">Ubuntu T-Shirt</a><table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">相关文章：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwowubuntu.com%2Fprecise-alpha2.html&from=http%3A%2F%2Fwowubuntu.com%2Fafter-install-ubuntu-precise.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 13px !important;">Ubuntu 12.04 Precise Alpha 2 发布</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwowubuntu.com%2Fprecise-beta1.html&from=http%3A%2F%2Fwowubuntu.com%2Fafter-install-ubuntu-precise.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 13px !important;">Ubuntu 12.04 Precise Beta1 发布</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwowubuntu.com%2Fprecise.html&from=http%3A%2F%2Fwowubuntu.com%2Fafter-install-ubuntu-precise.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 13px !important;">Ubuntu 12.04 开发代号确定为 Precise Pangolin</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwowubuntu.com%2Fprecise-alpha1.html&from=http%3A%2F%2Fwowubuntu.com%2Fafter-install-ubuntu-precise.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 13px !important;">Ubuntu 12.04 Precise Alpha 1 发布</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwowubuntu.com%2Fprecise-beta2.html&from=http%3A%2F%2Fwowubuntu.com%2Fafter-install-ubuntu-precise.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 13px !important;">Ubuntu 12.04 LTS Precise Beta 2 发布</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://wowubuntu.com/after-install-ubuntu-precise.html/feed</wfw:commentRss>
		<slash:comments>17</slash:comments>
		</item>
		<item>
		<title>动态切换 Linux 使用的 CPU 数量</title>
		<link>http://wowubuntu.com/dynamic-cpu.html</link>
		<comments>http://wowubuntu.com/dynamic-cpu.html#comments</comments>
		<pubDate>Sat, 22 Oct 2011 02:41:06 +0000</pubDate>
		<dc:creator>投稿/转载</dc:creator>
				<category><![CDATA[技巧]]></category>
		<category><![CDATA[CPU]]></category>

		<guid isPermaLink="false">http://wowubuntu.com/?p=5497</guid>
		<description><![CDATA[由于要测试一些代码，其运行结果会受到多核并行的影响，所以希望能够调整使用的 CPU 数量。网络上之前看到的方法是在内核的启动参数上添加一个 maxcpus，但是如果这样的话每切换一次都要重启一次，是在太麻烦了。想想 Linux 应该是很强大的，所以可以动态修改 CPU 数量才对。 无意中看到 Linux 代码的 Documentation 文件夹下有个文件叫做 cpu-hotplug.txt，于是就看了一下，发现可以在 /sys/devices/system/cpu 看到代表各 CPU 的文件夹按照 cpuX 的命名方式，如 cpu0、cpu1、cpu2 等。这些文件夹里面有一个 online 文件，如果其值为0则禁用该 CPU，如果为1则启用该 CPU。注意，这里需要 root 权限哦。 因为我只要在单核和多核之间切换，所以我写了两个脚本放在 /usr/local/sbin 里面： singlecore #!/bin/bash cpus_dir="/sys/devices/system/cpu" for cpu in $(ls "$cpus_dir" &#124; grep 'cpu[0-9]\+') do cpu_online="$cpus_dir/$cpu/online" if [[ -e "$cpu_online" &#38;&#38; $(cat $cpu_online) = 1 ]] then [...]<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">相关文章：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwowubuntu.com%2Findicator-cpufreq.html&from=http%3A%2F%2Fwowubuntu.com%2Fdynamic-cpu.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 13px !important;">Indicator-CPUfreq : 监视和改变 CPU 速率</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwowubuntu.com%2Flinux-native-notification.html&from=http%3A%2F%2Fwowubuntu.com%2Fdynamic-cpu.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 13px !important;">Linux Native Notification：让 Chrome 支持 Linux 原生通知</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwowubuntu.com%2Flinux-20-year.html&from=http%3A%2F%2Fwowubuntu.com%2Fdynamic-cpu.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 13px !important;">庆祝 Linux 20 周岁</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwowubuntu.com%2Flinux-20.html&from=http%3A%2F%2Fwowubuntu.com%2Fdynamic-cpu.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 13px !important;">Linux 20周年开发者庆典活动!</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwowubuntu.com%2Fubuntu-linux-3-0-rc4.html&from=http%3A%2F%2Fwowubuntu.com%2Fdynamic-cpu.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 13px !important;">Ubuntu 编译 Linux 3.0-rc4</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>由于要测试一些代码，其运行结果会受到多核并行的影响，所以希望能够调整使用的 CPU 数量。网络上之前看到的方法是在内核的启动参数上添加一个 maxcpus，但是如果这样的话每切换一次都要重启一次，是在太麻烦了。想想 Linux 应该是很强大的，所以可以动态修改 CPU 数量才对。</p>
<p>无意中看到 Linux 代码的 Documentation 文件夹下有个文件叫做 cpu-hotplug.txt，于是就看了一下，发现可以在 /sys/devices/system/cpu 看到代表各 CPU 的文件夹按照 cpuX 的命名方式，如 cpu0、cpu1、cpu2 等。这些文件夹里面有一个 online 文件，如果其值为0则禁用该 CPU，如果为1则启用该 CPU。注意，这里需要 root 权限哦。</p>
<p>因为我只要在单核和多核之间切换，所以我写了两个脚本放在 /usr/local/sbin 里面：</p>
<p>singlecore</p>
<blockquote>
<pre>#!/bin/bash
cpus_dir="/sys/devices/system/cpu"
for cpu in $(ls "$cpus_dir" | grep 'cpu[0-9]\+')
do
	cpu_online="$cpus_dir/$cpu/online"
	if [[ -e "$cpu_online" &amp;&amp; $(cat $cpu_online) = 1 ]]
	then
		echo 0 &gt; "$cpu_online"
	fi
done</pre>
</blockquote>
<p>multicore</p>
<blockquote>
<pre>#!/bin/bash
cpus_dir="/sys/devices/system/cpu" 
for cpu in $(ls "$cpus_dir" | grep 'cpu[0-9]\+')
do
	cpu_online="$cpus_dir/$cpu/online"
	if [[ -e "$cpu_online" &amp;&amp; $(cat $cpu_online) = 0 ]]
	then
		echo 1 &gt; "$cpu_online"
	fi
done</pre>
</blockquote>
<p>之后需要切换的时候，只要运行 sudo singlecore 或者 sudo multicore 就可以了~</p>
<p>顺便说一句，我当时在想，如果我禁用了所有的 CPU 会怎么样呢？结果发现 cpu0 是没有 online 文件的，也就是 Linux 至少保证一个 CPU 处于可用状态。</p>
<p>--感谢 upsuper 的投稿，原文：<a href="http://blog.upsuper.org/dynamic-modify-cpu-number/">http://blog.upsuper.org/dynamic-modify-cpu-number/</a></p>
# 本文采用<a href="http://creativecommons.org/licenses/by/2.5/cn/">CC协议</a>进行授权，转载本文请注明<a href="http://wowubuntu.com/dynamic-cpu.html" title="Permalink">本文链接<a>。/  8  条留言
<hr>
- <a href="http://twitter.com/ubuntu_tips">Twitter</a> 
/ <a href="http://t.sina.com.cn/utips">微博</a> 
/ <a href="http://wowubuntu.com/ask">问答</a> 
/ <a href="http://wowubuntu.com/submit">投稿</a>
/ <a href="http://wowubuntu.com/join">加入我们</a> wow0slx6bcs721xo1udcc<br>- 高性价比 <a href="http://wowubuntu.com/vps.html">Ubuntu VPS</a> / 本站架设于<a href="http://www.photonvps.com/billing/aff.php?aff=129"> PhotonVPS </a> / 定制 <a href="http://tto.me/kfstee">Ubuntu T-Shirt</a><table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">相关文章：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwowubuntu.com%2Findicator-cpufreq.html&from=http%3A%2F%2Fwowubuntu.com%2Fdynamic-cpu.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 13px !important;">Indicator-CPUfreq : 监视和改变 CPU 速率</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwowubuntu.com%2Flinux-native-notification.html&from=http%3A%2F%2Fwowubuntu.com%2Fdynamic-cpu.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 13px !important;">Linux Native Notification：让 Chrome 支持 Linux 原生通知</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwowubuntu.com%2Flinux-20-year.html&from=http%3A%2F%2Fwowubuntu.com%2Fdynamic-cpu.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 13px !important;">庆祝 Linux 20 周岁</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwowubuntu.com%2Flinux-20.html&from=http%3A%2F%2Fwowubuntu.com%2Fdynamic-cpu.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 13px !important;">Linux 20周年开发者庆典活动!</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwowubuntu.com%2Fubuntu-linux-3-0-rc4.html&from=http%3A%2F%2Fwowubuntu.com%2Fdynamic-cpu.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 13px !important;">Ubuntu 编译 Linux 3.0-rc4</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://wowubuntu.com/dynamic-cpu.html/feed</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
		<item>
		<title>SHLUG 2011 款文化衫开始接受预定</title>
		<link>http://wowubuntu.com/shlug-2011-tee.html</link>
		<comments>http://wowubuntu.com/shlug-2011-tee.html#comments</comments>
		<pubDate>Tue, 13 Sep 2011 01:44:30 +0000</pubDate>
		<dc:creator>投稿/转载</dc:creator>
				<category><![CDATA[新闻]]></category>
		<category><![CDATA[Tee]]></category>

		<guid isPermaLink="false">http://wowubuntu.com/?p=5261</guid>
		<description><![CDATA[大家好！Shanghai Linux User Group (上海 Linux 用户组) 的 2011 款文化衫现在开始接受预定了！ 和2010款一样的是，我们会为大家提供圆领和Polo两种款式的选择。和2010款不一样的是，这次我们不再是单调的一个Logo，并且由短袖变为了长袖，衣服颜色也从黑色变为白色 衣服的样式如图，除了左上方的Logo之外，衣服当中还有一个拉风的 Tag Cloud。圆领的衣服Tag Cloud会被印在前面，Polo 衫则会被印在背后。 &#160; 衣服的尺寸选择请参考这里: Polo衫 Tee 价格：圆领的成本价格为33元，Polo的成本价格为45元。在接受预定的过程中并不需要先给我们钱我们SHLUG的基金会和我们几位管理员会拿出一笔钱将购置衣服的钱先为你垫上，等各位领取到衣服后再进行支付 你可以选择按照成本价支付，也可以多出一些钱，我们会将多收到的钱存入 SHLUG 基金帐户用于 geekbone 软件镜像服务器维护使用 需要声明的是，我们管理员不会从中收取任何服务或者劳务费。 现在，大家要做的就是填写预定表单，链接在这里，填写时请看清楚填写信息和要求: https://docs.google.com/spreadsheet/viewform?formkey=dHhGM2pqbXdabC1DYUdBVEN1blY2aUE6MQ 你也可以在这里查看目前的预定情况: https://docs.google.com/spreadsheet/pub?hl=en_US&#38;hl=en_US&#38;key=0AnBdhotpGZFodHhGM2pqbXdabC1DYUdBVEN1blY2aUE&#38;output=html 感谢对我们SHLUG的支持，详情请订阅 SHLUG 邮件列表。 SHLUG / 上海 Linux 用户组 官方网站： http://www.shlug.org/ Google Group: http://groups.google.com/group/shlug 发送电邮至 shlug+subscribe@googlegroups.com 即可加入 来源：@Thomas # 本文采用CC协议进行授权，转载本文请注明本文链接。/ 15 条留言 - Twitter / 微博 / 问答 / [...]<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">相关文章：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwowubuntu.com%2Fshlug-200104.html&from=http%3A%2F%2Fwowubuntu.com%2Fshlug-2011-tee.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 13px !important;">通知：SHLUG 月度技术聚会与 GNOME 3 Launch Party</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwowubuntu.com%2Fshlug-2011-conf.html&from=http%3A%2F%2Fwowubuntu.com%2Fshlug-2011-tee.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 13px !important;">上海Linux用户组2011年度技术分享会</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwowubuntu.com%2Fubuntu_artwork.html&from=http%3A%2F%2Fwowubuntu.com%2Fshlug-2011-tee.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 13px !important;">Ubuntu 开源文化展示号召艺术家们为Ubuntu 10.10贡献力量</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwowubuntu.com%2Fubuntu-tweak07.html&from=http%3A%2F%2Fwowubuntu.com%2Fshlug-2011-tee.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 13px !important;">Ubuntu Tweak 0.7.0 正式发布</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwowubuntu.com%2Fhardware-info.html&from=http%3A%2F%2Fwowubuntu.com%2Fshlug-2011-tee.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 13px !important;">Linux 用命令行查看硬件信息</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>大家好！Shanghai Linux User Group (上海 Linux 用户组) 的 2011 款文化衫现在开始接受预定了！</p>
<p>和2010款一样的是，我们会为大家提供圆领和Polo两种款式的选择。和2010款不一样的是，这次我们不再是单调的一个Logo，并且由短袖变为了长袖，衣服颜色也从黑色变为白色</p>
<p>衣服的样式如图，除了左上方的Logo之外，衣服当中还有一个拉风的 Tag Cloud。圆领的衣服Tag Cloud会被印在前面，Polo 衫则会被印在背后。</p>
<p><a href="http://wowubuntu.com/wp-content/uploads/2011/09/tee-shlug-1.png"><img class="alignnone size-full wp-image-5262" title="tee-shlug-1" src="http://wowubuntu.com/wp-content/uploads/2011/09/tee-shlug-1.png" alt="" width="480" height="390" /></a></p>
<p>&nbsp;</p>
<p>衣服的尺寸选择请参考这里:</p>
<ul>
<li>Polo衫<br />
<a href="http://wowubuntu.com/wp-content/uploads/2011/09/polo-size.png"><img class="alignnone size-full wp-image-5263" title="polo-size" src="http://wowubuntu.com/wp-content/uploads/2011/09/polo-size.png" alt="" width="738" height="134" /></a></li>
<li>Tee<br />
<a href="http://wowubuntu.com/wp-content/uploads/2011/09/tee-size.png"><img class="alignnone size-full wp-image-5264" title="tee-size" src="http://wowubuntu.com/wp-content/uploads/2011/09/tee-size.png" alt="" width="674" height="187" /></a></li>
</ul>
<p><strong>价格</strong>：圆领的成本价格为33元，Polo的成本价格为45元。在接受预定的过程中并不需要先给我们钱我们SHLUG的基金会和我们几位管理员会拿出一笔钱将购置衣服的钱先为你垫上，等各位领取到衣服后再进行支付</p>
<p>你可以选择按照成本价支付，也可以多出一些钱，我们会将多收到的钱存入 SHLUG 基金帐户用于 geekbone 软件镜像服务器维护使用</p>
<p>需要声明的是，我们管理员不会从中收取任何服务或者劳务费。</p>
<p>现在，大家要做的就是填写预定表单，链接在这里，填写时请看清楚填写信息和要求:</p>
<p><a href="https://docs.google.com/spreadsheet/viewform?formkey=dHhGM2pqbXdabC1DYUdBVEN1blY2aUE6MQ" target="_blank">https://docs.google.com/spreadsheet/viewform?formkey=dHhGM2pqbXdabC1DYUdBVEN1blY2aUE6MQ</a></p>
<p>你也可以在这里查看目前的预定情况:<br />
<a href="https://docs.google.com/spreadsheet/pub?hl=en_US&amp;hl=en_US&amp;key=0AnBdhotpGZFodHhGM2pqbXdabC1DYUdBVEN1blY2aUE&amp;output=html" target="_blank">https://docs.google.com/spreadsheet/pub?hl=en_US&amp;hl=en_US&amp;key=0AnBdhotpGZFodHhGM2pqbXdabC1DYUdBVEN1blY2aUE&amp;output=html</a></p>
<p>感谢对我们SHLUG的支持，详情请订阅 SHLUG 邮件列表。</p>
<blockquote><p>SHLUG / 上海 Linux 用户组<br />
官方网站： <a href="http://www.shlug.org/" target="_blank">http://www.shlug.org/</a><br />
Google Group: <a href="http://groups.google.com/group/shlug" target="_blank">http://groups.google.com/group/shlug<br />
</a>发送电邮至 <a href="mailto:shlug+subscribe@googlegroups.com" target="_blank">shlug+subscribe@googlegroups.com</a> 即可加入</p></blockquote>
<p>来源：@<a href="http://ghostunix.org/blog/?p=497" target="_blank">Thomas</a></p>
# 本文采用<a href="http://creativecommons.org/licenses/by/2.5/cn/">CC协议</a>进行授权，转载本文请注明<a href="http://wowubuntu.com/shlug-2011-tee.html" title="Permalink">本文链接<a>。/  15  条留言
<hr>
- <a href="http://twitter.com/ubuntu_tips">Twitter</a> 
/ <a href="http://t.sina.com.cn/utips">微博</a> 
/ <a href="http://wowubuntu.com/ask">问答</a> 
/ <a href="http://wowubuntu.com/submit">投稿</a>
/ <a href="http://wowubuntu.com/join">加入我们</a> wow0slx6bcs721xo1udcc<br>- 高性价比 <a href="http://wowubuntu.com/vps.html">Ubuntu VPS</a> / 本站架设于<a href="http://www.photonvps.com/billing/aff.php?aff=129"> PhotonVPS </a> / 定制 <a href="http://tto.me/kfstee">Ubuntu T-Shirt</a><table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">相关文章：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwowubuntu.com%2Fshlug-200104.html&from=http%3A%2F%2Fwowubuntu.com%2Fshlug-2011-tee.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 13px !important;">通知：SHLUG 月度技术聚会与 GNOME 3 Launch Party</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwowubuntu.com%2Fshlug-2011-conf.html&from=http%3A%2F%2Fwowubuntu.com%2Fshlug-2011-tee.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 13px !important;">上海Linux用户组2011年度技术分享会</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwowubuntu.com%2Fubuntu_artwork.html&from=http%3A%2F%2Fwowubuntu.com%2Fshlug-2011-tee.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 13px !important;">Ubuntu 开源文化展示号召艺术家们为Ubuntu 10.10贡献力量</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwowubuntu.com%2Fgoogle-plus.html&from=http%3A%2F%2Fwowubuntu.com%2Fshlug-2011-tee.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 13px !important;">Google Plus 帐号及邀请</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwowubuntu.com%2F35-beautiful-ubuntu-icons-3.html&from=http%3A%2F%2Fwowubuntu.com%2Fshlug-2011-tee.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 13px !important;">35个漂亮的ubuntu 图标集之三</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://wowubuntu.com/shlug-2011-tee.html/feed</wfw:commentRss>
		<slash:comments>15</slash:comments>
		</item>
		<item>
		<title>16 条技巧让你更高效使用 SSH</title>
		<link>http://wowubuntu.com/ssh-tips.html</link>
		<comments>http://wowubuntu.com/ssh-tips.html#comments</comments>
		<pubDate>Mon, 29 Aug 2011 07:32:05 +0000</pubDate>
		<dc:creator>投稿/转载</dc:creator>
				<category><![CDATA[技巧]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://wowubuntu.com/?p=5212</guid>
		<description><![CDATA[来源：16 条技巧让你更高效使用 SSH [黑客志] / 翻译及整理：@yuanyiz 原文：SSH Can Do That? Productivity Tips for Working with Remote Servers / 作者：Smylers  SSH有很多非常酷的特性，如何它是你每天的工作伴侣，那么我想你有必要了解以下16条高效使用SSH的秘籍，它们帮你节省的时间肯定会远远大于你用来配置它们的时间。 1. 多条连接共享 如果你需要在多个窗口中打开到同一个服务器的连接，而不想每次都输入用户名，密码，或是等待连接建立，那么你可以配置SSH的连接共享选项，在本地打开你的SSH配置文件，通常它们位于~/.ssh/config，然后添加下面2行： ControlMaster auto ControlPath /tmp/ssh_mux_%h_%p_%r 现在试试断开你与服务器的连接，并建立一条新连接，然后打开一个新窗口，再创建一条连接，你会发现，第二条连接几乎是在瞬间就建立好了。 Windows用户 如果你是Windows用户，很不幸，最流行的开源SSH客户端Putty并不支持这个特性，但是Windows上也有OpenSSH的实现，比如这个Copssh，如果你觉得下面的一些技巧对你很有帮助，或许你应该试试Copssh。 文件传输 连接共享不止可以帮助你共享多个SSH连接，如果你需要通过SFTP与服务器传输文件，你会发现，它们使用的依然是同一条连接，如果你使用的Bash，你会发现，你甚至SSH甚至支持Tab对服务器端文件进行自动补全，共享连接选项对于那些需要借助SSH的工具，比如rsync，git等等也同样有效。 2. 长连接 如果你发现自己每条需要连接同一个服务器无数次，那么长连接选项就是为你准备的： ControlPersist 4h 现在你每次通过SSH与服务器建立连接之后，这条连接将被保持4个小时，即使在你退出服务器之后，这条连接依然可以重用，因此，在你下一次（4小时之内）登录服务器时，你会发现连接以闪电般的速度建立完成，这个选项对于通过scp拷贝多个文件提速尤其明显，因为你不在需要为每个文件做单独的认证了。 3. 别再输入密码 如果你还在通过密码方式登录SSH，那么你或许应该试试SSH Keys，首先使用OpenSSH为自己声称一对密钥： $ ssh-keygen 跟随指示，完成之后，你应该可以在你的.ssh目录下看到两个文件，id_rsa就是你的私钥，而id_ras.pub则是你的公钥，现在你需要将你的公钥拷贝到服务器上，如果你的系统有ssh-copy-id命令，拷贝会很简单： $ ssh-copy-id smylers@compo.example.org 否则，你需要手动将你的私钥拷贝的服务器上的~/.ssh/authorized_keys文件中： $ &#60; ~/.ssh/id_rsa.pub ssh clegg.example.org ‘mkdir [...]<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">相关文章：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwowubuntu.com%2F25-ssh-cmd.html&from=http%3A%2F%2Fwowubuntu.com%2Fssh-tips.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 13px !important;">25 条 SSH 命令和技巧</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwowubuntu.com%2Fssh-security.html&from=http%3A%2F%2Fwowubuntu.com%2Fssh-tips.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 13px !important;">增强 SSH 安全性的 7 条技巧</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwowubuntu.com%2Fsecure-shell.html&from=http%3A%2F%2Fwowubuntu.com%2Fssh-tips.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 13px !important;">Secure Shell : Chrome 原生 SSH 客户端</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwowubuntu.com%2Fssh-host.html&from=http%3A%2F%2Fwowubuntu.com%2Fssh-tips.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 13px !important;">SSH 小技巧：设置主机别名</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwowubuntu.com%2Fssh_tunnel.html&from=http%3A%2F%2Fwowubuntu.com%2Fssh-tips.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 13px !important;">Ubuntu 下如何使用 SSH Tunneling Proxy ?</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>来源：<span style="font-family: Consolas, Monaco, monospace; font-size: 12px; line-height: 18px; white-space: pre;"><a href="http://heikezhi.com/2011/08/26/ssh-productivity-tips/">16 条技巧让你更高效使用 SSH</a> [黑客志] / 翻译及整理：<a href="http://twitter.com/yuanyiz" target="_blank">@yuanyiz</a><br />
原文：<a href="http://blogs.perl.org/users/smylers/2011/08/ssh-productivity-tips.html" target="_blank">SSH Can Do That? Productivity Tips for Working with Remote Servers</a> / 作者：<a href="http://blogs.perl.org/users/smylers/" target="_blank">Smylers</a> </span></p>
<p>SSH有很多非常酷的特性，如何它是你每天的工作伴侣，那么我想你有必要了解以下16条高效使用SSH的秘籍，它们帮你节省的时间肯定会远远大于你用来配置它们的时间。</p>
<p><strong>1. 多条连接共享</strong></p>
<p>如果你需要在多个窗口中打开到同一个服务器的连接，而不想每次都输入用户名，密码，或是等待连接建立，那么你可以配置SSH的连接共享选项，在本地打开你的SSH配置文件，通常它们位于~/.ssh/config，然后添加下面2行：</p>
<blockquote><p>ControlMaster auto<br />
ControlPath /tmp/ssh_mux_%h_%p_%r</p></blockquote>
<p>现在试试断开你与服务器的连接，并建立一条新连接，然后打开一个新窗口，再创建一条连接，你会发现，第二条连接几乎是在瞬间就建立好了。</p>
<p>Windows用户</p>
<p>如果你是Windows用户，很不幸，最流行的开源SSH客户端Putty并不支持这个特性，但是Windows上也有OpenSSH的实现，比如这个<a href="http://www.itefix.no/i2/copssh" target="_blank">Copssh</a>，如果你觉得下面的一些技巧对你很有帮助，或许你应该试试Copssh。</p>
<p>文件传输</p>
<p>连接共享不止可以帮助你共享多个SSH连接，如果你需要通过SFTP与服务器传输文件，你会发现，它们使用的依然是同一条连接，如果你使用的Bash，你会发现，你甚至SSH甚至支持Tab对服务器端文件进行自动补全，共享连接选项对于那些需要借助SSH的工具，比如rsync，git等等也同样有效。</p>
<p><strong>2. 长连接</strong></p>
<p>如果你发现自己每条需要连接同一个服务器无数次，那么长连接选项就是为你准备的：</p>
<blockquote><p>ControlPersist 4h</p></blockquote>
<p>现在你每次通过SSH与服务器建立连接之后，这条连接将被保持4个小时，即使在你退出服务器之后，这条连接依然可以重用，因此，在你下一次（4小时之内）登录服务器时，你会发现连接以闪电般的速度建立完成，这个选项对于通过scp拷贝多个文件提速尤其明显，因为你不在需要为每个文件做单独的认证了。</p>
<p><strong>3. 别再输入密码</strong></p>
<p>如果你还在通过密码方式登录SSH，那么你或许应该试试SSH Keys，首先使用OpenSSH为自己声称一对密钥：</p>
<blockquote><p>$ ssh-keygen</p></blockquote>
<p>跟随指示，完成之后，你应该可以在你的.ssh目录下看到两个文件，id_rsa就是你的私钥，而id_ras.pub则是你的公钥，现在你需要将你的公钥拷贝到服务器上，如果你的系统有ssh-copy-id命令，拷贝会很简单：</p>
<blockquote><p>$ ssh-copy-id smylers@compo.example.org</p></blockquote>
<p>否则，你需要手动将你的私钥拷贝的服务器上的~/.ssh/authorized_keys文件中：</p>
<blockquote><p>$ &lt; ~/.ssh/id_rsa.pub ssh clegg.example.org ‘mkdir -p .ssh; cat &gt;&gt; .ssh/authorized_keys; chmod go-w .ssh .ssh/authorized_keys’</p></blockquote>
<p>现在试试重新连接到SSH服务器，或是拷贝文件，是不是已经不需要再输入密码了？</p>
<p>为Putty配置SSH Key</p>
<p>Putty也可以使用SSH Key，<a href="http://www.chiark.greenend.org.uk/~sgtatham/putty/download.html" target="_blank">从Putty网站下载PuttyGen和Pageant</a>，然后使用PuttyGen生成你的密钥，将公钥拷贝到服务器的’.ssh/authorized_keys’目录，然后运行Pageant，导入你的私钥，让它在后台运行，险隘你就可以使用Putty通过公钥直接登录服务器了，你可以在<a href="http://the.earth.li/~sgtatham/putty/0.61/htmldoc/Chapter8.html" target="_blank">Putty手册的第8，9章</a>了解关于这一特性的详细介绍。</p>
<p><strong>4. 连接中转</strong></p>
<p>有时候你可能需要从一个服务器连接另外一个服务器，比如在两个服务器之间直接传输数据，而不用通过本地电脑中转：</p>
<blockquote><p>www1 $ scp -pr templates www2:$PWD</p></blockquote>
<p>（顺便说一下，当你需要在两台服务器间拷贝文件时，$PWD变量时非常有用的），因为即使你已经在两台服务器上添加了你本地电脑的公钥，scp默认仍然会提示你输入密码：这是因为你用来作为跳板的那台服务器上并没有你的私钥，所以，第二胎服务器会拒绝你的公钥，但是一定不要通过将你的私钥拷贝到中转服务器上来解决这个问题，你可以使用agent forwarding来解决这个问题，只要在你的.ssh/config文件中加入下面这行代码就可以了：</p>
<blockquote><p>ForwardAgent yes</p></blockquote>
<p>或者是在Putty中勾上“Allow agent forwarding”选项，现在你的本地SSH就变成了第一台服务器的SSH代理，从第一台服务器在连接其它服务器就变和和在你本地一样简单，注意，如果要开启这个选项，前提是这个中间服务器值得你信任。</p>
<p><strong>5. 省略主机名</strong></p>
<p>输入服务器的完整主机名来建立一个新的SSH连接实在是太乏味无聊了，尤其是当你有一组拥有相同域名但是子域名不同的服务器需要管理时，比如下面这样：</p>
<blockquote><p>* www1.example.com<br />
* www2.example.com<br />
* mail.example.com<br />
* intranet.internal.example.com<br />
* backup.internal.example.com<br />
* dev.internal.example.com</p></blockquote>
<p>或许你的网络已经配置了可以直接使用短域名，比如intranet，但是如果你的网络不支持，实际上你可以自己搞定这个问题，而不用求助网络管理员。</p>
<p>解决办法根据你用的操作系统而略有差异，下面是我的Ubuntu系统的配置：</p>
<blockquote><p>prepend domain-search “internal.example.com”, “example.com”;</p></blockquote>
<p>然后你需要重启网络:$ sudo restart network-manager</p>
<p>不同的系统，这两条命令可能会略有差异。</p>
<p><strong>5. 主机别名</strong></p>
<p>你也可以在你的SSH配置中直接定义主机别名，就像下面这样：</p>
<blockquote><p>Host dev<br />
HostName dev.internal.example.com</p></blockquote>
<p>你还可以使用通配符来进行分组：</p>
<blockquote><p>Host dev intranet backup<br />
HostName %h.internal.example.com</p>
<p>Host www* mail<br />
HostName %h.example.com</p></blockquote>
<p>在Putty中你可以为每个主机名保存单独的session，然后双击建立连接（但是它可能没办法支持通配符）。</p>
<p><strong>7. 省去用户名</strong></p>
<p>如果你在远程服务器上的用户名和你本地的用户名不同，你同样可以在SSH配置中进行设置：</p>
<blockquote><p>Host www* mail<br />
HostName %h.example.com<br />
User simon</p></blockquote>
<p>现在就算我的本地用户名是 smylers，我仍然可以这样连接我的服务器：</p>
<blockquote><p>$ ssh www2</p></blockquote>
<p>SSH会使用simon账户连接你的服务器，同样，Putty可以保存这个信息在你的session中。</p>
<p><strong>8. 在服务器间跳转</strong></p>
<p><strong></strong>有些时候，你可能没法直接连接到某台服务器，而需要使用一台中间服务器进行中转，这个过程也可以自动化。首先确保你已经为服务器配置了公钥访问，并开启了agent forwarding，现在你就可以通过2条命令来连接目标服务器，不会有任何提示输入：</p>
<blockquote><p>$ ssh gateway<br />
gateway $ ssh db</p></blockquote>
<p>然后在你的本地SSH配置中，添加下面这条配置：</p>
<blockquote><p>Host db<br />
HostName db.internal.example.com<br />
ProxyCommand ssh gateway netcat -q 600 %h %p</p></blockquote>
<p>现在你就可以通过一条命令来直接连接目标服务器了:</p>
<blockquote><p>$ ssh db</p></blockquote>
<p>这里你可能会需要等待长一点的时间，因为SSH需要进行两次认证，，注意netcat也有可能被写成nc或者ncat或者前面还需要加上g，你需要检查你的中间服务器来确定实际的参数。</p>
<p><strong>9. 突破网络封锁</strong></p>
<p>有些时候，你使用的网络可能只开放了80端口，或者它们封锁了SSH端口（默认的22端口），这种情况下，你可以通过配置SSH服务器在80或者443端口进行监听来突破封锁，只需要编辑你的服务器的/etc/ssh/sshd_config文件：</p>
<blockquote><p>Port 443</p></blockquote>
<p>然后重启SSH服务器：</p>
<blockquote><p>$ sudo reload ssh</p></blockquote>
<p>当然这样做的前提是你的服务器没有使用HTTS服务，但是实际上你只需要设置一台服务器使用https端口就够了，你但你可以访问这台服务器，你就可以使用我们前面提到的技术利用它作为跳板来访问其它服务器，但是记住，你需要提前配置好这台服务器（现在怎么样？），这样万一当你身处一个只能访问Web的网络环境时，就可以省掉打电话让其他人帮你配置中间服务器的麻烦了。</p>
<p><strong>10. 穿越Web代理</strong></p>
<p>有些时候，你所在的网络不止封锁SSH端口，它们有可能更进一步，只让你通过Web代理来访问网络，幸运的是我们有一个叫做<a href="http://www.agroman.net/corkscrew/" target="_blank">Corkscrew</a>的程序可以通过Web代理在发送SSH数据。Corkscrew的使用非常简单，一般我都是在需要时搜索，然后直接下载，跟随网站上的指示，然后就搞定了，一般你需要这样一条配置：</p>
<blockquote><p>ProxyCommand corkscrew proxy.example.org 8080 %h %p</p></blockquote>
<p><strong>11. 远程GUI</strong></p>
<p>有时候通过本地的GUI程序来访问远程服务器的文件会非常有用，比如，编辑一副图片，或者查看一个PDF文件，或者只是简单的通过一个非命令行的编辑器来修改代码，我发现GVim要比终端里的Vim更有用，因为我可以通过gvimopens打开一个新窗口来编辑文件，而用当前的SSH窗口继续执行其它操作，不要要这样做，你需要先在你的SSH配置中开启一个叫做X forwarding的选项：</p>
<blockquote><p>ForwardX11 yes</p></blockquote>
<p>这个选项需要服务器配置才能起作用，服务器也需要开启X forwarding，你可以在服务器的/etc/ssh/sshd_config中添加下面这个命令：</p>
<blockquote><p>X11Forwarding yes</p></blockquote>
<p>同时你还需要确保安装了xauth，编辑器，图片查看器以及其它的你需要运行的图形化程序，这种方式只有在支持本地X服务器的操作提供才可以工作，mac和Windows上都有免费的X Server，你可能需要花些时间配置它们，相比之下，切换到Linux相对会更容易一下。</p>
<p><strong>12.本地操作远程文件</strong></p>
<p><strong></strong>另一种让远程GUI程序显示在本地的替代方案就是让本地的GUI程序可以直接操作远程文件，你可以通过SSHFS来实现，只需要创建一个空目录，然后使用SSHFS将一个远程目录mount到这个目录就可以了：</p>
<blockquote><p>$ mkdir gallery_src<br />
$ sshfs dev:projects/gallery/src gallery_src<br />
$ cd gallery_src<br />
$ ls</p></blockquote>
<p>现在你就可以使用任何你喜欢的本地程序来便捷这个目录中的文件了，它们看起来是在你的本地，但其实时远程服务器上的文件，你可以使用fusermount命令来unmount这些文件，不要担心记不住，它们就在sshfs手册的顶上：</p>
<blockquote><p>$ cd ..<br />
$ fusermount -u gallery_src</p></blockquote>
<p>SSHFS可以在Linux和OSX上工作，Windows用户我目前还没找到什么好办法。</p>
<p><strong>13. 通过Vim访问远程文件</strong></p>
<p>Vim有一个内置的功能可以直接编辑远程文件，需要借助SCP URL：</p>
<blockquote><p>$ gvim scp://dev/projects/gallery/src/templates/search.html.tt</p></blockquote>
<p>这中方式明显不如SSHFS灵活，但是如果你只需要对远程服务器的1，2个文件进行编辑时，这条命令就要更灵活一些了，并且可以在Windows上你也可以这样做：</p>
<blockquote><p>:help netrw-problems</p></blockquote>
<p><strong>14. 使用本地App连接远程服务器</strong></p>
<p>有时可能有些服务，比如数据库或是Web服务器，它们运行在远程服务器上，但是如果有用方式可以直接从本地程序连接它们，那会非常有用，要做到这一点，你需要用到端口转发(port forwarding)，举个例子，如果你的服务器运行Postgres（并且只允许本地访问），那么你就可以在你的SSH配置中加入：</p>
<blockquote><p>Host db<br />
LocalForward 5433 localhost:5432</p></blockquote>
<p>现在当你连接你的SSH服务器时，它会在你本地电脑打开一个5433端口（我随便挑的），并将所有发送到这个端口的数据转发到服务器的5432端口（Postgres的默认端口），然后，只要你和服务器建立了连接，你就可以通过5433端口来访问服务器的Postgres了。</p>
<blockquote><p>$ ssh db</p></blockquote>
<p>现在打开另外一个窗口，你就可以通过下面这条命令在本地连接你的Postgres数据库了：</p>
<blockquote><p>$ psql -h localhost -p 5443 orders</p></blockquote>
<p>如果你想要使用服务器不支持的图形化Postgres客户端时，这条命令会显得尤其有用：</p>
<blockquote><p>$ pgadmin3 &amp;</p></blockquote>
<p>或者你有一个后台的Web服务器，你不希望直接通过Internet访问它，你也可以通过端口转发来访问它：</p>
<blockquote><p>Host api<br />
LocalForward 8080 localhost:80</p></blockquote>
<p>现在连接到服务器：</p>
<blockquote><p>$ ssh api</p></blockquote>
<p>然后将浏览器指向你选择的端口号：</p>
<blockquote><p>$ firefox http://localhost:8080/</p></blockquote>
<p><strong>15. 减少延迟</strong></p>
<p>如果每次连接服务器都意味着你需要等待几十秒而无所事事，那么你或许应该试试在你的SSH配置中加入下面这条：</p>
<blockquote><p>GSSAPIAuthentication no</p></blockquote>
<p>如果这条命令有效的话，你应该通知你的系统管理员让他在服务器上禁用这个选项，这样其他人就不用再分别添加这条配置到它们的本地配置了。</p>
<p><strong>16. 加速连接</strong></p>
<p>如果你确保你和某个服务器之间的连接是安全的（比如通过公司内网连接），那么你就可以通过选择arcfourencryption算法来让数据传输更快一些：</p>
<blockquote><p>Host dev<br />
Ciphers arcfour</p></blockquote>
<p>注意这个加速是以牺牲数据的“加密”性为代价的，所以如果你连接的是位于网上的服务器，千万不要打开这个选项，并且确保你是通过VPN建立的连接。</p>
<p><strong>开始行动吧！</strong></p>
<p>以上就是我收集的高效使用SSH的技巧合集了，如果你还有更多技巧想要分享，记得通过<a href="mailto:Smylers@cpan.org" target="_blank">Smylers@cpan.org</a>或是通过<a href="http://twitter.com/Smylers2" target="_blank">@Smylers2</a>来和我联系。</p>
<p>现在就赶紧行动试试通过这些技巧来让你的SSH更有效率吧！</p>
# 本文采用<a href="http://creativecommons.org/licenses/by/2.5/cn/">CC协议</a>进行授权，转载本文请注明<a href="http://wowubuntu.com/ssh-tips.html" title="Permalink">本文链接<a>。/  14  条留言
<hr>
- <a href="http://twitter.com/ubuntu_tips">Twitter</a> 
/ <a href="http://t.sina.com.cn/utips">微博</a> 
/ <a href="http://wowubuntu.com/ask">问答</a> 
/ <a href="http://wowubuntu.com/submit">投稿</a>
/ <a href="http://wowubuntu.com/join">加入我们</a> wow0slx6bcs721xo1udcc<br>- 高性价比 <a href="http://wowubuntu.com/vps.html">Ubuntu VPS</a> / 本站架设于<a href="http://www.photonvps.com/billing/aff.php?aff=129"> PhotonVPS </a> / 定制 <a href="http://tto.me/kfstee">Ubuntu T-Shirt</a><table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">相关文章：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwowubuntu.com%2F25-ssh-cmd.html&from=http%3A%2F%2Fwowubuntu.com%2Fssh-tips.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 13px !important;">25 条 SSH 命令和技巧</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwowubuntu.com%2Fssh-security.html&from=http%3A%2F%2Fwowubuntu.com%2Fssh-tips.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 13px !important;">增强 SSH 安全性的 7 条技巧</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwowubuntu.com%2Fsecure-shell.html&from=http%3A%2F%2Fwowubuntu.com%2Fssh-tips.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 13px !important;">Secure Shell : Chrome 原生 SSH 客户端</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwowubuntu.com%2Fssh-host.html&from=http%3A%2F%2Fwowubuntu.com%2Fssh-tips.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 13px !important;">SSH 小技巧：设置主机别名</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwowubuntu.com%2Fssh_tunnel.html&from=http%3A%2F%2Fwowubuntu.com%2Fssh-tips.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 13px !important;">Ubuntu 下如何使用 SSH Tunneling Proxy ?</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://wowubuntu.com/ssh-tips.html/feed</wfw:commentRss>
		<slash:comments>14</slash:comments>
		</item>
		<item>
		<title>文档与笔记利器 reStructuredText 和 Sphinx</title>
		<link>http://wowubuntu.com/restructuredtext-sphinx.html</link>
		<comments>http://wowubuntu.com/restructuredtext-sphinx.html#comments</comments>
		<pubDate>Tue, 28 Jun 2011 02:33:04 +0000</pubDate>
		<dc:creator>投稿/转载</dc:creator>
				<category><![CDATA[技巧]]></category>
		<category><![CDATA[reStructuredText]]></category>
		<category><![CDATA[Sphinx]]></category>

		<guid isPermaLink="false">http://wowubuntu.com/?p=4760</guid>
		<description><![CDATA[本文转载自七星庐 [ 原文：文档与笔记利器reStructuredText和Sphinx / 作者 muzuiget ] 关于制作文档和笔记这种事，我已经纠结了很久，网上解决方案也一大推，我试过几样，ScrapBook 和 Zotero，编辑不太方便，同步麻烦。Google Note 过于格式简单，现在也不更新了，Google Docs又有点杀鸡用牛刀。还有传得很神奇的 Evernote 跟 Onenote，我压根没兴趣去用。 因为我的笔记大多都是自己写出来，整理出来的，就是精简成自己能看得懂的几段文字而已。我的要求无非这几样：主要是纯文本、工具开源、能同步和备份。 选择纯文本保存，我需要一个预定义格式，让笔记看起来有模有样，编辑器还能有简单代码高亮的，于是我在这个轻量级标记语言的维基页面观望好久。 Wiki也是一种不错方案，但是要搭服务器，不用服务器的也免不了各种配置，各种wiki系统的格式也不同。又研究了reStructuredText，发现阅读性非常好，能转换的格式也非常多。 vim就默认支持代码高亮了（rst扩展名），也能通过rst2html命令转换成的html，但是样式不太理想，我想应该有更漂亮的html生成器。于是我发现Sphinx这个工具，又当我发现其实这就是Python官方文档解决方案后。 我就做出最后决定了这一组合，reStructuredText作为标记语言，Sphinx作为生成工具。 预览 先来看看reStructuredText格式在vim的效果 生成html效果，就是python风格！ 使用 只需安装python和sphinx即可。 安装python-sphinx这个包即可，自动解决依赖了，如果追新，则可以通过pypi来安装（也就是easy_install命令啦，不过要手动安装几个依赖库）。 安装后，应该会有sphinx-quickstart这个命令了。先新建一个空目录，这个目录会放置你的笔记 muzuiget:~$ mkdir note muzuiget:~$ cd note/ muzuiget:~/note$ sphinx-quickstart 会问你N个问题，一般来说，只需要填四个地方，其余的都直接回车就行了 Project name: Muzuiget Note Author name(s): muzuiget Project version: 1 Project release [1]: 1 加粗的是我填的，最后的两个发布号跟先跟版本号一样就行了，这个可以以后再改的。然后这个目录的内容就是这样 muzuiget:~/note$ tree . . &#124;-- _build &#124;-- conf.py [...]<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">相关文章：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwowubuntu.com%2Fubuntu-one.html&from=http%3A%2F%2Fwowubuntu.com%2Frestructuredtext-sphinx.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 13px !important;">使用Ubuntu One无缝同步你的文档、音乐、图片</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwowubuntu.com%2Fpdf-mod.html&from=http%3A%2F%2Fwowubuntu.com%2Frestructuredtext-sphinx.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 13px !important;">PDF Mod : 一个简单的 PDF 文档编辑软件</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwowubuntu.com%2Fnatty-narwhal.html&from=http%3A%2F%2Fwowubuntu.com%2Frestructuredtext-sphinx.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 13px !important;">Ubuntu 11.04 开发代号确定为 Natty Narwhal (敏捷的独角鲸)</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwowubuntu.com%2Fgnome-3-2-overview-3-1-5.html&from=http%3A%2F%2Fwowubuntu.com%2Frestructuredtext-sphinx.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 13px !important;">抢先体验 Gnome 3.2 （3.1.5版）</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwowubuntu.com%2Fstories.html&from=http%3A%2F%2Fwowubuntu.com%2Frestructuredtext-sphinx.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 13px !important;">几则消息：python for android，ubuntu tv等</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p><em>本文转载自<a title="七星庐" rel="home" href="http://qixinglu.com/">七星庐</a> [ 原文：<a href="http://qixinglu.com/archives/note_tools_restructuredtext_sphinx" target="_blank">文档与笔记利器reStructuredText和Sphinx</a> / 作者 muzuiget ]</em></p>
<div>
<p>关于制作文档和笔记这种事，我已经纠结了很久，网上解决方案也一大推，我试过几样，ScrapBook 和 Zotero，编辑不太方便，同步麻烦。Google Note 过于格式简单，现在也不更新了，Google Docs又有点杀鸡用牛刀。还有传得很神奇的 Evernote 跟 Onenote，我压根没兴趣去用。</p>
<p>因为我的笔记大多都是自己写出来，整理出来的，就是精简成自己能看得懂的几段文字而已。我的要求无非这几样：主要是纯文本、工具开源、能同步和备份。</p>
<p>选择纯文本保存，我需要一个预定义格式，让笔记看起来有模有样，编辑器还能有简单代码高亮的，于是我在这个<a href="http://en.wikipedia.org/wiki/Lightweight_markup_language">轻量级标记语言的</a>维基页面观望好久。</p>
<p>Wiki也是一种不错方案，但是要搭服务器，不用服务器的也免不了各种配置，各种wiki系统的格式也不同。又研究了<a href="http://docutils.sourceforge.net/rst.html">reStructuredText</a>，发现阅读性非常好，能转换的格式也非常多。</p>
<p>vim就默认支持代码高亮了（rst扩展名），也能通过<code>rst2html</code>命令转换成的html，但是样式不太理想，我想应该有更漂亮的html生成器。于是我发现<a href="http://sphinx.pocoo.org/">Sphinx</a>这个工具，又当我发现其实这就是Python官方文档解决方案后。</p>
<p>我就做出最后决定了这一组合，reStructuredText作为标记语言，Sphinx作为生成工具。</p>
<h3>预览</h3>
<p>先来看看reStructuredText格式在vim的效果</p>
<p><a href="http://wowubuntu.com/wp-content/uploads/2011/06/1.png"><img class="alignnone size-full wp-image-4761" title="1" src="http://wowubuntu.com/wp-content/uploads/2011/06/1.png" alt="" width="448" height="260" /></a></p>
<p>生成html效果，就是python风格！</p>
<p><a href="http://wowubuntu.com/wp-content/uploads/2011/06/2.png"><img class="alignnone size-full wp-image-4762" title="2" src="http://wowubuntu.com/wp-content/uploads/2011/06/2.png" alt="" width="438" height="300" /></a></p>
<h3>使用</h3>
<p>只需安装python和sphinx即可。 安装<code>python-sphinx</code>这个包即可，自动解决依赖了，如果追新，则可以通过pypi来安装（也就是<code>easy_install</code>命令啦，不过要<a href="http://docs.python.org/documenting/building.html#without-make">手动安装几个依赖库</a>）。</p>
<p>安装后，应该会有<code>sphinx-quickstart</code>这个命令了。先新建一个空目录，这个目录会放置你的笔记</p>
<div>
<div>
<blockquote>
<pre>muzuiget:~$ mkdir note
muzuiget:~$ cd note/
muzuiget:~/note$ sphinx-quickstart</pre>
</blockquote>
</div>
</div>
<p>会问你N个问题，一般来说，只需要填四个地方，其余的都直接回车就行了</p>
<ol>
<li>Project name: <strong>Muzuiget Note</strong></li>
<li>Author name(s): <strong>muzuiget</strong></li>
<li>Project version: <strong>1</strong></li>
<li>Project release [1]: <strong>1</strong></li>
</ol>
<p>加粗的是我填的，最后的两个发布号跟先跟版本号一样就行了，这个可以以后再改的。然后这个目录的内容就是这样</p>
<div>
<div>
<pre>muzuiget:~/note$ tree .
.
|-- _build
|-- conf.py
|-- index.rst
|-- make.bat
|-- Makefile
|-- _static
`-- _templates

3 directories, 4 files</pre>
</div>
</div>
<p>然后你可以用文本编辑器打开 index.rst 这个文件，如果用vim，就发现有代码高亮啦。暂时不用改什么，接着运行</p>
<div>
<div>
<pre>muzuiget:~/note$ make html</pre>
</div>
</div>
<p>然后用浏览器打开 _build/html/index.html 你会看到，舒服漂亮的python式文档出现鸟。</p>
<h3>添加内容</h3>
<p>当然现在什么内容也没有，现在你就可以向 index.rst 添加内容就行了。 至于reStructuredText的语法，reStructuredText、Sphinx、Python都有简单的教程</p>
<ol>
<li>reStructuredText <a href="http://docutils.sourceforge.net/docs/user/rst/quickstart.html">A ReStructuredText Primer</a></li>
<li>Sphinx <a href="http://sphinx.pocoo.org/rest.html">reStructuredText Primer</a></li>
<li>Python <a href="http://docs.python.org/documenting/rest.html">reStructuredText Primer</a></li>
</ol>
<p>这几个链接的html本身就是reStructuredText写出来的，比如第一个链接的<a href="http://docutils.sourceforge.net/docs/user/rst/quickstart.txt">源代码</a>，另存到为 quickstart.rst，放到 index.rst 的统一目录下。然后修改 index.rst，就加一行</p>
<pre>.. toctree::
   :maxdepth: 2

   quickstart.rst</pre>
<p>注意“quickstart.rst”中的“q”和“ :maxdepth: 2”的冒号在同一列，保存，然后重新</p>
<div>
<div>
<pre>muzuiget:~/note$ make html</pre>
</div>
</div>
<p>再次刷新 _build/html/index.html，你就看到新的内容了，很简单吧。除了html外，sphinx也支持其它格式，直接运行<code>make</code>就能看到参数了。</p>
<h3>ReStructuredText资料</h3>
<p>下一步问题就是学习reStructuredText来编写规范的文档和笔记了，reStructuredText官方有个<a href="http://docutils.sourceforge.net/docs/user/rst/quickref.html">快速参考</a>。而可供参考的实际例子更加多了，<a href="http://sphinx.pocoo.org/contents.html">Sphinx的文档</a>和<a href="http://docs.python.org/">Python文档</a>就是非常规范了，页面旁边有个“Show Source”链接，还不够，Sphinx上还有个<a href="http://sphinx.pocoo.org/examples.html">列表</a>。</p>
<p>其实之前的<code>sphinx-quickstart</code>这个命令主要是创建了了 conf.py 这个文件，里面就是输出html或其它格式的配置，可以参考Sphinx文档来修改，定制性相当得高，还内置<a href="http://sphinx.pocoo.org/theming.html">几种主题</a>。这个方面还大家慢慢研究吧。</p>
<h3>同步</h3>
<p>对了，如何同步呢？还用多想，直接把笔记文件夹扔到Dropbox得了，就这么简单。在<a href="https://bitbucket.org/">Bitbucket</a>搭个私有仓库也行。</p>
</div>
# 本文采用<a href="http://creativecommons.org/licenses/by/2.5/cn/">CC协议</a>进行授权，转载本文请注明<a href="http://wowubuntu.com/restructuredtext-sphinx.html" title="Permalink">本文链接<a>。/  18  条留言
<hr>
- <a href="http://twitter.com/ubuntu_tips">Twitter</a> 
/ <a href="http://t.sina.com.cn/utips">微博</a> 
/ <a href="http://wowubuntu.com/ask">问答</a> 
/ <a href="http://wowubuntu.com/submit">投稿</a>
/ <a href="http://wowubuntu.com/join">加入我们</a> wow0slx6bcs721xo1udcc<br>- 高性价比 <a href="http://wowubuntu.com/vps.html">Ubuntu VPS</a> / 本站架设于<a href="http://www.photonvps.com/billing/aff.php?aff=129"> PhotonVPS </a> / 定制 <a href="http://tto.me/kfstee">Ubuntu T-Shirt</a><table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">相关文章：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwowubuntu.com%2Fubuntu-one.html&from=http%3A%2F%2Fwowubuntu.com%2Frestructuredtext-sphinx.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 13px !important;">使用Ubuntu One无缝同步你的文档、音乐、图片</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwowubuntu.com%2Fpdf-mod.html&from=http%3A%2F%2Fwowubuntu.com%2Frestructuredtext-sphinx.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 13px !important;">PDF Mod : 一个简单的 PDF 文档编辑软件</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwowubuntu.com%2Fekoore.html&from=http%3A%2F%2Fwowubuntu.com%2Frestructuredtext-sphinx.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 13px !important;">演示视频：Ekoore ET10TA Ubuntu 平板电脑</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwowubuntu.com%2Fxfce48-ppa.html&from=http%3A%2F%2Fwowubuntu.com%2Frestructuredtext-sphinx.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 13px !important;">XFCE 4.8 Ubuntu PPA</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwowubuntu.com%2Flight_theme.html&from=http%3A%2F%2Fwowubuntu.com%2Frestructuredtext-sphinx.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 13px !important;">Ubuntu 10.10 中将改善 Light Theme，更注重细节</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://wowubuntu.com/restructuredtext-sphinx.html/feed</wfw:commentRss>
		<slash:comments>18</slash:comments>
		</item>
		<item>
		<title>Unix 调试的瑞士军刀：lsof</title>
		<link>http://wowubuntu.com/lsof.html</link>
		<comments>http://wowubuntu.com/lsof.html#comments</comments>
		<pubDate>Thu, 23 Jun 2011 02:47:12 +0000</pubDate>
		<dc:creator>投稿/转载</dc:creator>
				<category><![CDATA[技巧]]></category>
		<category><![CDATA[lsof]]></category>

		<guid isPermaLink="false">http://wowubuntu.com/?p=4716</guid>
		<description><![CDATA[本文转载自黑客志 (这是一个多人协作的群体Blog，旨在为国内开发者提供新鲜和高质量的黑客文章，文章主要来源为 Hacker News。) 原文地址：Unix调试的瑞士军刀：lsof / 原作者: @Yuanyi Zhang 这是“你应该知道的Unix和Linux命令”系列的第三篇，在这篇文章中，我会介绍lsof这个工具，如果说netcat是进行网络诊断的瑞士军刀，那么 lsof 就是 Unix 调试的瑞士军刀。 Lsof 是遵从Unix 哲学的典范，它只做一件事情，并且做的相当完美——它可以列出某个进程打开的所有文件信息。打开的文件可能是普通的文件，目录，NFS文件，块文件，字符文件，共享库，常规管道，明明管道，符号链接，Socket流，网络Socket，UNIX域Socket，以及其它更多。因为Unix系统中几乎所有东西都是文件，你可以想象lsof该有多有用。 你可以看看这系列文章第一篇对pipe viewer的介绍，如果你对这篇文章感兴趣，那你应该订阅我的RSS Feed(译者注：也别忘了订阅黑客志 。 如何使用lsof？ 这篇文章中我会尽力列举我能想到的所有lsof的用法，让我们先从最简单的开始（或许你已经知道了），然后逐渐增加复杂度： 列出所有打开的文件 # lsof 不带任何参数运行lsof会列出所有进程打开的所有文件。 找出谁在使用某个文件 # lsof /path/to/file 只需要执行文件的路径，lsof就会列出所有使用这个文件的进程，你也可以列出多个文件，lsof会列出所有使用这些文件的进程。 你也可以一次制定多个文件： # lsof /path/to/file1 /path/to/file2 递归查找某个目录中所有打开的文件 # lsof +D /usr/lib 加上+D参数，lsof会对指定目录进行递归查找，注意这个参数要比grep版本慢： # lsof &#124; grep ‘/usr/lib’ 之所以慢是因为+D首先查找所有的文件，然后一次性输出。 列出某个用户打开的所有文件 # lsof -u pkrumins -u选项限定只列出所有被用户pkrumins打开的文件，你可以通过逗号指定多个用户： # [...]<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">相关文章：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwowubuntu.com%2Fchrome6.html&from=http%3A%2F%2Fwowubuntu.com%2Flsof.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 13px !important;">Google Chrome 两岁，全平台 Stable 分支升级到 6.0</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwowubuntu.com%2Fzenmap.html&from=http%3A%2F%2Fwowubuntu.com%2Flsof.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 13px !important;">Zenmap : nmap 的前端程序</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwowubuntu.com%2Fcompiz.html&from=http%3A%2F%2Fwowubuntu.com%2Flsof.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 13px !important;">Compiz 0.9.2 将带来什么新特性？</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwowubuntu.com%2Fppa-tools.html&from=http%3A%2F%2Fwowubuntu.com%2Flsof.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 13px !important;">Y PPA Manager 及 Introduce PPA : 两个 PPA 前端工具</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwowubuntu.com%2Fchrome8.html&from=http%3A%2F%2Fwowubuntu.com%2Flsof.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 13px !important;">Chrome 8 Dev 分支发布</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p><em>本文转载自<a href="http://heikezhi.com/" target="_blank">黑客志</a> (这是一个多人协作的群体Blog，旨在为国内开发者提供新鲜和高质量的黑客文章，文章主要来源为 Hacker News。)</em><br />
<em> 原文地址：<a href="http://heikezhi.com/2011/06/19/swiss-army-knife-of-unix-debugging-lsof/" target="_blank">Unix调试的瑞士军刀：lsof</a> / 原作者: @<a href="http://twitter.com/yuanyiz" target="_blank">Yuanyi Zhang</a></em></p>
<p>这是“你应该知道的Unix和Linux命令”系列的第三篇，在这篇文章中，我会介绍lsof这个工具，如果说netcat是进行网络诊断的瑞士军刀，那么 lsof 就是 Unix 调试的瑞士军刀。</p>
<p>Lsof 是遵从Unix 哲学的典范，它只做一件事情，并且做的相当完美——它可以列出某个进程打开的所有文件信息。打开的文件可能是普通的文件，目录，NFS文件，块文件，字符文件，共享库，常规管道，明明管道，符号链接，Socket流，网络Socket，UNIX域Socket，以及其它更多。因为Unix系统中几乎所有东西都是文件，你可以想象lsof该有多有用。</p>
<p>你可以看看这系列文章第一篇对<a href="http://www.catonmat.net/blog/unix-utilities-pipe-viewer/">pipe viewer</a>的介绍，如果你对这篇文章感兴趣，那你应该订阅<a href="http://feeds.feedburner.com/catonmat">我的RSS Feed</a>(译者注：也别忘了<a href="http://feed.feedsky.com/heikezhi">订阅黑客志</a> <img src='http://wowubuntu.com/wp-includes/images/smilies/icon_smile.gif' alt=':)' class='wp-smiley' /> 。</p>
<p><strong>如何使用lsof？</strong></p>
<p>这篇文章中我会尽力列举我能想到的所有lsof的用法，让我们先从最简单的开始（或许你已经知道了），然后逐渐增加复杂度：</p>
<p><strong>列出所有打开的文件</strong></p>
<p># lsof</p>
<p>不带任何参数运行lsof会列出所有进程打开的所有文件。</p>
<p><strong>找出谁在使用某个文件</strong></p>
<p># lsof /path/to/file</p>
<p>只需要执行文件的路径，lsof就会列出所有使用这个文件的进程，你也可以列出多个文件，lsof会列出所有使用这些文件的进程。</p>
<p>你也可以一次制定多个文件：</p>
<p># lsof /path/to/file1 /path/to/file2</p>
<p><strong>递归查找某个目录中所有打开的文件</strong></p>
<p># lsof +D /usr/lib</p>
<p>加上+D参数，lsof会对指定目录进行递归查找，注意这个参数要比grep版本慢：</p>
<p># lsof | grep ‘/usr/lib’</p>
<p>之所以慢是因为+D首先查找所有的文件，然后一次性输出。</p>
<p><strong>列出某个用户打开的所有文件</strong></p>
<p># lsof -u pkrumins</p>
<p>-u选项限定只列出所有被用户pkrumins打开的文件，你可以通过逗号指定多个用户：</p>
<p># lsof -u rms,root</p>
<p>这条命令会列出所有rms和root用户打开的文件。</p>
<p>你也可以像下面这样使用多个-u做同样的事情：</p>
<p># lsof -u rms -u root</p>
<p><strong>查找某个程序打开的所有文件</strong></p>
<p># lsof -c apache</p>
<p>-c选项限定只列出以apache开头的进程打开的文件：</p>
<p>所以你可以不用像下面这样写：</p>
<p># lsof | grep foo</p>
<p>而使用下面这个更简短的版本：</p>
<p># lsof -c foo</p>
<p>事实上，你可以只制定进程名称的开头：</p>
<p># lsof -c apa</p>
<p>这会列出所有以apa开头的进程打开的文件</p>
<p>你同样可以制定多个-c参数：</p>
<p># lsof -c apache -c python</p>
<p>这会列出所有由apache和python打开的文件</p>
<p><strong>列出所有由某个用户或某个进程打开的文件</strong></p>
<p># lsof -u pkrumins -c apache</p>
<p>你也可以组合使用多个选项，这些选项默认进行或关联，也就是说上面的命令会输入由pkrumins用户或是apache进程打开的文件。</p>
<p><strong>列出所有由一个用户与某个进程打开的文件</strong></p>
<p># lsof -a -u pkrumins -c bash</p>
<p>-a参数可以将多个选项的组合条件由或变为与，上面的命令会显示所有由pkrumins用户以及bash进程打开的文件。</p>
<p><strong>列出除root用户外的所有用户打开的文件</strong></p>
<p># lsof -u ^root</p>
<p>注意root前面的^符号，它执行取反操作，因此lsof会列出所有root用户之外的用户打开的文件。</p>
<p><strong>列出所有由某个PID对应的进程打开的文件</strong></p>
<p># lsof -p 1</p>
<p>-p选项让你可以使用进程id来过滤输出。</p>
<p>记住你也可以用都好来分离多个pid。</p>
<p># lsof -p 450,980,333</p>
<p><strong>列出所有进程打开的文件除了某个pid的</strong></p>
<p># lsof -p ^1</p>
<p>同前面的用户一样，你也可以对-p选项使用^来进行取反。</p>
<p><strong>列出所有网络连接</strong></p>
<p># lsof -i</p>
<p>lsof的-i选项可以列出所有打开了网络套接字（TCP和UDP）的进程。</p>
<p><strong>列出所有TCP网络连接</strong></p>
<p># lsof -i tcp</p>
<p>也可以为-i选项加上参数，比如tcp，tcp选项会强制lsof只列出打开TCP sockets的进程。</p>
<p><strong>列出所有UDP网络连接</strong></p>
<p># lsof -i udp</p>
<p>同样udp让lsof只列出使用UDP socket的进程。</p>
<p><strong>找到使用某个端口的进程</strong></p>
<p># lsof -i :25</p>
<p>:25和-i选项组合可以让lsof列出占用TCP或UDP的25端口的进程。</p>
<p>你也可以使用/etc/services中制定的端口名称来代替端口号，比如：</p>
<p># lsof -i :smtp</p>
<p>找到使用某个udp端口号的进程</p>
<p># lsof -i udp:53</p>
<p>同样的，也可以找到使用某个tcp端口的进程：</p>
<p># lsof -i tcp:80</p>
<p><strong>找到某个用户的所有网络连接</strong></p>
<p># lsof -a -u hacker -i</p>
<p>使用-a将-u和-i选项组合可以让lsof列出某个用户的所有网络行为。</p>
<p><strong>列出所有NFS（网络文件系统）文件</strong></p>
<p># lsof -N</p>
<p>这个参数很好记，-N就对应NFS。</p>
<p><strong>列出所有UNIX域Socket文件</strong></p>
<p># lsof -U</p>
<p>这个选项也很好记，-U就对应UNIX。</p>
<p><strong>列出所有对应某个组id的进程</strong></p>
<p># lsof -g 1234</p>
<p>进程组用来来逻辑上对进程进行分组，这个例子查找所有PGID为1234的进程打开的文件。</p>
<p><strong>列出所有与某个描述符关联的文件</strong></p>
<p># lsof -d 2</p>
<p>这个命令会列出所有以描述符2打开的文件。</p>
<p>你也可以为描述符指定一个范围：</p>
<p># lsof -d 0-2</p>
<p>这会列出所有描述符为0，1，2的文件。</p>
<p>-d选项还支持其它很多特殊值，下面的命令列出所有内存映射文件：</p>
<p># lsof -d mem</p>
<p>txt则列出所有加载在内存中并正在执行的进程：</p>
<p># lsof -d txt</p>
<p><strong>输出使用某些资源的进程pid</strong></p>
<p># lsof -t -i</p>
<p>-t选项输出进程的PID，你可以将它和-i选项组合输出使用某个端口的进程的PID，下面的命令将会杀掉所有使用网络的进程：</p>
<p># kill -9 `lsof -t -i`</p>
<p><strong>循环列出文件</strong></p>
<p># lsof -r 1</p>
<p>-r选项让lsof可以循环列出文件直到被中断，参数1的意思是每秒钟重复打印一次，这个选项最好同某个范围比较小的查询组合使用，比如用来监测网络活动：</p>
<p># lsof -r 1 -u john -i -a</p>
<p><strong>如何安装lsof？</strong></p>
<p>许多Unix系统都内置了lsof，如果你的系统没有安装，你可以从这里直接<a href="http://people.freebsd.org/~abe/">下载源代码</a>。</p>
<p>BSD系统有一个类似的工具可以做同样的事情，叫做fstat。</p>
<p>你可以通过<a href="http://www.opensource.apple.com/source/lsof/lsof-33/lsof/lsof.man">man lsof</a>来了解关于lsof的完整文档，或者通过lsof -h查看。</p>
<p>开始体验lsof的乐趣吧！</p>
<p>————<br />
本文翻译自<a href="http://www.catonmat.net/blog/unix-utilities-lsof/">“A Unix Utility You Should Know About: lsof”</a>，作者：<a href="http://www.twitter.com/pkrumins">Peteris Krumins</a>，照片：<a href="http://www.flickr.com/photos/eldholm/">Hallvard E</a></p>
# 本文采用<a href="http://creativecommons.org/licenses/by/2.5/cn/">CC协议</a>进行授权，转载本文请注明<a href="http://wowubuntu.com/lsof.html" title="Permalink">本文链接<a>。/  12  条留言
<hr>
- <a href="http://twitter.com/ubuntu_tips">Twitter</a> 
/ <a href="http://t.sina.com.cn/utips">微博</a> 
/ <a href="http://wowubuntu.com/ask">问答</a> 
/ <a href="http://wowubuntu.com/submit">投稿</a>
/ <a href="http://wowubuntu.com/join">加入我们</a> wow0slx6bcs721xo1udcc<br>- 高性价比 <a href="http://wowubuntu.com/vps.html">Ubuntu VPS</a> / 本站架设于<a href="http://www.photonvps.com/billing/aff.php?aff=129"> PhotonVPS </a> / 定制 <a href="http://tto.me/kfstee">Ubuntu T-Shirt</a><table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">相关文章：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwowubuntu.com%2Fubuntu-wallpaper.html&from=http%3A%2F%2Fwowubuntu.com%2Flsof.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 13px !important;">Ubuntu 墙纸： Linux for Human Beings!</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwowubuntu.com%2Ffirefox6.html&from=http%3A%2F%2Fwowubuntu.com%2Flsof.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 13px !important;">FireFox 6.0 发布</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwowubuntu.com%2Fminty-freshness.html&from=http%3A%2F%2Fwowubuntu.com%2Flsof.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 13px !important;">Minty Freshness GTK 主题</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwowubuntu.com%2Fuget180.html&from=http%3A%2F%2Fwowubuntu.com%2Flsof.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 13px !important;">下载工具 UGet 1.8.0</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwowubuntu.com%2Ftruecrypt70.html&from=http%3A%2F%2Fwowubuntu.com%2Flsof.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 13px !important;">磁盘加密工具 TrueCrypt 7.0 发布</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://wowubuntu.com/lsof.html/feed</wfw:commentRss>
		<slash:comments>12</slash:comments>
		</item>
		<item>
		<title>活动通知：Firefox 走入上海大学</title>
		<link>http://wowubuntu.com/firefox-shanghai.html</link>
		<comments>http://wowubuntu.com/firefox-shanghai.html#comments</comments>
		<pubDate>Thu, 09 Jun 2011 05:29:55 +0000</pubDate>
		<dc:creator>投稿/转载</dc:creator>
				<category><![CDATA[新闻]]></category>
		<category><![CDATA[firefox]]></category>

		<guid isPermaLink="false">http://wowubuntu.com/?p=4614</guid>
		<description><![CDATA[北京时间 2011 年 6 月 23 日左右，Mozilla 将面向全球正式发布 Firefox 5。值此重要时刻，火狐社区将走进上海大学，和上海的莘莘学子一同分享和见证 Firefox5 的发布。 谋智网络董事长兼 CEO 宫力博士将亲临活动现场，和同学们分享 Mozilla 开源精神，同大家探讨职业规划等同学们关心的话题。同时，我们也将为同学们演示和分析 Firefox 5 的强大功能以及它对 HTML5 技术的强大支持。本次活动免费开放，欢迎上海地区各大高校的同学前来参会！ 举办时间：2011年6月24日（18：30- 20：30） 举办地点：上海大学延长校区1教302教室 活动安排： 时间 主题 18：30 - 18：40 嘉宾开场 18：40 - 19：20 谋智网络CEO宫力博士分享开源精神和职业话题 19：20 - 19：30 提问互动 19：30 - 19：50 Firefox 5 及移动版新特性演示 19：50 - 20：00 提问互动 20：00 - 20：20 HTML5 新特性演示 [...]<table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">相关文章：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwowubuntu.com%2Ffirefox6.html&from=http%3A%2F%2Fwowubuntu.com%2Ffirefox-shanghai.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 13px !important;">FireFox 6.0 发布</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwowubuntu.com%2Ffirefox9.html&from=http%3A%2F%2Fwowubuntu.com%2Ffirefox-shanghai.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 13px !important;">FireFox 9.0 正式发布</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwowubuntu.com%2Ffirefox.html&from=http%3A%2F%2Fwowubuntu.com%2Ffirefox-shanghai.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 13px !important;">FireFox 4 延期及 FireFox 5 Mockup</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwowubuntu.com%2Ffirefox-aurora.html&from=http%3A%2F%2Fwowubuntu.com%2Ffirefox-shanghai.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 13px !important;">FireFox 新增发布通道 Aurora</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwowubuntu.com%2Ffirefox5-stable-ppa.html&from=http%3A%2F%2Fwowubuntu.com%2Ffirefox-shanghai.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 13px !important;">FireFox 5 PPA for Ubuntu 10.04 / 10.10</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></description>
			<content:encoded><![CDATA[<p>北京时间 2011 年 6 月 23 日左右，Mozilla 将面向全球正式发布 Firefox 5。值此重要时刻，火狐社区将走进上海大学，和上海的莘莘学子一同分享和见证 Firefox5 的发布。</p>
<p><a href="http://wowubuntu.com/wp-content/uploads/2011/06/13075173814529987.jpg"><img class="alignnone size-full wp-image-4615" title="13075173814529987" src="http://wowubuntu.com/wp-content/uploads/2011/06/13075173814529987.jpg" alt="" width="300" height="160" /></a></p>
<p>谋智网络董事长兼 CEO 宫力博士将亲临活动现场，和同学们分享 Mozilla 开源精神，同大家探讨职业规划等同学们关心的话题。同时，我们也将为同学们演示和分析 Firefox 5 的强大功能以及它对 HTML5 技术的强大支持。本次活动免费开放，欢迎上海地区各大高校的同学前来参会！</p>
<ul>
<li>举办时间：2011年6月24日（18：30- 20：30）</li>
<li>举办地点：上海大学延长校区1教302教室</li>
</ul>
<p>活动安排：</p>
<table summary=" We are right on the web! Firefox走入上海大学 活动安排">
<thead>
<tr>
<th scope="col">时间</th>
<th scope="col">主题</th>
</tr>
</thead>
<tbody>
<tr>
<td>18：30 - 18：40</td>
<td>嘉宾开场</td>
</tr>
<tr>
<td>18：40 - 19：20</td>
<td>谋智网络CEO宫力博士分享开源精神和职业话题</td>
</tr>
<tr>
<td>19：20 - 19：30</td>
<td>提问互动</td>
</tr>
<tr>
<td>19：30 - 19：50</td>
<td>Firefox 5 及移动版新特性演示</td>
</tr>
<tr>
<td>19：50 - 20：00</td>
<td>提问互动</td>
</tr>
<tr>
<td>20：00 - 20：20</td>
<td>HTML5 新特性演示</td>
</tr>
<tr>
<td>20：20 - 20：30</td>
<td>提问互动，之后活动结束</td>
</tr>
</tbody>
</table>
<p>详细信息及报名请见：<a href="http://mozilla.com.cn/event/33-ff-sh-uni/" target="_blank">http://mozilla.com.cn/event/33-ff-sh-uni/</a></p>
# 本文采用<a href="http://creativecommons.org/licenses/by/2.5/cn/">CC协议</a>进行授权，转载本文请注明<a href="http://wowubuntu.com/firefox-shanghai.html" title="Permalink">本文链接<a>。/  9  条留言
<hr>
- <a href="http://twitter.com/ubuntu_tips">Twitter</a> 
/ <a href="http://t.sina.com.cn/utips">微博</a> 
/ <a href="http://wowubuntu.com/ask">问答</a> 
/ <a href="http://wowubuntu.com/submit">投稿</a>
/ <a href="http://wowubuntu.com/join">加入我们</a> wow0slx6bcs721xo1udcc<br>- 高性价比 <a href="http://wowubuntu.com/vps.html">Ubuntu VPS</a> / 本站架设于<a href="http://www.photonvps.com/billing/aff.php?aff=129"> PhotonVPS </a> / 定制 <a href="http://tto.me/kfstee">Ubuntu T-Shirt</a><table class="wumii-related-items" cellspacing="0" cellpadding="2" border="0" width="100%" style="clear: both;">
    
    <tr>
        <td ><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">相关文章：</font></b></td>
    </tr>
    
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwowubuntu.com%2Ffirefox6.html&from=http%3A%2F%2Fwowubuntu.com%2Ffirefox-shanghai.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 13px !important;">FireFox 6.0 发布</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwowubuntu.com%2Ffirefox9.html&from=http%3A%2F%2Fwowubuntu.com%2Ffirefox-shanghai.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 13px !important;">FireFox 9.0 正式发布</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwowubuntu.com%2Ffirefox.html&from=http%3A%2F%2Fwowubuntu.com%2Ffirefox-shanghai.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 13px !important;">FireFox 4 延期及 FireFox 5 Mockup</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwowubuntu.com%2Ffirefox-aurora.html&from=http%3A%2F%2Fwowubuntu.com%2Ffirefox-shanghai.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 13px !important;">FireFox 新增发布通道 Aurora</font>
                    </a>
                </td>
            </tr>
            <tr>
                <td style="margin: 0 !important; padding: 0 !important; line-height: 20px !important;">
                    <img border="0" src="http://static.wumii.com/images/widget/widget_solidPoint.gif">
                    <a target="_blank" style="text-decoration: none !important;" href="http://app.wumii.com/ext/redirect?url=http%3A%2F%2Fwowubuntu.com%2Ffirefox5-stable-ppa.html&from=http%3A%2F%2Fwowubuntu.com%2Ffirefox-shanghai.html">
                        <font size="-1" color="#333333" style="line-height: 1.65em; font-size: 13px !important;">FireFox 5 PPA for Ubuntu 10.04 / 10.10</font>
                    </a>
                </td>
            </tr>
    
    <tr>
        <td  align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems" target="_blank" title="无觅相关文章插件">
                <font size="-1" color="#bbbbbb" style="display: block !important; font-family: arial !important; padding: 5px 0 !important; font-size: 12px !important; color: #bbb !important;">无觅</font>
            </a>
        </td>
    </tr>
</table>]]></content:encoded>
			<wfw:commentRss>http://wowubuntu.com/firefox-shanghai.html/feed</wfw:commentRss>
		<slash:comments>9</slash:comments>
		</item>
		<item>
		<title>[通知]Linux Deepin 2011 技术交流会</title>
		<link>http://wowubuntu.com/linux-deepin.html</link>
		<comments>http://wowubuntu.com/linux-deepin.html#comments</comments>
		<pubDate>Thu, 19 May 2011 06:10:15 +0000</pubDate>
		<dc:creator>投稿/转载</dc:creator>
				<category><![CDATA[新闻]]></category>
		<category><![CDATA[Linux Deepin]]></category>

		<guid isPermaLink="false">http://wowubuntu.com/?p=4382</guid>
		<description><![CDATA[Linux Deepin 2011全国精英技术交流会即将在武汉召开 为了 Linux 在中国的可持续性健康发展， Linux Deepin 开源团队携手网络知名技术团队‘深度技术’将于 2011 年 5 月28日，在武汉召开 “ Linux Deepin 2011全国精英技术交流会”。这也是国内首次由开源社区组织的‘特定Linux发布版用户线下会议’。 linux deepin ( linux.deepin.org )是国内比较知名的ubuntu衍生版，前身为 2005 年由 hiweed 发起的 hiweed linux 项目(这也是国内第一个中文社区发布版）。2009年底，Hiweed Linux并入深度技术社区，更名为 Linux Deepin 项目。经过开发团队的努力，仅主站点的下载量就达到了数十万。 在全球Linux发布版Top 100排名中，成为唯一一个由中国人制作并上榜的Linux发布版。 2011年，Linux Deepin获得进一步的投资和赞助，并在武汉建立了专职研发团队，从事linux桌面与系统平台相关的研发工作。目前已经和武汉相关高校建立了联系，筹备建立联合linux系统研发实验室。该实验室的成立，将进一步提高Linux Deepin的开发和技术支持能力。 据了解，本次会议邀请了国内Linux领域众多资深研发人士和在网友心目中影响力极高的Linux网站站长，成为了本次会议最大的亮点。而吸引国内linux精英在武汉的首次聚合，也再次验证了深度技术在网络和民间的肯定和号召力。在本次会议中，精英们将共同探讨linux在中国的健康可持续性发展和推广之路，Linux Deepin团队也将宣布未来3年linux Deepin系统的发展路线，并公开发布 Deepin Linux软件中心在经过几个月研发后的测试版本。 本次会议的网络报名扔在持续中， Linux Deepin团队竭诚欢迎国内Linux软件开发厂商和linux的研发爱好者积极参与到这一精英盛会中。 时间：2011-5-28 地址：武汉 地点：(待定) 主办：深度技术&#38; Linux Deepin开源团队 1.欢迎国内 Linux 软件开发厂商和个人申请参会资格，被邀请嘉宾将提供相应的交通和住宿安排。请直接向 deepin.xin@gmail.com [...]]]></description>
			<content:encoded><![CDATA[<h3>Linux Deepin 2011全国精英技术交流会即将在武汉召开</h3>
<p>为了 Linux 在中国的可持续性健康发展， Linux Deepin 开源团队携手网络知名技术团队‘深度技术’将于 2011 年 5 月28日，在武汉召开 “ Linux Deepin 2011全国精英技术交流会”。这也是国内首次由开源社区组织的‘特定Linux发布版用户线下会议’。</p>
<p>linux deepin ( <a href="http://linux.deepin.org" target="_blank">linux.deepin.org</a> )是国内比较知名的ubuntu衍生版，前身为 2005 年由 hiweed 发起的 hiweed linux 项目(这也是国内第一个中文社区发布版）。2009年底，Hiweed Linux并入深度技术社区，更名为 Linux Deepin 项目。经过开发团队的努力，仅主站点的下载量就达到了数十万。 在全球Linux发布版Top 100排名中，成为唯一一个由中国人制作并上榜的Linux发布版。</p>
<p>2011年，Linux Deepin获得进一步的投资和赞助，并在武汉建立了专职研发团队，从事linux桌面与系统平台相关的研发工作。目前已经和武汉相关高校建立了联系，筹备建立联合linux系统研发实验室。该实验室的成立，将进一步提高Linux Deepin的开发和技术支持能力。</p>
<p>据了解，本次会议邀请了国内Linux领域众多资深研发人士和在网友心目中影响力极高的Linux网站站长，成为了本次会议最大的亮点。而吸引国内linux精英在武汉的首次聚合，也再次验证了深度技术在网络和民间的肯定和号召力。在本次会议中，精英们将共同探讨linux在中国的健康可持续性发展和推广之路，Linux Deepin团队也将宣布未来3年linux Deepin系统的发展路线，并公开发布 Deepin Linux软件中心在经过几个月研发后的测试版本。</p>
<p>本次会议的网络报名扔在持续中， Linux Deepin团队竭诚欢迎国内Linux软件开发厂商和linux的研发爱好者积极参与到这一精英盛会中。</p>
<p>时间：2011-5-28<br />
地址：武汉<br />
地点：(待定)<br />
主办：深度技术&amp; Linux Deepin开源团队</p>
<div>
<p id="internal-source-marker_0.14582876302301884">1.欢迎国内 Linux 软件开发厂商和个人申请参会资格，被邀请嘉宾将提供相应的交通和住宿安排。请直接向 <a href="mailto:deepin.xin@gmail.com">deepin.xin@gmail.com</a> 地址发邮件介绍自己的相关情况。<br />
2. <a href="http://bbs.deepin.org/forum-506-1.html">http://bbs.deepin.org/forum-506-1.html</a> 的热心用户将有机会被邀请成为用户代表（提供到武汉免费交通和住宿）<br />
3.在武汉的Linux Deepin用户或者linux爱好者，请直接向deepin.xin@gmail.com发报名邮件申请参加，格式如下：<br />
----------------------------------------<br />
真实姓名： 网络ID（可选）<br />
联系方式：（手机或座机）<br />
工作单位/学习单位：<br />
使用Linux的经历（简单介绍即可）：<br />
其他想说的话：<br />
----------------------------------------<br />
到会者均将获得我们提供的Linux Deepin纪念礼品和资料</p>
</div>
<p>&nbsp;</p>
# 本文采用<a href="http://creativecommons.org/licenses/by/2.5/cn/">CC协议</a>进行授权，转载本文请注明<a href="http://wowubuntu.com/linux-deepin.html" title="Permalink">本文链接<a>。/  10  条留言
<hr>
- <a href="http://twitter.com/ubuntu_tips">Twitter</a> 
/ <a href="http://t.sina.com.cn/utips">微博</a> 
/ <a href="http://wowubuntu.com/ask">问答</a> 
/ <a href="http://wowubuntu.com/submit">投稿</a>
/ <a href="http://wowubuntu.com/join">加入我们</a> wow0slx6bcs721xo1udcc<br>- 高性价比 <a href="http://wowubuntu.com/vps.html">Ubuntu VPS</a> / 本站架设于<a href="http://www.photonvps.com/billing/aff.php?aff=129"> PhotonVPS </a> / 定制 <a href="http://tto.me/kfstee">Ubuntu T-Shirt</a>]]></content:encoded>
			<wfw:commentRss>http://wowubuntu.com/linux-deepin.html/feed</wfw:commentRss>
		<slash:comments>10</slash:comments>
		</item>
		<item>
		<title>Firefox 5 发布庆祝活动－魔都站</title>
		<link>http://wowubuntu.com/firefox5-paty.html</link>
		<comments>http://wowubuntu.com/firefox5-paty.html#comments</comments>
		<pubDate>Tue, 17 May 2011 07:14:19 +0000</pubDate>
		<dc:creator>投稿/转载</dc:creator>
				<category><![CDATA[新闻]]></category>
		<category><![CDATA[FireFox5]]></category>

		<guid isPermaLink="false">http://wowubuntu.com/?p=4350</guid>
		<description><![CDATA[- 来自火狐社区的消息： 北京时间2011年6月23日左右，Mozilla 将面向全球正式发布 Firefox 5。值此重要时刻，火狐社区将走进上海，诚邀各位华东地区的火狐粉丝一同欢庆和见证 Firefox 5 的发布。 活动现场将由神秘嘉宾为大家展示Firefox 5的新特性，绝对让您大饱眼福。 火狐社区欢迎众多来自社区、本地化团队、互联网、科学、文化艺术等各领域朋友参加 Firefox 5 正式发布的庆祝派对。 我们将为每位到会嘉宾准备 Firefox 纪念品，希望关心火狐的朋友们能前来参加庆祝派对，跟 Firefox 一起共度这个意义非凡的节日。 时间地点： 举办时间：2011年6月25日（周末，具体时间待定） 举办地点：上海，具体地点待定 活动内容： 庆祝 Firefox 5 发布 Firefox 与你相约上海 体验 Firefox 加速发布后第一个版本 与来自不同领域的朋友交流 Firefox 纪念品 报名流程： 登录火狐社区 &#62;&#62; 填写、提交报名表 &#62;&#62; 等待审核 &#62;&#62; 寄出派对邀请函 # 本文采用CC协议进行授权，转载本文请注明本文链接。/ 21 条留言 - Twitter / 微博 / 问答 / 投稿 / [...]]]></description>
			<content:encoded><![CDATA[<p>- 来自火狐社区的<a href="http://mozilla.com.cn/event/32-ff5-launch-party/" target="_blank">消息</a>：</p>
<p>北京时间2011年6月23日左右，Mozilla 将面向全球正式发布 Firefox 5。值此重要时刻，火狐社区将走进上海，诚邀各位华东地区的火狐粉丝一同欢庆和见证 Firefox 5 的发布。 活动现场将由神秘嘉宾为大家展示Firefox 5的新特性，绝对让您大饱眼福。</p>
<p><a href="http://wowubuntu.com/wp-content/uploads/2011/05/13055305067650642.jpg"><img class="alignnone size-full wp-image-4351" title="13055305067650642" src="http://wowubuntu.com/wp-content/uploads/2011/05/13055305067650642.jpg" alt="" width="336" height="181" /></a></p>
<p>火狐社区欢迎众多来自社区、本地化团队、互联网、科学、文化艺术等各领域朋友参加 Firefox 5 正式发布的庆祝派对。 我们将为每位到会嘉宾准备 Firefox 纪念品，希望关心火狐的朋友们能前来参加庆祝派对，跟 Firefox 一起共度这个意义非凡的节日。</p>
<h3>时间地点：</h3>
<ul>
<li>举办时间：2011年6月25日（周末，具体时间待定）</li>
<li>举办地点：上海，具体地点待定</li>
</ul>
<h3>活动内容：</h3>
<ul>
<li>庆祝 Firefox 5 发布</li>
<li>Firefox 与你相约上海</li>
<li>体验 Firefox 加速发布后第一个版本</li>
<li>与来自不同领域的朋友交流</li>
<li>Firefox 纪念品</li>
</ul>
<h3>报名流程：</h3>
<ul>
<li><a href="http://17huohu.cn/accounts/login/?next=/event/5-john-resig-visit-beijing/">登录</a>火狐社区 &gt;&gt; 填写、提交<a href="http://mozilla.com.cn/event/32-ff5-launch-party/#register">报名表</a> &gt;&gt; 等待审核 &gt;&gt; 寄出派对邀请函</li>
</ul>
# 本文采用<a href="http://creativecommons.org/licenses/by/2.5/cn/">CC协议</a>进行授权，转载本文请注明<a href="http://wowubuntu.com/firefox5-paty.html" title="Permalink">本文链接<a>。/  21  条留言
<hr>
- <a href="http://twitter.com/ubuntu_tips">Twitter</a> 
/ <a href="http://t.sina.com.cn/utips">微博</a> 
/ <a href="http://wowubuntu.com/ask">问答</a> 
/ <a href="http://wowubuntu.com/submit">投稿</a>
/ <a href="http://wowubuntu.com/join">加入我们</a> wow0slx6bcs721xo1udcc<br>- 高性价比 <a href="http://wowubuntu.com/vps.html">Ubuntu VPS</a> / 本站架设于<a href="http://www.photonvps.com/billing/aff.php?aff=129"> PhotonVPS </a> / 定制 <a href="http://tto.me/kfstee">Ubuntu T-Shirt</a>]]></content:encoded>
			<wfw:commentRss>http://wowubuntu.com/firefox5-paty.html/feed</wfw:commentRss>
		<slash:comments>21</slash:comments>
		</item>
		<item>
		<title>细数Unity的好与坏（三）：Bugs and Dirty Hacks！</title>
		<link>http://wowubuntu.com/unity-review3.html</link>
		<comments>http://wowubuntu.com/unity-review3.html#comments</comments>
		<pubDate>Mon, 16 May 2011 00:04:12 +0000</pubDate>
		<dc:creator>投稿/转载</dc:creator>
				<category><![CDATA[技巧]]></category>
		<category><![CDATA[unity]]></category>

		<guid isPermaLink="false">http://wowubuntu.com/?p=4304</guid>
		<description><![CDATA[- 经作者授权转载， 原文链接: http://imtx.me/archives/1634.html 作者:  @tualatrix， Ubuntu 上最流行的软件之一 Ubuntu Tweak 的作者，杭州 Linux 用户组 (HZLUG) 创建人。 这篇我想收集一下Unity的各种问题，主要是Bug，还有一些Dirty Hack。如果大家也有其他发现，也可以留言告诉我。 有一些我早就报告bug了，无奈自己暂时没能解这些bug，而且Ubuntu/Canonical似乎人力也不够充足，有一个我认为很严重的bug，他们却把它优先级定为“low”。 所以本篇我就收集并纪录一下一些bug，看看11.10会不会解决这些。 1、假的面板阴影 Ubuntu的面板（Panel）有漂亮的阴影，但是我很快发现，这个阴影实际上假的，确切地说，它不是你看到的那样是真的面板阴影，而是一块独立的，后期人工补上去的阴影。 因为我在用Shutter截菜单的图片时，三翻两次出现下面的样子：面板出现很浓的阴影，而菜单的阴影却消失了。 这个就跟拍照时，旁边出现一个幽灵一样恐怖！——明明没看到，却出现在照片中。 我跟踪过Unity的开发，它的面板阴影确实是后来赶工时通过“Dirty Hack”的方式补充上去的。还有另外一种方式可以测试： 确保所有的窗口最小化，使桌面没有其他任何东西； 按“Super＋S”，进入工作区预览模式； 再按“Super＋S”，回到标准桌面模式——这时紧盯面板，你将会发现在0.x秒的时间内，面板从没有阴影到很快被贴上了阴影！ 实在是太丑了！群众的眼睛是雪亮的啊！ 2、Pidgin退不出 既然是“Quit”，总要让Pidgin彻底退出来吧？遗憾的是，点击“Quit”后，Pidgin依然在后台运行，而Launcher的图标，却没有指示它正在运行。 我已经想到Unity的代码是怎么写的了，它只是发送了一个杀掉窗口的信号而已，而不是真正的关闭程序。 3、Alt/Win的交换后的问题 作为一个Mac电脑的用户，安装好Linux系统的一件事情便是交换Alt和Win（或Super）键，然而很悲剧的是，Unity把这个弄坏了。 也就是说，如果我置换了Alt/Win，那么我再也不能用Alt＋数字键来切换Firefox、终端的标签了，也不能用Super＋数字键来切换应用程序。关于这个我已经报告了Bug #729007 ，不知道到11.10能不能修好…… 把系统原本能正常工作的东西给弄坏了，这样老用户都会被吓跑啊，不是吗？ 4、Panel快捷键的失效 记得Ubuntu刚引入Message Menu和Session Menu时，我很欢快。因为它支持Super＋M的快捷键来直接取消息，操作非常迅速。也可以直接用Super＋S的快捷键进行关机、重启等快捷操作。遗憾的是，这个在11.04开始就再也无效了。 这不算特别严重的问题，毕竟官方也从来没正式宣传过这个快捷键。 5、Panel切换菜单的反白问题 这个问题平常还好，如果操作菜单快了，就会明显地看出来，具体请自行翻墙看这个视频：http://www.youtube.com/watch?v=nSfurIMF49w 像我这种对UI的瑕疵很敏感的用户，这个“特效”简直是难以忍受的。 6、Dash不支持输入法 见Bug #66377，Ubuntu直接把所有用ibus输入法的用户给抛弃了。 Ubuntu还是国际性的发行版吗？不是。Ubuntu的开发原则，一直是先照顾欧美一些不用输入法的用户，再考虑我们亚洲或其他地区的人民。要么怎么会为了赶工，直接就推出一个搜索框不支持输入法的Unity呢？这个原则实在是让我无语！ 7、other…… 还有一大堆设计上的问题，比如Super＋S进入Workspace Overview模式后，面板上的菜单竟然还能点。更严重的是点了有按下去的效果，却没有弹出的菜单…… 我觉得像Compiz以前一样，进入Overview模式后，就把面板隐藏掉。估计是急着发布的原因。 总结 抛开稳定性不说，Unity的设计充满了很多不确定、不成熟的东西，代码质量也比较糟糕，到处是workaround和dirty hack。 [...]]]></description>
			<content:encoded><![CDATA[<p><em>- 经作者授权转载， 原文链接: <a href="http://imtx.me/archives/1634.html">http://imtx.me/archives/1634.html</a></em><br />
<em>作者:  @<a href="http://imtx.me/">tualatrix</a>， Ubuntu 上最流行的软件之一 Ubuntu Tweak 的作者，杭州 Linux 用户组 (HZLUG) 创建人。</em></p>
<p>这篇我想收集一下Unity的各种问题，主要是Bug，还有一些Dirty Hack。如果大家也有其他发现，也可以留言告诉我。</p>
<p>有一些我早就报告bug了，无奈自己暂时没能解这些bug，而且Ubuntu/Canonical似乎人力也不够充足，有一个我认为很严重的bug，他们却把它优先级定为“low”。</p>
<p>所以本篇我就收集并纪录一下一些bug，看看11.10会不会解决这些。</p>
<h3>1、假的面板阴影</h3>
<p>Ubuntu的面板（Panel）有漂亮的阴影，但是我很快发现，这个阴影实际上假的，确切地说，它不是你看到的那样是真的面板阴影，而是一块独立的，后期人工补上去的阴影。</p>
<p><a href="http://wowubuntu.com/wp-content/uploads/2011/05/unity-panel-fake-shadow-01.png"><img class="alignnone size-full wp-image-4305" title="unity-panel-fake-shadow-01" src="http://wowubuntu.com/wp-content/uploads/2011/05/unity-panel-fake-shadow-01.png" alt="" width="480" height="240" /></a></p>
<p>因为我在用Shutter截菜单的图片时，三翻两次出现下面的样子：面板出现很浓的阴影，而菜单的阴影却消失了。</p>
<p>这个就跟拍照时，旁边出现一个幽灵一样恐怖！——明明没看到，却出现在照片中。</p>
<p>我跟踪过Unity的开发，它的面板阴影确实是后来赶工时通过“Dirty Hack”的方式补充上去的。还有另外一种方式可以测试：</p>
<ul>
<li>确保所有的窗口最小化，使桌面没有其他任何东西；</li>
<li>按“Super＋S”，进入工作区预览模式；</li>
<li>再按“Super＋S”，回到标准桌面模式——这时紧盯面板，你将会发现在0.x秒的时间内，面板从没有阴影到很快被贴上了阴影！</li>
</ul>
<p>实在是太丑了！群众的眼睛是雪亮的啊！</p>
<p><a href="http://wowubuntu.com/wp-content/uploads/2011/05/unity-panel-fake-shadow-02.png"><img class="alignnone size-full wp-image-4306" title="unity-panel-fake-shadow-02" src="http://wowubuntu.com/wp-content/uploads/2011/05/unity-panel-fake-shadow-02.png" alt="" width="480" height="240" /></a></p>
<h3>2、Pidgin退不出</h3>
<p>既然是“Quit”，总要让Pidgin彻底退出来吧？遗憾的是，点击“Quit”后，Pidgin依然在后台运行，而Launcher的图标，却没有指示它正在运行。</p>
<p>我已经想到Unity的代码是怎么写的了，它只是发送了一个杀掉窗口的信号而已，而不是真正的关闭程序。</p>
<p><a href="http://wowubuntu.com/wp-content/uploads/2011/05/unity-pidgin-quit.png"><img class="alignnone size-full wp-image-4307" title="unity-pidgin-quit" src="http://wowubuntu.com/wp-content/uploads/2011/05/unity-pidgin-quit.png" alt="" width="480" height="320" /></a></p>
<h3>3、Alt/Win的交换后的问题</h3>
<p>作为一个Mac电脑的用户，安装好Linux系统的一件事情便是交换Alt和Win（或Super）键，然而很悲剧的是，Unity把这个弄坏了。</p>
<p>也就是说，如果我置换了Alt/Win，那么我再也不能用Alt＋数字键来切换Firefox、终端的标签了，也不能用Super＋数字键来切换应用程序。关于这个我已经报告了<a href="https://bugs.launchpad.net/unity/+bug/729007" target="_blank">Bug #729007</a> ，不知道到11.10能不能修好……</p>
<p>把系统原本能正常工作的东西给弄坏了，这样老用户都会被吓跑啊，不是吗？</p>
<h3>4、Panel快捷键的失效</h3>
<p>记得Ubuntu刚引入Message Menu和Session Menu时，我很欢快。因为它支持Super＋M的快捷键来直接取消息，操作非常迅速。也可以直接用Super＋S的快捷键进行关机、重启等快捷操作。遗憾的是，这个在11.04开始就再也无效了。</p>
<p>这不算特别严重的问题，毕竟官方也从来没正式宣传过这个快捷键。</p>
<h3>5、Panel切换菜单的反白问题</h3>
<p>这个问题平常还好，如果操作菜单快了，就会明显地看出来，具体请自行翻墙看这个视频：<a href="http://www.youtube.com/watch?v=nSfurIMF49w" target="_blank">http://www.youtube.com/watch?v=nSfurIMF49w</a></p>
<p>像我这种对UI的瑕疵很敏感的用户，这个“特效”简直是难以忍受的。</p>
<h3>6、Dash不支持输入法</h3>
<p>见<a href="https://bugs.launchpad.net/ubuntu/+source/unity/+bug/663776" target="_blank">Bug #66377</a>，Ubuntu直接把所有用ibus输入法的用户给抛弃了。</p>
<p>Ubuntu还是国际性的发行版吗？不是。Ubuntu的开发原则，一直是先照顾欧美一些不用输入法的用户，再考虑我们亚洲或其他地区的人民。要么怎么会为了赶工，直接就推出一个搜索框不支持输入法的Unity呢？这个原则实在是让我无语！</p>
<h3>7、other……</h3>
<p>还有一大堆设计上的问题，比如Super＋S进入Workspace Overview模式后，面板上的菜单竟然还能点。更严重的是点了有按下去的效果，却没有弹出的菜单……</p>
<p>我觉得像Compiz以前一样，进入Overview模式后，就把面板隐藏掉。估计是急着发布的原因。</p>
<h3>总结</h3>
<p>抛开稳定性不说，Unity的设计充满了很多不确定、不成熟的东西，代码质量也比较糟糕，到处是workaround和dirty hack。</p>
<p>如果Ubuntu 11.10不好好解决这些问题，而又是急着加入新特性、急着半年一次的发布的话，那用户也是会愤怒的——更不要说开发者了。</p>
<p>有时，向暴雪或GNOME 3学习一下跳票，未尝不是件好事。</p>
# 本文采用<a href="http://creativecommons.org/licenses/by/2.5/cn/">CC协议</a>进行授权，转载本文请注明<a href="http://wowubuntu.com/unity-review3.html" title="Permalink">本文链接<a>。/  25  条留言
<hr>
- <a href="http://twitter.com/ubuntu_tips">Twitter</a> 
/ <a href="http://t.sina.com.cn/utips">微博</a> 
/ <a href="http://wowubuntu.com/ask">问答</a> 
/ <a href="http://wowubuntu.com/submit">投稿</a>
/ <a href="http://wowubuntu.com/join">加入我们</a> wow0slx6bcs721xo1udcc<br>- 高性价比 <a href="http://wowubuntu.com/vps.html">Ubuntu VPS</a> / 本站架设于<a href="http://www.photonvps.com/billing/aff.php?aff=129"> PhotonVPS </a> / 定制 <a href="http://tto.me/kfstee">Ubuntu T-Shirt</a>]]></content:encoded>
			<wfw:commentRss>http://wowubuntu.com/unity-review3.html/feed</wfw:commentRss>
		<slash:comments>25</slash:comments>
		</item>
	</channel>
</rss>

