<?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>涅磐-wordpress技巧,linux vps技巧,分享电影音乐,摄影爱好者,微博控 &#187; 乱码</title>
	<atom:link href="http://www.openboy.net/tag/%e4%b9%b1%e7%a0%81/feed" rel="self" type="application/rss+xml" />
	<link>http://www.openboy.net</link>
	<description>wordpress技巧,linux vps技巧,分享电影音乐,摄影爱好者,微博控</description>
	<lastBuildDate>Sat, 21 Jan 2012 18:59:02 +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>vps安装lnmp一些问题以及putty管理vps</title>
		<link>http://www.openboy.net/vps-install-lnmp-for-putty-ssh.html</link>
		<comments>http://www.openboy.net/vps-install-lnmp-for-putty-ssh.html#comments</comments>
		<pubDate>Sat, 16 Apr 2011 15:35:06 +0000</pubDate>
		<dc:creator>@openboy</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[lnmp]]></category>
		<category><![CDATA[mysql]]></category>
		<category><![CDATA[nginx]]></category>
		<category><![CDATA[putty]]></category>
		<category><![CDATA[vps]]></category>
		<category><![CDATA[乱码]]></category>

		<guid isPermaLink="false">http://www.openboy.net/?p=642</guid>
		<description><![CDATA[其实我想说,我又换主机咯..凑合着可以用吧,速度一般,毕竟是放在美国～偶尔也会出现一天几十分钟的宕机。。但是还是我接受范围之内吧～ 之前,断断续续写过一些关于linux管理方面和一些针对vps管理的文章，大家需要可以翻翻～这篇打算具体总结一下关于从入手vps以后最基础的vps安装lnmp(linux nginx mysql php)出现的一些小问题到用putty登录ssh管理vps.首先声明几点: 此篇所说的lnmp指的是:centos5.5 32bit 安装lnmp.org的nginx,mysql,php. 此篇所用vps内存512mb openvz~ 好了,先从Lnmp开始～ Nginx如何添加域名以及nginx,mysql,php路径 添加虚拟主机，执行如下命令： ./vhost.sh 根据提示输入要绑定的域名，回车，如果需要添加更多的域名，输入y，再输入要另外绑定的域名，多个域名可以用空格隔开。再输入域名绑定的目录(绝对目录，如/home/wwwroot/lnmp，如果不填默认是/home/wwwroot/绑定的域名)，再选择是否添加伪静态规则，默认已经有了Discuz、Wordpress、Sablog、emlog、dabr，可直接输入以上名称即可，如果需要添加自定义伪静态规则，直接输入一个想要的名字，程序会自动创建伪静态文件，直接在/usr/local/nginx/conf/你自定义的伪静态名字.conf里面添加伪静态规则就行。接下来会提示是否需要启用日志功能，一般情况下不需要启动，直接输入n就行，如需启动，输入y，再输入要定义的日志文件名字，回车就会自动添加虚拟主机。 LNMP状态管理： /root/lnmp {start&#124;stop&#124;reload&#124;restart&#124;kill&#124;status} PureFTPd状态管理 /root/pureftpd {start&#124;stop&#124;restart&#124;kill&#124;status} phpinfo : http://$domain/phpinfo.php phpMyAdmin : http://$domain/phpmyadmin/ 探针 : http://$domain/p.php LNMP相关目录： mysql : /usr/local/mysql php : /usr/local/php nginx : /usr/local/nginx 网站目录 : /home/wwwroot 本地强制刷新dns 新绑定的域名本地有dns缓存无法及时生效,开始-运行-cmd-ipconfig /flushdns Linux下运行mysql命令提示command not found解决办法 把MYSQLPATH/bin/mysql映射到/usr/local/bin目录下： cd /usr/local/bin ln -fs /usr/local/mysql/bin/mysql [...]<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="初试VPS的一些感想以及安装LNMP" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Ftry-vps-and-install-linux-nginx-mysql-php.html&from=http%3A%2F%2Fwww.openboy.net%2Fvps-install-lnmp-for-putty-ssh.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/10/8899197.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">初试VPS的一些感想以及安装LNMP</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="centos配置lnmp外加sendmail" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Fcentos4-install-lnmp-and-sendmail.html&from=http%3A%2F%2Fwww.openboy.net%2Fvps-install-lnmp-for-putty-ssh.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/10/8900838.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">centos配置lnmp外加sendmail</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="centos vps深入探究" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Fcentos-vps-set.html&from=http%3A%2F%2Fwww.openboy.net%2Fvps-install-lnmp-for-putty-ssh.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/10/8904107.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">centos vps深入探究</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="64mb的vps装lowendbox的lnmp跑drupal很稳健- -#" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Flowendbox-lnmp-tips.html&from=http%3A%2F%2Fwww.openboy.net%2Fvps-install-lnmp-for-putty-ssh.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/10/8899197.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">64mb的vps装lowendbox的lnmp跑drupal很稳健- -#</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Vps ssh管理mysql" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Fused-vps-ssh-management-mysql.html&from=http%3A%2F%2Fwww.openboy.net%2Fvps-install-lnmp-for-putty-ssh.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/10/8899912.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Vps ssh管理mysql</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" 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>其实我想说,我又换主机咯..凑合着可以用吧,速度一般,毕竟是放在美国～偶尔也会出现一天几十分钟的宕机。。但是还是我接受范围之内吧～<br />
之前,断断续续写过一些关于<a href="http://www.openboy.net/category/linux">linux管理</a>方面和一些针对<a href="http://www.openboy.net/tag/vps">vps管理</a>的文章，大家需要可以翻翻～这篇打算具体总结一下关于从入手vps以后最基础的<a href="http://www.openboy.net/vps-install-lnmp-for-putty-ssh.html">vps安装lnmp(linux nginx mysql php)出现的一些小问题到用putty登录ssh管理vps</a>.首先声明几点:</p>
<ol>
<li>此篇所说的lnmp指的是:centos5.5 32bit 安装lnmp.org的nginx,mysql,php.</li>
<li>此篇所用vps内存512mb openvz~</li>
</ol>
<p>好了,先从Lnmp开始～<span id="more-642"></span></p>
<h3>Nginx如何添加域名以及nginx,mysql,php路径</h3>
<p>添加虚拟主机，执行如下命令：</p>
<pre>./vhost.sh</pre>
<p>根据提示输入要绑定的域名，回车，如果需要添加更多的域名，输入y，再输入要另外绑定的域名，多个域名可以用空格隔开。再输入域名绑定的目录(绝对目录，如/home/wwwroot/lnmp，如果不填默认是/home/wwwroot/绑定的域名)，再选择是否添加伪静态规则，默认已经有了Discuz、Wordpress、Sablog、emlog、dabr，可直接输入以上名称即可，如果需要添加自定义伪静态规则，直接输入一个想要的名字，程序会自动创建伪静态文件，直接在/usr/local/nginx/conf/你自定义的伪静态名字.conf里面添加伪静态规则就行。接下来会提示是否需要启用日志功能，一般情况下不需要启动，直接输入n就行，如需启动，输入y，再输入要定义的日志文件名字，回车就会自动添加虚拟主机。<br />
LNMP状态管理： /root/lnmp {start|stop|reload|restart|kill|status}<br />
PureFTPd状态管理 /root/pureftpd {start|stop|restart|kill|status}<br />
phpinfo : http://$domain/phpinfo.php<br />
phpMyAdmin : http://$domain/phpmyadmin/<br />
探针 : http://$domain/p.php<br />
LNMP相关目录：</p>
<pre>
mysql :   /usr/local/mysql
php :     /usr/local/php
nginx :   /usr/local/nginx
网站目录 :     /home/wwwroot
</pre>
<h3>本地强制刷新dns</h3>
<p>新绑定的域名本地有dns缓存无法及时生效,开始-运行-cmd-ipconfig /flushdns</p>
<h3>Linux下运行mysql命令提示command not found解决办法</h3>
<p>把MYSQLPATH/bin/mysql映射到/usr/local/bin目录下：<br />
cd /usr/local/bin<br />
ln -fs /usr/local/mysql/bin/mysql mysql<br />
Via <a href="http://www.fengyn.cn/article/linux/mysql-notfound.htm" rel="external nofollow">link</a></p>
<h3>解决putty vi或者vim打开文件时乱码</h3>
<p>其实，这个一般不是vi或者vim的问题，多次发现，都是putty的字体问题。<br />
1.打开putty主程序，选择<br />
window-〉Appearance-〉Font settings-〉Change Settings,选择Fixedsys字体,字符集选择CHINESE_GB2312<br />
<div class="wp-caption alignnone" style="width: 352px"><a href="http://www.openboy.net/category/linux"><img alt="putty中文乱码" src="http://commondatastorage.googleapis.com/openboyblogger/img/putty01.jpg" title="putty中文乱码" width="342" height="480" /></a><p class="wp-caption-text">putty中文乱码</p></div><br />
2.在window-〉Appearance-〉 Translation中，Remote Character set中,把Use font encoding改为UTF-8<br />
3.然后在Session里的Host Name(or IP address)输入地址，在Saved Sessions下面输入一个名字，然后把这个Session保存下来，以后打开Putty直接在下面保存的Session里双击配置名称就行了。<br />
用了这种方法后，就可以显示汉字了，并且也可以实用输入法在窗口中输入汉字。<br />
如果还不行,那就也许是vi的问题了。</p>

<div class="wp_syntax"><div class="code"><pre class="php" style="font-family:monospace;">vi <span style="color: #339933;">/</span>etc<span style="color: #339933;">/</span>sysconfig<span style="color: #339933;">/</span>i18n  
	LANG<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;zh_CN.GB18030&quot;</span>  
	LANGUAGE<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;zh_CN.GB18030:zh_CN.GB2312:zh_CN&quot;</span>  
	SUPPORTED<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;zh_CN.GB18030:zh_CN:zh:en_US.UTF-8:en_US:en&quot;</span>  
	SYSFONT<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;lat0-sun16&quot;</span>    
	export LANG<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;zh_CN.UTF-8&quot;</span>  
	export LC_ALL<span style="color: #339933;">=</span><span style="color: #0000ff;">&quot;zh_CN.UTF-8&quot;</span></pre></div></div>

<p>基本上,总是有类似上面这些小问题麻烦着我们，我们记录下来，下次就不怕咯～</p>
<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="初试VPS的一些感想以及安装LNMP" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Ftry-vps-and-install-linux-nginx-mysql-php.html&from=http%3A%2F%2Fwww.openboy.net%2Fvps-install-lnmp-for-putty-ssh.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/10/8899197.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">初试VPS的一些感想以及安装LNMP</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="centos配置lnmp外加sendmail" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Fcentos4-install-lnmp-and-sendmail.html&from=http%3A%2F%2Fwww.openboy.net%2Fvps-install-lnmp-for-putty-ssh.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/10/8900838.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">centos配置lnmp外加sendmail</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="centos vps深入探究" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Fcentos-vps-set.html&from=http%3A%2F%2Fwww.openboy.net%2Fvps-install-lnmp-for-putty-ssh.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/10/8904107.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">centos vps深入探究</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="64mb的vps装lowendbox的lnmp跑drupal很稳健- -#" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Flowendbox-lnmp-tips.html&from=http%3A%2F%2Fwww.openboy.net%2Fvps-install-lnmp-for-putty-ssh.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/10/8899197.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">64mb的vps装lowendbox的lnmp跑drupal很稳健- -#</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Vps ssh管理mysql" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Fused-vps-ssh-management-mysql.html&from=http%3A%2F%2Fwww.openboy.net%2Fvps-install-lnmp-for-putty-ssh.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/10/8899912.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Vps ssh管理mysql</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" 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><ul class="related_post"><li><a href="http://www.openboy.net/try-vps-and-install-linux-nginx-mysql-php.html" title="初试VPS的一些感想以及安装LNMP">初试VPS的一些感想以及安装LNMP</a></li><li><a href="http://www.openboy.net/vps-backup-to-mail-or-ftp.html" title="vps备份网站mysql数据到邮箱/ftp">vps备份网站mysql数据到邮箱/ftp</a></li><li><a href="http://www.openboy.net/nginx-301-rewrite-for-web-seo.html" title="nginx301重定向">nginx301重定向</a></li><li><a href="http://www.openboy.net/used-vps-ssh-management-mysql.html" title="Vps ssh管理mysql">Vps ssh管理mysql</a></li><li><a href="http://www.openboy.net/nginx-install-mediawiki-and-url-rewrite.html" title="nginx下安装mediawiki以及url rewrite">nginx下安装mediawiki以及url rewrite</a></li><li><a href="http://www.openboy.net/lowendbox-lnmp-tips.html" title="64mb的vps装lowendbox的lnmp跑drupal很稳健- -#">64mb的vps装lowendbox的lnmp跑drupal很稳健- -#</a></li><li><a href="http://www.openboy.net/centos4-install-lnmp-and-sendmail.html" title="centos配置lnmp外加sendmail">centos配置lnmp外加sendmail</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.openboy.net/vps-install-lnmp-for-putty-ssh.html/feed</wfw:commentRss>
		<slash:comments>6</slash:comments>
		</item>
		<item>
		<title>ubuntu下安装google earth以及解决中文乱码</title>
		<link>http://www.openboy.net/ubuntu-install-google-earth.html</link>
		<comments>http://www.openboy.net/ubuntu-install-google-earth.html#comments</comments>
		<pubDate>Sun, 04 Apr 2010 13:40:51 +0000</pubDate>
		<dc:creator>@openboy</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[Google]]></category>
		<category><![CDATA[google earth]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[乱码]]></category>

		<guid isPermaLink="false">http://www.openboy.net/?p=500</guid>
		<description><![CDATA[今天在ubuntu下安装了google earth.或多或少，也遇到了一些问题，记录一下. 1.google earth本身是支持windows,mac,linux的.去官方下载google earth. 下载完之后，是.bin文件，我是右键属性，添加可执行，之后打开shell运行命令：./文件名.bin 2.解决ubuntu下google earth中文乱码 安装完成以后，又是中文乱码。我发现ubuntu下很多东西中文都是乱码..例如flash中文乱码.amule中文也乱码&#8230; 不过这个还是比较好解决的.一般情况下： sudo rm -f /opt/google-earth/libcrypto.so.0.9.8 /opt/google-earth/libQt* 网上写一般这个就可以了. 而我自然是不一般的那种情况了. openboy@yylinux:~$ cd google-earth openboy@yylinux:~/google-earth$ rm -f libQtCore.so.4 openboy@yylinux:~/google-earth$ rm -f libQtGui.so.4 openboy@yylinux:~/google-earth$ rm -f libQtNetwork.so.4 openboy@yylinux:~/google-earth$ rm -f libQtWebkit.so.4 这样就ok了~ 如果提示没有相关的libQt包 sudo apt-get install libqt4-webkit libqt4-gui libqt4-network libqt4-core 装好了google earth,发现ubuntu下的，没法用gmail账户登陆.不过还好，我把曾经去过的地方，值得留念的，都在googlemaps下面记录到了自己的google账户里. 人生很多地方都是值得留念的.例如：南京. show下界面和桌面。 Windows Xp安装ipv6 + Ubuntu/linux安装ipv6解决Ubuntu下中文flash乱码问题vps安装lnmp一些问题以及putty管理vpslinux/ubuntu下pidgin无法登录msn提速ubuntu&#038;试了下gnome-shell如何修改sudo命令输入密码的时间用iso镜像升级ubuntu<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="解决Ubuntu下中文flash乱码问题" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Fubuntu-chinese-flash-garbled.html&from=http%3A%2F%2Fwww.openboy.net%2Fubuntu-install-google-earth.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/10/8899200.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">解决Ubuntu下中文flash乱码问题</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="体验google friend connect" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Fgoogle-friend-connect.html&from=http%3A%2F%2Fwww.openboy.net%2Fubuntu-install-google-earth.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/10/8900050.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">体验google friend connect</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Google过去7年51次战略收购...很好很强大！" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Fgoogle-7-51-acquisition.html&from=http%3A%2F%2Fwww.openboy.net%2Fubuntu-install-google-earth.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/09/25/34089262.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Google过去7年51次战略收购...很好很强大！</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="用google在线办公" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Fgoogle-doce.html&from=http%3A%2F%2Fwww.openboy.net%2Fubuntu-install-google-earth.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/10/8905195.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">用google在线办公</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Google也要谢幕了么？" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Fgoogle-leave-me-alone.html&from=http%3A%2F%2Fwww.openboy.net%2Fubuntu-install-google-earth.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/10/8899327.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Google也要谢幕了么？</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" 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>今天在ubuntu下安装了google earth.或多或少，也遇到了一些问题，记录一下.</p>
<p>1.google earth本身是支持windows,mac,linux的.去<a title="官方下载各个版本的google earth" rel="external" href="http://earth.google.com/intl/zh-CN/index.html">官方下载google earth</a>.</p>
<p>下载完之后，是.bin文件，我是右键属性，添加可执行，之后打开shell运行命令：./文件名.bin</p>
<p>2.<strong>解决ubuntu下google earth中文乱码</strong></p>
<p>安装完成以后，又是中文乱码。我发现ubuntu下很多东西中文都<span id="more-500"></span>是乱码..例如<a title="解决Ubuntu下中文flash乱码问题 " href="http://www.openboy.net/ubuntu-chinese-flash-garbled.html" target="_blank">flash中文乱码</a>.<a title="linux/ubuntu安装电驴下载－amule" href="http://www.openboy.net/ubuntu-install-amule.html" target="_blank">amule中文也乱码</a>&#8230;</p>
<p>不过这个还是比较好解决的.一般情况下：</p>
<pre>sudo rm -f /opt/google-earth/libcrypto.so.0.9.8 /opt/google-earth/libQt*</pre>
<p>网上写一般这个就可以了.</p>
<p>而我自然是不一般的那种情况了.</p>
<pre>openboy@yylinux:~$  cd google-earth</pre>
<pre>openboy@yylinux:~/google-earth$ rm -f libQtCore.so.4</pre>
<pre>openboy@yylinux:~/google-earth$ rm -f libQtGui.so.4</pre>
<pre>openboy@yylinux:~/google-earth$ rm -f libQtNetwork.so.4</pre>
<pre>openboy@yylinux:~/google-earth$ rm -f libQtWebkit.so.4</pre>
<p>这样就ok了~<br />
如果提示没有相关的libQt包</p>
<pre>sudo apt-get install libqt4-webkit libqt4-gui libqt4-network libqt4-core</pre>
<p>装好了google earth,发现ubuntu下的，没法用gmail账户登陆.不过还好，我把曾经去过的地方，值得留念的，都在googlemaps下面记录到了<a title="my google account" href="https://www.google.com/profiles/user188">自己的google账户</a>里.<br />
人生很多地方都是值得留念的.例如：<a title="你离开了南京,从此没有人和我说话" href="http://www.openboy.net/when-you-leave-to-nanjing-nobody-say-to-me.html">南京</a>.<br />
show下界面和桌面。</p>
<p><a href="http://farm3.static.flickr.com/2760/4489748232_f42f22b531_b.jpg" target="_blank"><img title="google earth of ubuntu" src="http://farm3.static.flickr.com/2760/4489748232_f42f22b531_b.jpg" alt="google earth of ubuntu" width="600" height="400" /></a></p>
<p><a href="http://farm5.static.flickr.com/4040/4488954519_bc534bea95_b.jpg"><img title="桌面 of ubuntu" src="http://farm5.static.flickr.com/4040/4488954519_bc534bea95_b.jpg" alt="桌面 of ubuntu" width="600" height="400" /></a></p>
<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="解决Ubuntu下中文flash乱码问题" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Fubuntu-chinese-flash-garbled.html&from=http%3A%2F%2Fwww.openboy.net%2Fubuntu-install-google-earth.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/10/8899200.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">解决Ubuntu下中文flash乱码问题</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="体验google friend connect" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Fgoogle-friend-connect.html&from=http%3A%2F%2Fwww.openboy.net%2Fubuntu-install-google-earth.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/10/8900050.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">体验google friend connect</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Google过去7年51次战略收购...很好很强大！" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Fgoogle-7-51-acquisition.html&from=http%3A%2F%2Fwww.openboy.net%2Fubuntu-install-google-earth.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/09/25/34089262.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Google过去7年51次战略收购...很好很强大！</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="用google在线办公" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Fgoogle-doce.html&from=http%3A%2F%2Fwww.openboy.net%2Fubuntu-install-google-earth.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/10/8905195.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">用google在线办公</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Google也要谢幕了么？" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Fgoogle-leave-me-alone.html&from=http%3A%2F%2Fwww.openboy.net%2Fubuntu-install-google-earth.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/10/8899327.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Google也要谢幕了么？</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" 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><ul class="related_post"><li><a href="http://www.openboy.net/windows-xp-install-ipv6.html" title="Windows Xp安装ipv6 + Ubuntu/linux安装ipv6">Windows Xp安装ipv6 + Ubuntu/linux安装ipv6</a></li><li><a href="http://www.openboy.net/ubuntu-chinese-flash-garbled.html" title="解决Ubuntu下中文flash乱码问题">解决Ubuntu下中文flash乱码问题</a></li><li><a href="http://www.openboy.net/vps-install-lnmp-for-putty-ssh.html" title="vps安装lnmp一些问题以及putty管理vps">vps安装lnmp一些问题以及putty管理vps</a></li><li><a href="http://www.openboy.net/pidgin-msn-error.html" title="linux/ubuntu下pidgin无法登录msn">linux/ubuntu下pidgin无法登录msn</a></li><li><a href="http://www.openboy.net/optimization-ubuntu-cpu-test-gnome-shell.html" title="提速ubuntu&#038;试了下gnome-shell">提速ubuntu&#038;试了下gnome-shell</a></li><li><a href="http://www.openboy.net/set-sudo-timeout.html" title="如何修改sudo命令输入密码的时间">如何修改sudo命令输入密码的时间</a></li><li><a href="http://www.openboy.net/upgrade-ubuntu-for-alternate-iso.html" title="用iso镜像升级ubuntu">用iso镜像升级ubuntu</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.openboy.net/ubuntu-install-google-earth.html/feed</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>解决Ubuntu下中文flash乱码问题</title>
		<link>http://www.openboy.net/ubuntu-chinese-flash-garbled.html</link>
		<comments>http://www.openboy.net/ubuntu-chinese-flash-garbled.html#comments</comments>
		<pubDate>Fri, 08 May 2009 13:27:10 +0000</pubDate>
		<dc:creator>@openboy</dc:creator>
				<category><![CDATA[linux]]></category>
		<category><![CDATA[flash]]></category>
		<category><![CDATA[ubuntu]]></category>
		<category><![CDATA[乱码]]></category>

		<guid isPermaLink="false">http://www.openboy.net/?p=382</guid>
		<description><![CDATA[刚刚使用了Ubuntu，却觉得这个操作系统在很多方面值得我们去研究,去用，也许刚开始有点不习惯,其实windows也是从开始慢慢习惯过来的. 每次用ubuntu下的firefox打开网页都正常，只是有时乱码，后来才发现都局限在flash乱码,开始也想是不是编码问题？如果编码错了，那会整个页面都错误,所以在网上查了好久,找到了这个解决办法.记录下. 1.首先,打开终端.输入 sudo -i 切换到root. 2.在输入 cd /etc/fonts/conf.d/ 3.之后你可以备份一下字体配置： sudo cp 49-sansserif.conf 49-sansserif.conf_backup 也可以跳过。 4.这步必须是root权限： sudo gedit ./49-sansserif.conf 5.下面你会在那个文件中看到类似这样的文档： &#60; ?xml version=&#34;1.0&#34;?&#62; &#60; !DOCTYPE fontconfig SYSTEM &#34;fonts.dtd&#34;&#62; &#60;fontconfig&#62; &#60;!-- If the font still has no generic name, add sans-serif --&#62; &#60;match target=&#34;pattern&#34;&#62; &#60;test qual=&#34;all&#34; name=&#34;family&#34; compare=&#34;not_eq&#34;&#62; &#60;string&#62;sans-serif&#60;/string&#62; &#60;/test&#62; &#60;test qual=&#34;all&#34; name=&#34;family&#34; compare=&#34;not_eq&#34;&#62; &#60;string&#62;serif&#60;/string&#62; &#60;/test&#62; [...]<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="ubuntu下安装google earth以及解决中文乱码" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Fubuntu-install-google-earth.html&from=http%3A%2F%2Fwww.openboy.net%2Fubuntu-chinese-flash-garbled.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/10/8903532.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">ubuntu下安装google earth以及解决中文乱码</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="用iso镜像升级ubuntu" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Fupgrade-ubuntu-for-alternate-iso.html&from=http%3A%2F%2Fwww.openboy.net%2Fubuntu-chinese-flash-garbled.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/11/8929369.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">用iso镜像升级ubuntu</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Ubuntu系统优化" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Fubuntu-linux-system-optimization.html&from=http%3A%2F%2Fwww.openboy.net%2Fubuntu-chinese-flash-garbled.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/10/8899467.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Ubuntu系统优化</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="收到了国外邮寄来的Ubuntu光盘" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Freceived-foreign-post-ubuntu-cd.html&from=http%3A%2F%2Fwww.openboy.net%2Fubuntu-chinese-flash-garbled.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/10/8899262.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">收到了国外邮寄来的Ubuntu光盘</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="提速ubuntu&amp;试了下gnome-shell" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Foptimization-ubuntu-cpu-test-gnome-shell.html&from=http%3A%2F%2Fwww.openboy.net%2Fubuntu-chinese-flash-garbled.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/10/8899841.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">提速ubuntu&amp;试了下gnome-shell</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" 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>            刚刚使用了Ubuntu，却觉得这个操作系统在很多方面值得我们去研究,去用，也许刚开始有点不习惯,其实windows也是从开始慢慢习惯过来的.<br />
每次用ubuntu下的firefox打开网页都正常，只是有时乱码，后来才发现都局限在flash乱码,开始也想是不是编码问题？如果编码错了，那会整个页面都错误,所以在网上查了好久,找到了这个解决办法.记录下.<span id="more-382"></span></p>
<p>1.首先,打开终端.输入
<pre>sudo -i</pre>
<p>切换到root.<br />
2.在输入
<pre>cd /etc/fonts/conf.d/</pre>
<p>3.之后你可以备份一下字体配置：
<pre>sudo cp 49-sansserif.conf 49-sansserif.conf_backup
</pre>
<p>也可以跳过。<br />
4.这步必须是root权限：
<pre>sudo gedit ./49-sansserif.conf</pre>
<p>5.下面你会在那个文件中看到类似这样的文档：</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;">&lt; ?xml <span style="color: #000066;">version</span>=<span style="color: #ff0000;">&quot;1.0&quot;</span><span style="color: #000000; font-weight: bold;">?&gt;</span></span>
<span style="color: #009900;">&lt; !DOCTYPE fontconfig SYSTEM <span style="color: #ff0000;">&quot;fonts.dtd&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;fontconfig<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #808080; font-style: italic;">&lt;!--</span>
<span style="color: #808080; font-style: italic;">If the font still has no generic name, add sans-serif</span>
<span style="color: #808080; font-style: italic;">--&gt;</span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;match</span> <span style="color: #000066;">target</span>=<span style="color: #ff0000;">&quot;pattern&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;test</span> <span style="color: #000066;">qual</span>=<span style="color: #ff0000;">&quot;all&quot;</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;family&quot;</span> <span style="color: #000066;">compare</span>=<span style="color: #ff0000;">&quot;not_eq&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;string<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>sans-serif<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/string<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/test<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;test</span> <span style="color: #000066;">qual</span>=<span style="color: #ff0000;">&quot;all&quot;</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;family&quot;</span> <span style="color: #000066;">compare</span>=<span style="color: #ff0000;">&quot;not_eq&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;string<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>serif<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/string<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/test<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;test</span> <span style="color: #000066;">qual</span>=<span style="color: #ff0000;">&quot;all&quot;</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;family&quot;</span> <span style="color: #000066;">compare</span>=<span style="color: #ff0000;">&quot;not_eq&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;string<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>monospace<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/string<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/test<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;edit</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;family&quot;</span> <span style="color: #000066;">mode</span>=<span style="color: #ff0000;">&quot;append_last&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;string<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>sans-serif<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/string<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/edit<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/match<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/fontconfig<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></div></div>

<p>将其中的第1、2、4个<string>后面的sans-serif或者serif用你自己系统中支持中文的字体的名字代替，注意字体名字的大小写<br />
比如：我的系统中安装了wqy-zenhei.ttf，我则用wqy-zenhei代替上述所说的字段<br />
<strong>注意：一般都修改成wqy-zenhei就可以！</strong></p>
<p>修改完后文件：</p>

<div class="wp_syntax"><div class="code"><pre class="xml" style="font-family:monospace;"><span style="color: #009900;">&lt; ?xml <span style="color: #000066;">version</span>=<span style="color: #ff0000;">&quot;1.0&quot;</span><span style="color: #000000; font-weight: bold;">?&gt;</span></span>
<span style="color: #009900;">&lt; !DOCTYPE fontconfig SYSTEM <span style="color: #ff0000;">&quot;fonts.dtd&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;fontconfig<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #808080; font-style: italic;">&lt;!--</span>
<span style="color: #808080; font-style: italic;">If the font still has no generic name, add sans-serif</span>
<span style="color: #808080; font-style: italic;">--&gt;</span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;match</span> <span style="color: #000066;">target</span>=<span style="color: #ff0000;">&quot;pattern&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;test</span> <span style="color: #000066;">qual</span>=<span style="color: #ff0000;">&quot;all&quot;</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;family&quot;</span> <span style="color: #000066;">compare</span>=<span style="color: #ff0000;">&quot;not_eq&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;string<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>wqy-zenhei<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/string<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/test<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;test</span> <span style="color: #000066;">qual</span>=<span style="color: #ff0000;">&quot;all&quot;</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;family&quot;</span> <span style="color: #000066;">compare</span>=<span style="color: #ff0000;">&quot;not_eq&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;string<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>wqy-zenhei<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/string<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/test<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;test</span> <span style="color: #000066;">qual</span>=<span style="color: #ff0000;">&quot;all&quot;</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;family&quot;</span> <span style="color: #000066;">compare</span>=<span style="color: #ff0000;">&quot;not_eq&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;string<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>monospace<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/string<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/test<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;edit</span> <span style="color: #000066;">name</span>=<span style="color: #ff0000;">&quot;family&quot;</span> <span style="color: #000066;">mode</span>=<span style="color: #ff0000;">&quot;append_last&quot;</span><span style="color: #000000; font-weight: bold;">&gt;</span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;string<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>wqy-zenhei<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/string<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/edit<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/match<span style="color: #000000; font-weight: bold;">&gt;</span></span></span>
<span style="color: #009900;"><span style="color: #000000; font-weight: bold;">&lt;/fontconfig<span style="color: #000000; font-weight: bold;">&gt;</span></span></span></pre></div></div>

<p>这只是一个笔记&#8230;嘿嘿.<br />
最后送一张Ubuntu的桌面壁纸&#8230;<br />
<a href="http://farm4.static.flickr.com/3303/3512204919_e83a63c838_o.jpg"><img alt="" src="http://farm4.static.flickr.com/3303/3512204919_e83a63c838_o.jpg" title="ubuntu壁纸" class="alignnone" width="800" height="600" /></a><br />
</string></p>
<table class="wumii-related-items" cellspacing="0" cellpadding="3" border="0"  style="clear: both;">
    
    <tr>
        <td colspan="5"><b><font size="-1"  style="display: block !important; padding: 20px 0 5px !important;">您可能也喜欢：</font></b></td>
    </tr>
    
        <tr>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important;">
                    <a target="_blank" title="ubuntu下安装google earth以及解决中文乱码" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Fubuntu-install-google-earth.html&from=http%3A%2F%2Fwww.openboy.net%2Fubuntu-chinese-flash-garbled.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/10/8903532.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">ubuntu下安装google earth以及解决中文乱码</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="用iso镜像升级ubuntu" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Fupgrade-ubuntu-for-alternate-iso.html&from=http%3A%2F%2Fwww.openboy.net%2Fubuntu-chinese-flash-garbled.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/11/8929369.png" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">用iso镜像升级ubuntu</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="Ubuntu系统优化" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Fubuntu-linux-system-optimization.html&from=http%3A%2F%2Fwww.openboy.net%2Fubuntu-chinese-flash-garbled.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/10/8899467.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">Ubuntu系统优化</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="收到了国外邮寄来的Ubuntu光盘" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Freceived-foreign-post-ubuntu-cd.html&from=http%3A%2F%2Fwww.openboy.net%2Fubuntu-chinese-flash-garbled.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/10/8899262.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">收到了国外邮寄来的Ubuntu光盘</font>
                    </a>
                </td>
                <td width="102" valign="top" style="padding: 5px !important; margin: 0 !important; border-left: 1px solid #DDDDDD !important;">
                    <a target="_blank" title="提速ubuntu&amp;试了下gnome-shell" style="text-decoration: none !important; cursor: pointer !important;" href="http://app.wumii.com/ext/redirect.htm?url=http%3A%2F%2Fwww.openboy.net%2Foptimization-ubuntu-cpu-test-gnome-shell.html&from=http%3A%2F%2Fwww.openboy.net%2Fubuntu-chinese-flash-garbled.html">
                        <img style="margin: 0 !important; padding: 2px !important; border: 1px solid #DDDDDD !important; width: 96px !important; height: 96px !important;" src="http://static.wumii.com/site_images/2011/10/10/8899841.jpg" width="96px" height="96px" /><br />
                        <font size="-1" color="#333333" style="display: block !important; line-height: 15px !important; width: 102px !important; font: 12px/15px arial !important; height: 60px !important; margin: 3px 0 0 0 !important; padding: 0 !important; overflow: hidden !important;">提速ubuntu&amp;试了下gnome-shell</font>
                    </a>
                </td>
        </tr>
    
    <tr>
        <td colspan="5" align="right">
            <a style="text-decoration: none !important;" href="http://www.wumii.com/widget/relatedItems.htm" 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><ul class="related_post"><li><a href="http://www.openboy.net/ubuntu-install-google-earth.html" title="ubuntu下安装google earth以及解决中文乱码">ubuntu下安装google earth以及解决中文乱码</a></li><li><a href="http://www.openboy.net/vps-install-lnmp-for-putty-ssh.html" title="vps安装lnmp一些问题以及putty管理vps">vps安装lnmp一些问题以及putty管理vps</a></li><li><a href="http://www.openboy.net/pidgin-msn-error.html" title="linux/ubuntu下pidgin无法登录msn">linux/ubuntu下pidgin无法登录msn</a></li><li><a href="http://www.openboy.net/optimization-ubuntu-cpu-test-gnome-shell.html" title="提速ubuntu&#038;试了下gnome-shell">提速ubuntu&#038;试了下gnome-shell</a></li><li><a href="http://www.openboy.net/set-sudo-timeout.html" title="如何修改sudo命令输入密码的时间">如何修改sudo命令输入密码的时间</a></li><li><a href="http://www.openboy.net/upgrade-ubuntu-for-alternate-iso.html" title="用iso镜像升级ubuntu">用iso镜像升级ubuntu</a></li><li><a href="http://www.openboy.net/ubuntu-windows-date-error.html" title="Ubuntu和windows的时间日期不对的解决方法">Ubuntu和windows的时间日期不对的解决方法</a></li></ul>]]></content:encoded>
			<wfw:commentRss>http://www.openboy.net/ubuntu-chinese-flash-garbled.html/feed</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
	</channel>
</rss>

