﻿<?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>IT博客-山和云的彼端-随笔分类-Linux</title><link>http://www.cnitblog.com/joyclear/category/7570.html</link><description /><language>zh-cn</language><lastBuildDate>Mon, 26 Sep 2011 05:53:50 GMT</lastBuildDate><pubDate>Mon, 26 Sep 2011 05:53:50 GMT</pubDate><ttl>60</ttl><item><title>Linux下的查询命令Find,Whereis</title><link>http://www.cnitblog.com/joyclear/archive/2008/09/07/48821.html</link><dc:creator>joyclear</dc:creator><author>joyclear</author><pubDate>Sun, 07 Sep 2008 14:02:00 GMT</pubDate><guid>http://www.cnitblog.com/joyclear/archive/2008/09/07/48821.html</guid><wfw:comment>http://www.cnitblog.com/joyclear/comments/48821.html</wfw:comment><comments>http://www.cnitblog.com/joyclear/archive/2008/09/07/48821.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnitblog.com/joyclear/comments/commentRss/48821.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/joyclear/services/trackbacks/48821.html</trackback:ping><description><![CDATA[在Linux下进行查找，发现Find比Whereis查询慢了好多，<br>查了一下资料，原来在Linux下，查询命令有不少，而且也有工作区别。<br>
<p>find最强大，什么都能查</p>
<p>which只能查可执行文件</p>
<p>whereis只能查二进制文件、说明文档，源文件等</p>
<p>locate能查所以，但跟whereis一样都是查数据库里的内容。<br><br>因为whereis是查询数据库，所以速度很快。<br>还有些具体的功能，要慢慢摸索</p>
<img src ="http://www.cnitblog.com/joyclear/aggbug/48821.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/joyclear/" target="_blank">joyclear</a> 2008-09-07 22:02 <a href="http://www.cnitblog.com/joyclear/archive/2008/09/07/48821.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>RedHat9中如何安装gcc(转)</title><link>http://www.cnitblog.com/joyclear/archive/2008/09/05/48775.html</link><dc:creator>joyclear</dc:creator><author>joyclear</author><pubDate>Fri, 05 Sep 2008 15:55:00 GMT</pubDate><guid>http://www.cnitblog.com/joyclear/archive/2008/09/05/48775.html</guid><wfw:comment>http://www.cnitblog.com/joyclear/comments/48775.html</wfw:comment><comments>http://www.cnitblog.com/joyclear/archive/2008/09/05/48775.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.cnitblog.com/joyclear/comments/commentRss/48775.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/joyclear/services/trackbacks/48775.html</trackback:ping><description><![CDATA[<div class=tit>&nbsp;</div>
<table style="TABLE-LAYOUT: fixed">
    <tbody>
        <tr>
            <td>
            <div class=cnt id=blog_text>现在介绍一下在安装gcc时可能遇到的问题。<br>在安装gcc时，可能会提示要求安装下面几个软件包：<br>binutils-2.13.90.0.18-9.i386.rpm<br>cpp-3.2.2-5.i386.rpm<br>glibc-devel-2.3.2-11.9.i386.rpm<br><br>别担心，一步一步来。首先在red hat 第一张光盘中查找以上三个软件包，并安装它们。<br><br>[root@RedHat9 mnt]# mount /dev/cdrom /mnt/cdrom/<br>mount: block device /dev/cdrom is write-protected, mounting read-only<br>[root@RedHat9 mnt]# find -iname binutils*<br>./cdrom/RedHat/RPMS/binutils-2.13.90.0.18-9.i386.rpm<br>[root@RedHat9 mnt]# rpm -ivh cdrom/RedHat/RPMS/binutils-2.13.90.0.18-9.i386.rpm<br>warning: cdrom/RedHat/RPMS/binutils-2.13.90.0.18-9.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e<br>Preparing... &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; ########################################### [100%]<br>1:binutils &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; ########################################### [100%]<br>[root@RedHat9 mnt]# find -iname cpp*<br>./cdrom/RedHat/RPMS/cpp-3.2.2-5.i386.rpm<br>[root@RedHat9 mnt]# rpm -ivh cdrom/RedHat/RPMS/cpp-3.2.2-5.i386.rpm<br>warning: cdrom/RedHat/RPMS/cpp-3.2.2-5.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e<br>Preparing... &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; ########################################### [100%]<br>1:cpp &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ########################################### [100%]<br>[root@RedHat9 mnt]# find -iname glibc-devel*<br>./cdrom/RedHat/RPMS/glibc-devel-2.3.2-11.9.i386.rpm<br>[root@RedHat9 mnt]# rpm -ivh cdrom/RedHat/RPMS/glibc-devel-2.3.2-11.9.i386.rpm<br>warning: cdrom/RedHat/RPMS/glibc-devel-2.3.2-11.9.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e<br>error: Failed dependencies:<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; kernel-headers is needed by glibc-devel-2.3.2-11.9<br>&nbsp;&nbsp; &nbsp;&nbsp;&nbsp; kernel-headers &gt;;= 2.2.1 is needed by glibc-devel-2.3.2-11.9<br><br>这时不要查找kernel-headers，放心，你在三张光盘中都找不到kernel-headers的。你要查找glibc-kernheaders，看下面：<br><br>[root@RedHat9 mnt]# find -iname glibc-k*<br>./cdrom/RedHat/RPMS/glibc-kernheaders-2.4-8.10.i386.rpm<br>[root@RedHat9 mnt]# rpm -ivh cdrom/RedHat/RPMS/glibc-kernheaders-2.4-8.10.i386.rpm<br>warning: cdrom/RedHat/RPMS/glibc-kernheaders-2.4-8.10.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e<br>Preparing... &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; ########################################### [100%]<br>1:glibc-kernheaders &nbsp;&nbsp; ########################################### [100%]<br>[root@RedHat9 mnt]# find -iname glibc-devel*<br>./cdrom/RedHat/RPMS/glibc-devel-2.3.2-11.9.i386.rpm<br>[root@RedHat9 mnt]# rpm -ivh cdrom/RedHat/RPMS/glibc-devel-2.3.2-11.9.i386.rpm<br>warning: cdrom/RedHat/RPMS/glibc-devel-2.3.2-11.9.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e<br>Preparing... &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; ########################################### [100%]<br>1:glibc-devel &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; ########################################### [100%]<br><br>到此为止，gcc所依赖的软件包都安装了，现在插入第二张光盘，安装gcc：<br><br>[root@RedHat9 mnt]# umount /mnt/cdrom<br>[root@RedHat9 mnt]# mount /dev/cdrom /mnt/cdrom/<br>mount: block device /dev/cdrom is write-protected, mounting read-only<br>[root@RedHat9 mnt]# find -iname gcc*<br>./cdrom/RedHat/RPMS/gcc-3.2.2-5.i386.rpm<br>./cdrom/RedHat/RPMS/gcc-c++-3.2.2-5.i386.rpm<br>./cdrom/RedHat/RPMS/gcc-g77-3.2.2-5.i386.rpm<br>./cdrom/RedHat/RPMS/gcc-gnat-3.2.2-5.i386.rpm<br>./cdrom/RedHat/RPMS/gcc-java-3.2.2-5.i386.rpm<br>./cdrom/RedHat/RPMS/gcc-objc-3.2.2-5.i386.rpm<br>[root@RedHat9 mnt]# rpm -ivh cdrom/RedHat/RPMS/gcc-3.2.2-5.i386.rpm<br>warning: cdrom/RedHat/RPMS/gcc-3.2.2-5.i386.rpm: V3 DSA signature: NOKEY, key ID db42a60e<br>Preparing... &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; ########################################### [100%]<br>1:gcc &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp; &nbsp;&nbsp;&nbsp; ########################################### [100%]<br>[root@RedHat9 mnt]#<br><br>现在查看一下gcc有没有装好：<br><br>[root@RedHat9 mnt]# rpm -qa gcc*<br>gcc-3.2.2-5<br>[root@RedHat9 mnt]#<br><br>gcc安装成功</div>
            </td>
        </tr>
    </tbody>
