<?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>Dutor &#187; 配置</title>
	<atom:link href="http://www.dutor.net/index.php/tag/config/feed/" rel="self" type="application/rss+xml" />
	<link>http://www.dutor.net</link>
	<description>熟读而精思，循序而渐进，厚积而薄发。</description>
	<lastBuildDate>Tue, 17 Jan 2012 14:44:19 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.3.1</generator>
		<item>
		<title>[Bash]Readline组件的菜单式补全</title>
		<link>http://www.dutor.net/index.php/2010/07/bash-readline-keybindings/</link>
		<comments>http://www.dutor.net/index.php/2010/07/bash-readline-keybindings/#comments</comments>
		<pubDate>Sun, 25 Jul 2010 05:47:10 +0000</pubDate>
		<dc:creator>dutor</dc:creator>
				<category><![CDATA[Unix/Linux]]></category>
		<category><![CDATA[readline]]></category>
		<category><![CDATA[shell]]></category>
		<category><![CDATA[配置]]></category>

		<guid isPermaLink="false">http://www.dutor.net/?p=2369</guid>
		<description><![CDATA[<h4>配置inputrc</h4>
　　我们这里需要的是一种叫做<strong>菜单式补全</strong>（menu-complete）的功能。通常，默认情况下，这个选项是没有被配置的。为了配置这项功能，并为之进行快捷键绑定，我们需要修改inputrc配置文件，这个文件中保存了Readline的一些键绑定和其它诸如编辑模式的配置选项。像许多其它配置文件一样，inputrc有系统级的配置选项/etc/inputrc和用户级的点文件~/.inputrc。建议建立自己的点文件，而不是直接编辑系统级文件，当然如果整个系统只是你一个人在用的话，你也可以在/etc/inputrc上面直接编辑。但使用点文件的另一个好处告诉你，它是属于你自己的，即使在另外一个不同的发行版上，点文件通常也是可以直接使用的。这可以减轻你在不同系统上的不适。
　　好了，打开或者建立你的.inputrc，写下，下面两行：
<pre lang="bash" line="1">
"\C-j": menu-complete
"\C-k": menu-complete-backward
</pre>]]></description>
			<content:encoded><![CDATA[<p>　　以前介绍过一些<a href="http://www.dutor.net/index.php/2010/04/shell-shortcuts/" target="_blank">使用Bash时候的一些快捷键</a>，使用这些Bash可以大大提高你输入和编辑命令行的速度，提升你的工作效率，当然也可能会把你衬托地更牛B一点。不管怎样，如果你经常使用命令行，熟练使用一些快捷键总是好的。</p>
<h4>普通的自动补全</h4>
<p>　　Tab键就是这样一个快捷键，利用它你可以不必输入命令/参数/文件/目录的的完整名称，它可以进行自动不全。比如：</p>

<div class="wp_codebox"><table><tr id="p23691"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
</pre></td><td class="code" id="p2369code1"><pre class="bash" style="font-family:monospace;">dutor<span style="color: #000000; font-weight: bold;">@</span>dutor-desktop:~$ <span style="color: #666666; font-style: italic;">#alias l=&quot;ls -CFh&quot;</span>
dutor<span style="color: #000000; font-weight: bold;">@</span>dutor-desktop:~$ l
Desktop<span style="color: #000000; font-weight: bold;">/</span>    Downloads<span style="color: #000000; font-weight: bold;">/</span>  Pictures<span style="color: #000000; font-weight: bold;">/</span>   Videos<span style="color: #000000; font-weight: bold;">/</span> 
Documents<span style="color: #000000; font-weight: bold;">/</span>  Music<span style="color: #000000; font-weight: bold;">/</span>      Templates<span style="color: #000000; font-weight: bold;">/</span>  Wdir<span style="color: #000000; font-weight: bold;">/</span>
dutor<span style="color: #000000; font-weight: bold;">@</span>dutor-desktop:~$ <span style="color: #666666; font-style: italic;">#cd des&lt;Tab&gt; </span>
dutor<span style="color: #000000; font-weight: bold;">@</span>dutor-desktop:~$ <span style="color: #7a0874; font-weight: bold;">cd</span> Desktop<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>dutor<span style="color: #000000; font-weight: bold;">/</span>Desktop
dutor<span style="color: #000000; font-weight: bold;">@</span>dutor-desktop:~ <span style="color: #666666; font-style: italic;">#cd d&lt;Tab&gt;&lt;Tab&gt;</span>
Desktop<span style="color: #000000; font-weight: bold;">/</span>   Documents<span style="color: #000000; font-weight: bold;">/</span> Downloads<span style="color: #000000; font-weight: bold;">/</span></pre></td></tr></table></div>

<p>　　当可选项唯一时，按下TAB键就会立即被不全。而如果有多个候选项时，按下TAB两次，所有候选项都会被列出。如上例，D开头的有三个目录，Desktop, Documents和Downloads，若想进入Destop目录，只需键入De<Tab>即可。若想进入另外两个目录中的某一个，至少需要输入该目录开头的三个字符。<br />
　　经常使用Vim的朋友（亲们？）可能会发现，Vim的命令模式（Last Line Mode）中使用帮助文档或者打开另外一个文件时，也有Tab自动不全的功能。不仅如此，当有多个候选项存在时，按下Tab或者Ctrl+n会逐次遍历这些候选项，直到找到你想要的选项。那么，Bash里面可以实现类似的功能吗？<br />
　　当然，因为默认情况下，Vim的命令行和Bash的命令行使用的是“同一个”行编辑组件：Readline。细心的朋友可能发现，在Vim的命令行中，Ctrl+a、Ctrl+e等命令也是可以使用的。</p>
<h4>配置inputrc</h4>
<p>　　我们这里需要的是一种叫做<strong>菜单式补全</strong>（menu-complete）的功能。通常，默认情况下，这个选项是没有被配置的。为了配置这项功能，并为之进行快捷键绑定，我们需要修改inputrc配置文件，这个文件中保存了Readline的一些键绑定和其它诸如编辑模式的配置选项。像许多其它配置文件一样，inputrc有系统级的配置选项/etc/inputrc和用户级的点文件~/.inputrc。建议建立自己的点文件，而不是直接编辑系统级文件，当然如果整个系统只是你一个人在用的话，你也可以在/etc/inputrc上面直接编辑。但使用点文件的另一个好处告诉你，它是属于你自己的，即使在另外一个不同的发行版上，点文件通常也是可以直接使用的。这可以减轻你在不同系统上的不适。<br />
　　好了，打开或者建立你的.inputrc，写下，下面两行：</p>

<div class="wp_codebox"><table><tr id="p23692"><td class="line_numbers"><pre>1
2
</pre></td><td class="code" id="p2369code2"><pre class="bash" style="font-family:monospace;"><span style="color: #ff0000;">&quot;\C-j&quot;</span>: menu-complete
<span style="color: #ff0000;">&quot;\C-k&quot;</span>: menu-complete-backward</pre></td></tr></table></div>

<p>　　保存，然后重启Bash或者执行下面命令，使inputrc的配置立即生效：</p>

<div class="wp_codebox"><table><tr id="p23693"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p2369code3"><pre class="bash" style="font-family:monospace;"><span style="color: #7a0874; font-weight: bold;">bind</span> <span style="color: #660033;">-f</span> ~<span style="color: #000000; font-weight: bold;">/</span>.inputrc</pre></td></tr></table></div>

<p>　　此时，通过Ctrl+j就可以把“下一个”候选项加入命令行，或者通过Ctrl+k把“上一个”候选项加入命令行。加入这项功能的另外一个好处就是，如果你要处理中文的文件或目录时，不比切换输入法（我的rxvt甚至无法使用中文输入法），选择即可。</p>
<h4>了解更多Readline</h4>
<p>　　在inputrc中还可以定义很多其它的特性，若想详细了解这些特性即配置方法，请参考这份关于<a href="http://tiswww.case.edu/php/chet/readline/rluserman.html" target="_blank">GNU Readline Library的说明文档</a>。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dutor.net/index.php/2010/07/bash-readline-keybindings/feed/</wfw:commentRss>
		<slash:comments>7</slash:comments>
		</item>
		<item>
		<title>Terminal Emulator RXVT</title>
		<link>http://www.dutor.net/index.php/2010/02/rxvt/</link>
		<comments>http://www.dutor.net/index.php/2010/02/rxvt/#comments</comments>
		<pubDate>Thu, 18 Feb 2010 10:17:42 +0000</pubDate>
		<dc:creator>dutor</dc:creator>
				<category><![CDATA[ToolKits]]></category>
		<category><![CDATA[rxvt]]></category>
		<category><![CDATA[配置]]></category>

		<guid isPermaLink="false">http://www.dutor.net/?p=1981</guid>
		<description><![CDATA[　　这是一个类似gnome-terminal的“终端模拟器”，相比gnome-terminal，具有更快的启动速度，更少的资源占用，更强的可定制性。你可以从其官方网站下载源码编译安装，亦可以从你的发行版的源中直接安装。Debian中，可以执行以下命令
<pre lang="bash" line="1">
sudo apt-get install rxvt rxvt-unicode #rxvt-unicode是为了支持中文
</pre>
　　这样，RXVT就安装好了，默认的界面可能让人很不舒服，就需要一些简单的定制。在用户目录下建立.Xresources文件，然后写入下列配置行：]]></description>
			<content:encoded><![CDATA[<p>　　这是一个类似gnome-terminal的“终端模拟器”，相比gnome-terminal，具有更快的启动速度，更少的资源占用，更强的可定制性。你可以从其官方网站下载源码编译安装，亦可以从你的发行版的源中直接安装。Debian中，可以执行以下命令</p>

<div class="wp_codebox"><table><tr id="p19814"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p1981code4"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> rxvt rxvt-unicode <span style="color: #666666; font-style: italic;">#rxvt-unicode是为了支持中文</span></pre></td></tr></table></div>

<p>　　这样，RXVT就安装好了，默认的界面可能让人很不舒服，就需要一些简单的定制。在用户目录下建立.Xresources文件，然后写入下列配置行：</p>
<pre>
!!!!!!!!!!!!!!!!!!!!!!!!!rxvt configuration!!!!!!!!!!!!!!!!!!!!!!
!! Author:      ivan@Dutor.net
!! Email:       xdutor@gmail.com
!! Warning:     $ xrdb .Xresources, to come into force
!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!
Rxvt.background:#1B2C18
Rxvt.foreground:gray60
Rxvt.geometry: 90x25+180+200
Rxvt.colorBD:yellow
Rxvt.colorUL:green
Rxvt.cursorColor:red3
Rxvt.color0:black
Rxvt.color1:red3
Rxvt.color2:springgreen
Rxvt.color3:wheat3
Rxvt.color4:navy
Rxvt.color5:magenta4
Rxvt.color6:steelblue1
Rxvt.color7:gray85
Rxvt.color8:gray10
Rxvt.color9:orangered2
Rxvt.color10:chartreuse3
Rxvt.color11:lightgoldenrod2
Rxvt.color12:skyblue1
Rxvt.color13:pink1
Rxvt.color14:lightblue1
Rxvt.scrollBar:False
Rxvt.saveLines:3000
!!Rxvt.font:-b&#038;h-lucidatypewriter-medium-r-normal-*-14-*-*-*-*-*-iso8859-*
!!Rxvt.mfont:-*-simsun-medium-r-normal-16-14-*-*-*-c-*-gb*-*
!!Rxvt.font:xft:Bitstream Vera Sans Mono-12,xft:WenQuanYi Bitmap Song-12
!!Rxvt.boldFont:xft:Bitstream Vera Sans Mono-12:Bold,xft:WenQuanYi Bitmap Song-12:Bold
Rxvt.font:xft:consolas-12,xft:WenQuanYi Bitmap Song-12
Rxvt.boldFont:xft:consolas-12:Bold,xft:WenQuanYi Bitmap Song-12:Bold
Rxvt.menu:/etc/X11/rxvt.menu
Rxvt.preeditType:Root
</pre>
<p>　　为了使配置文件生效，需要使用xrdb(X resources database)：</p>

<div class="wp_codebox"><table><tr id="p19815"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p1981code5"><pre class="bash" style="font-family:monospace;">xrdb .Xresources</pre></td></tr></table></div>

<p>　　为了更好的定制rxvt，请参考urxvt的Manpage。</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dutor.net/index.php/2010/02/rxvt/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>ubuntu下使用网络电视sopcast</title>
		<link>http://www.dutor.net/index.php/2009/10/ubuntu-sopcast/</link>
		<comments>http://www.dutor.net/index.php/2009/10/ubuntu-sopcast/#comments</comments>
		<pubDate>Sun, 18 Oct 2009 07:43:38 +0000</pubDate>
		<dc:creator>dutor</dc:creator>
				<category><![CDATA[Unix/Linux]]></category>
		<category><![CDATA[sopcast]]></category>
		<category><![CDATA[程序应用]]></category>
		<category><![CDATA[配置]]></category>

		<guid isPermaLink="false">http://www.dutor.net/?p=1416</guid>
		<description><![CDATA[　　大二看世乒赛时曾经用过sopcast这个软件，不过是Windows版本的，常看的频道都挺流畅的。昨天在Ubuntu社区偶然看到的一个帖子提到了这个软件，找了一下，搜出来两个包，安装测试成功，记录一下。
　　首先，下子这两个相互依赖deb包，<a href="http://dutor.googlecode.com/files/sp-auth_3.0.1_i386.deb">sp-auth_3.0.1_i386.deb</a>、<a href="http://dutor.googlecode.com/files/sopcast-player_0.2.1-1_i386.deb">sopcast-player_0.2.1_i386.deb</a>。]]></description>
			<content:encoded><![CDATA[<p>　　大二看世乒赛时曾经用过sopcast这个软件，不过是Windows版本的，常看的频道都挺流畅的。昨天在Ubuntu社区偶然看到的一个帖子提到了这个软件，找了一下，搜出来两个包，安装测试成功，记录一下。<br />
　　首先，下子这两个相互依赖deb包，<a href="http://dutor.googlecode.com/files/sp-auth_3.0.1_i386.deb">sp-auth_3.0.1_i386.deb</a>、<a href="http://dutor.googlecode.com/files/sopcast-player_0.2.1-1_i386.deb">sopcast-player_0.2.1_i386.deb</a>。<br />
　　依次安装sp-auth_3.0.1_i386.deb，sopcast-player_0.2.1_i386.deb，后者依赖前者。<br />
　　安装python2.5，# sudo apt-get install python2.5<br />
　　修改文件<em>/usr/bin/sopcast-player</em>中</p>
<pre>/usr/bin/python /usr/share/sopcast-player/lib/sopcast-player.pyc $@</pre>
<p>　　为</p>
<pre>/usr/bin/python2.5 /usr/share/sopcast-player/lib/sopcast-player.pyc $@</pre>
<p>　　这时候，可以从终端或者Application > Internet里面启动sopcast-player，刷新Channel Guide，会得到频道列表，若无法获得频道列表，可以将Edit > Preference > Channel Guide > Channel Guide URL的com改作cn。好了现在我们可以收看电视节目了。<br />
　　巧的是，从sopcast看到的第一个画面竟然是今年的世界杯！<br />
<div class="wp-caption aligncenter" style="width: 602px"><img alt="陈玘 vs. 吴尚垠" src="http://www.dutor.net/files/images/sopcast.jpg" title="陈玘 vs. 吴尚垠" width="592" height="436" /><p class="wp-caption-text">陈玘 vs. 吴尚垠</p></div></p>
]]></content:encoded>
			<wfw:commentRss>http://www.dutor.net/index.php/2009/10/ubuntu-sopcast/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Ubuntu+Texlive+CJK</title>
		<link>http://www.dutor.net/index.php/2009/06/ubuntu-texlive-cjk/</link>
		<comments>http://www.dutor.net/index.php/2009/06/ubuntu-texlive-cjk/#comments</comments>
		<pubDate>Thu, 04 Jun 2009 23:34:44 +0000</pubDate>
		<dc:creator>dutor</dc:creator>
				<category><![CDATA[Unix/Linux]]></category>
		<category><![CDATA[latex]]></category>
		<category><![CDATA[程序应用]]></category>
		<category><![CDATA[配置]]></category>

		<guid isPermaLink="false">http://www.dutor.net/?p=697</guid>
		<description><![CDATA[<strong>四、参考资料</strong>
<a href="http://reciteword.cosoft.org.cn/yaoguang/showarticle.php?category=myarticle&#038;&docpage=0&#038;&newsid=25">Fedora上配置Tex UTF-8 中文系统</a>
<a href="http://mailboxpublic.googlepages.com/texlive2007cjkchinesehowto">TeXLive 2007 CJK Chinese Howto</a>
<a href="http://blog.linuxsky.org/58/viewspace-3824">ubuntu 7.10下搞定Latex + CJK</a>]]></description>
			<content:encoded><![CDATA[<p><strong>一、安装TexLive+Latex+CJK：</strong></p>
<p>打开终端，执行下述命令安装TexLive和常用的一些Latex宏包（可以根据自己的需要增改）：</p>

<div class="wp_codebox"><table><tr id="p6976"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p697code6"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> texlive texlive-math-extra texlive-latex-base texlive-latex-extra texlive-latex-recommended texlive-pictures texlive-science texlive-bibtex-extra texlive-common latex-beamer</pre></td></tr></table></div>

<p>如果硬盘充裕的话，直接完整安装也可以：</p>

<div class="wp_codebox"><table><tr id="p6977"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p697code7"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> texlive-full latex-beamer</pre></td></tr></table></div>

<p>安装完后，就可以安装CJK的相关软件包了，如果只需要获得中文支持，那么执行：</p>

<div class="wp_codebox"><table><tr id="p6978"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p697code8"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> latex-cjk-chinese ttf-arphic-<span style="color: #000000; font-weight: bold;">*</span> hbf-<span style="color: #000000; font-weight: bold;">*</span></pre></td></tr></table></div>

<p>否则，建议安装latex-cjk-all以获取完整支持。</p>
<p><strong>二、生成中文字体包</strong></p>
<p>安装好TexLive+CJK以后，还需要安装一个软件──fontforge用于生成字体：</p>

<div class="wp_codebox"><table><tr id="p6979"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p697code9"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> fontforge</pre></td></tr></table></div>

<p>好了，前面所做的，都是标准的Debian式安装，假如哪天你不需要了，直接remove安装即可。<br />
生成字体前，请自己准备你需要生成的字体文件：simsun.ttc，simhei.ttf等，这里以simsun.ttc（宋体）为例。<br />
准备好后下载下面这个包，解压到一个地方，如自己的主目录~/font：<br />
<a href="http://code-of-tualatrix.googlecode.com/files/font.tar.bz2">font.tar.bz2</a><br />
然后把simsun.ttc也复制到~/font里去，执行下面的命令生成字体地图：</p>

<div class="wp_codebox"><table><tr id="p69710"><td class="line_numbers"><pre>1
2
</pre></td><td class="code" id="p697code10"><pre class="bash" style="font-family:monospace;">$ <span style="color: #7a0874; font-weight: bold;">cd</span> ~<span style="color: #000000; font-weight: bold;">/</span>font
$ fontforge <span style="color: #660033;">-script</span> subfonts.pe simsun.ttc song Unicode.sfd</pre></td></tr></table></div>

<p>字体生成好了，再建立一个描述文件吧。<br />
在~/font下，建立一个makemap文件，内容如下：</p>
<pre>
    for i in *.tfm
    do
    cat >> song.map << EOF
    ${i%.tfm} ${i%.tfm} < ${i%.tfm}.pfb
    EOF
    done
</pre>
<p>然后在终端下执行：chmod +x makemap让文件加上执行权限，最后执行：</p>

<div class="wp_codebox"><table><tr id="p69711"><td class="line_numbers"><pre>1
</pre></td><td class="code" id="p697code11"><pre class="bash" style="font-family:monospace;">$ .<span style="color: #000000; font-weight: bold;">/</span>makemap</pre></td></tr></table></div>

<p>再建立一个一个c70song.fd文件：</p>
<pre>
    % This is c70song.fd for CJK package.
    % created by Edward G.J. Lee
    % modify by Yue Wang
    \ProvidesFile{c70song.fd}
    \DeclareFontFamily{C70}{song}{\hyphenchar \font\m@ne}
    \DeclareFontShape{C70}{song}{m}{n}{<-> CJK * song}{}
    \DeclareFontShape{C70}{song}{bx}{n}{<-> CJKb * song}{\CJKbold}
    \endinput
</pre>
<p>好的，相关文件都已生成，开始复制字体使其生效。</p>
<p>执行下面的命令，在你的主目录下生成隐藏的个人Tex配置，如果你哪天不需要了，也可以删除：</p>

<div class="wp_codebox"><table><tr id="p69712"><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code" id="p697code12"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #660033;">-p</span> ~<span style="color: #000000; font-weight: bold;">/</span>.texmf-var<span style="color: #000000; font-weight: bold;">/</span>fonts<span style="color: #000000; font-weight: bold;">/</span>map<span style="color: #000000; font-weight: bold;">/</span>dvips<span style="color: #000000; font-weight: bold;">/</span>CJK
<span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #660033;">-p</span> ~<span style="color: #000000; font-weight: bold;">/</span>.texmf-var<span style="color: #000000; font-weight: bold;">/</span>fonts<span style="color: #000000; font-weight: bold;">/</span>tfm<span style="color: #000000; font-weight: bold;">/</span>CJK<span style="color: #000000; font-weight: bold;">/</span>song
<span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #660033;">-p</span> ~<span style="color: #000000; font-weight: bold;">/</span>.texmf-var<span style="color: #000000; font-weight: bold;">/</span>fonts<span style="color: #000000; font-weight: bold;">/</span>type1<span style="color: #000000; font-weight: bold;">/</span>CJK<span style="color: #000000; font-weight: bold;">/</span>song
<span style="color: #c20cb9; font-weight: bold;">mkdir</span> <span style="color: #660033;">-p</span> ~<span style="color: #000000; font-weight: bold;">/</span>.texmf-var<span style="color: #000000; font-weight: bold;">/</span>tex<span style="color: #000000; font-weight: bold;">/</span>latex<span style="color: #000000; font-weight: bold;">/</span>CJK<span style="color: #000000; font-weight: bold;">/</span>UTF8</pre></td></tr></table></div>

<p>建立完这层层叠叠的目录以后，就把刚刚生成的字体复制进去吧。</p>

<div class="wp_codebox"><table><tr id="p69713"><td class="line_numbers"><pre>1
2
3
4
</pre></td><td class="code" id="p697code13"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">cp</span> ~<span style="color: #000000; font-weight: bold;">/</span>font<span style="color: #000000; font-weight: bold;">/</span>song.map ~<span style="color: #000000; font-weight: bold;">/</span>.texmf-var<span style="color: #000000; font-weight: bold;">/</span>fonts<span style="color: #000000; font-weight: bold;">/</span>map<span style="color: #000000; font-weight: bold;">/</span>dvips<span style="color: #000000; font-weight: bold;">/</span>CJK
$ <span style="color: #c20cb9; font-weight: bold;">cp</span> ~<span style="color: #000000; font-weight: bold;">/</span>font<span style="color: #000000; font-weight: bold;">/*</span>.tfm ~<span style="color: #000000; font-weight: bold;">/</span>.texmf-var<span style="color: #000000; font-weight: bold;">/</span>fonts<span style="color: #000000; font-weight: bold;">/</span>tfm<span style="color: #000000; font-weight: bold;">/</span>CJK<span style="color: #000000; font-weight: bold;">/</span>song
$ <span style="color: #c20cb9; font-weight: bold;">cp</span> ~<span style="color: #000000; font-weight: bold;">/</span>font<span style="color: #000000; font-weight: bold;">/*</span>.pfb ~<span style="color: #000000; font-weight: bold;">/</span>.texmf-var<span style="color: #000000; font-weight: bold;">/</span>fonts<span style="color: #000000; font-weight: bold;">/</span>type1<span style="color: #000000; font-weight: bold;">/</span>CJK<span style="color: #000000; font-weight: bold;">/</span>song
$ <span style="color: #c20cb9; font-weight: bold;">cp</span> ~<span style="color: #000000; font-weight: bold;">/</span>font<span style="color: #000000; font-weight: bold;">/</span>c70song.fd ~<span style="color: #000000; font-weight: bold;">/</span>.texmf-var<span style="color: #000000; font-weight: bold;">/</span>tex<span style="color: #000000; font-weight: bold;">/</span>latex<span style="color: #000000; font-weight: bold;">/</span>CJK<span style="color: #000000; font-weight: bold;">/</span>UTF8</pre></td></tr></table></div>

<p>复制完后就执行命令刷新缓存，让它生效：</p>

<div class="wp_codebox"><table><tr id="p69714"><td class="line_numbers"><pre>1
2
</pre></td><td class="code" id="p697code14"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> texhash
$ <span style="color: #c20cb9; font-weight: bold;">updmap</span> <span style="color: #660033;">--enable</span> Map song.map</pre></td></tr></table></div>

<p><strong>三、测试LaTex</strong><br />
假如一切顺序的话， 就测试一下我们安装的song体是否能用吧。</p>
<p>在任意位置编辑这个文件，然后保存为test.tex，支持UTF-8格式：</p>
<pre>
    \documentclass{article}
    \usepackage{CJKutf8}
    \begin{document}
    \begin{CJK}{UTF8}{song}
    你好！这里是Ubuntu下的TexLive+CJK环境！
    \end{CJK}
    \end{document}
</pre>
<p>执行分别生成pdf文档和用evince来查看文档：</p>

<div class="wp_codebox"><table><tr id="p69715"><td class="line_numbers"><pre>1
2
</pre></td><td class="code" id="p697code15"><pre class="bash" style="font-family:monospace;">$ pdflatex test.tex
$ evince test.pdf</pre></td></tr></table></div>

<p>看看你的过程顺不顺利，生成的PDF档也是下面这样吗？<br />
<div class="wp-caption alignnone" style="width: 435px"><img alt="texlive.png" src="http://linuxdesktop.cn/wp-content/uploads/2008/02/texlive.png" title="texlive" width="425" height="56" /><p class="wp-caption-text">texlive.png</p></div><br />
<div class="wp-caption alignnone" style="width: 435px"><img alt="texlive-2.png" src="http://linuxdesktop.cn/wp-content/uploads/2008/02/texlive-2.png" title="texlive-2.png" width="425" height="56" /><p class="wp-caption-text">texlive-2.png</p></div><br />
用同样的方法搞定hei和kai等常用中文标准字体，开始享受你的Tex吧！<br />
<strong>四、参考资料</strong><br />
<a href="http://reciteword.cosoft.org.cn/yaoguang/showarticle.php?category=myarticle&#038;&#038;docpage=0&#038;&#038;newsid=25">Fedora上配置Tex UTF-8 中文系统</a><br />
<a href="http://mailboxpublic.googlepages.com/texlive2007cjkchinesehowto">TeXLive 2007 CJK Chinese Howto</a><br />
<a href="http://blog.linuxsky.org/58/viewspace-3824">ubuntu 7.10下搞定Latex + CJK</a></p>
]]></content:encoded>
			<wfw:commentRss>http://www.dutor.net/index.php/2009/06/ubuntu-texlive-cjk/feed/</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>ubuntu8.10网络配置(修改MAC)</title>
		<link>http://www.dutor.net/index.php/2009/05/ubuntu810-network-config/</link>
		<comments>http://www.dutor.net/index.php/2009/05/ubuntu810-network-config/#comments</comments>
		<pubDate>Sun, 24 May 2009 22:45:41 +0000</pubDate>
		<dc:creator>dutor</dc:creator>
				<category><![CDATA[Unix/Linux]]></category>
		<category><![CDATA[OS基础]]></category>
		<category><![CDATA[配置]]></category>

		<guid isPermaLink="false">http://www.dutor.net/?p=550</guid>
		<description><![CDATA[
<strong>方法一</strong>
先卸载当前的网络管理器netmanager:
<pre lang="bash">sudo apt-get remove network-manager --purge</pre>
重启网络：
<pre lang="bash">sudo /etc/init.d/networking restart</pre>
编辑配制文件：
<pre lang="bash" >sudo gedit /etc/network/interfaces</pre>
加入以下配置信息(修改为你自己的)：
<pre lang="bash" line="1">
auto lo
auto eth0
iface lo inet loopback
iface eth0 inet static
address 192.168.0.1        #设置IP
netmask 255.255.255.0   #子网掩码
gateway 192.168.0.254    #网关
broadcast 192.168.0.255   #广播
mtu 1300
#wireless-key 3311220088
#wireless-essid ubuntu
</pre>]]></description>
			<content:encoded><![CDATA[<p><strong>前言</strong><br />
ubuntu8.10的netmanager有BUG, 配置好静态IP，重启后上次的配置全部都丢失了，这里提供两种解决方法。</p>
<p><strong>方法一</strong><br />
先卸载当前的网络管理器netmanager:</p>

<div class="wp_codebox"><table><tr id="p55016"><td class="code" id="p550code16"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> remove network-manager <span style="color: #660033;">--purge</span></pre></td></tr></table></div>

<p>重启网络：</p>

<div class="wp_codebox"><table><tr id="p55017"><td class="code" id="p550code17"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>init.d<span style="color: #000000; font-weight: bold;">/</span>networking restart</pre></td></tr></table></div>

<p>编辑配制文件：</p>

<div class="wp_codebox"><table><tr id="p55018"><td class="code" id="p550code18"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> gedit <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>network<span style="color: #000000; font-weight: bold;">/</span>interfaces</pre></td></tr></table></div>

<p>加入以下配置信息(修改为你自己的)：</p>

<div class="wp_codebox"><table><tr id="p55019"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
</pre></td><td class="code" id="p550code19"><pre class="bash" style="font-family:monospace;">auto lo
auto eth0
iface lo inet loopback
iface eth0 inet static
address 192.168.0.1        <span style="color: #666666; font-style: italic;">#设置IP</span>
netmask 255.255.255.0   <span style="color: #666666; font-style: italic;">#子网掩码</span>
gateway 192.168.0.254    <span style="color: #666666; font-style: italic;">#网关</span>
broadcast 192.168.0.255   <span style="color: #666666; font-style: italic;">#广播</span>
mtu <span style="color: #000000;">1300</span>
<span style="color: #666666; font-style: italic;">#wireless-key 3311220088</span>
<span style="color: #666666; font-style: italic;">#wireless-essid ubuntu</span></pre></td></tr></table></div>

<p>配置DNS:</p>

<div class="wp_codebox"><table><tr id="p55020"><td class="code" id="p550code20"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> gedit <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>resolv.conf</pre></td></tr></table></div>

<p>添加：</p>

<div class="wp_codebox"><table><tr id="p55021"><td class="code" id="p550code21"><pre class="bash" style="font-family:monospace;">nameserver 208.67.220.220</pre></td></tr></table></div>

<p><strong>方法二</strong><br />
打开netmanager(右键，编辑)，删除默认的Auto eth0，再另外添加一个配置文件：添上你的MAC，IP，Gateway，Mask，DNS等，记住要够选System Setting（系统设置）。保存(会提示你输入密码)，退出。</p>
<p><strong>修改物理地址</strong></p>

<div class="wp_codebox"><table><tr id="p55022"><td class="code" id="p550code22"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> gedit <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>rc.local</pre></td></tr></table></div>


<div class="wp_codebox"><table><tr id="p55023"><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code" id="p550code23"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">ifdown</span> eth0
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">ifconfig</span> eth0 hw ether xx:xx:xx:xx:xx:xx
<span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">ifup</span> eth0</pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.dutor.net/index.php/2009/05/ubuntu810-network-config/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ubuntu9.04源</title>
		<link>http://www.dutor.net/index.php/2009/04/ubuntu904-source-list/</link>
		<comments>http://www.dutor.net/index.php/2009/04/ubuntu904-source-list/#comments</comments>
		<pubDate>Thu, 30 Apr 2009 09:10:38 +0000</pubDate>
		<dc:creator>dutor</dc:creator>
				<category><![CDATA[Unix/Linux]]></category>
		<category><![CDATA[OS基础]]></category>
		<category><![CDATA[配置]]></category>

		<guid isPermaLink="false">http://www.dutor.net/?p=323</guid>
		<description><![CDATA[<pre lang="bash" line="1">
#中国科技大学
deb http://debian.ustc.edu.cn/ubuntu/ jaunty main restricted universe multiverse
deb http://debian.ustc.edu.cn/ubuntu/ jaunty-backports restricted universe multiverse
deb http://debian.ustc.edu.cn/ubuntu/ jaunty-proposed main restricted universe multiverse
deb http://debian.ustc.edu.cn/ubuntu/ jaunty-security main restricted universe multiverse
deb http://debian.ustc.edu.cn/ubuntu/ jaunty-updates main restricted universe multiverse
deb-src http://debian.ustc.edu.cn/ubuntu/ jaunty main restricted universe multiverse
deb-src http://debian.ustc.edu.cn/ubuntu/ jaunty-backports main restricted universe multiverse
deb-src http://debian.ustc.edu.cn/ubuntu/ jaunty-proposed main restricted universe multiverse
deb-src http://debian.ustc.edu.cn/ubuntu/ jaunty-security main restricted universe multiverse
deb-src http://debian.ustc.edu.cn/ubuntu/ jaunty-updates main restricted universe multiverse
</pre>]]></description>
			<content:encoded><![CDATA[
<div class="wp_codebox"><table><tr id="p32324"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
</pre></td><td class="code" id="p323code24"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;">#中国科技大学</span>
deb http:<span style="color: #000000; font-weight: bold;">//</span>debian.ustc.edu.cn<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> jaunty main restricted universe multiverse
deb http:<span style="color: #000000; font-weight: bold;">//</span>debian.ustc.edu.cn<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> jaunty-backports restricted universe multiverse
deb http:<span style="color: #000000; font-weight: bold;">//</span>debian.ustc.edu.cn<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> jaunty-proposed main restricted universe multiverse
deb http:<span style="color: #000000; font-weight: bold;">//</span>debian.ustc.edu.cn<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> jaunty-security main restricted universe multiverse
deb http:<span style="color: #000000; font-weight: bold;">//</span>debian.ustc.edu.cn<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> jaunty-updates main restricted universe multiverse
deb-src http:<span style="color: #000000; font-weight: bold;">//</span>debian.ustc.edu.cn<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> jaunty main restricted universe multiverse
deb-src http:<span style="color: #000000; font-weight: bold;">//</span>debian.ustc.edu.cn<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> jaunty-backports main restricted universe multiverse
deb-src http:<span style="color: #000000; font-weight: bold;">//</span>debian.ustc.edu.cn<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> jaunty-proposed main restricted universe multiverse
deb-src http:<span style="color: #000000; font-weight: bold;">//</span>debian.ustc.edu.cn<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> jaunty-security main restricted universe multiverse
deb-src http:<span style="color: #000000; font-weight: bold;">//</span>debian.ustc.edu.cn<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> jaunty-updates main restricted universe multiverse
<span style="color: #666666; font-style: italic;">#北京交大 速度 2M/s</span>
deb http:<span style="color: #000000; font-weight: bold;">//</span>mirror.bjtu.edu.cn<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> jaunty main restricted universe multiverse
deb http:<span style="color: #000000; font-weight: bold;">//</span>mirror.bjtu.edu.cn<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> jaunty-backports restricted universe multiverse
deb http:<span style="color: #000000; font-weight: bold;">//</span>mirror.bjtu.edu.cn<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> jaunty-proposed main restricted universe multiverse
deb http:<span style="color: #000000; font-weight: bold;">//</span>mirror.bjtu.edu.cn<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> jaunty-security main restricted universe multiverse
deb http:<span style="color: #000000; font-weight: bold;">//</span>mirror.bjtu.edu.cn<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> jaunty-updates main restricted universe multiverse
deb-src http:<span style="color: #000000; font-weight: bold;">//</span>mirror.bjtu.edu.cn<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> jaunty main restricted universe multiverse
deb-src http:<span style="color: #000000; font-weight: bold;">//</span>mirror.bjtu.edu.cn<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> jaunty-backports main restricted universe multiverse
deb-src http:<span style="color: #000000; font-weight: bold;">//</span>mirror.bjtu.edu.cn<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> jaunty-proposed main restricted universe multiverse
deb-src http:<span style="color: #000000; font-weight: bold;">//</span>mirror.bjtu.edu.cn<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> jaunty-security main restricted universe multiverse
deb-src http:<span style="color: #000000; font-weight: bold;">//</span>mirror.bjtu.edu.cn<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> jaunty-updates main restricted universe multiverse
<span style="color: #666666; font-style: italic;">#上海交通大学，最热门的源之一</span>
deb http:<span style="color: #000000; font-weight: bold;">//</span>ftp.sjtu.edu.cn<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> jaunty main multiverse restricted universe
deb http:<span style="color: #000000; font-weight: bold;">//</span>ftp.sjtu.edu.cn<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> jaunty-backports main multiverse restricted universe
deb http:<span style="color: #000000; font-weight: bold;">//</span>ftp.sjtu.edu.cn<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> jaunty-proposed main multiverse restricted universe
deb http:<span style="color: #000000; font-weight: bold;">//</span>ftp.sjtu.edu.cn<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> jaunty-security main multiverse restricted universe
deb http:<span style="color: #000000; font-weight: bold;">//</span>ftp.sjtu.edu.cn<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> jaunty-updates main multiverse restricted universe
deb http:<span style="color: #000000; font-weight: bold;">//</span>ftp.sjtu.edu.cn<span style="color: #000000; font-weight: bold;">/</span>ubuntu-cn<span style="color: #000000; font-weight: bold;">/</span> jaunty main multiverse restricted universe
deb-src http:<span style="color: #000000; font-weight: bold;">//</span>ftp.sjtu.edu.cn<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> jaunty main multiverse restricted universe
deb-src http:<span style="color: #000000; font-weight: bold;">//</span>ftp.sjtu.edu.cn<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> jaunty-backports main multiverse restricted universe
deb-src http:<span style="color: #000000; font-weight: bold;">//</span>ftp.sjtu.edu.cn<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> jaunty-proposed main multiverse restricted universe
deb-src http:<span style="color: #000000; font-weight: bold;">//</span>ftp.sjtu.edu.cn<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> jaunty-security main multiverse restricted universe
deb-src http:<span style="color: #000000; font-weight: bold;">//</span>ftp.sjtu.edu.cn<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> jaunty-updates main multiverse restricted universe
<span style="color: #666666; font-style: italic;">#清华大学ubuntu源 300k/s</span>
deb <span style="color: #c20cb9; font-weight: bold;">ftp</span>:<span style="color: #000000; font-weight: bold;">//</span>ftp3.tsinghua.edu.cn<span style="color: #000000; font-weight: bold;">/</span>mirror<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> jaunty main restricted universe multiverse
deb <span style="color: #c20cb9; font-weight: bold;">ftp</span>:<span style="color: #000000; font-weight: bold;">//</span>ftp3.tsinghua.edu.cn<span style="color: #000000; font-weight: bold;">/</span>mirror<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> jaunty-backports restricted universe multiverse
deb <span style="color: #c20cb9; font-weight: bold;">ftp</span>:<span style="color: #000000; font-weight: bold;">//</span>ftp3.tsinghua.edu.cn<span style="color: #000000; font-weight: bold;">/</span>mirror<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> jaunty-proposed main restricted universe multiverse
deb <span style="color: #c20cb9; font-weight: bold;">ftp</span>:<span style="color: #000000; font-weight: bold;">//</span>ftp3.tsinghua.edu.cn<span style="color: #000000; font-weight: bold;">/</span>mirror<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> jaunty-security main restricted universe multiverse
deb <span style="color: #c20cb9; font-weight: bold;">ftp</span>:<span style="color: #000000; font-weight: bold;">//</span>ftp3.tsinghua.edu.cn<span style="color: #000000; font-weight: bold;">/</span>mirror<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> jaunty-updates main restricted universe multiverse
deb-src <span style="color: #c20cb9; font-weight: bold;">ftp</span>:<span style="color: #000000; font-weight: bold;">//</span>ftp3.tsinghua.edu.cn<span style="color: #000000; font-weight: bold;">/</span>mirror<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> jaunty main restricted universe multiverse
deb-src <span style="color: #c20cb9; font-weight: bold;">ftp</span>:<span style="color: #000000; font-weight: bold;">//</span>ftp3.tsinghua.edu.cn<span style="color: #000000; font-weight: bold;">/</span>mirror<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> jaunty-backports main restricted universe multiverse
deb-src <span style="color: #c20cb9; font-weight: bold;">ftp</span>:<span style="color: #000000; font-weight: bold;">//</span>ftp3.tsinghua.edu.cn<span style="color: #000000; font-weight: bold;">/</span>mirror<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> jaunty-proposed main restricted universe multiverse
deb-src <span style="color: #c20cb9; font-weight: bold;">ftp</span>:<span style="color: #000000; font-weight: bold;">//</span>ftp3.tsinghua.edu.cn<span style="color: #000000; font-weight: bold;">/</span>mirror<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> jaunty-security main restricted universe multiverse
deb-src <span style="color: #c20cb9; font-weight: bold;">ftp</span>:<span style="color: #000000; font-weight: bold;">//</span>ftp3.tsinghua.edu.cn<span style="color: #000000; font-weight: bold;">/</span>mirror<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> jaunty-updates main restricted universe multiverse
<span style="color: #666666; font-style: italic;">#兰州大学 260k/s</span>
deb <span style="color: #c20cb9; font-weight: bold;">ftp</span>:<span style="color: #000000; font-weight: bold;">//</span>mirror.lzu.edu.cn<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> jaunty main restricted universe multiverse
deb <span style="color: #c20cb9; font-weight: bold;">ftp</span>:<span style="color: #000000; font-weight: bold;">//</span>mirror.lzu.edu.cn<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> jaunty-backports restricted universe multiverse
deb <span style="color: #c20cb9; font-weight: bold;">ftp</span>:<span style="color: #000000; font-weight: bold;">//</span>mirror.lzu.edu.cn<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> jaunty-proposed main restricted universe multiverse
deb <span style="color: #c20cb9; font-weight: bold;">ftp</span>:<span style="color: #000000; font-weight: bold;">//</span>mirror.lzu.edu.cn<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> jaunty-security main restricted universe multiverse
deb <span style="color: #c20cb9; font-weight: bold;">ftp</span>:<span style="color: #000000; font-weight: bold;">//</span>mirror.lzu.edu.cn<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> jaunty-updates main restricted universe multiverse
deb-src <span style="color: #c20cb9; font-weight: bold;">ftp</span>:<span style="color: #000000; font-weight: bold;">//</span>mirror.lzu.edu.cn<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> jaunty main restricted universe multiverse
deb-src <span style="color: #c20cb9; font-weight: bold;">ftp</span>:<span style="color: #000000; font-weight: bold;">//</span>mirror.lzu.edu.cn<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> jaunty-backports main restricted universe multiverse
deb-src <span style="color: #c20cb9; font-weight: bold;">ftp</span>:<span style="color: #000000; font-weight: bold;">//</span>mirror.lzu.edu.cn<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> jaunty-proposed main restricted universe multiverse
deb-src <span style="color: #c20cb9; font-weight: bold;">ftp</span>:<span style="color: #000000; font-weight: bold;">//</span>mirror.lzu.edu.cn<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> jaunty-security main restricted universe multiverse
deb-src <span style="color: #c20cb9; font-weight: bold;">ftp</span>:<span style="color: #000000; font-weight: bold;">//</span>mirror.lzu.edu.cn<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> jaunty-updates main restricted universe multiverse
<span style="color: #666666; font-style: italic;">#台湾大学 中国电信adsl 150k/s</span>
deb http:<span style="color: #000000; font-weight: bold;">//</span>ubuntu.csie.ntu.edu.tw<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> jaunty main restricted universe multiverse
deb http:<span style="color: #000000; font-weight: bold;">//</span>ubuntu.csie.ntu.edu.tw<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> jaunty-backports restricted universe multiverse
deb http:<span style="color: #000000; font-weight: bold;">//</span>ubuntu.csie.ntu.edu.tw<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> jaunty-proposed main restricted universe multiverse
deb http:<span style="color: #000000; font-weight: bold;">//</span>ubuntu.csie.ntu.edu.tw<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> jaunty-security main restricted universe multiverse
deb http:<span style="color: #000000; font-weight: bold;">//</span>ubuntu.csie.ntu.edu.tw<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> jaunty-updates main restricted universe multiverse
deb-src http:<span style="color: #000000; font-weight: bold;">//</span>ubuntu.csie.ntu.edu.tw<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> jaunty main restricted universe multiverse
deb-src http:<span style="color: #000000; font-weight: bold;">//</span>ubuntu.csie.ntu.edu.tw<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> jaunty-backports main restricted universe multiverse
deb-src http:<span style="color: #000000; font-weight: bold;">//</span>ubuntu.csie.ntu.edu.tw<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> jaunty-proposed main restricted universe multiverse
deb-src http:<span style="color: #000000; font-weight: bold;">//</span>ubuntu.csie.ntu.edu.tw<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> jaunty-security main restricted universe multiverse
deb-src http:<span style="color: #000000; font-weight: bold;">//</span>ubuntu.csie.ntu.edu.tw<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> jaunty-updates main restricted universe multiverse
<span style="color: #666666; font-style: italic;">#电子科大</span>
deb http:<span style="color: #000000; font-weight: bold;">//</span>ubuntu.uestc.edu.cn<span style="color: #000000; font-weight: bold;">/</span>ubuntu jaunty main restricted universe multiverse
deb http:<span style="color: #000000; font-weight: bold;">//</span>ubuntu.uestc.edu.cn<span style="color: #000000; font-weight: bold;">/</span>ubuntu jaunty-backports main restricted universe multiverse
deb http:<span style="color: #000000; font-weight: bold;">//</span>ubuntu.uestc.edu.cn<span style="color: #000000; font-weight: bold;">/</span>ubuntu jaunty-proposed main restricted universe multiverse
deb http:<span style="color: #000000; font-weight: bold;">//</span>ubuntu.uestc.edu.cn<span style="color: #000000; font-weight: bold;">/</span>ubuntu jaunty-security main restricted universe multiverse
deb http:<span style="color: #000000; font-weight: bold;">//</span>ubuntu.uestc.edu.cn<span style="color: #000000; font-weight: bold;">/</span>ubuntu jaunty-updates main restricted universe multiverse
deb-src http:<span style="color: #000000; font-weight: bold;">//</span>ubuntu.uestc.edu.cn<span style="color: #000000; font-weight: bold;">/</span>ubuntu jaunty main restricted universe multiverse
deb-src http:<span style="color: #000000; font-weight: bold;">//</span>ubuntu.uestc.edu.cn<span style="color: #000000; font-weight: bold;">/</span>ubuntu jaunty-backports main restricted universe multiverse
deb-src http:<span style="color: #000000; font-weight: bold;">//</span>ubuntu.uestc.edu.cn<span style="color: #000000; font-weight: bold;">/</span>ubuntu jaunty-proposed main restricted universe multiverse
deb-src http:<span style="color: #000000; font-weight: bold;">//</span>ubuntu.uestc.edu.cn<span style="color: #000000; font-weight: bold;">/</span>ubuntu jaunty-security main restricted universe multiverse
deb-src http:<span style="color: #000000; font-weight: bold;">//</span>ubuntu.uestc.edu.cn<span style="color: #000000; font-weight: bold;">/</span>ubuntu jaunty-updates main restricted universe multiverse
deb http:<span style="color: #000000; font-weight: bold;">//</span>ubuntu.uestc.edu.cn<span style="color: #000000; font-weight: bold;">/</span>ubuntu-cn jaunty main restricted universe multiverse
deb http:<span style="color: #000000; font-weight: bold;">//</span>ubuntu.uestc.edu.cn<span style="color: #000000; font-weight: bold;">/</span>ubuntustudio jaunty main
<span style="color: #666666; font-style: italic;">#清华，,但不是清华大学的官方域名</span>
deb http:<span style="color: #000000; font-weight: bold;">//</span>mirror9.net9.org<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> jaunty main multiverse restricted universe
deb http:<span style="color: #000000; font-weight: bold;">//</span>mirror9.net9.org<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> jaunty-backports main multiverse restricted universe
deb http:<span style="color: #000000; font-weight: bold;">//</span>mirror9.net9.org<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> jaunty-proposed main multiverse restricted universe
deb http:<span style="color: #000000; font-weight: bold;">//</span>mirror9.net9.org<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> jaunty-security main multiverse restricted universe
deb http:<span style="color: #000000; font-weight: bold;">//</span>mirror9.net9.org<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> jaunty-updates main multiverse restricted universe
deb-src http:<span style="color: #000000; font-weight: bold;">//</span>mirror9.net9.org<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> jaunty main multiverse restricted universe
deb-src http:<span style="color: #000000; font-weight: bold;">//</span>mirror9.net9.org<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> jaunty-backports main multiverse restricted universe
deb-src http:<span style="color: #000000; font-weight: bold;">//</span>mirror9.net9.org<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> jaunty-proposed main multiverse restricted universe
deb-src http:<span style="color: #000000; font-weight: bold;">//</span>mirror9.net9.org<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> jaunty-security main multiverse restricted universe
deb-src http:<span style="color: #000000; font-weight: bold;">//</span>mirror9.net9.org<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> jaunty-updates main multiverse restricted universe
deb http:<span style="color: #000000; font-weight: bold;">//</span>mirror9.net9.org<span style="color: #000000; font-weight: bold;">/</span>ubuntu-cn<span style="color: #000000; font-weight: bold;">/</span> jaunty main multiverse restricted universe
<span style="color: #666666; font-style: italic;">#电子科大,但不是uestc的官方域名</span>
deb http:<span style="color: #000000; font-weight: bold;">//</span>ubuntu.dormforce.net<span style="color: #000000; font-weight: bold;">/</span>ubuntu jaunty main restricted universe multiverse
deb http:<span style="color: #000000; font-weight: bold;">//</span>ubuntu.dormforce.net<span style="color: #000000; font-weight: bold;">/</span>ubuntu jaunty-backports main restricted universe multiverse
deb http:<span style="color: #000000; font-weight: bold;">//</span>ubuntu.dormforce.net<span style="color: #000000; font-weight: bold;">/</span>ubuntu jaunty-proposed main restricted universe multiverse
deb http:<span style="color: #000000; font-weight: bold;">//</span>ubuntu.dormforce.net<span style="color: #000000; font-weight: bold;">/</span>ubuntu jaunty-security main restricted universe multiverse
deb http:<span style="color: #000000; font-weight: bold;">//</span>ubuntu.dormforce.net<span style="color: #000000; font-weight: bold;">/</span>ubuntu jaunty-updates main restricted universe multiverse
deb-src http:<span style="color: #000000; font-weight: bold;">//</span>ubuntu.dormforce.net<span style="color: #000000; font-weight: bold;">/</span>ubuntu jaunty main restricted universe multiverse
deb-src http:<span style="color: #000000; font-weight: bold;">//</span>ubuntu.dormforce.net<span style="color: #000000; font-weight: bold;">/</span>ubuntu jaunty-backports main restricted universe multiverse
deb-src http:<span style="color: #000000; font-weight: bold;">//</span>ubuntu.dormforce.net<span style="color: #000000; font-weight: bold;">/</span>ubuntu jaunty-proposed main restricted universe multiverse
deb-src http:<span style="color: #000000; font-weight: bold;">//</span>ubuntu.dormforce.net<span style="color: #000000; font-weight: bold;">/</span>ubuntu jaunty-security main restricted universe multiverse
deb-src http:<span style="color: #000000; font-weight: bold;">//</span>ubuntu.dormforce.net<span style="color: #000000; font-weight: bold;">/</span>ubuntu jaunty-updates main restricted universe multiverse
<span style="color: #666666; font-style: italic;">#东北大学更新服务器：</span>
deb <span style="color: #c20cb9; font-weight: bold;">ftp</span>:<span style="color: #000000; font-weight: bold;">//</span>ftp.neu.edu.cn<span style="color: #000000; font-weight: bold;">/</span>mirror<span style="color: #000000; font-weight: bold;">/</span>archive.ubuntu.com<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> jaunty main multiverse restricted universe
deb <span style="color: #c20cb9; font-weight: bold;">ftp</span>:<span style="color: #000000; font-weight: bold;">//</span>ftp.neu.edu.cn<span style="color: #000000; font-weight: bold;">/</span>mirror<span style="color: #000000; font-weight: bold;">/</span>archive.ubuntu.com<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> jaunty-backports main multiverse restricted universe
deb <span style="color: #c20cb9; font-weight: bold;">ftp</span>:<span style="color: #000000; font-weight: bold;">//</span>ftp.neu.edu.cn<span style="color: #000000; font-weight: bold;">/</span>mirror<span style="color: #000000; font-weight: bold;">/</span>archive.ubuntu.com<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> jaunty-proposed main multiverse restricted universe
deb <span style="color: #c20cb9; font-weight: bold;">ftp</span>:<span style="color: #000000; font-weight: bold;">//</span>ftp.neu.edu.cn<span style="color: #000000; font-weight: bold;">/</span>mirror<span style="color: #000000; font-weight: bold;">/</span>archive.ubuntu.com<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> jaunty-security main multiverse restricted universe
deb <span style="color: #c20cb9; font-weight: bold;">ftp</span>:<span style="color: #000000; font-weight: bold;">//</span>ftp.neu.edu.cn<span style="color: #000000; font-weight: bold;">/</span>mirror<span style="color: #000000; font-weight: bold;">/</span>archive.ubuntu.com<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> jaunty-updates main multiverse restricted universe
deb-src <span style="color: #c20cb9; font-weight: bold;">ftp</span>:<span style="color: #000000; font-weight: bold;">//</span>ftp.neu.edu.cn<span style="color: #000000; font-weight: bold;">/</span>mirror<span style="color: #000000; font-weight: bold;">/</span>archive.ubuntu.com<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> jaunty main multiverse restricted universe
deb-src <span style="color: #c20cb9; font-weight: bold;">ftp</span>:<span style="color: #000000; font-weight: bold;">//</span>ftp.neu.edu.cn<span style="color: #000000; font-weight: bold;">/</span>mirror<span style="color: #000000; font-weight: bold;">/</span>archive.ubuntu.com<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> jaunty-backports main multiverse restricted universe
deb-src <span style="color: #c20cb9; font-weight: bold;">ftp</span>:<span style="color: #000000; font-weight: bold;">//</span>ftp.neu.edu.cn<span style="color: #000000; font-weight: bold;">/</span>mirror<span style="color: #000000; font-weight: bold;">/</span>archive.ubuntu.com<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> jaunty-proposed main multiverse restricted universe
deb-src <span style="color: #c20cb9; font-weight: bold;">ftp</span>:<span style="color: #000000; font-weight: bold;">//</span>ftp.neu.edu.cn<span style="color: #000000; font-weight: bold;">/</span>mirror<span style="color: #000000; font-weight: bold;">/</span>archive.ubuntu.com<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> jaunty-security main multiverse restricted universe
deb-src <span style="color: #c20cb9; font-weight: bold;">ftp</span>:<span style="color: #000000; font-weight: bold;">//</span>ftp.neu.edu.cn<span style="color: #000000; font-weight: bold;">/</span>mirror<span style="color: #000000; font-weight: bold;">/</span>archive.ubuntu.com<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> jaunty-updates main multiverse restricted universe
<span style="color: #666666; font-style: italic;">#厦门大学</span>
deb <span style="color: #c20cb9; font-weight: bold;">ftp</span>:<span style="color: #000000; font-weight: bold;">//</span>ubuntu.realss.cn<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> jaunty main restricted universe multiverse
deb <span style="color: #c20cb9; font-weight: bold;">ftp</span>:<span style="color: #000000; font-weight: bold;">//</span>ubuntu.realss.cn<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> jaunty-backports restricted universe multiverse
deb <span style="color: #c20cb9; font-weight: bold;">ftp</span>:<span style="color: #000000; font-weight: bold;">//</span>ubuntu.realss.cn<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> jaunty-proposed main restricted universe multiverse
deb <span style="color: #c20cb9; font-weight: bold;">ftp</span>:<span style="color: #000000; font-weight: bold;">//</span>ubuntu.realss.cn<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> jaunty-security main restricted universe multiverse
deb <span style="color: #c20cb9; font-weight: bold;">ftp</span>:<span style="color: #000000; font-weight: bold;">//</span>ubuntu.realss.cn<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> jaunty-updates main restricted universe multiverse
deb-src <span style="color: #c20cb9; font-weight: bold;">ftp</span>:<span style="color: #000000; font-weight: bold;">//</span>ubuntu.realss.cn<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> jaunty main restricted universe multiverse
deb-src <span style="color: #c20cb9; font-weight: bold;">ftp</span>:<span style="color: #000000; font-weight: bold;">//</span>ubuntu.realss.cn<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> jaunty-backports main restricted universe multiverse
deb-src <span style="color: #c20cb9; font-weight: bold;">ftp</span>:<span style="color: #000000; font-weight: bold;">//</span>ubuntu.realss.cn<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> jaunty-proposed main restricted universe multiverse
deb-src <span style="color: #c20cb9; font-weight: bold;">ftp</span>:<span style="color: #000000; font-weight: bold;">//</span>ubuntu.realss.cn<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> jaunty-security main restricted universe multiverse
deb-src <span style="color: #c20cb9; font-weight: bold;">ftp</span>:<span style="color: #000000; font-weight: bold;">//</span>ubuntu.realss.cn<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> jaunty-updates main restricted universe multiverse
<span style="color: #666666; font-style: italic;">#西南财经大学</span>
deb http:<span style="color: #000000; font-weight: bold;">//</span>ftp.swufe.edu.cn<span style="color: #000000; font-weight: bold;">/</span>mirror<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> jaunty main restricted universe multiverse
deb http:<span style="color: #000000; font-weight: bold;">//</span>ftp.swufe.edu.cn<span style="color: #000000; font-weight: bold;">/</span>mirror<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> jaunty-backports restricted universe multiverse
deb http:<span style="color: #000000; font-weight: bold;">//</span>ftp.swufe.edu.cn<span style="color: #000000; font-weight: bold;">/</span>mirror<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> jaunty-proposed main restricted universe multiverse
deb http:<span style="color: #000000; font-weight: bold;">//</span>ftp.swufe.edu.cn<span style="color: #000000; font-weight: bold;">/</span>mirror<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> jaunty-security main restricted universe multiverse
deb http:<span style="color: #000000; font-weight: bold;">//</span>ftp.swufe.edu.cn<span style="color: #000000; font-weight: bold;">/</span>mirror<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> jaunty-updates main restricted universe multiverse
deb-src http:<span style="color: #000000; font-weight: bold;">//</span>ftp.swufe.edu.cn<span style="color: #000000; font-weight: bold;">/</span>mirror<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> jaunty main restricted universe multiverse
deb-src http:<span style="color: #000000; font-weight: bold;">//</span>ftp.swufe.edu.cn<span style="color: #000000; font-weight: bold;">/</span>mirror<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> jaunty-backports main restricted universe multiverse
deb-src http:<span style="color: #000000; font-weight: bold;">//</span>ftp.swufe.edu.cn<span style="color: #000000; font-weight: bold;">/</span>mirror<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> jaunty-proposed main restricted universe multiverse
deb-src http:<span style="color: #000000; font-weight: bold;">//</span>ftp.swufe.edu.cn<span style="color: #000000; font-weight: bold;">/</span>mirror<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> jaunty-security main restricted universe multiverse
deb-src http:<span style="color: #000000; font-weight: bold;">//</span>ftp.swufe.edu.cn<span style="color: #000000; font-weight: bold;">/</span>mirror<span style="color: #000000; font-weight: bold;">/</span>ubuntu<span style="color: #000000; font-weight: bold;">/</span> jaunty-updates main restricted universe multiverse</pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.dutor.net/index.php/2009/04/ubuntu904-source-list/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>ubuntu9.04编译安装显卡驱动</title>
		<link>http://www.dutor.net/index.php/2009/04/ubuntu904-compile-nvidia-display-drivers/</link>
		<comments>http://www.dutor.net/index.php/2009/04/ubuntu904-compile-nvidia-display-drivers/#comments</comments>
		<pubDate>Wed, 29 Apr 2009 01:10:36 +0000</pubDate>
		<dc:creator>dutor</dc:creator>
				<category><![CDATA[Unix/Linux]]></category>
		<category><![CDATA[配置]]></category>
		<category><![CDATA[麻烦]]></category>

		<guid isPermaLink="false">http://www.dutor.net/?p=283</guid>
		<description><![CDATA[<h5>安装前的准备</h5>


<blockquote>首先, 要知道你的显卡的型号, 并下载到相应的驱动程序. 我的显卡是集成的, nVidia Geforce 6100 nForce 405, 在nvidia的驱动<a href="http://http.download.nvidia.com/XFree86/Linux-x86/1.0-8762/README/appendix-a.html">支持列表</a>里面可以找到，同时在驱动<a href="http://www.nvidia.cn/Download/index.aspx?lang=cn">下载页面</a>搜索并下载到名如<em>NVIDIA-Linux-x86-180.51-pkg1.run</em></blockquote>




<blockquote>接着，安装编译驱动程序所需要的包： build-essential pkg-config xserver-xorg-dev libc-devsudo 等等。</blockquote>


<pre lang="bash">
$ sudo apt-get install  build-essential pkg-config xserver-xorg-dev libc-devsudo
</pre>]]></description>
			<content:encoded><![CDATA[<p>[warning]这里只讨论NVIDIA显卡[/warning]</p>
<h6>安装前的准备</h6>
<blockquote><p>首先, 要知道你的显卡的型号, 并下载到相应的驱动程序. 我的显卡是集成的, nVidia Geforce 6100 nForce 405, 在nvidia的驱动<a href="http://http.download.nvidia.com/XFree86/Linux-x86/1.0-8762/README/appendix-a.html">支持列表</a>里面可以找到，同时在驱动<a href="http://www.nvidia.cn/Download/index.aspx?lang=cn">下载页面</a>搜索并下载到名如<em>NVIDIA-Linux-x86-180.51-pkg1.run</em></p></blockquote>
<blockquote><p>接着，安装编译驱动程序所需要的包： build-essential pkg-config xserver-xorg-dev libc-devsudo 等等。</p></blockquote>

<div class="wp_codebox"><table><tr id="p28325"><td class="code" id="p283code25"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span>  build-essential pkg-config xserver-xorg-dev libc-devsudo</pre></td></tr></table></div>

<h6>开始安装</h6>
<blockquote><p>如果你当前是在桌面环境下，那么Ctrl+Alt+F5进入文本模式，输入用户名密码后，进入到驱动程序所在目录。运行：</p></blockquote>

<div class="wp_codebox"><table><tr id="p28326"><td class="code" id="p283code26"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">sh</span> NVIDIA-Linux-x86-<span style="color: #000000;">180.51</span>-pkg1.run</pre></td></tr></table></div>

<blockquote><p>如果提示错误，可以按照提示执行：</p></blockquote>

<div class="wp_codebox"><table><tr id="p28327"><td class="code" id="p283code27"><pre class="bash" style="font-family:monospace;"><span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">rm</span> <span style="color: #000000; font-weight: bold;">/</span>tmp<span style="color: #000000; font-weight: bold;">/</span>.X0-lock</pre></td></tr></table></div>

<blockquote><p>重新安装，安装过程中，</p>
<p>假如提示有旧驱动，询问是否删除旧驱动，选Yes；<br />
假如提示缺少某某模块（modules），询问是否上网下载，选no；<br />
假如提示编译模块，询问是否进行编译，选ok；<br />
假如提示将要修改Xorg.conf，询问是否答应，选Yes；<br />
接下来就是等待安装完成。 </p></blockquote>
<p><script type="text/javascript"><!--
google_ad_client = "pub-8781012522518994";
/* 468x15, chk_matlab */
google_ad_slot = "0885612183";
google_ad_width = 468;
google_ad_height = 15;
//-->
</script><br />
<script type="text/javascript"
src="http://pagead2.googlesyndication.com/pagead/show_ads.js">
</script></p>
<h5>安装后简单的配置</h5>
<blockquote><p>Ctrl+Alt+F7回到桌面环境，重启，如果桌面分辨率仍然没有改善，则需要修改xorg.conf文件：</p></blockquote>

<div class="wp_codebox"><table><tr id="p28328"><td class="code" id="p283code28"><pre class="bash" style="font-family:monospace;"><span style="color: #007800;">$sudo</span> gedit <span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>X11<span style="color: #000000; font-weight: bold;">/</span>xorg.conf</pre></td></tr></table></div>

<blockquote><p>找到形如</p></blockquote>

<div class="wp_codebox"><table><tr id="p28329"><td class="line_numbers"><pre>1
2
3
</pre></td><td class="code" id="p283code29"><pre class="bash" style="font-family:monospace;">    SubSection     <span style="color: #ff0000;">&quot;Display&quot;</span>
        Depth       <span style="color: #000000;">24</span>
    EndSubSection</pre></td></tr></table></div>

<blockquote><p>的一段，修改成：</p></blockquote>

<div class="wp_codebox"><table><tr id="p28330"><td class="line_numbers"><pre>1
2
3
4
5
</pre></td><td class="code" id="p283code30"><pre class="bash" style="font-family:monospace;">    SubSection     <span style="color: #ff0000;">&quot;Display&quot;</span>
        Depth       <span style="color: #000000;">24</span>
        Modes  <span style="color: #ff0000;">&quot;1280x1024&quot;</span> <span style="color: #ff0000;">&quot;1280x960&quot;</span> <span style="color: #ff0000;">&quot;1152x864&quot;</span>
                   <span style="color: #ff0000;">&quot;1024x768&quot;</span> <span style="color: #ff0000;">&quot;832x624&quot;</span> <span style="color: #ff0000;">&quot;800x600&quot;</span> <span style="color: #ff0000;">&quot;720x400&quot;</span> <span style="color: #ff0000;">&quot;640x480&quot;</span>
    EndSubSection</pre></td></tr></table></div>

<blockquote><p>  Modes选项的第一个修改成你显示器适合的分辨率。保存、退出。重启你的桌面。不出意外的话，你的桌面应该是你想要的样子了。</p></blockquote>
<p>[tip]Good luck, buddy![/tip]<br />
[warning]This is <em>original</em> article, you could copy it freely with my site links!<br />此日志为dutor原创，您可以自由转载，添加原文链接我将万分感激！[/warning]</p>
]]></content:encoded>
			<wfw:commentRss>http://www.dutor.net/index.php/2009/04/ubuntu904-compile-nvidia-display-drivers/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>用vsftpd配置ftp服务器</title>
		<link>http://www.dutor.net/index.php/2009/04/vsftpd-ftp-server/</link>
		<comments>http://www.dutor.net/index.php/2009/04/vsftpd-ftp-server/#comments</comments>
		<pubDate>Sat, 25 Apr 2009 12:35:44 +0000</pubDate>
		<dc:creator>dutor</dc:creator>
				<category><![CDATA[Unix/Linux]]></category>
		<category><![CDATA[OS基础]]></category>
		<category><![CDATA[配置]]></category>

		<guid isPermaLink="false">http://www.dutor.net/?p=226</guid>
		<description><![CDATA[<blockquote>
<em>对机器配置的要求：</em><br />
需要一台电脑做服务器，配置并不需要太高，主流配置甚至以下的机器都可以，因为我们用linux系统下的开源软件vsftpd做服务器端。甚至并不需要显示器，在配置系统时可临时借用其他机器的显示器，以后的管理工作可通过SSH来进行。但网络是必须的，硬盘也还是大一点的好。因此，当你有一台淘汰下来的闲置的低配机器时，可考虑发挥它的余热，用来做ftp，分享一些电影、音乐、软件等资源。<br /></blockquote>]]></description>
			<content:encoded><![CDATA[<p><strong>前言</strong></p>
<blockquote><p>
<em>对机器配置的要求：</em><br />
需要一台电脑做服务器，配置并不需要太高，主流配置甚至以下的机器都可以，因为我们用linux系统下的开源软件vsftpd做服务器端。甚至并不需要显示器，在配置系统时可临时借用其他机器的显示器，以后的管理工作可通过SSH来进行。但网络是必须的，硬盘也还是大一点的好。因此，当你有一台淘汰下来的闲置的低配机器时，可考虑发挥它的余热，用来做ftp，分享一些电影、音乐、软件等资源。</p></blockquote>
<blockquote><p>
<em>对系统的要求：</em><br />
为了安装的方便，最好已经安装了一下几个工具：lftp，vim，emacs，wget。
</p></blockquote>
<blockquote><p>
本文配置的ftp实现的功能有：<br />可以匿名访问，可以在特定的目录匿名上传，匿名用户没有删除权力。可以许多的本地用户访问，对其独有文件夹具有完全的权限，这许多的用户分成几个组，设有组内共享文件夹，组间不能访问。
</p></blockquote>
<p><strong>安装vsftpd</strong></p>

<div class="wp_codebox"><table><tr id="p22631"><td class="code" id="p226code31"><pre class="bash" style="font-family:monospace;">$ <span style="color: #c20cb9; font-weight: bold;">sudo</span> <span style="color: #c20cb9; font-weight: bold;">apt-get</span> <span style="color: #c20cb9; font-weight: bold;">install</span> vsftpd</pre></td></tr></table></div>

<p><strong>配置vsftpd</strong></p>
<blockquote><p>配置/etc/vsftpd.conf</p></blockquote>

<div class="wp_codebox"><table><tr id="p22632"><td class="line_numbers"><pre>1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
</pre></td><td class="code" id="p226code32"><pre class="bash" style="font-family:monospace;"><span style="color: #666666; font-style: italic;"># 服务器以standalong模式运行,这样可以进行下面的控制</span>
<span style="color: #007800;">listen</span>=YES
<span style="color: #666666; font-style: italic;"># 接受匿名用户</span>
<span style="color: #007800;">anonymous_enable</span>=YES
<span style="color: #666666; font-style: italic;"># 匿名用户login时不询问口令</span>
<span style="color: #007800;">no_anon_password</span>=YES
<span style="color: #666666; font-style: italic;"># 接受本地用户</span>
<span style="color: #007800;">local_enable</span>=YES
<span style="color: #666666; font-style: italic;"># 可以上传(全局控制).若想要匿名用户也可上传则需要设置anon_upload_enable=YES, </span>
<span style="color: #666666; font-style: italic;"># 若想要匿名用户可以建立目录则需要设置anon_mkdir_write_enable=YES.这里禁止匿</span>
<span style="color: #666666; font-style: italic;"># 名用户上传,所以不设置这两项.</span>
<span style="color: #007800;">write_enable</span>=YES
<span style="color: #666666; font-style: italic;"># 本地用户上传文件的umask</span>
<span style="color: #007800;">local_umask</span>=022
<span style="color: #666666; font-style: italic;"># 如果设为YES，匿名登入者会被允许上传目录的权限，当然，匿名使用者必须要有对上</span>
<span style="color: #666666; font-style: italic;"># 层目录的写入权。</span>
<span style="color: #007800;">anon_upload_enable</span>=YES
<span style="color: #666666; font-style: italic;"># 定义匿名登入的使用者名称。默认值为ftp</span>
<span style="color: #007800;">ftp_username</span>=<span style="color: #c20cb9; font-weight: bold;">ftp</span>
<span style="color: #666666; font-style: italic;"># 如果设为YES，匿名登入者会被允许新增目录，当然，匿名使用者必须要有对上层目录</span>
<span style="color: #666666; font-style: italic;"># 的写入权。</span>
<span style="color: #007800;">anon_mkdir_write_enable</span>=YES
<span style="color: #666666; font-style: italic;"># 为YES则进入目录时显示此目录下由message_file选项指定的文本文件</span>
<span style="color: #666666; font-style: italic;"># (,默认为.message)的内容</span>
<span style="color: #007800;">dirmessage_enable</span>=YES
<span style="color: #666666; font-style: italic;"># 本地用户login后所在目录,若没有设置此项,则本地用户login后将在他的home目录</span>
<span style="color: #666666; font-style: italic;"># (/etc/passwd的第六个字段)中.匿名用户的对应选项是anon_root</span>
<span style="color: #666666; font-style: italic;"># local_root=/home</span>
<span style="color: #007800;">anon_root</span>=<span style="color: #000000; font-weight: bold;">/</span>home<span style="color: #000000; font-weight: bold;">/</span>ftp<span style="color: #000000; font-weight: bold;">/</span>
<span style="color: #666666; font-style: italic;"># 使用上传/下载日志,日志文件默认为/var/log/vsftpd.log,可以通过xferlog_file</span>
<span style="color: #666666; font-style: italic;"># 选项修改</span>
<span style="color: #007800;">xferlog_enable</span>=YES
<span style="color: #666666; font-style: italic;"># Make sure PORT transfer connections originate from port 20 (ftp-data).</span>
<span style="color: #007800;">connect_from_port_20</span>=YES
<span style="color: #666666; font-style: italic;"># 日志使用标准xferlog格式</span>
<span style="color: #007800;">xferlog_std_format</span>=YES
<span style="color: #666666; font-style: italic;"># You may change the default value for timing out a data connection.</span>
<span style="color: #007800;">data_connection_timeout</span>=<span style="color: #000000;">120</span>
<span style="color: #666666; font-style: italic;"># 关闭本地用户chroot()</span>
<span style="color: #007800;">chroot_local_user</span>=NO
<span style="color: #666666; font-style: italic;"># 设置为yes则下面的控制有效。</span>
<span style="color: #666666; font-style: italic;"># 开启要设置chroot()用户项.</span>
<span style="color: #007800;">chroot_list_enable</span>=YES
<span style="color: #666666; font-style: italic;"># (default follows)</span>
<span style="color: #666666; font-style: italic;"># 指定要设置chroot()的特定用户文件</span>
<span style="color: #007800;">chroot_list_file</span>=<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>vsftpd.chroot_list
<span style="color: #666666; font-style: italic;"># 若设置为YES则记录在userlist_file选项指定文件(默认是/etc/vsftpd.user_list)</span>
<span style="color: #666666; font-style: italic;"># 中的用户无法login,并且将检察下面的userlist_deny选项</span>
<span style="color: #007800;">userlist_enable</span>=YES
<span style="color: #666666; font-style: italic;"># 若为NO,则仅接受记录在userlist_file选项指定文件(默认是/etc/vsftpd.user_list)</span>
<span style="color: #666666; font-style: italic;"># 中的用户的login请求.若为YES则不接受这些用户的请求.</span>
<span style="color: #007800;">userlist_deny</span>=NO
<span style="color: #666666; font-style: italic;"># 注意!!!vsftpd还要检察/etc/vsftpd.ftpusers文件,记录在这个文件中的用户将</span>
<span style="color: #666666; font-style: italic;"># 无法login!!</span>
<span style="color: #666666; font-style: italic;"># 匿名用户的传输比率(b/s)</span>
<span style="color: #007800;">anon_max_rate</span>=<span style="color: #000000;">512000</span>
<span style="color: #666666; font-style: italic;"># 本地用户的传输比率(b/s)</span>
<span style="color: #007800;">local_max_rate</span>=<span style="color: #000000;">1024000</span>
<span style="color: #666666; font-style: italic;"># 可接受的最大client数目</span>
<span style="color: #007800;">max_clients</span>=<span style="color: #000000;">100</span>
<span style="color: #666666; font-style: italic;"># 每个ip的最大client数目</span>
<span style="color: #007800;">max_per_ip</span>=<span style="color: #000000;">5</span>
<span style="color: #666666; font-style: italic;"># This option should be the name of a directory which is empty.  Also, the</span>
<span style="color: #666666; font-style: italic;"># directory should not be writable by the ftp user. This directory is used</span>
<span style="color: #666666; font-style: italic;"># as a secure chroot() jail at times vsftpd does not require filesystem access.</span>
<span style="color: #007800;">secure_chroot_dir</span>=<span style="color: #000000; font-weight: bold;">/</span>var<span style="color: #000000; font-weight: bold;">/</span>run<span style="color: #000000; font-weight: bold;">/</span>vsftpd
<span style="color: #666666; font-style: italic;"># This string is the name of the PAM service vsftpd will use.</span>
<span style="color: #007800;">pam_service_name</span>=vsftpd
&nbsp;
<span style="color: #007800;">tcp_wrappers</span>=YES
&nbsp;
<span style="color: #666666; font-style: italic;"># This option specifies the location of the RSA certificate to use for SSL</span>
<span style="color: #666666; font-style: italic;"># encrypted connections.</span>
<span style="color: #007800;">rsa_cert_file</span>=<span style="color: #000000; font-weight: bold;">/</span>etc<span style="color: #000000; font-weight: bold;">/</span>ssl<span style="color: #000000; font-weight: bold;">/</span>certs<span style="color: #000000; font-weight: bold;">/</span>vsftpd.pem
<span style="color: #666666; font-style: italic;"># 每一个联机，都能以独立的process 来呈现.</span>
<span style="color: #007800;">setproctitle_enable</span>=YES
<span style="color: #666666; font-style: italic;"># 若是启动，所有匿名上传数据的拥有者将被更换为chown_username当中所设定的使用</span>
<span style="color: #666666; font-style: italic;"># 者。这样的选项对于安全及管理，是很有用的。</span>
<span style="color: #007800;">chown_uploads</span>=YES
<span style="color: #666666; font-style: italic;"># 这里可以定义当匿名登入者上传档案时，该档案的拥有者将被置换的使用者名称。预</span>
<span style="color: #666666; font-style: italic;"># 设值为root。</span>
<span style="color: #007800;">chown_username</span>=root</pre></td></tr></table></div>

]]></content:encoded>
			<wfw:commentRss>http://www.dutor.net/index.php/2009/04/vsftpd-ftp-server/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
	</channel>
</rss>

