﻿<?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++博客-eamon100-随笔分类-Linux系统</title><link>http://www.cppblog.com/eamon100/category/17600.html</link><description /><language>zh-cn</language><lastBuildDate>Sun, 06 May 2018 06:05:34 GMT</lastBuildDate><pubDate>Sun, 06 May 2018 06:05:34 GMT</pubDate><ttl>60</ttl><item><title>树莓派3上安装使用centos 7.4</title><link>http://www.cppblog.com/eamon100/archive/2018/03/11/pi3.html</link><dc:creator>eamon</dc:creator><author>eamon</author><pubDate>Sun, 11 Mar 2018 07:09:00 GMT</pubDate><guid>http://www.cppblog.com/eamon100/archive/2018/03/11/pi3.html</guid><wfw:comment>http://www.cppblog.com/eamon100/comments/215552.html</wfw:comment><comments>http://www.cppblog.com/eamon100/archive/2018/03/11/pi3.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/eamon100/comments/commentRss/215552.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/eamon100/services/trackbacks/215552.html</trackback:ping><description><![CDATA[<h3><span style="font-family:宋体;">一、系统安装</span></h3>
<p><span style="font-family:宋体;">目前centos官方只有32位的版本，64位还没有推出，下载地址：</span></p>
<p><span style="font-family:宋体;">http://mirror.centos.org/altarch/7/isos/armhfp/</span></p>
<p>&nbsp;<img src="http://www.cppblog.com/images/cppblog_com/eamon100/21352/o_image001.png" width="848" height="414" align="absMiddle" alt="" /></p>
<p> </p>
<p><span style="font-family:宋体;">最新版本为CentOS Linux release 7.4.1708 (Core)。选择Pi3的版本，压缩包格式为XZ，下载后使用7-Zip解压。解压后为一个3GB 的img格式的映像文件，使用USB Image Tool软件，将文件写入TF卡中，至少为4GB。</span></p>
<p> </p>
<p><span style="font-family:宋体;">打开软件后点击Restore，选择映像文件。<br /><br /><img src="http://www.cppblog.com/images/cppblog_com/eamon100/21352/o_image002.png" width="855" height="603" alt="" /></span></p>
<p><span style="font-family:宋体;">用tf卡启动机器，默认的root密码为centos。</span></p>
<h3><span style="font-family:宋体;">二、系统配置</span></h3>
<p><span style="font-family:宋体;">执行#/usr/bin/rootfs-expand，使用系统可以使用整个卡的空间。</span></p>
<p><span style="font-family:宋体;">关闭防火墙和selinux:</span></p>
<p><span style="font-family:宋体;">#systemctl disable firewalld</span></p>
<p><span style="font-family:宋体;">#vi /etc/selinux/config</span></p>
<p><span style="font-family:宋体;">SELINUX=disabled</span></p>
<p><span style="font-family:宋体;">修改主机名:</span></p>
<p><span style="font-family:宋体;">#vi /etc/hostname </span></p>
<p>&nbsp;</p>
<p><span style="font-family:宋体;">创建缺失文件，使network服务正常启动:</span></p>
<p><span style="font-family:宋体;">#touch /etc/sysconfig/network</span></p>
<p><span style="font-family:宋体;">配置网卡地址，有线和无线网卡:</span></p>
<p><span style="font-family:宋体;">#cat ifcfg-eth0</span></p>
<p><span style="font-family:宋体;">TYPE=Ethernet</span></p>
<p><span style="font-family:宋体;">PROXY_METHOD=none</span></p>
<p><span style="font-family:宋体;">BROWSER_ONLY=no</span></p>
<p><span style="font-family:宋体;">DEFROUTE=yes</span></p>
<p><span style="font-family:宋体;">IPV4_FAILURE_FATAL=no</span></p>
<p><span style="font-family:宋体;">NAME=eth0</span></p>
<p><span style="font-family:宋体;">DEVICE=eth0</span></p>
<p><span style="font-family:宋体;">ONBOOT=yes</span></p>
<p><span style="font-family:宋体;">BOOTPROTO=static</span></p>
<p><span style="font-family:宋体;">IPADDR=192.168.4.2</span></p>
<p><span style="font-family:宋体;">GATEWAY=192.168.4.1</span></p>
<p><span style="font-family:宋体;">NETMASK=255.255.255.0</span></p>
<p>&nbsp;</p>
<p><span style="font-family:宋体;">#vi ifcfg-wlan0</span></p>
<p><span style="font-family:宋体;">DEVICE=wlan0</span></p>
<p><span style="font-family:宋体;">NAME=wlan0</span></p>
<p><span style="font-family:宋体;">TYPE=Ethernet</span></p>
<p><span style="font-family:宋体;">ONBOOT=yes</span></p>
<p><span style="font-family:宋体;">NM_CONTROLLED=no</span></p>
<p><span style="font-family:宋体;">BOOTPROTO=static</span></p>
<p><span style="font-family:宋体;">IPADDR=192.168.5.1</span></p>
<p><span style="font-family:宋体;">NETMASK=255.255.255.0</span></p>
<p>&nbsp;</p>
<p><span style="font-family:宋体;">配置DNS服务器地址:</span></p>
<p><span style="font-family:宋体;">[root@rpi3 etc]# cat&nbsp; resolv.conf </span></p>
<p><span style="font-family:宋体;"># Generated by NetworkManager</span></p>
<p><span style="font-family:宋体;">nameserver 192.168.4.1</span></p>
<p>&nbsp;</p>
<p><span style="font-family:宋体;">设置地区和时区，时间同步:</span></p>
<p><span style="font-family:宋体;">[root@rpi3 etc]#localectl set-locale LANG=zh_CN.UTF-8</span></p>
<p><span style="font-family:宋体;">[root@rpi3 etc]#ln -sf /usr/share/zoneinfo/Asia/Shanghai /etc/localtime</span></p>
<p>&nbsp;</p>
<p><span style="font-family:宋体;">systemctl disable NetworkManager</span></p>
<p><span style="font-family:宋体;">systemctl disable kdump&nbsp;&nbsp; </span><span style="font-family:宋体;">当前内核不支持</span></p>
<p><span style="font-family:宋体;">#yum update</span></p>
<p><span style="font-family:宋体;">#reboot</span></p>
<h3><span style="font-family:宋体;">三、配置网络打印机</span></h3>
<p><span style="font-family:宋体;">安装cups软件，共享打印机：</span></p>
<p><span style="font-family:宋体;">#yum install cups</span></p>
<p><span style="font-family:宋体;">发现https无法访问，则需要安装openssl。</span></p>
<p><span style="font-family:宋体;">#yum install openssl</span></p>
<p>&nbsp;</p>
<p><span style="font-family:宋体;">修改配置文件：</span></p>
<p><span style="font-family:宋体;">vi /etc/cups/cupsd.conf</span></p>
<p><span style="font-family:宋体;">#Listen localhost:631</span></p>
<p><span style="font-family:宋体;">Port 631</span></p>
<p>&nbsp;</p>
<p><span style="font-family:宋体;">在/,/admin和/admin/conf下添加：</span></p>
<p><span style="font-family:宋体;">Allow From 192.168.4.0/24 </span><span style="font-family:宋体;">或</span></p>
<p><span style="font-family:宋体;">Allow all</span></p>
<p>&nbsp;</p>
<p><span style="font-family:宋体;">用浏览器打开进行配置：https://192.168.4.2:631/admin</span></p>
<p><span style="font-family:宋体;">选中共享打印机和Internet打印。</span></p>
<p> </p>
<p>&nbsp;<br /><img src="http://www.cppblog.com/images/cppblog_com/eamon100/21352/o_image003.png" width="592" height="358" alt="" /></p>
<p> </p>
<p><span style="font-family:宋体;"><img src="http://www.cppblog.com/images/cppblog_com/eamon100/21352/o_image004.png" width="1144" height="473" alt="" /><br />输入root用户名和密码，<br /><br /><img src="http://www.cppblog.com/images/cppblog_com/eamon100/21352/o_image005.png" width="676" height="308" alt="" /></span></p>
<p> </p>
<p><span style="font-family:宋体;">继续，<br /><br /><img src="http://www.cppblog.com/images/cppblog_com/eamon100/21352/o_image006.png" width="642" height="312" alt="" /></span></p>
<p> </p>
<p><span style="font-family:宋体;">继续，由于仅仅通过网络进行打印，Make选择Raw，客户端需要自行安装打印机的驱动程序。<br /><br /><img src="http://www.cppblog.com/images/cppblog_com/eamon100/21352/o_image007.png" width="731" height="460" alt="" /></span></p>
<p> </p>
<p><span style="font-family:宋体;">点击&#8220;Add Printer&#8221;，下一页会提供默认选项，这个不需设置：<br /><br /><img src="http://www.cppblog.com/images/cppblog_com/eamon100/21352/o_image008.png" width="833" height="313" alt="" /></span></p>
<p> </p>
<p><span style="font-family:宋体;">打印机配置文件，存放在/etc/cups/printers.conf 中，可备份。</span></p>
<p>&nbsp;</p>
<p><span style="font-family:宋体;">可以在Windows客户端使用</span></p>
<p><span style="font-family:宋体;">http://192.168.4.2:631/printers/EPSON_L310_Series</span></p>
<p><span style="font-family:宋体;">添加网络打印机。</span></p>
<h3><span style="font-family:宋体;">四、配置</span><span style="font-family:宋体;">随身WIFI:</span></h3>
<p><span style="font-family:宋体;">#yum install hostapd-2.5-5.fc25.armv7hl.rpm</span></p>
<p><span style="font-family:宋体;">#yum install dnsmasq</span></p>
<p>&nbsp;</p>
<p><span style="font-family:宋体;">然后在/etc/dnsmasq.conf末加入（自己修改IP和网段，这个文件是已存在的，很详细的配置文件，但是所有行都加入了#号注释掉）</span></p>
<p><span style="font-family:宋体;">interface=wlan0</span></p>
<p><span style="font-family:宋体;">dhcp-range=192.168.5.50,192.168.5.150,12h</span></p>
<p>&nbsp;</p>
<p><span style="font-family:宋体;">修改hostapd配置：</span></p>
<p><span style="font-family:宋体;">#cd /etc/hostapd</span></p>
<p><span style="font-family:宋体;">#mv hostapd.conf hostapd.conf.bak</span></p>
<p><span style="font-family:宋体;">#cp /usr/share/doc/hostapd/hostapd.conf ./</span></p>
<p>&nbsp;</p>
<p><span style="font-family:宋体;">#vi hostapd.conf</span></p>
<p>&nbsp;</p>
<p><span style="font-family:宋体;">driver=nl80211</span></p>
<p><span style="font-family:宋体;">ssid=rpi3-ap</span></p>
<p><span style="font-family:宋体;">channel=11</span></p>
<p><span style="font-family:宋体;">auth_algs=1</span></p>
<p><span style="font-family:宋体;">wpa=2</span></p>
<p><span style="font-family:宋体;">wpa_passphrase=wifi_mimaXXXX</span></p>
<p><span style="font-family:宋体;">wpa_key_mgmt=WPA-PSK</span></p>
<p><span style="font-family:宋体;">rsn_pairwise=CCMP</span></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><span style="font-family:宋体;">开启IP包转发：</span></p>
<p><span style="font-family:宋体;">#cat /proc/sys/net/ipv4/ip_forward</span></p>
<p><span style="font-family:宋体;">#echo "net.ipv4.ip_forward = 1" &gt;&gt;/usr/lib/sysctl.d/50-default.conf</span></p>
<p><span style="font-family:宋体;"># sysctl -p &nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;###</span><span style="font-family: 宋体;">如不生效重启一下OS</span></p>
<p>&nbsp;</p>
<p><span style="font-family:宋体;">开启内核防火墙转发：</span></p>
<p><span style="font-family:宋体;">yum install iptables-services</span></p>
<p><span style="font-family:宋体;">systemctl enable iptables</span></p>
<p>&nbsp;</p>
<p><span style="font-family:宋体;">iptables -t nat -A POSTROUTING -o eth0 -j MASQUERADE</span></p>
<p><span style="font-family:宋体;">iptables -A FORWARD -i eth0 -o wlan0 -m state --state RELATED,ESTABLISHED -j ACCEPT</span></p>
<p><span style="font-family:宋体;">iptables -A FORWARD -i wlan0 -o eth0 -j ACCEPT</span></p>
<p>&nbsp;</p>
<p><span style="font-family:宋体;">iptables-save &gt; /etc/sysconfig/iptables</span></p>
<p>&nbsp;</p>
<p><span style="font-family:宋体;">systemctl start iptables</span></p>
<p><span style="font-family:宋体;">iptables --list</span></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><span style="font-family:宋体;">开启服务：</span></p>
<p><span style="font-family:宋体;">systemctl enable hostapd</span></p>
<p><span style="font-family:宋体;">systemctl enable dnsmasq</span></p>
<p><span style="font-family:宋体;">reboot</span></p>
<h3><span style="font-family:宋体;">五、配置ftp，samba</span></h3>
<p><span style="font-family:宋体;">#yum install samba</span></p>
<p>&nbsp;</p>
<p><span style="font-family:宋体;">vi /etc/security/limits.conf</span></p>
<p><span style="font-family:宋体;">添加行：&nbsp; *&nbsp;&nbsp; -&nbsp;&nbsp; nofile 16384</span></p>
<p>&nbsp;</p>
<p><span style="font-family:宋体;">cd /etc/samba</span></p>
<p><span style="font-family:宋体;">cp -a smb.conf smb.conf.bak</span></p>
<p><span style="font-family:宋体;">cat smb.conf.example | grep -v '^#' | grep -v '^$' &gt; smb.conf</span></p>
<p>&nbsp;</p>
<p><span style="font-family:宋体;">vi smb.conf</span></p>
<p><span style="font-family:宋体;">printcap name = /etc/printcap</span></p>
<p><span style="font-family:宋体;">虚拟用户配置：</span></p>
<p>&nbsp;</p>
<p style="margin:0cm;margin-bottom:.0001pt;text-align:justify;text-justify: inter-ideograph;background:white"><span style="font-size:8.5pt;font-family: &quot;微软雅黑&quot;,&quot;sans-serif&quot;;color:#333333">在全局下写入username map = /etc/samba/usermap这条参数</span></p>
<p><span style="font-family:宋体;">echo 'root = administrator&nbsp; admin' &gt;&gt; usermap</span></p>
<p>&nbsp;</p>
<p><span style="font-family:宋体;">[share]</span></p>
<p><span style="font-family:宋体;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; comment = Share Directories</span></p>
<p><span style="font-family:宋体;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; path = /mnt/share</span></p>
<p><span style="font-family:宋体;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; public = no</span></p>
<p><span style="font-family:宋体;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; writable = yes</span></p>
<p><span style="font-family:宋体;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; valid users = root</span></p>
<p>&nbsp;</p>
<p><span style="font-family:宋体;">#&nbsp;smbpasswd -a root&nbsp; </span><span style="font-family:宋体;">设置密码即可从windows访问共享。</span></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><span style="font-family:宋体;">配置vs-ftp</span></p>
<p><span style="font-family:宋体;">yum install vsftpd</span></p>
<p>&nbsp;</p>
<p><span style="font-family:宋体;">创建虚拟用户:</span></p>
<p><span style="font-family:宋体;">[root@rpi3 vsftpd]# cat v_ftpuser.txt </span></p>
<p><span style="font-family:宋体;">ftpuser</span></p>
<p><span style="font-family:宋体;">123456</span></p>
<p><span style="font-family:宋体;">#db_load -T -t hash -f /etc/vsftpd/v_ftpuser.txt v_ftpuser.db</span></p>
<p><span style="font-family:宋体;">chmod 700 v_ftpuser.db</span></p>
<p>&nbsp;</p>
<p><span style="font-family:宋体;">配置PAM认证文件，/etc/pam.d/vsftpd行首加入如下两行<strong><span style="background:yellow;">(</span><span style="background:yellow;">注释其他行)</span></strong><span style="background:yellow;">：</span></span></p>
<p><span style="font-family:宋体;">auth&nbsp; &nbsp; &nbsp; required&nbsp; &nbsp; &nbsp; &nbsp; pam_userdb.so&nbsp; db=/etc/vsftpd/v_ftpuser</span></p>
<p><span style="font-family:宋体;">account&nbsp; required&nbsp; &nbsp; &nbsp; &nbsp; pam_userdb.so&nbsp; db=/etc/vsftpd/v_ftpuser</span></p>
<p>&nbsp;</p>
<p><span style="font-family:宋体;">创建虚拟用户的权限和根目录:</span></p>
<p><span style="font-family:宋体;">#mkdir v_user_conf</span></p>
<p><span style="font-family:宋体;">#cd v_user_conf</span></p>
<p><span style="font-family:宋体;">[root@rpi3 v_user_conf]# cat ftpuser </span></p>
<p><span style="font-family:宋体;">local_root=/mnt/share</span></p>
<p><span style="font-family:宋体;">write_enable=YES</span></p>
<p><span style="font-family:宋体;">anon_world_readable_only=YES</span></p>
<p><span style="font-family:宋体;">anon_upload_enable=YES</span></p>
<p><span style="font-family:宋体;">anon_mkdir_write_enable=YES</span></p>
<p><span style="font-family:宋体;">anon_other_write_enable=YES</span></p>
<p>&nbsp;</p>
<p><span style="font-family:宋体;">修改vsftp配置文件:</span></p>
<p><span style="font-family:宋体;">[root@rpi3 vsftpd]# cat vsftpd.conf | grep -v '#'</span></p>
<p><span style="font-family:宋体;">anonymous_enable=NO</span></p>
<p><span style="font-family:宋体;">local_enable=YES</span></p>
<p><span style="font-family:宋体;">write_enable=YES</span></p>
<p><span style="font-family:宋体;">local_umask=022</span></p>
<p><span style="font-family:宋体;">dirmessage_enable=YES</span></p>
<p><span style="font-family:宋体;">xferlog_enable=YES</span></p>
<p><span style="font-family:宋体;">connect_from_port_20=YES</span></p>
<p><span style="font-family:宋体;">xferlog_std_format=YES</span></p>
<p><span style="font-family:宋体;">ftpd_banner=Welcome to blah FTP service.</span></p>
<p><span style="font-family:宋体;">chroot_local_user=YES</span></p>
<p><span style="font-family:宋体;">allow_writeable_chroot=YES</span></p>
<p>&nbsp;</p>
<p><span style="font-family:宋体;">listen=YES</span></p>
<p><span style="font-family:宋体;">listen_ipv6=NO</span></p>
<p>&nbsp;</p>
<p><span style="font-family:宋体;">pam_service_name=vsftpd</span></p>
<p><span style="font-family:宋体;">userlist_enable=NO</span></p>
<p><span style="font-family:宋体;">userlist_file=/etc/vsftpd/user_list</span></p>
<p><span style="font-family:宋体;">tcp_wrappers=YES</span></p>
<p><span style="font-family:宋体;">guest_enable=YES</span></p>
<p><span style="font-family:宋体;">guest_username=root</span></p>
<p><span style="font-family:宋体;">user_config_dir=/etc/vsftpd/v_user_conf</span></p>
<p><span style="font-family:宋体;">virtual_use_local_privs=YES</span></p>
<p>&nbsp;</p>
<p><span style="font-family:宋体;">pasv_enable=YES</span></p>
<p><span style="font-family:宋体;">pasv_min_port=60000</span></p>
<p><span style="font-family:宋体;">pasv_max_port=60100</span></p>
<p><span style="font-family:宋体;">其他文件:</span></p>
<p><span style="font-family:宋体;">[root@rpi3 vsftpd]# cat ftpusers </span></p>
<p><span style="font-family:宋体;"># Users that are not allowed to login via ftp</span></p>
<p><span style="font-family:宋体;">#root</span></p>
<p><span style="font-family:宋体;">bin</span></p>
<p><span style="font-family:宋体;">daemon</span></p>
<p><span style="font-family:宋体;">adm</span></p>
<p><span style="font-family:宋体;">lp</span></p>
<p><span style="font-family:宋体;">sync</span></p>
<p><span style="font-family:宋体;">shutdown</span></p>
<p><span style="font-family:宋体;">halt</span></p>
<p><span style="font-family:宋体;">mail</span></p>
<p><span style="font-family:宋体;">news</span></p>
<p><span style="font-family:宋体;">uucp</span></p>
<p><span style="font-family:宋体;">operator</span></p>
<p><span style="font-family:宋体;">games</span></p>
<p><span style="font-family:宋体;">nobody</span></p>
<p>&nbsp;</p>
<p><span style="font-family:宋体;">[root@rpi3 vsftpd]# cat user_list </span></p>
<p><span style="font-family:宋体;"># vsftpd userlist</span></p>
<p><span style="font-family:宋体;"># If userlist_deny=NO, only allow users in this file</span></p>
<p><span style="font-family:宋体;"># If userlist_deny=YES (default), never allow users in this file, and</span></p>
<p><span style="font-family:宋体;"># do not even prompt for a password.</span></p>
<p><span style="font-family:宋体;"># Note that the default vsftpd pam config also checks /etc/vsftpd/ftpusers</span></p>
<p><span style="font-family:宋体;"># for users that are denied.</span></p>
<p><span style="font-family:宋体;">root</span></p>
<p><span style="font-family:宋体;">#bin</span></p>
<p><span style="font-family:宋体;">#daemon</span></p>
<p><span style="font-family:宋体;">#adm</span></p>
<p><span style="font-family:宋体;">#lp</span></p>
<p><span style="font-family:宋体;">#sync</span></p>
<p><span style="font-family:宋体;">#shutdown</span></p>
<p><span style="font-family:宋体;">#halt</span></p>
<p><span style="font-family:宋体;">#mail</span></p>
<p><span style="font-family:宋体;">#news</span></p>
<p><span style="font-family:宋体;">#uucp</span></p>
<p><span style="font-family:宋体;">#operator</span></p>
<p><span style="font-family:宋体;">#games</span></p>
<p><span style="font-family:宋体;">#nobody</span></p>
<h3><span style="font-family:宋体;">六、配置Nginx和PHP</span></h3>
<p><span style="font-family:宋体;">安装nginx:</span></p>
<p><span style="font-family:宋体;">#yum install nginx-1.10.1-1.fc25.armv7hl.rpm nginx-filesystem-1.10.1-1.fc25.noarch.rpm nginx-mimetypes-2.1.47-1.fc25.noarch.rpm</span></p>
<p><span style="font-family:宋体;">#systemctl enable nginx</span></p>
<p><span style="font-family:宋体;">#systemctl start nginx</span></p>
<p>&nbsp;</p>
<p><span style="font-family:宋体;">#cd /etc/nginx</span></p>
<p><span style="font-family:宋体;">#cp -a nginx.conf nginx.conf.bak</span></p>
<p><span style="font-family:宋体;">#vi nginx.conf</span></p>
<p><span style="font-family:宋体;">location ~ \.php$ {</span></p>
<p><span style="font-family:宋体;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; root&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; /usr/share/nginx/html;</span></p>
<p><span style="font-family:宋体;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fastcgi_pass&nbsp;&nbsp; 127.0.0.1:9000;</span></p>
<p><span style="font-family:宋体;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fastcgi_index&nbsp; index.php;</span></p>
<p><span style="font-family:宋体;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fastcgi_param&nbsp; SCRIPT_FILENAME&nbsp; $document_root$fastcgi_script_name;</span></p>
<p><span style="font-family:宋体;">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; include&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; fastcgi_params;</span></p>
<p><span style="font-family:宋体;">&nbsp;&nbsp;&nbsp; }</span></p>
<p><span style="font-family:宋体;">安装PHP插件:</span></p>
<p><span style="font-family:宋体;">yum install php-fpm php php-mbstring</span></p>
<p><span style="font-family:宋体;">systemctl start php-fpm</span></p>
<p><span style="font-family:宋体;">systemctl enable php-fpm</span></p>
<p><span style="font-family:宋体;">安装MYSQL插件:</span></p>
<p><span style="font-family:宋体;">使用MySQL Native Driver，替代 MySQL (Original) &#8212; Original MySQL API</span></p>
<p><span style="font-family:宋体;">yum &nbsp;remove php-mysql</span></p>
<p><span style="font-family:宋体;">yum&nbsp;&nbsp; install&nbsp; php-mysqlnd </span></p>
<p>&nbsp;</p>
<p><span style="font-family:宋体;">默认的WEB网站目录:</span></p>
<p><span style="font-family:宋体;">/usr/share/nginx/html</span></p>
<p>&nbsp;</p>
<p><span style="font-family:宋体;background:red;">php-fpm </span><span style="font-family:宋体; background:red;">默认采用tcp的协议，对于负载较小的网站，也可以采用unix socket方式，需要修改/etc/php-fpm.d/www.conf,</span></p>
<p><span style="font-family:宋体;background:red;">将listen = 127.0.0.1:9000改为</span></p>
<p><span style="font-family:宋体;background:red;">listen = /var/run/php-fpm.sock</span></p>
<p><span style="font-family:宋体;background:red;">同时，nginx.conf也要讲将</span></p>
<p><span style="font-family:宋体;background:red;">fastcgi_pass&nbsp;&nbsp; 127.0.0.1:9000;&nbsp; </span><span style="font-family:宋体;background:red;">改为：</span></p>
<p><span style="font-family:宋体;background:red;">fastcgi_pass unix:/var/run/php-fpm.sock;</span></p>
<h3><span style="font-family:宋体;">七、配置MariaDB数据库</span></h3>
<p><span style="font-family:宋体;">#yum install mariadb mariadb-server</span></p>
<p><span style="font-family:宋体;">#systemctl enable mariadb</span></p>
<p><span style="font-family:宋体;">#systemctl start mariadb</span></p>
<p><span style="font-family:宋体;">MariaDB</span><span style="font-family: 宋体;">的相关简单配置</span></p>
<p><span style="font-family:宋体;">#mysql_secure_installation</span></p>
<p><span style="font-family:宋体;">首先是设置密码，会提示先输入密码</span></p>
<p><span style="font-family:宋体;">Enter current password for root (enter for none):&lt;&#8211;</span><span style="font-family:宋体;">初次运行直接回车</span></p>
<p><span style="font-family:宋体;">设置密码</span></p>
<p><span style="font-family:宋体;">Set root password? [Y/n]&nbsp;&lt;&#8211; </span><span style="font-family:宋体;">是否设置root用户密码，输入y并回车或直接回车<br />
New password:&nbsp;&lt;&#8211; 设置root用户的密码<br />
Re-enter new password:&nbsp;&lt;&#8211; 再输入一次你设置的密码</span></p>
<p><span style="font-family:宋体;">其他配置回车即可。</span></p>
<p><span style="font-family:宋体;">#mysql -u root -p </span><span style="font-family:宋体;">测试。</span></p>
<p>&nbsp;</p>
<p><span style="font-family:宋体;background:yellow;">直接创建用户并授权的命令</span></p>
<p><span style="font-family:宋体;background:yellow;">mysql&gt;grant all privileges on *.* to username@localhost indentified by 'password';</span></p>
<p>&nbsp;</p>
<p><span style="font-family:宋体;background:yellow;">授予外网登陆权限&nbsp;</span></p>
<p><span style="font-family:宋体;background:yellow;">mysql&gt;grant all privileges on *.* to username@'%' identified by 'password';</span></p>
<p>&nbsp;</p>
<p><span style="font-family:宋体;background:yellow;">授予权限并且可以授权</span></p>
<p><span style="font-family:宋体;background:yellow;">mysql&gt;grant all privileges on *.* to username@'hostname' identified by 'password' with grant option;</span></p>
<p>&nbsp;</p>
<p><span style="font-family:宋体;background:yellow;">create user 'test'@'%' identified by '123456';</span></p>
<pre style="text-align:justify;text-justify:inter-ideograph;background:#FAFAFC">&nbsp;</pre>
<p><span style=" font-family:&quot;Times New Roman&quot;,&quot;serif&quot;">mysql -u root -p </span><span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;;Times New Roman&quot;">登陆</span><span style="font-family:&quot;Times New Roman&quot;,&quot;serif&quot;">root</span><span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;;Times New Roman&quot;">帐号</span><span style="font-family:&quot;Times New Roman&quot;,&quot;serif&quot;">:</span></p>
<p><span style=" font-family:&quot;Times New Roman&quot;,&quot;serif&quot;">create user dbuser@localhost identified by 'db123';</span></p>
<p><span style=" font-family:&quot;Times New Roman&quot;,&quot;serif&quot;">create user dbuser@%&nbsp; identified by 'db123';</span></p>
<p>&nbsp;</p>
<p><span style=" font-family:&quot;Times New Roman&quot;,&quot;serif&quot;">grant all privileges on *.* to dbuser@'%' identified by 'db123';</span></p>
<p><span style=" font-family:&quot;Times New Roman&quot;,&quot;serif&quot;">grant all privileges on *.* to dbuser@localhost identified by 'db123';</span></p>
<p><span style=" font-family:&quot;Times New Roman&quot;,&quot;serif&quot;">show grants for 'dbuser'@'%';</span></p>
<p><span style=" font-family:&quot;Times New Roman&quot;,&quot;serif&quot;">create database mydb;</span></p>
<p><span style=" font-family:&quot;Times New Roman&quot;,&quot;serif&quot;">create table person(id int not null,&nbsp;&nbsp;&nbsp; name varchar(30),&nbsp;&nbsp;&nbsp; constraint pk__person primary key(id));</span></p>
<p><span style=" font-family:&quot;Times New Roman&quot;,&quot;serif&quot;">insert into person values(2,'coco');</span></p>
<p>&nbsp;</p>
<p><span style="font-family:宋体;">测试PHP访问数据库:</span></p>
<p><span style="font-family:宋体;">使用mysqli有面向过程和面向对象两种方式。</span></p>
<p><span style=" font-family:&quot;Times New Roman&quot;,&quot;serif&quot;">[root@rpi3 test]# cat mysqli.php </span></p>
<p><span style=" font-family:&quot;Times New Roman&quot;,&quot;serif&quot;">&lt;?php</span></p>
<p><span style=" font-family:&quot;Times New Roman&quot;,&quot;serif&quot;">$db_host = 'localhost';</span></p>
<p><span style=" font-family:&quot;Times New Roman&quot;,&quot;serif&quot;">$db_name = 'mydb';</span></p>
<p><span style=" font-family:&quot;Times New Roman&quot;,&quot;serif&quot;">$db_user = 'dbuser';</span></p>
<p><span style=" font-family:&quot;Times New Roman&quot;,&quot;serif&quot;">$db_pwd = 'db123';</span></p>
<p>&nbsp;</p>
<p><span style=" font-family:&quot;Times New Roman&quot;,&quot;serif&quot;">//use object style</span></p>
<p><span style=" font-family:&quot;Times New Roman&quot;,&quot;serif&quot;">$mysqli = new mysqli($db_host, $db_user, $db_pwd, $db_name);</span></p>
<p><span style=" font-family:&quot;Times New Roman&quot;,&quot;serif&quot;">if ($mysqli-&gt;connect_errno) {</span></p>
<p><span style=" font-family:&quot;Times New Roman&quot;,&quot;serif&quot;">&nbsp;&nbsp;&nbsp; echo "Sorry, this website is experiencing problems.";</span></p>
<p><span style=" font-family:&quot;Times New Roman&quot;,&quot;serif&quot;">&nbsp;&nbsp;&nbsp; echo "Error: Failed to make a MySQL connection, here is why: \n";</span></p>
<p><span style=" font-family:&quot;Times New Roman&quot;,&quot;serif&quot;">&nbsp;&nbsp;&nbsp; echo "Errno: " . $mysqli-&gt;connect_errno . "\n";</span></p>
<p><span style=" font-family:&quot;Times New Roman&quot;,&quot;serif&quot;">&nbsp;&nbsp;&nbsp; echo "Error: " . $mysqli-&gt;connect_error . "\n";&nbsp;&nbsp;&nbsp; </span></p>
<p><span style=" font-family:&quot;Times New Roman&quot;,&quot;serif&quot;">&nbsp;&nbsp;&nbsp; exit;</span></p>
<p><span style=" font-family:&quot;Times New Roman&quot;,&quot;serif&quot;">}</span></p>
<p><span style=" font-family:&quot;Times New Roman&quot;,&quot;serif&quot;">$mysqli-&gt;set_charset("utf8");</span></p>
<p><span style=" font-family:&quot;Times New Roman&quot;,&quot;serif&quot;">//</span><span style="font-family:宋体;Times New Roman&quot;;Times New Roman&quot;">或者</span><span style="font-family:&quot;Times New Roman&quot;,&quot;serif&quot;"> $mysqli-&gt;query("set names 'utf8'")</span></p>
<p><span style=" font-family:&quot;Times New Roman&quot;,&quot;serif&quot;">// Perform an SQL query</span></p>
<p><span style=" font-family:&quot;Times New Roman&quot;,&quot;serif&quot;">$sql = "SELECT *&nbsp; FROM person";</span></p>
<p><span style=" font-family:&quot;Times New Roman&quot;,&quot;serif&quot;">if (!$result = $mysqli-&gt;query($sql)) {</span></p>
<p><span style=" font-family:&quot;Times New Roman&quot;,&quot;serif&quot;">&nbsp;&nbsp;&nbsp; echo "Sorry, the website is experiencing problems.";&nbsp;&nbsp;&nbsp; </span></p>
<p><span style=" font-family:&quot;Times New Roman&quot;,&quot;serif&quot;">&nbsp;&nbsp;&nbsp; echo "Query: " . $sql . "\n";</span></p>
<p><span style=" font-family:&quot;Times New Roman&quot;,&quot;serif&quot;">&nbsp;&nbsp;&nbsp; echo "Errno: " . $mysqli-&gt;errno . "\n";</span></p>
<p><span style=" font-family:&quot;Times New Roman&quot;,&quot;serif&quot;">&nbsp;&nbsp;&nbsp; echo "Error: " . $mysqli-&gt;error . "\n";</span></p>
<p><span style=" font-family:&quot;Times New Roman&quot;,&quot;serif&quot;">&nbsp;&nbsp;&nbsp; exit;</span></p>
<p><span style=" font-family:&quot;Times New Roman&quot;,&quot;serif&quot;">}</span></p>
<p><span style=" font-family:&quot;Times New Roman&quot;,&quot;serif&quot;">if ($result-&gt;num_rows === 0) {</span></p>
<p><span style=" font-family:&quot;Times New Roman&quot;,&quot;serif&quot;">&nbsp;&nbsp;&nbsp; echo "We could not find a result ";</span></p>
<p><span style=" font-family:&quot;Times New Roman&quot;,&quot;serif&quot;">}</span></p>
<p><span style=" font-family:&quot;Times New Roman&quot;,&quot;serif&quot;">$actor = $result-&gt;fetch_assoc();</span></p>
<p><span style=" font-family:&quot;Times New Roman&quot;,&quot;serif&quot;">echo "Sometimes I see " . $actor['id'] . " " . $actor['name'] . " .";</span></p>
<p><span style=" font-family:&quot;Times New Roman&quot;,&quot;serif&quot;">// Now, let's fetch five random actors and output their names to a list.</span></p>
<p><span style=" font-family:&quot;Times New Roman&quot;,&quot;serif&quot;">$sql = "SELECT id, name FROM person ORDER BY rand() LIMIT 5";</span></p>
<p><span style=" font-family:&quot;Times New Roman&quot;,&quot;serif&quot;">if (!$result = $mysqli-&gt;query($sql)) {</span></p>
<p><span style=" font-family:&quot;Times New Roman&quot;,&quot;serif&quot;">&nbsp;&nbsp;&nbsp; echo "Sorry, the website is experiencing problems.";</span></p>
<p><span style=" font-family:&quot;Times New Roman&quot;,&quot;serif&quot;">&nbsp;&nbsp;&nbsp; exit;</span></p>
<p><span style=" font-family:&quot;Times New Roman&quot;,&quot;serif&quot;">}</span></p>
<p>&nbsp;</p>
<p><span style=" font-family:&quot;Times New Roman&quot;,&quot;serif&quot;">// Print our 5 random actors in a list, and link to each actor</span></p>
<p><span style=" font-family:&quot;Times New Roman&quot;,&quot;serif&quot;">echo "&lt;ul&gt;\n";</span></p>
<p><span style=" font-family:&quot;Times New Roman&quot;,&quot;serif&quot;">while ($actor = $result-&gt;fetch_assoc()) {</span></p>
<p><span style=" font-family:&quot;Times New Roman&quot;,&quot;serif&quot;">&nbsp;&nbsp;&nbsp; echo "&lt;li&gt;&lt;a href='" . $_SERVER['SCRIPT_FILENAME'] . "?aid=" . $actor['id'] . "'&gt;\n";</span></p>
<p><span style=" font-family:&quot;Times New Roman&quot;,&quot;serif&quot;">&nbsp;&nbsp;&nbsp; echo $actor['name'] ;</span></p>
<p><span style=" font-family:&quot;Times New Roman&quot;,&quot;serif&quot;">&nbsp;&nbsp;&nbsp; echo "&lt;/a&gt;&lt;/li&gt;\n";</span></p>
<p><span style=" font-family:&quot;Times New Roman&quot;,&quot;serif&quot;">}</span></p>
<p><span style=" font-family:&quot;Times New Roman&quot;,&quot;serif&quot;">echo "&lt;/ul&gt;\n";</span></p>
<p><span style=" font-family:&quot;Times New Roman&quot;,&quot;serif&quot;">// The script will automatically free the result and close the MySQL</span></p>
<p><span style=" font-family:&quot;Times New Roman&quot;,&quot;serif&quot;">// connection when it exits, but let's just do it anyways</span></p>
<p><span style=" font-family:&quot;Times New Roman&quot;,&quot;serif&quot;">$result-&gt;free();</span></p>
<p><span style=" font-family:&quot;Times New Roman&quot;,&quot;serif&quot;">$mysqli-&gt;close();</span></p>
<p>&nbsp;</p>
<p><span style=" font-family:&quot;Times New Roman&quot;,&quot;serif&quot;">//The old style:</span></p>
<p><span style=" font-family:&quot;Times New Roman&quot;,&quot;serif&quot;">$mysqli = mysqli_connect($db_host, $db_user, $db_pwd, $db_name);</span></p>
<p><span style=" font-family:&quot;Times New Roman&quot;,&quot;serif&quot;">if(!$mysqli ){</span></p>
<p><span style=" font-family:&quot;Times New Roman&quot;,&quot;serif&quot;">&nbsp;&nbsp;&nbsp; echo mysqli_connect_error();</span></p>
<p><span style=" font-family:&quot;Times New Roman&quot;,&quot;serif&quot;">&nbsp;&nbsp;&nbsp; exit;</span></p>
<p><span style=" font-family:&quot;Times New Roman&quot;,&quot;serif&quot;">}</span></p>
<p><span style=" font-family:&quot;Times New Roman&quot;,&quot;serif&quot;">echo "Connect Database Success! \n";</span></p>
<p><span style=" font-family:&quot;Times New Roman&quot;,&quot;serif&quot;">mysqli_close($mysqli);</span></p>
<p><span style=" font-family:&quot;Times New Roman&quot;,&quot;serif&quot;">?&gt;</span></p>
<p><span style="font-family:宋体;">参考：</span></p>
<p><span style="font-family:宋体;">https://segmentfault.com/a/1190000003841357</span></p>
<p>&nbsp;</p>
<p>&nbsp;</p>
<p><span style="font-family:宋体;">端口触发,即外网计算机WAN1想访问内网某台机器LAN1的各种服务(端口范围),需要内网LAN1服务器先访问外网WAN1机器的触发端口提供的服务。之后,外网的WAN1就可以访问内网LAN1上的服务了。</span></p><img src ="http://www.cppblog.com/eamon100/aggbug/215552.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/eamon100/" target="_blank">eamon</a> 2018-03-11 15:09 <a href="http://www.cppblog.com/eamon100/archive/2018/03/11/pi3.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Redhat Linux 6.4下Oracle 10g安装配置手册</title><link>http://www.cppblog.com/eamon100/archive/2018/03/03/oracle.html</link><dc:creator>eamon</dc:creator><author>eamon</author><pubDate>Fri, 02 Mar 2018 21:59:00 GMT</pubDate><guid>http://www.cppblog.com/eamon100/archive/2018/03/03/oracle.html</guid><wfw:comment>http://www.cppblog.com/eamon100/comments/215542.html</wfw:comment><comments>http://www.cppblog.com/eamon100/archive/2018/03/03/oracle.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/eamon100/comments/commentRss/215542.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/eamon100/services/trackbacks/215542.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: Redhat Linux 6.4下Oracle 10g安装配置手册  &nbsp;  1、安装准备  1.1&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp; RedHat Linux Server 6.4安装DVD (32位), 安装时选择&#8220;桌面&#8221;。  1.2&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbs...&nbsp;&nbsp;<a href='http://www.cppblog.com/eamon100/archive/2018/03/03/oracle.html'>阅读全文</a><img src ="http://www.cppblog.com/eamon100/aggbug/215542.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/eamon100/" target="_blank">eamon</a> 2018-03-03 05:59 <a href="http://www.cppblog.com/eamon100/archive/2018/03/03/oracle.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Centos 7.2 安装QT5和QTCreator</title><link>http://www.cppblog.com/eamon100/archive/2018/03/03/215541.html</link><dc:creator>eamon</dc:creator><author>eamon</author><pubDate>Fri, 02 Mar 2018 21:56:00 GMT</pubDate><guid>http://www.cppblog.com/eamon100/archive/2018/03/03/215541.html</guid><wfw:comment>http://www.cppblog.com/eamon100/comments/215541.html</wfw:comment><comments>http://www.cppblog.com/eamon100/archive/2018/03/03/215541.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/eamon100/comments/commentRss/215541.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/eamon100/services/trackbacks/215541.html</trackback:ping><description><![CDATA[1.yum install gcc gcc-c++ gdb cmake &lt;br/&gt;<br />
2.下载QT.
<br />
http://download.qt.io/official_releases/qt/5.10/5.10.1/
选择： qt-opensource-linux-x64-5.10.1.run
<br />
或者用镜像下载：<br />
https://mirrors.tuna.tsinghua.edu.cn/qt/archive/qt/5.10/5.10.1/qt-opensource-linux-x64-5.10.1.run
chmod u+x qt-opensource-linux-x64-5.10.1.run
<br />
<br />
3.双击qt-opensource-linux-x64-5.10.1.run开始安装。<img src ="http://www.cppblog.com/eamon100/aggbug/215541.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/eamon100/" target="_blank">eamon</a> 2018-03-03 05:56 <a href="http://www.cppblog.com/eamon100/archive/2018/03/03/215541.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>centos 7.2 最小化安装GNOME</title><link>http://www.cppblog.com/eamon100/archive/2018/03/01/215540.html</link><dc:creator>eamon</dc:creator><author>eamon</author><pubDate>Thu, 01 Mar 2018 14:29:00 GMT</pubDate><guid>http://www.cppblog.com/eamon100/archive/2018/03/01/215540.html</guid><wfw:comment>http://www.cppblog.com/eamon100/comments/215540.html</wfw:comment><comments>http://www.cppblog.com/eamon100/archive/2018/03/01/215540.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/eamon100/comments/commentRss/215540.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/eamon100/services/trackbacks/215540.html</trackback:ping><description><![CDATA[1. 最小号安装centos 7.2<br />
2. 安装X  window系统<br /> 
yum groupinstall "X Window System"<br />
yum groupinfo  "X Window System"<br />
组：X 窗口系统<br />
 组编号：x11<br />
 描述：X 窗口系统支持。<br />
 必要的软件包：<br />
   +glx-utils<br />
   +initial-setup-gui<br />
   +mesa-dri-drivers<br />
   +plymouth-system-theme<br />
   +spice-vdagent<br />
   +xorg-x11-drivers<br />
   +xorg-x11-server-Xorg<br />
   +xorg-x11-utils<br />
   +xorg-x11-xauth<br />
   +xorg-x11-xinit<br />
   +xvattr<br />
 可选的软件包：<br />
   tigervnc-server<br />
   xorg-x11-drv-keyboard<br />
   xorg-x11-drv-libinput<br />
   xorg-x11-drv-mouse<br />
   xorg-x11-drv-openchrome<br /><br />or&nbsp;<br /><div>yum install glx-utils&nbsp; &nbsp; initial-setup-gui&nbsp; &nbsp; mesa-dri-drivers&nbsp; &nbsp; plymouth-system-theme&nbsp; &nbsp; &nbsp;spice-vdagent&nbsp; &nbsp;xorg-x11-drivers&nbsp; &nbsp;xorg-x11-server-Xorg&nbsp; &nbsp;xorg-x11-utils&nbsp; &nbsp;xorg-x11-xauth&nbsp; &nbsp;xorg-x11-xinit&nbsp; &nbsp;xvattr</div>