</table>
<img src ="http://www.cnitblog.com/joyclear/aggbug/48775.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/joyclear/" target="_blank">joyclear</a> 2008-09-05 23:55 <a href="http://www.cnitblog.com/joyclear/archive/2008/09/05/48775.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>RedHat 9设定网络</title><link>http://www.cnitblog.com/joyclear/archive/2008/09/05/48772.html</link><dc:creator>joyclear</dc:creator><author>joyclear</author><pubDate>Fri, 05 Sep 2008 15:27:00 GMT</pubDate><guid>http://www.cnitblog.com/joyclear/archive/2008/09/05/48772.html</guid><wfw:comment>http://www.cnitblog.com/joyclear/comments/48772.html</wfw:comment><comments>http://www.cnitblog.com/joyclear/archive/2008/09/05/48772.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnitblog.com/joyclear/comments/commentRss/48772.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/joyclear/services/trackbacks/48772.html</trackback:ping><description><![CDATA[<p>在家测试Linux, 发现通过DHCP不能上网，在终端中执行ifconfig ， 提示没有这个命令。<br>通过whereis ifconfig， 检查到文件在/sbin目录下。<br>检查$PATH , /sbin并不在路径中， 进入用户目录 .bash_profile添加:/sbin目录<br>注销用户重新登陆后，能正常执行ifconfig</p>
<img src ="http://www.cnitblog.com/joyclear/aggbug/48772.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/joyclear/" target="_blank">joyclear</a> 2008-09-05 23:27 <a href="http://www.cnitblog.com/joyclear/archive/2008/09/05/48772.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>VPC下安装RedHat Linux 9, 进入图形界面错误</title><link>http://www.cnitblog.com/joyclear/archive/2008/09/05/48757.html</link><dc:creator>joyclear</dc:creator><author>joyclear</author><pubDate>Fri, 05 Sep 2008 07:48:00 GMT</pubDate><guid>http://www.cnitblog.com/joyclear/archive/2008/09/05/48757.html</guid><wfw:comment>http://www.cnitblog.com/joyclear/comments/48757.html</wfw:comment><comments>http://www.cnitblog.com/joyclear/archive/2008/09/05/48757.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cnitblog.com/joyclear/comments/commentRss/48757.html</wfw:commentRss><trackback:ping>http://www.cnitblog.com/joyclear/services/trackbacks/48757.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp; 在VPC下安装了Linux 9，结果启动进入图形界面后，屏幕拉伸，什么都看不到，安装的时候选择是默认安装S3显卡。<br>查了一下原来在9.0里面驱动认为S3支持24位色，实际上只支持16位色，需要更改。<br><br>&nbsp;&nbsp;&nbsp;&nbsp; 网上查找到的解决方法：&nbsp;&nbsp;&nbsp; <br>&nbsp;&nbsp;&nbsp;&nbsp; 首先重新启动您的虚拟机，在出现grub后，在您安装的系统上面按&#8220;e&#8221;，然后出现grub的配置文件，移动鼠标到第二行&#8220;Ker&#8230;&#8230;&#8221;，再按&#8220;e&#8221;，然后您在这一行的结尾加上：空格 single，或者&#8220;/init 1&#8221;，然后按&#8220;b&#8221;重启，即可进入&#8220;单用户模式&#8221;。进入后，您在提示符下敲入：vi /etc/X11/XF86Config （如果您记不了那么多，您可以按tab键，系统会自动给您补上后面的字母），然后会打开这个文件，您输入&#8220;/screen&#8221;，然后程序会给您找到有关它的配置的地方。然后您按&#8220;i&#8221;键进入插入模式，把这里的24改为16，然后按ESC键，按Shift+：，输入wq回车存退出。输入init 6，重新启动。
<img src ="http://www.cnitblog.com/joyclear/aggbug/48757.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cnitblog.com/joyclear/" target="_blank">joyclear</a> 2008-09-05 15:48 <a href="http://www.cnitblog.com/joyclear/archive/2008/09/05/48757.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>