﻿<?xml version="1.0" encoding="utf-8" standalone="yes"?><rss version="2.0" xmlns:dc="http://purl.org/dc/elements/1.1/" xmlns:trackback="http://madskills.com/public/xml/rss/module/trackback/" xmlns:wfw="http://wellformedweb.org/CommentAPI/" xmlns:slash="http://purl.org/rss/1.0/modules/slash/"><channel><title>C++博客-Where there is a dream ,there is hope-随笔分类-折腾UBUNTU</title><link>http://www.cppblog.com/Husiwa/category/15261.html</link><description /><language>zh-cn</language><lastBuildDate>Sat, 23 Oct 2010 11:07:30 GMT</lastBuildDate><pubDate>Sat, 23 Oct 2010 11:07:30 GMT</pubDate><ttl>60</ttl><item><title>linux常用命令</title><link>http://www.cppblog.com/Husiwa/archive/2010/10/23/130992.html</link><dc:creator>Husiwa</dc:creator><author>Husiwa</author><pubDate>Sat, 23 Oct 2010 11:05:00 GMT</pubDate><guid>http://www.cppblog.com/Husiwa/archive/2010/10/23/130992.html</guid><wfw:comment>http://www.cppblog.com/Husiwa/comments/130992.html</wfw:comment><comments>http://www.cppblog.com/Husiwa/archive/2010/10/23/130992.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/Husiwa/comments/commentRss/130992.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/Husiwa/services/trackbacks/130992.html</trackback:ping><description><![CDATA[1.目录相关<br><br>.指当前目录 例：~$ ./qq就是启动当前目录下的QQ程序<br><br>..指上一级目录 例：~$ ../qq 就是启动上一级目录下的QQ程序<br><br>~指Home目录 例如：~$ cd~ 就是回到HOME目录 <img src ="http://www.cppblog.com/Husiwa/aggbug/130992.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/Husiwa/" target="_blank">Husiwa</a> 2010-10-23 19:05 <a href="http://www.cppblog.com/Husiwa/archive/2010/10/23/130992.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>ubuntu-PDF中文文字显示问题</title><link>http://www.cppblog.com/Husiwa/archive/2010/10/23/130978.html</link><dc:creator>Husiwa</dc:creator><author>Husiwa</author><pubDate>Sat, 23 Oct 2010 07:09:00 GMT</pubDate><guid>http://www.cppblog.com/Husiwa/archive/2010/10/23/130978.html</guid><wfw:comment>http://www.cppblog.com/Husiwa/comments/130978.html</wfw:comment><comments>http://www.cppblog.com/Husiwa/archive/2010/10/23/130978.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/Husiwa/comments/commentRss/130978.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/Husiwa/services/trackbacks/130978.html</trackback:ping><description><![CDATA[<span style="font-size: 12pt;">今天用UBUNTU自带的工具打开PDF，里面不能正常显示文字。刚一开始以为是乱码，仔细一观察原来是所有的中文没有显示，英文都是正常的。折腾了半天终于搞定。原因是没有安装相关中文支持。<br>解决方法如下：<br><span style="font-family: Arial; line-height: 18px; font-size: 12px;">
<p style="line-height: normal;"><font face="楷体_gb2312"><font color="#000000"></font></font></p>
<span style="font-size: 12pt;">
<p style="line-height: normal;"><font face="楷体_gb2312"><font color="#000000">1. sudo apt-get install xpdf-chinese-simplified<br style="line-height: normal;">2. sudo apt-get install
xpdf-chinese-traditional (可选该项)</font></font></p>
<p style="line-height: normal;"><font face="楷体_gb2312"><font color="#000000">如果还不能正确显示中文，可能缺少如下
所示工具包：</font></font></p>
<p style="line-height: normal;"><font face="楷体_gb2312"><font color="#000000">1. sudo apt-get install
poppler-utils<br style="line-height: normal;">2. sudo apt-get install
poppler-data</font></font></p>
<p style="line-height: normal;"><br></p>
<p style="line-height: normal;">本来经过上面两步，基本就会正常显示中文字体了，但是我的还是没有显示，不过有进步，以前是什么都没有，现在是一个个的小方块。GOOGLE后，终于找到了解决方案：修改配置文件。</p>
<p style="line-height: normal;">执行命令：</p>
<p style="line-height: normal;">sudo vi /etc/fonts/conf.d/49-sansserif.conf <br></p>
<p style="line-height: normal;">打开后，找到这一行：</p>
<p style="line-height: normal;">&lt;edit name="family" mode="append_last"&gt;&nbsp;</p>
<p style="line-height: normal;">将他下面的一行修改为：<br>         &lt;string&gt;WenQuanYi Micro Hei&lt;/string&gt; <br></p>
<p style="line-height: normal;"><span style="font-family: Arial; line-height: 18px; font-size: 12px;"><span style="font-size: 12pt;">WenQuanYi Micro Hei</span></span>的意思就是：中文字体&#8220;文泉驿微米黑&#8221;。</p>
<p style="line-height: normal;">再次打开PDF，终于可以正常显示了。哈哈。</p>
</span></span></span><span style="font-family: Arial; line-height: 18px; font-size: 12px;"><span style="font-size: 12pt;">
<p style="line-height: normal;"></p>
<p style="line-height: normal;"><br></p>
</span></span> <img src ="http://www.cppblog.com/Husiwa/aggbug/130978.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/Husiwa/" target="_blank">Husiwa</a> 2010-10-23 15:09 <a href="http://www.cppblog.com/Husiwa/archive/2010/10/23/130978.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>