3. yum install gnome-classic-session <br />

4. systemctl get-default<br />
systemctl set-default graphical.target<br />

5. reboot<br />

6.安装中文字体
yum install wqy*

7.常用软件 
yum install firefox gnome-terminal

参考：<br />
https://www.centos.org/forums/viewtopic.php?f=47&amp;t=47088<br />
http://mirrors.zju.edu.cn/centos/7/isos/x86_64/<br /><br /><br />fedora 28&nbsp;<br /><br /><br /><div></div><div>dnf.conf:</div><div></div><div>keepcache=true</div><div>fastestmirror=true</div><div></div><div>/dev/yum.repo.d/dvd/repo:</div><div></div><div>[dvd]</div><div>name=dvd</div><div>baseurl=file:///mnt/dvd</div><div>enable=1</div><div>gpgcheck=0</div><div></div><div>------------------------------------------</div><div></div><div>yum install langpacks-en langpacks-zh_CN</div><div>yum install gnome-shell&nbsp; mesa-dri-drivers&nbsp; xorg-x11-drivers gdm gedit nautilus firefox gcc gcc-c++ gnome-terminal</div><div></div><div>yum install gnu-free-*</div><div>yum install adobe-source-han-*cn-fonts adobe-source-han-*tw-fonts</div><div></div><div>yum install google-noto-sans-sc-fonts&nbsp; google-noto-serif-sc-fonts google-noto-sans-cjk-sc-fonts google-noto-serif-cjk-sc-fonts google-noto-sans-mono-cjk-sc-fonts</div><div></div><div>yum install&nbsp; gnome-system-monitor&nbsp;</div><div></div><div>dnf install automake autoconf codeblocks&nbsp;</div><div></div><div>dnf install make gdb ibus-pinyin</div><div></div><div>systemctl enable gdm</div><div>systemctl set-default graphical.target</div><div></div><div>localectl status</div><div>locale</div><div>localectl list-locales&nbsp;</div><div>localectl set-locale LANG=zh_CN.UTF-8</div><div><div><div></div></div></div><div></div><img src ="http://www.cppblog.com/eamon100/aggbug/215540.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/eamon100/" target="_blank">eamon</a> 2018-03-01 22:29 <a href="http://www.cppblog.com/eamon100/archive/2018/03/01/215540.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>在ubuntu edgy 中安装 xgl 和 compiz</title><link>http://www.cppblog.com/eamon100/archive/2011/08/20/153946.html</link><dc:creator>eamon</dc:creator><author>eamon</author><pubDate>Sat, 20 Aug 2011 04:16:00 GMT</pubDate><guid>http://www.cppblog.com/eamon100/archive/2011/08/20/153946.html</guid><wfw:comment>http://www.cppblog.com/eamon100/comments/153946.html</wfw:comment><comments>http://www.cppblog.com/eamon100/archive/2011/08/20/153946.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/eamon100/comments/commentRss/153946.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/eamon100/services/trackbacks/153946.html</trackback:ping><description><![CDATA[<div><span style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 16px; background-color: #ffffff; ">1.向/etc/apt/sources.list添加:</span><br style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 16px; background-color: #ffffff; " /><div style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 16px; background-color: #eeeeee; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: #cccccc; border-right-color: #cccccc; border-bottom-color: #cccccc; border-left-color: #cccccc; padding-top: 4px; padding-right: 5px; padding-bottom: 4px; padding-left: 4px; width: 753px; "><span style="line-height: 15px; ">deb&nbsp;http</span><span style="line-height: 15px; ">:</span><span style="line-height: 15px; color: #008000; ">//</span><span style="line-height: 15px; color: #008000; ">www.beerorkid.com/compiz&nbsp;edgy&nbsp;main-edgy</span></div><br style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 16px; background-color: #ffffff; " /><span style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 16px; background-color: #ffffff; ">2.添加key:</span><br style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 16px; background-color: #ffffff; " /><div style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 16px; background-color: #eeeeee; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: #cccccc; border-right-color: #cccccc; border-bottom-color: #cccccc; border-left-color: #cccccc; padding-top: 4px; padding-right: 5px; padding-bottom: 4px; padding-left: 4px; width: 753px; "><span style="line-height: 15px; ">wget&nbsp;http</span><span style="line-height: 15px; ">:</span><span style="line-height: 15px; color: #008000; ">//</span><span style="line-height: 15px; color: #008000; ">www.beerorkid.com/compiz/quinn.key.asc&nbsp;-O&nbsp;-&nbsp;|&nbsp;sudo&nbsp;apt-key&nbsp;add&nbsp;-</span></div><br style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 16px; background-color: #ffffff; " /><span style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 16px; background-color: #ffffff; ">3.安装 nvidia官方驱动</span><br style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 16px; background-color: #ffffff; " /><span style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 16px; background-color: #ffffff; ">sudo apt-get install nvidia-glx</span><br style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 16px; background-color: #ffffff; " /><span style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 16px; background-color: #ffffff; ">运行glxgears,检查驱动是否安装正确。</span><br style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 16px; background-color: #ffffff; " /><span style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 16px; background-color: #ffffff; ">4.安装必要的包:</span><br style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 16px; background-color: #ffffff; " /><div style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 16px; background-color: #eeeeee; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: #cccccc; border-right-color: #cccccc; border-bottom-color: #cccccc; border-left-color: #cccccc; padding-top: 4px; padding-right: 5px; padding-bottom: 4px; padding-left: 4px; width: 753px; "><span style="line-height: 15px; ">sudo&nbsp;apt</span><span style="line-height: 15px; ">-</span><span style="line-height: 15px; ">get&nbsp;install&nbsp;compiz&nbsp;&nbsp;compiz</span><span style="line-height: 15px; ">-</span><span style="line-height: 15px; ">gnome&nbsp;&nbsp;xserver</span><span style="line-height: 15px; ">-</span><span style="line-height: 15px; ">xgl&nbsp;xserver</span><span style="line-height: 15px; ">-</span><span style="line-height: 15px; ">xorg&nbsp;libgl1</span><span style="line-height: 15px; ">-</span><span style="line-height: 15px; ">mesa</span><span style="line-height: 15px; ">-</span><span style="line-height: 15px; ">glx&nbsp;&nbsp;libglitz</span><span style="line-height: 15px; ">-</span><span style="line-height: 15px; ">glx1&nbsp;cgwd&nbsp;cgwd</span><span style="line-height: 15px; ">-</span><span style="line-height: 15px; ">themes</span></div><br style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 16px; background-color: #ffffff; " /><span style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 16px; background-color: #ffffff; ">5.编辑 /etc/X11/xorg.conf</span><br style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 16px; background-color: #ffffff; " /><span style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 16px; background-color: #ffffff; ">&nbsp;&nbsp; 注释掉GLcore 和 dri</span><br style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 16px; background-color: #ffffff; " /><div style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 16px; background-color: #eeeeee; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: #cccccc; border-right-color: #cccccc; border-bottom-color: #cccccc; border-left-color: #cccccc; padding-top: 4px; padding-right: 5px; padding-bottom: 4px; padding-left: 4px; width: 753px; "><span style="line-height: 15px; color: #008000; ">#</span><span style="line-height: 15px; color: #008000; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Load&nbsp;&nbsp;&nbsp;&nbsp;"GLcore"</span><span style="line-height: 15px; color: #008000; "><br />#</span><span style="line-height: 15px; color: #008000; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Load&nbsp;&nbsp;&nbsp;&nbsp;"dri"&nbsp;</span><span style="line-height: 15px; color: #008000; "><br /></span><span style="line-height: 15px; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Load&nbsp;</span><span style="line-height: 15px; ">"</span><span style="line-height: 15px; ">glx</span><span style="line-height: 15px; ">"</span></div><span style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 16px; background-color: #ffffff; ">&nbsp;&nbsp; 启动3D加速</span><br style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 16px; background-color: #ffffff; " /><div style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 16px; background-color: #eeeeee; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: #cccccc; border-right-color: #cccccc; border-bottom-color: #cccccc; border-left-color: #cccccc; padding-top: 4px; padding-right: 5px; padding-bottom: 4px; padding-left: 4px; width: 753px; "><span style="line-height: 15px; ">Section&nbsp;</span><span style="line-height: 15px; ">"</span><span style="line-height: 15px; ">Device</span><span style="line-height: 15px; ">"</span><span style="line-height: 15px; "><br />&nbsp;&nbsp;&nbsp;&nbsp;Identifier</span><span style="line-height: 15px; ">-</span><span style="line-height: 15px; ">&nbsp;leave&nbsp;this&nbsp;line&nbsp;alone</span><span style="line-height: 15px; ">!</span><span style="line-height: 15px; "><br />&nbsp;&nbsp;&nbsp;&nbsp;Driver&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="line-height: 15px; ">"</span><span style="line-height: 15px; ">nvidia</span><span style="line-height: 15px; ">"</span><span style="line-height: 15px; "><br />&nbsp;&nbsp;&nbsp;&nbsp;BusID&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="line-height: 15px; ">"</span><span style="line-height: 15px; ">PCI:1:0:0</span><span style="line-height: 15px; ">"</span><span style="line-height: 15px; "><br />&nbsp;&nbsp;&nbsp;&nbsp;Option&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="line-height: 15px; ">"</span><span style="line-height: 15px; ">RenderAccel</span><span style="line-height: 15px; ">"</span><span style="line-height: 15px; ">&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;</span><span style="line-height: 15px; ">"</span><span style="line-height: 15px; ">true</span><span style="line-height: 15px; ">"</span><span style="line-height: 15px; "><br />EndSection</span></div><span style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 16px; background-color: #ffffff; ">&nbsp;&nbsp;&nbsp; 添加扩展</span><br style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 16px; background-color: #ffffff; " /><div style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 16px; background-color: #eeeeee; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: #cccccc; border-right-color: #cccccc; border-bottom-color: #cccccc; border-left-color: #cccccc; padding-top: 4px; padding-right: 5px; padding-bottom: 4px; padding-left: 4px; width: 753px; "><span style="line-height: 15px; ">Section&nbsp;</span><span style="line-height: 15px; ">"</span><span style="line-height: 15px; ">Extensions</span><span style="line-height: 15px; ">"</span><span style="line-height: 15px; "><br />&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;Option&nbsp;&nbsp;</span><span style="line-height: 15px; ">"</span><span style="line-height: 15px; ">Composite</span><span style="line-height: 15px; ">"</span>&nbsp;<span style="line-height: 15px; ">"</span><span style="line-height: 15px; ">Enable</span><span style="line-height: 15px; ">"</span><span style="line-height: 15px; "><br />EndSection</span></div><br style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 16px; background-color: #ffffff; " /><span style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 16px; background-color: #ffffff; ">6.编辑/etc/gdm/gdm.conf-custom ：</span><br style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 16px; background-color: #ffffff; " /><div style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 16px; background-color: #eeeeee; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: #cccccc; border-right-color: #cccccc; border-bottom-color: #cccccc; border-left-color: #cccccc; padding-top: 4px; padding-right: 5px; padding-bottom: 4px; padding-left: 4px; width: 753px; "><span style="line-height: 15px; color: #008000; ">#</span><span style="line-height: 15px; color: #008000; ">&nbsp;GDM&nbsp;Configuration&nbsp;Customization&nbsp;file.</span><span style="line-height: 15px; color: #008000; "><br />#<br />#</span><span style="line-height: 15px; color: #008000; ">&nbsp;This&nbsp;file&nbsp;is&nbsp;the&nbsp;appropriate&nbsp;place&nbsp;for&nbsp;specifying&nbsp;your&nbsp;customizations&nbsp;to&nbsp;the</span><span style="line-height: 15px; color: #008000; "><br />#</span><span style="line-height: 15px; color: #008000; ">&nbsp;GDM&nbsp;configuration.&nbsp;&nbsp;&nbsp;If&nbsp;you&nbsp;run&nbsp;gdmsetup,&nbsp;it&nbsp;will&nbsp;automatically&nbsp;edit&nbsp;this</span><span style="line-height: 15px; color: #008000; "><br />#</span><span style="line-height: 15px; color: #008000; ">&nbsp;file&nbsp;for&nbsp;you&nbsp;and&nbsp;will&nbsp;cause&nbsp;the&nbsp;daemon&nbsp;and&nbsp;any&nbsp;running&nbsp;GDM&nbsp;GUI&nbsp;programs&nbsp;to</span><span style="line-height: 15px; color: #008000; "><br />#</span><span style="line-height: 15px; color: #008000; ">&nbsp;automatically&nbsp;update&nbsp;with&nbsp;the&nbsp;new&nbsp;configuration.&nbsp;&nbsp;Not&nbsp;all&nbsp;configuration</span><span style="line-height: 15px; color: #008000; "><br />#</span><span style="line-height: 15px; color: #008000; ">&nbsp;options&nbsp;are&nbsp;supported&nbsp;by&nbsp;gdmsetup,&nbsp;so&nbsp;to&nbsp;modify&nbsp;some&nbsp;values&nbsp;it&nbsp;may&nbsp;be</span><span style="line-height: 15px; color: #008000; "><br />#</span><span style="line-height: 15px; color: #008000; ">&nbsp;necessary&nbsp;to&nbsp;modify&nbsp;this&nbsp;file&nbsp;directly&nbsp;by&nbsp;hand.</span><span style="line-height: 15px; color: #008000; "><br />#<br />#</span><span style="line-height: 15px; color: #008000; ">&nbsp;To&nbsp;hand-edit&nbsp;this&nbsp;file,&nbsp;simply&nbsp;add&nbsp;or&nbsp;modify&nbsp;the&nbsp;key=value&nbsp;combination&nbsp;in</span><span style="line-height: 15px; color: #008000; "><br />#</span><span style="line-height: 15px; color: #008000; ">&nbsp;the&nbsp;appropriate&nbsp;section&nbsp;in&nbsp;the&nbsp;template&nbsp;below.&nbsp;&nbsp;Refer&nbsp;to&nbsp;the&nbsp;comments&nbsp;in&nbsp;the</span><span style="line-height: 15px; color: #008000; "><br />#</span><span style="line-height: 15px; color: #008000; ">&nbsp;gdm.conf&nbsp;file&nbsp;for&nbsp;information&nbsp;about&nbsp;each&nbsp;option.&nbsp;&nbsp;Also&nbsp;refer&nbsp;to&nbsp;the&nbsp;reference</span><span style="line-height: 15px; color: #008000; "><br />#</span><span style="line-height: 15px; color: #008000; ">&nbsp;documentation.</span><span style="line-height: 15px; color: #008000; "><br />#<br />#</span><span style="line-height: 15px; color: #008000; ">&nbsp;If&nbsp;you&nbsp;hand&nbsp;edit&nbsp;a&nbsp;GDM&nbsp;configuration&nbsp;file,&nbsp;you&nbsp;should&nbsp;run&nbsp;the&nbsp;following</span><span style="line-height: 15px; color: #008000; "><br />#</span><span style="line-height: 15px; color: #008000; ">&nbsp;command&nbsp;to&nbsp;get&nbsp;the&nbsp;GDM&nbsp;daemon&nbsp;to&nbsp;notice&nbsp;the&nbsp;change.&nbsp;&nbsp;Any&nbsp;running&nbsp;GDM&nbsp;GUI</span><span style="line-height: 15px; color: #008000; "><br />#</span><span style="line-height: 15px; color: #008000; ">&nbsp;programs&nbsp;will&nbsp;also&nbsp;be&nbsp;notified&nbsp;to&nbsp;update&nbsp;with&nbsp;the&nbsp;new&nbsp;configuration.</span><span style="line-height: 15px; color: #008000; "><br />#<br />#</span><span style="line-height: 15px; color: #008000; ">&nbsp;gdmflexiserver&nbsp;--command="UPDATE_CONFIG&nbsp;&lt;configuration&nbsp;key&gt;"</span><span style="line-height: 15px; color: #008000; "><br />#<br />#</span><span style="line-height: 15px; color: #008000; ">&nbsp;For&nbsp;example,&nbsp;the&nbsp;"Enable"&nbsp;key&nbsp;in&nbsp;the&nbsp;"[debug]"&nbsp;section&nbsp;would&nbsp;be&nbsp;specified&nbsp;by</span><span style="line-height: 15px; color: #008000; "><br />#</span><span style="line-height: 15px; color: #008000; ">&nbsp;"debug/Enable".</span><span style="line-height: 15px; color: #008000; "><br />#<br />#</span><span style="line-height: 15px; color: #008000; ">&nbsp;You&nbsp;can&nbsp;also&nbsp;run&nbsp;gdm-restart&nbsp;or&nbsp;gdm-safe-restart&nbsp;to&nbsp;cause&nbsp;GDM&nbsp;to&nbsp;restart&nbsp;and</span><span style="line-height: 15px; color: #008000; "><br />#</span><span style="line-height: 15px; color: #008000; ">&nbsp;re-read&nbsp;the&nbsp;new&nbsp;configuration&nbsp;settings.&nbsp;&nbsp;You&nbsp;can&nbsp;also&nbsp;restart&nbsp;GDM&nbsp;by&nbsp;sending</span><span style="line-height: 15px; color: #008000; "><br />#</span><span style="line-height: 15px; color: #008000; ">&nbsp;a&nbsp;HUP&nbsp;or&nbsp;USR1&nbsp;signal&nbsp;to&nbsp;the&nbsp;daemon.&nbsp;&nbsp;HUP&nbsp;behaves&nbsp;like&nbsp;gdm-restart&nbsp;and&nbsp;causes</span><span style="line-height: 15px; color: #008000; "><br />#</span><span style="line-height: 15px; color: #008000; ">&nbsp;any&nbsp;user&nbsp;session&nbsp;started&nbsp;by&nbsp;GDM&nbsp;to&nbsp;exit&nbsp;immediately&nbsp;while&nbsp;USR1&nbsp;behaves&nbsp;like</span><span style="line-height: 15px; color: #008000; "><br />#</span><span style="line-height: 15px; color: #008000; ">&nbsp;gdm-safe-restart&nbsp;and&nbsp;will&nbsp;wait&nbsp;until&nbsp;all&nbsp;users&nbsp;log&nbsp;out&nbsp;before&nbsp;restarting&nbsp;GDM.</span><span style="line-height: 15px; color: #008000; "><br />#<br />#</span><span style="line-height: 15px; color: #008000; ">&nbsp;For&nbsp;full&nbsp;reference&nbsp;documentation&nbsp;see&nbsp;the&nbsp;gnome&nbsp;help&nbsp;browser&nbsp;under</span><span style="line-height: 15px; color: #008000; "><br />#</span><span style="line-height: 15px; color: #008000; ">&nbsp;GNOME|System&nbsp;category.&nbsp;&nbsp;You&nbsp;can&nbsp;also&nbsp;find&nbsp;the&nbsp;docs&nbsp;in&nbsp;HTML&nbsp;form&nbsp;on</span><span style="line-height: 15px; color: #008000; "><br />#</span><span style="line-height: 15px; color: #008000; ">&nbsp;http://www.gnome.org/projects/gdm/</span><span style="line-height: 15px; color: #008000; "><br />#<br />#</span><span style="line-height: 15px; color: #008000; ">&nbsp;NOTE:&nbsp;Lines&nbsp;that&nbsp;begin&nbsp;with&nbsp;"#"&nbsp;are&nbsp;considered&nbsp;comments.</span><span style="line-height: 15px; color: #008000; "><br />#<br />#</span><span style="line-height: 15px; color: #008000; ">&nbsp;Have&nbsp;fun!</span><span style="line-height: 15px; color: #008000; "><br /></span><span style="line-height: 15px; "><br />[daemon]<br /><br />[security]<br /><br />[xdmcp]<br /><br />[gui]<br /><br />[greeter]<br /><br />[chooser]<br /><br />[debug]<br /><br />[servers]</span><span style="line-height: 15px; color: #008000; ">#</span><span style="line-height: 15px; color: #008000; ">&nbsp;Override&nbsp;display&nbsp;1&nbsp;to&nbsp;use&nbsp;Xgl&nbsp;(DISPLAY&nbsp;1&nbsp;IMPORTANT&nbsp;FOR&nbsp;ATI&nbsp;FGLRX).&nbsp;</span><span style="line-height: 15px; color: #008000; "><br /></span><span style="line-height: 15px; ">0</span><span style="line-height: 15px; ">=</span><span style="line-height: 15px; ">Xgl&nbsp;<br /><br />[server</span><span style="line-height: 15px; ">-</span><span style="line-height: 15px; ">Xgl]&nbsp;<br />name</span><span style="line-height: 15px; ">=</span><span style="line-height: 15px; ">Xgl&nbsp;server&nbsp;<br />command</span><span style="line-height: 15px; ">=/</span><span style="line-height: 15px; ">usr</span><span style="line-height: 15px; ">/</span><span style="line-height: 15px; ">bin</span><span style="line-height: 15px; ">/</span><span style="line-height: 15px; ">Xgl&nbsp;</span><span style="line-height: 15px; ">:</span><span style="line-height: 15px; ">0</span>&nbsp;<span style="line-height: 15px; ">-</span><span style="line-height: 15px; ">fullscreen&nbsp;</span><span style="line-height: 15px; ">-</span><span style="line-height: 15px; ">ac&nbsp;</span><span style="line-height: 15px; ">-</span><span style="line-height: 15px; ">accel&nbsp;glx</span><span style="line-height: 15px; ">:</span><span style="line-height: 15px; ">pbuffer&nbsp;</span><span style="line-height: 15px; ">-</span><span style="line-height: 15px; ">accel&nbsp;xv</span><span style="line-height: 15px; ">:</span><span style="line-height: 15px; ">fbo&nbsp;<br />flexible</span><span style="line-height: 15px; ">=</span><span style="line-height: 15px; color: #0000ff; ">true</span></div><br style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 16px; background-color: #ffffff; " /><span style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 16px; background-color: #ffffff; ">7.运行</span><br style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 16px; background-color: #ffffff; " /><span style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 16px; background-color: #ffffff; ">&nbsp; 选择 System-&gt;Preferences-&gt;Sessions，在Startup Programs中添加&nbsp;</span><br style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 16px; background-color: #ffffff; " /><span style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 16px; background-color: #ffffff; ">&nbsp; /usr/bin/compiz-start</span><br style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 16px; background-color: #ffffff; " /><span style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 16px; background-color: #ffffff; ">&nbsp; 重启系统。</span></div><img src ="http://www.cppblog.com/eamon100/aggbug/153946.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/eamon100/" target="_blank">eamon</a> 2011-08-20 12:16 <a href="http://www.cppblog.com/eamon100/archive/2011/08/20/153946.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Ubuntu的中文美化</title><link>http://www.cppblog.com/eamon100/archive/2011/08/20/153945.html</link><dc:creator>eamon</dc:creator><author>eamon</author><pubDate>Sat, 20 Aug 2011 04:15:00 GMT</pubDate><guid>http://www.cppblog.com/eamon100/archive/2011/08/20/153945.html</guid><wfw:comment>http://www.cppblog.com/eamon100/comments/153945.html</wfw:comment><comments>http://www.cppblog.com/eamon100/archive/2011/08/20/153945.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/eamon100/comments/commentRss/153945.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/eamon100/services/trackbacks/153945.html</trackback:ping><description><![CDATA[<div><div><span style="line-height: 15px; font-size: 13px; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; background-color: #ffffff; ">1、安装MS字体&nbsp;<br />cd /usr/share/fonts/truetype&nbsp;<br />sudo mkdir ttf-windows<br />然后将MS的字体文件(simsun.ttc tahoma.ttf verdana.ttf verdanab.ttf verdanaz.ttf tahomabd.ttf verdanai.ttf) 复制到</span><span style="line-height: 15px; font-size: 13px; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; background-color: #ffffff; ">ttf-windows&nbsp;</span><span style="line-height: 15px; font-size: 13px; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; background-color: #ffffff; ">目录下,然后<br /><br /><div style="border-right-color: #cccccc; border-right-width: 1px; border-right-style: solid; padding-right: 5px; border-top-color: #cccccc; border-top-width: 1px; border-top-style: solid; padding-left: 4px; padding-bottom: 4px; border-left-color: #cccccc; border-left-width: 1px; border-left-style: solid; width: 753px; padding-top: 4px; border-bottom-color: #cccccc; border-bottom-width: 1px; border-bottom-style: solid; background-color: #eeeeee; ">cd&nbsp;ttf-windows<br />sudo&nbsp;mkfontscale<br />sudo&nbsp;mkfontdir<br />sudo&nbsp;fc-cache</div><br /></span><span style="line-height: 15px; font-size: 13px; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; background-color: #ffffff; ">2、修改language-selector.conf文件<br /></span><span style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 16px; background-color: #ffffff; ">&nbsp;&nbsp;&nbsp;&nbsp; sudo gedit /etc/fonts/language-selector.conf</span><br style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 16px; background-color: #ffffff; " /><span style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 16px; background-color: #ffffff; ">改为：</span><br style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 16px; background-color: #ffffff; " /><div style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 16px; background-color: #eeeeee; border-right-color: #cccccc; border-right-width: 1px; border-right-style: solid; padding-right: 5px; border-top-color: #cccccc; border-top-width: 1px; border-top-style: solid; padding-left: 4px; padding-bottom: 4px; border-left-color: #cccccc; border-left-width: 1px; border-left-style: solid; width: 753px; padding-top: 4px; border-bottom-color: #cccccc; border-bottom-width: 1px; border-bottom-style: solid; "><span style="line-height: 15px; color: #0000ff; ">&lt;</span><span style="line-height: 15px; color: #800000; ">fontconfig</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; "><br /><br /></span><span style="line-height: 15px; color: #0000ff; ">&lt;</span><span style="line-height: 15px; color: #800000; ">alias</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; "><br /></span><span style="line-height: 15px; color: #0000ff; ">&lt;</span><span style="line-height: 15px; color: #800000; ">family</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; ">serif</span><span style="line-height: 15px; color: #0000ff; ">&lt;/</span><span style="line-height: 15px; color: #800000; ">family</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; "><br /></span><span style="line-height: 15px; color: #0000ff; ">&lt;</span><span style="line-height: 15px; color: #800000; ">prefer</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; "><br /></span><span style="line-height: 15px; color: #0000ff; ">&lt;</span><span style="line-height: 15px; color: #800000; ">family</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; ">Bitstream&nbsp;Vera&nbsp;Serif</span><span style="line-height: 15px; color: #0000ff; ">&lt;/</span><span style="line-height: 15px; color: #800000; ">family</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; "><br /></span><span style="line-height: 15px; color: #0000ff; ">&lt;</span><span style="line-height: 15px; color: #800000; ">family</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; ">SimSun</span><span style="line-height: 15px; color: #0000ff; ">&lt;/</span><span style="line-height: 15px; color: #800000; ">family</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; "><br /></span><span style="line-height: 15px; color: #0000ff; ">&lt;</span><span style="line-height: 15px; color: #800000; ">family</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; ">DejaVu&nbsp;Serif</span><span style="line-height: 15px; color: #0000ff; ">&lt;/</span><span style="line-height: 15px; color: #800000; ">family</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; "><br /></span><span style="line-height: 15px; color: #0000ff; ">&lt;</span><span style="line-height: 15px; color: #800000; ">family</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; ">AR&nbsp;PL&nbsp;ShanHeiSun&nbsp;Uni</span><span style="line-height: 15px; color: #0000ff; ">&lt;/</span><span style="line-height: 15px; color: #800000; ">family</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; "><br /></span><span style="line-height: 15px; color: #0000ff; ">&lt;</span><span style="line-height: 15px; color: #800000; ">family</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; ">AR&nbsp;PL&nbsp;ZenKai&nbsp;Uni</span><span style="line-height: 15px; color: #0000ff; ">&lt;/</span><span style="line-height: 15px; color: #800000; ">family</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; "><br /></span><span style="line-height: 15px; color: #0000ff; ">&lt;/</span><span style="line-height: 15px; color: #800000; ">prefer</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; "><br /></span><span style="line-height: 15px; color: #0000ff; ">&lt;/</span><span style="line-height: 15px; color: #800000; ">alias</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; "><br /><br /></span><span style="line-height: 15px; color: #0000ff; ">&lt;</span><span style="line-height: 15px; color: #800000; ">alias</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; "><br /></span><span style="line-height: 15px; color: #0000ff; ">&lt;</span><span style="line-height: 15px; color: #800000; ">family</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; ">sans-serif</span><span style="line-height: 15px; color: #0000ff; ">&lt;/</span><span style="line-height: 15px; color: #800000; ">family</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; "><br /></span><span style="line-height: 15px; color: #0000ff; ">&lt;</span><span style="line-height: 15px; color: #800000; ">prefer</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; "><br /></span><span style="line-height: 15px; color: #0000ff; ">&lt;</span><span style="line-height: 15px; color: #800000; ">family</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; ">Bitstream&nbsp;Vera&nbsp;Sans</span><span style="line-height: 15px; color: #0000ff; ">&lt;/</span><span style="line-height: 15px; color: #800000; ">family</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; "><br /></span><span style="line-height: 15px; color: #0000ff; ">&lt;</span><span style="line-height: 15px; color: #800000; ">family</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; ">Simsun</span><span style="line-height: 15px; color: #0000ff; ">&lt;/</span><span style="line-height: 15px; color: #800000; ">family</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; "><br /></span><span style="line-height: 15px; color: #0000ff; ">&lt;</span><span style="line-height: 15px; color: #800000; ">family</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; ">DejaVu&nbsp;Sans</span><span style="line-height: 15px; color: #0000ff; ">&lt;/</span><span style="line-height: 15px; color: #800000; ">family</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; "><br /></span><span style="line-height: 15px; color: #0000ff; ">&lt;</span><span style="line-height: 15px; color: #800000; ">family</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; ">AR&nbsp;PL&nbsp;ShanHeiSun&nbsp;Uni</span><span style="line-height: 15px; color: #0000ff; ">&lt;/</span><span style="line-height: 15px; color: #800000; ">family</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; "><br /></span><span style="line-height: 15px; color: #0000ff; ">&lt;</span><span style="line-height: 15px; color: #800000; ">family</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; ">AR&nbsp;PL&nbsp;ZenKai&nbsp;Uni</span><span style="line-height: 15px; color: #0000ff; ">&lt;/</span><span style="line-height: 15px; color: #800000; ">family</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; "><br /></span><span style="line-height: 15px; color: #0000ff; ">&lt;/</span><span style="line-height: 15px; color: #800000; ">prefer</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; "><br /></span><span style="line-height: 15px; color: #0000ff; ">&lt;/</span><span style="line-height: 15px; color: #800000; ">alias</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; "><br /><br /></span><span style="line-height: 15px; color: #0000ff; ">&lt;</span><span style="line-height: 15px; color: #800000; ">alias</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; "><br /></span><span style="line-height: 15px; color: #0000ff; ">&lt;</span><span style="line-height: 15px; color: #800000; ">family</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; ">monospace</span><span style="line-height: 15px; color: #0000ff; ">&lt;/</span><span style="line-height: 15px; color: #800000; ">family</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; "><br /></span><span style="line-height: 15px; color: #0000ff; ">&lt;</span><span style="line-height: 15px; color: #800000; ">prefer</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; "><br /></span><span style="line-height: 15px; color: #0000ff; ">&lt;</span><span style="line-height: 15px; color: #800000; ">family</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; ">Bitstream&nbsp;Vera&nbsp;Sans&nbsp;Mono</span><span style="line-height: 15px; color: #0000ff; ">&lt;/</span><span style="line-height: 15px; color: #800000; ">family</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; "><br /></span><span style="line-height: 15px; color: #0000ff; ">&lt;</span><span style="line-height: 15px; color: #800000; ">family</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; ">Simsun</span><span style="line-height: 15px; color: #0000ff; ">&lt;/</span><span style="line-height: 15px; color: #800000; ">family</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; "><br /></span><span style="line-height: 15px; color: #0000ff; ">&lt;</span><span style="line-height: 15px; color: #800000; ">family</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; ">DejaVu&nbsp;Sans&nbsp;Mono</span><span style="line-height: 15px; color: #0000ff; ">&lt;/</span><span style="line-height: 15px; color: #800000; ">family</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; "><br /></span><span style="line-height: 15px; color: #0000ff; ">&lt;</span><span style="line-height: 15px; color: #800000; ">family</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; ">AR&nbsp;PL&nbsp;ShanHeiSun&nbsp;Uni</span><span style="line-height: 15px; color: #0000ff; ">&lt;/</span><span style="line-height: 15px; color: #800000; ">family</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; "><br /></span><span style="line-height: 15px; color: #0000ff; ">&lt;</span><span style="line-height: 15px; color: #800000; ">family</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; ">AR&nbsp;PL&nbsp;ZenKai&nbsp;Uni</span><span style="line-height: 15px; color: #0000ff; ">&lt;/</span><span style="line-height: 15px; color: #800000; ">family</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; "><br /></span><span style="line-height: 15px; color: #0000ff; ">&lt;/</span><span style="line-height: 15px; color: #800000; ">prefer</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; "><br /></span><span style="line-height: 15px; color: #0000ff; ">&lt;/</span><span style="line-height: 15px; color: #800000; ">alias</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; "><br /><br /><br /></span><span style="line-height: 15px; color: #0000ff; ">&lt;</span><span style="line-height: 15px; color: #800000; ">match&nbsp;</span><span style="line-height: 15px; color: #ff0000; ">target</span><span style="line-height: 15px; color: #0000ff; ">="font"</span>&nbsp;<span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; "><br /></span><span style="line-height: 15px; color: #0000ff; ">&lt;</span><span style="line-height: 15px; color: #800000; ">test&nbsp;</span><span style="line-height: 15px; color: #ff0000; ">name</span><span style="line-height: 15px; color: #0000ff; ">="family"</span><span style="line-height: 15px; color: #ff0000; ">&nbsp;compare</span><span style="line-height: 15px; color: #0000ff; ">="contains"</span>&nbsp;<span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; "><br /></span><span style="line-height: 15px; color: #0000ff; ">&lt;</span><span style="line-height: 15px; color: #800000; ">string</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; ">SimSun</span><span style="line-height: 15px; color: #0000ff; ">&lt;/</span><span style="line-height: 15px; color: #800000; ">string</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; "><br /></span><span style="line-height: 15px; color: #0000ff; ">&lt;</span><span style="line-height: 15px; color: #800000; ">string</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; ">Song</span><span style="line-height: 15px; color: #0000ff; ">&lt;/</span><span style="line-height: 15px; color: #800000; ">string</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; "><br /></span><span style="line-height: 15px; color: #0000ff; ">&lt;</span><span style="line-height: 15px; color: #800000; ">string</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; ">Sun</span><span style="line-height: 15px; color: #0000ff; ">&lt;/</span><span style="line-height: 15px; color: #800000; ">string</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; "><br /></span><span style="line-height: 15px; color: #0000ff; ">&lt;</span><span style="line-height: 15px; color: #800000; ">string</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; ">Kai</span><span style="line-height: 15px; color: #0000ff; ">&lt;/</span><span style="line-height: 15px; color: #800000; ">string</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; "><br /></span><span style="line-height: 15px; color: #0000ff; ">&lt;</span><span style="line-height: 15px; color: #800000; ">string</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; ">Ming</span><span style="line-height: 15px; color: #0000ff; ">&lt;/</span><span style="line-height: 15px; color: #800000; ">string</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; "><br /></span><span style="line-height: 15px; color: #0000ff; ">&lt;/</span><span style="line-height: 15px; color: #800000; ">test</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; "><br /></span><span style="line-height: 15px; color: #0000ff; ">&lt;</span><span style="line-height: 15px; color: #800000; ">test&nbsp;</span><span style="line-height: 15px; color: #ff0000; ">name</span><span style="line-height: 15px; color: #0000ff; ">="weight"</span><span style="line-height: 15px; color: #ff0000; ">&nbsp;compare</span><span style="line-height: 15px; color: #0000ff; ">="less_eq"</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; "><br /></span><span style="line-height: 15px; color: #0000ff; ">&lt;</span><span style="line-height: 15px; color: #800000; ">int</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; ">100</span><span style="line-height: 15px; color: #0000ff; ">&lt;/</span><span style="line-height: 15px; color: #800000; ">int</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; "><br /></span><span style="line-height: 15px; color: #0000ff; ">&lt;/</span><span style="line-height: 15px; color: #800000; ">test</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; "><br /><br /></span><span style="line-height: 15px; color: #0000ff; ">&lt;</span><span style="line-height: 15px; color: #800000; ">test&nbsp;</span><span style="line-height: 15px; color: #ff0000; ">compare</span><span style="line-height: 15px; color: #0000ff; ">="more_eq"</span><span style="line-height: 15px; color: #ff0000; ">&nbsp;target</span><span style="line-height: 15px; color: #0000ff; ">="pattern"</span><span style="line-height: 15px; color: #ff0000; ">&nbsp;name</span><span style="line-height: 15px; color: #0000ff; ">="weight"</span>&nbsp;<span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; "><br /></span><span style="line-height: 15px; color: #0000ff; ">&lt;</span><span style="line-height: 15px; color: #800000; ">int</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; ">180</span><span style="line-height: 15px; color: #0000ff; ">&lt;/</span><span style="line-height: 15px; color: #800000; ">int</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; "><br /></span><span style="line-height: 15px; color: #0000ff; ">&lt;/</span><span style="line-height: 15px; color: #800000; ">test</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; "><br /><br /></span><span style="line-height: 15px; color: #0000ff; ">&lt;</span><span style="line-height: 15px; color: #800000; ">edit&nbsp;</span><span style="line-height: 15px; color: #ff0000; ">mode</span><span style="line-height: 15px; color: #0000ff; ">="assign"</span><span style="line-height: 15px; color: #ff0000; ">&nbsp;name</span><span style="line-height: 15px; color: #0000ff; ">="embolden"</span>&nbsp;<span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; "><br /></span><span style="line-height: 15px; color: #0000ff; ">&lt;</span><span style="line-height: 15px; color: #800000; ">bool</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; ">true</span><span style="line-height: 15px; color: #0000ff; ">&lt;/</span><span style="line-height: 15px; color: #800000; ">bool</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; "><br /></span><span style="line-height: 15px; color: #0000ff; ">&lt;/</span><span style="line-height: 15px; color: #800000; ">edit</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; "><br /><br /></span><span style="line-height: 15px; color: #0000ff; ">&lt;/</span><span style="line-height: 15px; color: #800000; ">match</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; "><br /></span><span style="line-height: 15px; color: #0000ff; ">&lt;</span><span style="line-height: 15px; color: #800000; ">match&nbsp;</span><span style="line-height: 15px; color: #ff0000; ">target</span><span style="line-height: 15px; color: #0000ff; ">="font"</span>&nbsp;<span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; "><br /></span><span style="line-height: 15px; color: #0000ff; ">&lt;</span><span style="line-height: 15px; color: #800000; ">test&nbsp;</span><span style="line-height: 15px; color: #ff0000; ">name</span><span style="line-height: 15px; color: #0000ff; ">="family"</span><span style="line-height: 15px; color: #ff0000; ">&nbsp;compare</span><span style="line-height: 15px; color: #0000ff; ">="contains"</span>&nbsp;<span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; "><br /></span><span style="line-height: 15px; color: #0000ff; ">&lt;</span><span style="line-height: 15px; color: #800000; ">string</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; ">SimSun</span><span style="line-height: 15px; color: #0000ff; ">&lt;/</span><span style="line-height: 15px; color: #800000; ">string</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; "><br /></span><span style="line-height: 15px; color: #0000ff; ">&lt;</span><span style="line-height: 15px; color: #800000; ">string</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; ">宋体</span><span style="line-height: 15px; color: #0000ff; ">&lt;/</span><span style="line-height: 15px; color: #800000; ">string</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; "><br /></span><span style="line-height: 15px; color: #0000ff; ">&lt;</span><span style="line-height: 15px; color: #800000; ">string</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; ">宋体-18030</span><span style="line-height: 15px; color: #0000ff; ">&lt;/</span><span style="line-height: 15px; color: #800000; ">string</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; "><br /></span><span style="line-height: 15px; color: #0000ff; ">&lt;</span><span style="line-height: 15px; color: #800000; ">string</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; ">Song</span><span style="line-height: 15px; color: #0000ff; ">&lt;/</span><span style="line-height: 15px; color: #800000; ">string</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; "><br /></span><span style="line-height: 15px; color: #0000ff; ">&lt;</span><span style="line-height: 15px; color: #800000; ">string</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; ">Sun</span><span style="line-height: 15px; color: #0000ff; ">&lt;/</span><span style="line-height: 15px; color: #800000; ">string</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; "><br /></span><span style="line-height: 15px; color: #0000ff; ">&lt;</span><span style="line-height: 15px; color: #800000; ">string</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; ">Kai</span><span style="line-height: 15px; color: #0000ff; ">&lt;/</span><span style="line-height: 15px; color: #800000; ">string</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; "><br /></span><span style="line-height: 15px; color: #0000ff; ">&lt;</span><span style="line-height: 15px; color: #800000; ">string</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; ">Ming</span><span style="line-height: 15px; color: #0000ff; ">&lt;/</span><span style="line-height: 15px; color: #800000; ">string</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; "><br /></span><span style="line-height: 15px; color: #0000ff; ">&lt;</span><span style="line-height: 15px; color: #800000; ">string</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; ">黑体</span><span style="line-height: 15px; color: #0000ff; ">&lt;/</span><span style="line-height: 15px; color: #800000; ">string</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; "><br /></span><span style="line-height: 15px; color: #0000ff; ">&lt;</span><span style="line-height: 15px; color: #800000; ">string</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; ">新宋体</span><span style="line-height: 15px; color: #0000ff; ">&lt;/</span><span style="line-height: 15px; color: #800000; ">string</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; "><br /></span><span style="line-height: 15px; color: #0000ff; ">&lt;</span><span style="line-height: 15px; color: #800000; ">string</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; ">新宋体-18030</span><span style="line-height: 15px; color: #0000ff; ">&lt;/</span><span style="line-height: 15px; color: #800000; ">string</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; "><br /></span><span style="line-height: 15px; color: #0000ff; ">&lt;</span><span style="line-height: 15px; color: #800000; ">string</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; ">楷体_GB2312</span><span style="line-height: 15px; color: #0000ff; ">&lt;/</span><span style="line-height: 15px; color: #800000; ">string</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; "><br /></span><span style="line-height: 15px; color: #0000ff; ">&lt;</span><span style="line-height: 15px; color: #800000; ">string</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; ">仿宋_GB2312</span><span style="line-height: 15px; color: #0000ff; ">&lt;/</span><span style="line-height: 15px; color: #800000; ">string</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; "><br /></span><span style="line-height: 15px; color: #0000ff; ">&lt;</span><span style="line-height: 15px; color: #800000; ">string</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; ">隶体</span><span style="line-height: 15px; color: #0000ff; ">&lt;/</span><span style="line-height: 15px; color: #800000; ">string</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; "><br /></span><span style="line-height: 15px; color: #0000ff; ">&lt;</span><span style="line-height: 15px; color: #800000; ">string</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; ">SimSun-18030</span><span style="line-height: 15px; color: #0000ff; ">&lt;/</span><span style="line-height: 15px; color: #800000; ">string</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; "><br /></span><span style="line-height: 15px; color: #0000ff; ">&lt;</span><span style="line-height: 15px; color: #800000; ">string</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; ">SimHei</span><span style="line-height: 15px; color: #0000ff; ">&lt;/</span><span style="line-height: 15px; color: #800000; ">string</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; "><br /></span><span style="line-height: 15px; color: #0000ff; ">&lt;</span><span style="line-height: 15px; color: #800000; ">string</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; ">NSimSun</span><span style="line-height: 15px; color: #0000ff; ">&lt;/</span><span style="line-height: 15px; color: #800000; ">string</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; "><br /></span><span style="line-height: 15px; color: #0000ff; ">&lt;</span><span style="line-height: 15px; color: #800000; ">string</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; ">NSimSun-18030</span><span style="line-height: 15px; color: #0000ff; ">&lt;/</span><span style="line-height: 15px; color: #800000; ">string</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; "><br /></span><span style="line-height: 15px; color: #0000ff; ">&lt;</span><span style="line-height: 15px; color: #800000; ">string</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; ">KaiTi_GB2312</span><span style="line-height: 15px; color: #0000ff; ">&lt;/</span><span style="line-height: 15px; color: #800000; ">string</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; "><br /></span><span style="line-height: 15px; color: #0000ff; ">&lt;</span><span style="line-height: 15px; color: #800000; ">string</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; ">FangSong_GB2312</span><span style="line-height: 15px; color: #0000ff; ">&lt;/</span><span style="line-height: 15px; color: #800000; ">string</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; "><br /></span><span style="line-height: 15px; color: #0000ff; ">&lt;</span><span style="line-height: 15px; color: #800000; ">string</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; ">LiSu</span><span style="line-height: 15px; color: #0000ff; ">&lt;/</span><span style="line-height: 15px; color: #800000; ">string</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; "><br /></span><span style="line-height: 15px; color: #0000ff; ">&lt;/</span><span style="line-height: 15px; color: #800000; ">test</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; "><br /><br /></span><span style="line-height: 15px; color: #0000ff; ">&lt;</span><span style="line-height: 15px; color: #800000; ">edit&nbsp;</span><span style="line-height: 15px; color: #ff0000; ">name</span><span style="line-height: 15px; color: #0000ff; ">="globaladvance"</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; "><br /></span><span style="line-height: 15px; color: #0000ff; ">&lt;</span><span style="line-height: 15px; color: #800000; ">bool</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; ">false</span><span style="line-height: 15px; color: #0000ff; ">&lt;/</span><span style="line-height: 15px; color: #800000; ">bool</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; "><br /></span><span style="line-height: 15px; color: #0000ff; ">&lt;/</span><span style="line-height: 15px; color: #800000; ">edit</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; "><br /><br /></span><span style="line-height: 15px; color: #0000ff; ">&lt;</span><span style="line-height: 15px; color: #800000; ">edit&nbsp;</span><span style="line-height: 15px; color: #ff0000; ">name</span><span style="line-height: 15px; color: #0000ff; ">="spacing"</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; "><br /></span><span style="line-height: 15px; color: #0000ff; ">&lt;</span><span style="line-height: 15px; color: #800000; ">int</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; ">0</span><span style="line-height: 15px; color: #0000ff; ">&lt;/</span><span style="line-height: 15px; color: #800000; ">int</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; "><br /></span><span style="line-height: 15px; color: #0000ff; ">&lt;/</span><span style="line-height: 15px; color: #800000; ">edit</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; "><br /><br /></span><span style="line-height: 15px; color: #0000ff; ">&lt;</span><span style="line-height: 15px; color: #800000; ">edit&nbsp;</span><span style="line-height: 15px; color: #ff0000; ">name</span><span style="line-height: 15px; color: #0000ff; ">="hinting"</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; "><br /></span><span style="line-height: 15px; color: #0000ff; ">&lt;</span><span style="line-height: 15px; color: #800000; ">bool</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; ">true</span><span style="line-height: 15px; color: #0000ff; ">&lt;/</span><span style="line-height: 15px; color: #800000; ">bool</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; "><br /></span><span style="line-height: 15px; color: #0000ff; ">&lt;/</span><span style="line-height: 15px; color: #800000; ">edit</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; "><br /><br /></span><span style="line-height: 15px; color: #0000ff; ">&lt;</span><span style="line-height: 15px; color: #800000; ">edit&nbsp;</span><span style="line-height: 15px; color: #ff0000; ">name</span><span style="line-height: 15px; color: #0000ff; ">="autohint"</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; "><br /></span><span style="line-height: 15px; color: #0000ff; ">&lt;</span><span style="line-height: 15px; color: #800000; ">bool</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; ">false</span><span style="line-height: 15px; color: #0000ff; ">&lt;/</span><span style="line-height: 15px; color: #800000; ">bool</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; "><br /></span><span style="line-height: 15px; color: #0000ff; ">&lt;/</span><span style="line-height: 15px; color: #800000; ">edit</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; "><br /><br /></span><span style="line-height: 15px; color: #0000ff; ">&lt;</span><span style="line-height: 15px; color: #800000; ">edit&nbsp;</span><span style="line-height: 15px; color: #ff0000; ">name</span><span style="line-height: 15px; color: #0000ff; ">="antialias"</span><span style="line-height: 15px; color: #ff0000; ">&nbsp;mode</span><span style="line-height: 15px; color: #0000ff; ">="assign"</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; "><br /></span><span style="line-height: 15px; color: #0000ff; ">&lt;</span><span style="line-height: 15px; color: #800000; ">bool</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; ">true</span><span style="line-height: 15px; color: #0000ff; ">&lt;/</span><span style="line-height: 15px; color: #800000; ">bool</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; "><br /></span><span style="line-height: 15px; color: #0000ff; ">&lt;/</span><span style="line-height: 15px; color: #800000; ">edit</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; "><br /><br /></span><span style="line-height: 15px; color: #0000ff; ">&lt;</span><span style="line-height: 15px; color: #800000; ">test&nbsp;</span><span style="line-height: 15px; color: #ff0000; ">name</span><span style="line-height: 15px; color: #0000ff; ">="pixelsize"</span><span style="line-height: 15px; color: #ff0000; ">&nbsp;compare</span><span style="line-height: 15px; color: #0000ff; ">="more_eq"</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; "><br /></span><span style="line-height: 15px; color: #0000ff; ">&lt;</span><span style="line-height: 15px; color: #800000; ">int</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; ">12</span><span style="line-height: 15px; color: #0000ff; ">&lt;/</span><span style="line-height: 15px; color: #800000; ">int</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; "><br /></span><span style="line-height: 15px; color: #0000ff; ">&lt;/</span><span style="line-height: 15px; color: #800000; ">test</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; "><br /></span><span style="line-height: 15px; color: #0000ff; ">&lt;</span><span style="line-height: 15px; color: #800000; ">test&nbsp;</span><span style="line-height: 15px; color: #ff0000; ">name</span><span style="line-height: 15px; color: #0000ff; ">="pixelsize"</span><span style="line-height: 15px; color: #ff0000; ">&nbsp;compare</span><span style="line-height: 15px; color: #0000ff; ">="less_eq"</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; "><br /><br /></span><span style="line-height: 15px; color: #0000ff; ">&lt;</span><span style="line-height: 15px; color: #800000; ">int</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; ">24</span><span style="line-height: 15px; color: #0000ff; ">&lt;/</span><span style="line-height: 15px; color: #800000; ">int</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; "><br /></span><span style="line-height: 15px; color: #0000ff; ">&lt;/</span><span style="line-height: 15px; color: #800000; ">test</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; "><br /><br /></span><span style="line-height: 15px; color: #0000ff; ">&lt;</span><span style="line-height: 15px; color: #800000; ">edit&nbsp;</span><span style="line-height: 15px; color: #ff0000; ">name</span><span style="line-height: 15px; color: #0000ff; ">="antialias"</span><span style="line-height: 15px; color: #ff0000; ">&nbsp;mode</span><span style="line-height: 15px; color: #0000ff; ">="assign"</span>&nbsp;<span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; "><br /></span><span style="line-height: 15px; color: #0000ff; ">&lt;</span><span style="line-height: 15px; color: #800000; ">bool</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; ">false</span><span style="line-height: 15px; color: #0000ff; ">&lt;/</span><span style="line-height: 15px; color: #800000; ">bool</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; "><br /></span><span style="line-height: 15px; color: #0000ff; ">&lt;/</span><span style="line-height: 15px; color: #800000; ">edit</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; "><br /></span><span style="line-height: 15px; color: #0000ff; ">&lt;/</span><span style="line-height: 15px; color: #800000; ">match</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; "><br /><br /></span><span style="line-height: 15px; color: #0000ff; ">&lt;/</span><span style="line-height: 15px; color: #800000; ">fontconfig</span><span style="line-height: 15px; color: #0000ff; ">&gt;</span><span style="line-height: 15px; ">&nbsp;<br /></span></div><br style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 16px; background-color: #ffffff; " /><span style="line-height: 15px; font-size: 13px; font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; background-color: #ffffff; ">3、按Ctrl+Alt+Backspace重启X-windows，应该是这样的功能吧。</span></div></div><img src ="http://www.cppblog.com/eamon100/aggbug/153945.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/eamon100/" target="_blank">eamon</a> 2011-08-20 12:15 <a href="http://www.cppblog.com/eamon100/archive/2011/08/20/153945.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>查看Linux的启动信息</title><link>http://www.cppblog.com/eamon100/archive/2011/08/20/153944.html</link><dc:creator>eamon</dc:creator><author>eamon</author><pubDate>Sat, 20 Aug 2011 04:14:00 GMT</pubDate><guid>http://www.cppblog.com/eamon100/archive/2011/08/20/153944.html</guid><wfw:comment>http://www.cppblog.com/eamon100/comments/153944.html</wfw:comment><comments>http://www.cppblog.com/eamon100/archive/2011/08/20/153944.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/eamon100/comments/commentRss/153944.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/eamon100/services/trackbacks/153944.html</trackback:ping><description><![CDATA[<div><span style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 16px; background-color: #ffffff; ">1.在/etc/defaults/bootlogd中设定</span><br style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 16px; background-color: #ffffff; " /><br style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 16px; background-color: #ffffff; " /><div style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 16px; background-color: #eeeeee; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: #cccccc; border-right-color: #cccccc; border-bottom-color: #cccccc; border-left-color: #cccccc; padding-top: 4px; padding-right: 5px; padding-bottom: 4px; padding-left: 4px; width: 753px; "><span style="line-height: 15px; ">BOOTLOGD_ENABLE</span><span style="line-height: 15px; ">=</span><span style="line-height: 15px; ">Yes</span></div><br style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 16px; background-color: #ffffff; " /><span style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 16px; background-color: #ffffff; ">启动后察看/var/log/bootlog</span><br style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 16px; background-color: #ffffff; " /><br style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 16px; background-color: #ffffff; " /><span style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 16px; background-color: #ffffff; ">2.使用dmesg命令也可以显示一些启动信息</span></div><img src ="http://www.cppblog.com/eamon100/aggbug/153944.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/eamon100/" target="_blank">eamon</a> 2011-08-20 12:14 <a href="http://www.cppblog.com/eamon100/archive/2011/08/20/153944.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>chrome for ubuntu</title><link>http://www.cppblog.com/eamon100/archive/2011/08/20/153943.html</link><dc:creator>eamon</dc:creator><author>eamon</author><pubDate>Sat, 20 Aug 2011 04:12:00 GMT</pubDate><guid>http://www.cppblog.com/eamon100/archive/2011/08/20/153943.html</guid><wfw:comment>http://www.cppblog.com/eamon100/comments/153943.html</wfw:comment><comments>http://www.cppblog.com/eamon100/archive/2011/08/20/153943.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/eamon100/comments/commentRss/153943.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/eamon100/services/trackbacks/153943.html</trackback:ping><description><![CDATA[<div><span style="font-family: Verdana, Geneva, Arial, Helvetica, sans-serif; font-size: 13px; line-height: 16px; background-color: #ffffff; ">http://dl.google.com/linux/chrome/deb/&nbsp;stable main</span></div><img src ="http://www.cppblog.com/eamon100/aggbug/153943.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/eamon100/" target="_blank">eamon</a> 2011-08-20 12:12 <a href="http://www.cppblog.com/eamon100/archive/2011/08/20/153943.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>在Ubuntu 10.04 上安装SUN java 1.5.0</title><link>http://www.cppblog.com/eamon100/archive/2011/08/20/153942.html</link><dc:creator>eamon</dc:creator><author>eamon</author><pubDate>Sat, 20 Aug 2011 04:10:00 GMT</pubDate><guid>http://www.cppblog.com/eamon100/archive/2011/08/20/153942.html</guid><wfw:comment>http://www.cppblog.com/eamon100/comments/153942.html</wfw:comment><comments>http://www.cppblog.com/eamon100/archive/2011/08/20/153942.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/eamon100/comments/commentRss/153942.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/eamon100/services/trackbacks/153942.html</trackback:ping><description><![CDATA[一、下载安装<br /><span style="color: #333333; font-family: arial, sans-serif; font-size: 13px; line-height: 16px; text-indent: 20px; ">Java 5: for Froyo and older</span><div style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; border-style: initial; border-color: initial; "><br /><div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />-->sudo&nbsp;add-apt-repository&nbsp;"deb&nbsp;http://archive.ubuntu.com/ubuntu&nbsp;dapper&nbsp;main&nbsp;multiverse"<br />sudo&nbsp;add-apt-repository&nbsp;"deb&nbsp;http://archive.ubuntu.com/ubuntu&nbsp;dapper-updates&nbsp;main&nbsp;multiverse"<br />sudo&nbsp;apt-get&nbsp;update<br />sudo&nbsp;apt-get&nbsp;install&nbsp;sun-java5-jdk<br />sudo&nbsp;update-java-alternatives&nbsp;-s&nbsp;java-1.5.0-sun</div><font face="arial, sans-serif" size="2" style="color: #333333; "><span style="line-height: 15px;">二、设置JAVA环境</span></font><br /><div><blockquote style="color: #333333; font-family: arial, sans-serif; line-height: 15px; font-style: italic; font-size: 11.5px; background-color: #ffffff; margin-top: 0pt; margin-right: 0pt; margin-bottom: 0pt; margin-left: 40px; border-top-width: medium; border-right-width: medium; border-bottom-width: medium; border-left-width: medium; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><div><div><span style="font-size: 13px; "><span style="line-height: 28px; font-size: large; "><span style="line-height: 16px; font-size: 12px; color: #000000; "><div style="margin-top: 10px; margin-right: 5px; margin-bottom: 0px; margin-left: 5px; padding-top: 2px; padding-right: 4px; padding-bottom: 2px; padding-left: 4px; border-left-color: #9f4c09; "><strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">代码:</strong></div><div style="margin-top: 0px; margin-right: 5px; margin-bottom: 10px; margin-left: 5px; padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; direction: ltr; border-left-color: #dbba75; color: #006600; font-size: 1em; "><div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><span style="color: #000000; ">sudo&nbsp;gedit&nbsp;</span><span style="color: #000000; ">/</span><span style="color: #000000; ">etc</span><span style="color: #000000; ">/</span><span style="color: #000000; ">profile</span></div></div><div><span style="line-height: 19px; font-size: medium; ">在该文件中加入：</span></div></span></span></span></div></div></blockquote><blockquote style="color: #333333; font-style: italic; background-color: #ffffff; margin-top: 0pt; margin-right: 0pt; margin-bottom: 0pt; margin-left: 40px; border-top-width: medium; border-right-width: medium; border-bottom-width: medium; border-left-width: medium; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><blockquote style="margin-top: 0pt; margin-right: 0pt; margin-bottom: 0pt; margin-left: 40px; border-top-width: medium; border-right-width: medium; border-bottom-width: medium; border-left-width: medium; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><div><div><span style="color: #000000; "><div><div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />-->export&nbsp;JAVA_HOME=/usr/lib/jvm/java-1.5.0-sun<br />export&nbsp;PATH=$JAVA_HOME/bin:$JAVA_HOME/jre/bin:$PATH<br />export&nbsp;CLASSPATH=$CLASSPATH:.:$JAVA_HOME/lib:$JAVA_HOME/jre/lib</div></div><div style="font-family: arial, sans-serif; font-size: 12px; line-height: 16px; "><span style="line-height: 21px; font-size: 14px; font-family: 'Thorndale AMT', serif; "><strong><span style="font-size: 13px; font-weight: normal; "><strong><span style="font-weight: normal; "><strong><br /></strong></span></strong></span></strong></span></div></span></div></div></blockquote><span style="line-height: 15px; font-size: 13px; font-family: 'Thorndale AMT', serif; "><span style="line-height: 19px; font-size: medium; ">如果你安装JDK 的目录不同我的，只要将第一行&#8220;=&#8221;后的路径改成你的安装目录路径即可，<span style="line-height: 15px; font-size: 13px; color: #ff0000; ">第 二、三行都不用修改！</span></span></span></blockquote><blockquote style="color: #333333; font-family: arial, sans-serif; line-height: 15px; font-style: italic; font-size: 11.5px; background-color: #ffffff; margin-top: 0pt; margin-right: 0pt; margin-bottom: 0pt; margin-left: 40px; border-top-width: medium; border-right-width: medium; border-bottom-width: medium; border-left-width: medium; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><span style="font-size: 13px; font-family: 'Thorndale AMT', serif; "><span style="line-height: 19px; font-size: medium; "><span style="line-height: 15px; font-size: 13px; color: #ff0000; "><br /></span></span></span></blockquote><blockquote style="color: #333333; font-family: arial, sans-serif; line-height: 15px; font-style: italic; font-size: 11.5px; background-color: #ffffff; margin-top: 0pt; margin-right: 0pt; margin-bottom: 0pt; margin-left: 40px; border-top-width: medium; border-right-width: medium; border-bottom-width: medium; border-left-width: medium; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><span style="font-size: 13px; font-family: 'Thorndale AMT', serif; "><span style="line-height: 19px; font-size: medium; ">然后要系配置生效，执行：</span></span></blockquote><blockquote style="font-family: arial, sans-serif; line-height: 15px; font-style: italic; font-size: 11.5px; background-color: #ffffff; margin-top: 0pt; margin-right: 0pt; margin-bottom: 0pt; margin-left: 40px; border-top-width: medium; border-right-width: medium; border-bottom-width: medium; border-left-width: medium; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><span style="font-size: 13px; "><div style="color: #333333; line-height: 19px; margin-top: 10px; margin-right: 5px; margin-bottom: 0px; margin-left: 5px; padding-top: 2px; padding-right: 4px; padding-bottom: 2px; padding-left: 4px; border-left-color: #9f4c09; "><strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">代码<br /></strong></div><div style="color: #333333; line-height: 19px; "><div style="background-color: #eeeeee; border-top-width: 1px; border-right-width: 1px; border-bottom-width: 1px; border-left-width: 1px; border-top-style: solid; border-right-style: solid; border-bottom-style: solid; border-left-style: solid; border-top-color: #cccccc; border-right-color: #cccccc; border-bottom-color: #cccccc; border-left-color: #cccccc; padding-right: 5px; padding-bottom: 4px; padding-left: 4px; padding-top: 4px; width: 98%; word-break: break-all; "><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><span style="color: #000000; ">source&nbsp;</span><span style="color: #000000; ">/</span><span style="color: #000000; ">etc</span><span style="color: #000000; ">/</span><span style="color: #000000; ">profile</span></div></div></span></blockquote><blockquote style="color: #333333; font-family: arial, sans-serif; line-height: 15px; font-style: italic; font-size: 11.5px; background-color: #ffffff; margin-top: 0pt; margin-right: 0pt; margin-bottom: 0pt; margin-left: 40px; border-top-width: medium; border-right-width: medium; border-bottom-width: medium; border-left-width: medium; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><span style="line-height: 19px; font-size: medium; ">可以用下面的命令查看是否成功</span></blockquote><blockquote style="font-family: arial, sans-serif; line-height: 15px; font-style: italic; background-color: #ffffff; margin-top: 0pt; margin-right: 0pt; margin-bottom: 0pt; margin-left: 40px; border-top-width: medium; border-right-width: medium; border-bottom-width: medium; border-left-width: medium; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; "><span style="line-height: 19px; "><span style="line-height: 16px; "><div style="font-size: 12px; color: #333333; margin-top: 10px; margin-right: 5px; margin-bottom: 0px; margin-left: 5px; padding-top: 2px; padding-right: 4px; padding-bottom: 2px; padding-left: 4px; border-left-color: #9f4c09; "><strong style="margin-top: 0px; margin-right: 0px; margin-bottom: 0px; margin-left: 0px; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; ">代码:<br /></strong></div><div style="margin-top: 0px; margin-right: 5px; margin-bottom: 10px; margin-left: 5px; padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; direction: ltr; border-left-color: #dbba75; "><div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><span style="color: #000000; ">java&nbsp;</span><span style="color: #000000; ">-</span><span style="color: #000000; ">version</span></div></div></span></span><span style="font-size: 13px; "><span style="line-height: 19px; font-size: medium; "><span style="line-height: 16px; font-size: 12px; "><span style="color: #333333; line-height: 19px; font-size: medium; ">如果出现：<br /></span></span></span></span></blockquote><blockquote style="font-family: arial, sans-serif; font-style: italic; margin-top: 0pt; margin-right: 0pt; margin-bottom: 0pt; margin-left: 40px; border-top-width: medium; border-right-width: medium; border-bottom-width: medium; border-left-width: medium; border-top-style: none; border-right-style: none; border-bottom-style: none; border-left-style: none; border-color: initial; padding-top: 0px; padding-right: 0px; padding-bottom: 0px; padding-left: 0px; background-color: #ffffff; "><div style="margin-top: 0px; margin-right: 5px; margin-bottom: 10px; margin-left: 5px; padding-top: 5px; padding-right: 5px; padding-bottom: 5px; padding-left: 5px; direction: ltr; border-left-color: #dbba75; "><div style="background-color:#eeeeee;font-size:13px;border:1px solid #CCCCCC;padding-right: 5px;padding-bottom: 4px;padding-left: 4px;padding-top: 4px;width: 98%;word-break:break-all"><!--<br /><br />Code highlighting produced by Actipro CodeHighlighter (freeware)<br />http://www.CodeHighlighter.com/<br /><br />--><span style="color: #000000; ">java&nbsp;version&nbsp;</span><span style="color: #000000; ">"</span><span style="color: #000000; ">1.5.0_06</span><span style="color: #000000; ">"</span><span style="color: #000000; "><br />Java(TM)&nbsp;</span><span style="color: #000000; ">2</span><span style="color: #000000; ">&nbsp;Runtime&nbsp;Environment,&nbsp;Standard&nbsp;Edition&nbsp;(build&nbsp;</span><span style="color: #000000; ">1.5</span><span style="color: #000000; ">.0_06</span><span style="color: #000000; ">-</span><span style="color: #000000; ">b05)<br />Java&nbsp;HotSpot(TM)&nbsp;Client&nbsp;VM&nbsp;(build&nbsp;</span><span style="color: #000000; ">1.5</span><span style="color: #000000; ">.0_06</span><span style="color: #000000; ">-</span><span style="color: #000000; ">b05,&nbsp;mixed&nbsp;mode,&nbsp;sharing)</span></div><span style="line-height: 19px; font-size: medium; ">表明安装成功</span><font color="#006600"><span style="line-height: 16px; font-size: 1em;">。</span></font></div></blockquote></div></div><img src ="http://www.cppblog.com/eamon100/aggbug/153942.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/eamon100/" target="_blank">eamon</a> 2011-08-20 12:10 <a href="http://www.cppblog.com/eamon100/archive/2011/08/20/153942.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>