<?xml version="1.0" encoding="UTF-8"?>
<rss version="2.0"
	xmlns:content="http://purl.org/rss/1.0/modules/content/"
	xmlns:wfw="http://wellformedweb.org/CommentAPI/"
	xmlns:dc="http://purl.org/dc/elements/1.1/"
	xmlns:atom="http://www.w3.org/2005/Atom"
	xmlns:sy="http://purl.org/rss/1.0/modules/syndication/"
	xmlns:slash="http://purl.org/rss/1.0/modules/slash/"
	>

<channel>
	<title>可可熊的窝 &#187; Linux</title>
	<atom:link href="http://cocobear.info/blog/tag/linux/feed/" rel="self" type="application/rss+xml" />
	<link>http://cocobear.info/blog</link>
	<description>K.I.S.S</description>
	<lastBuildDate>Sat, 10 Dec 2011 16:11:01 +0000</lastBuildDate>
	<language>en</language>
	<sy:updatePeriod>hourly</sy:updatePeriod>
	<sy:updateFrequency>1</sy:updateFrequency>
	<generator>http://wordpress.org/?v=3.2.1</generator>
		<item>
		<title>想换一个Linux发行版</title>
		<link>http://cocobear.info/blog/2008/12/04/want-a-new-linux-distribute/</link>
		<comments>http://cocobear.info/blog/2008/12/04/want-a-new-linux-distribute/#comments</comments>
		<pubDate>Thu, 04 Dec 2008 02:01:38 +0000</pubDate>
		<dc:creator>可可熊</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Fedora]]></category>

		<guid isPermaLink="false">http://cocobear.info/blog/?p=406</guid>
		<description><![CDATA[用了Fedora也有不少时间了，总的感觉还不错，但是我想要一个可以掌握在手里的系统，比较干净一些，不想有一些我从来用不到的东西，比如Java，我很讨厌系统里面有这些个东西，Fedora安装下来有不少没用的东西，即使使用很小的安装也得占大概2G的空间。 我希望的这个发型版： 比较干净（没用的东西尽量少，需要的时候才安装） 定制性比较强，安装软件比较容易（但也不可以因为我想听个歌而让我折腾半天的时间去装个播放器，也不可以让我花大量时间去折腾显卡配置等系统问题，我需要专注做事情，而不是折腾系统，系统只是个工具） 很方便使用X，我大部分时间还是需要X的； 比较适合做开发，比如Python，SDL，OpenGL，wxPython&#8230;&#8230; 速度比较快，Fedora开机的时候会加载很多没用的东西，当然这些可以自己手动去掉，俺还是不喜欢； 升级不能太频繁，Fedora从5开始用，现在都10了，才两年多的时间，太快了，虽然系统确实一直在进步，或者至少可以平滑的升级，Fedora在这方面做的不好； 稳定性比较好，说实话用这么长时间Fedora，还是有不少时间莫名的死掉； 暂时就想到这么多，最近把大部份的Linux发型版介绍都看了看，目前觉得以下几个比较合适的我需要： ArchLinux Slackware Gentoo 现在还拿不定主意，路过的给个选择，或者还有别的发型版更合适我？]]></description>
		<wfw:commentRss>http://cocobear.info/blog/2008/12/04/want-a-new-linux-distribute/feed/</wfw:commentRss>
		<slash:comments>25</slash:comments>
		</item>
		<item>
		<title>Fedora 9 通过E680G/I手机实现GPRS上网</title>
		<link>http://cocobear.info/blog/2008/10/16/e680-gprs-linux/</link>
		<comments>http://cocobear.info/blog/2008/10/16/e680-gprs-linux/#comments</comments>
		<pubDate>Thu, 16 Oct 2008 02:43:06 +0000</pubDate>
		<dc:creator>可可熊</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[E680]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[GPRS]]></category>

		<guid isPermaLink="false">http://cocobear.info/blog/?p=316</guid>
		<description><![CDATA[电脑通过E680G/I手机实现GPRS上网 E680是一款摩托的Linux系统手机，在Windows下可以通过自带的MPT工具包实现与电脑连接的GPRS上网，在Linux下也是比较方便的，以前我也用过，只是没记下来，今天再用的时候还得看别人写的文章，还是自己记一下。 我用的是Fedora 9，一般的Linux系统都应该可以，大同小异。首先是手机端设置连接模式为调制解调器(Modem)，通过数据线连接到电脑后(也可以用蓝牙，我这里没有环境)，Fedora 9会识别到有新的调制解调器： 发现新硬件: usb 4-3: new full speed USB device using ohci_hcd and address 2 usb 4-3: configuration #1 chosen from 1 choice usb 4-3: New USB device found, idVendor=22b8, idProduct=3802 usb 4-3: New USB device strings: Mfr=1, Product=2, SerialNumber=0 usb 4-3: Product: Motorola USB Modem usb 4-3: Manufacturer: Motorola cdc_acm 4-3:1.0: [...]]]></description>
		<wfw:commentRss>http://cocobear.info/blog/2008/10/16/e680-gprs-linux/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>处理了下网站</title>
		<link>http://cocobear.info/blog/2008/08/15/deal-with-wes/</link>
		<comments>http://cocobear.info/blog/2008/08/15/deal-with-wes/#comments</comments>
		<pubDate>Fri, 15 Aug 2008 09:57:53 +0000</pubDate>
		<dc:creator>可可熊</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[MySQL]]></category>
		<category><![CDATA[Shell]]></category>

		<guid isPermaLink="false">http://cocobear.info/blog/?p=305</guid>
		<description><![CDATA[改了info域名后网站以前里很多页面里有cocobear.cn，连一些图片也显示不出来，今天就处理了一下： 把网站里一些文件做替换，先备份一下： grep cocobear.cn ./cocobear.info/ -R -l &#8211;binary-files=without-match&#124;xargs -i cp &#8211;parents {} bk/ 然后全部替换： grep cocobear.cn ./cocobear.info/ -R -l &#8211;binary-files=without-match &#124; xargs sed -i &#8216;s/cocobear\.cn[^@]/cocobear\.info/g&#8217; 剩下就是数据库里的内容了，主要是wp_posts表中的post_content字段，还有guid字段，还有wp_comments中的comment_author_url，wp_postmeta中的meta_value; 操作的命令是： mysql> update wp_posts set post_content=replace(post_content,&#8221;http://www.cocobear.cn&#8221;,&#8221;http://cocobear.info&#8221;); 当然在进行数据库操作时一定要记得先备份一下： mysqldump -h mysql.1g50.cn -u cocobear -p cocobear > 0808151.sql 使用 mysqldump -h mysql.1g50.cn -u cocobear -p cocobear < 0808151.sql恢复似乎不太好，还是进mysql里使用source ~/0808151.sql进行恢复。]]></description>
		<wfw:commentRss>http://cocobear.info/blog/2008/08/15/deal-with-wes/feed/</wfw:commentRss>
		<slash:comments>4</slash:comments>
		</item>
		<item>
		<title>crontab使用[转载]</title>
		<link>http://cocobear.info/blog/2008/08/14/learning-crontab/</link>
		<comments>http://cocobear.info/blog/2008/08/14/learning-crontab/#comments</comments>
		<pubDate>Thu, 14 Aug 2008 07:02:36 +0000</pubDate>
		<dc:creator>可可熊</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[crontab]]></category>

		<guid isPermaLink="false">http://cocobear.info/blog/?p=304</guid>
		<description><![CDATA[名称 : crontab 使用权限 : 所有使用者 使用方式 : crontab file [-u user]-用指定的文件替代目前的crontab。 crontab-[-u user]-用标准输入替代目前的crontab. crontab-1[user]-列出用户目前的crontab. crontab-e[user]-编辑用户目前的crontab. crontab-d[user]-删除用户目前的crontab. crontab-c dir- 指定crontab的目录。 crontab文件的格式：M H D m d cmd. M: 分钟（0-59）。 H：小时（0-23）。 D：天（1-31）。 m: 月（1-12）。 d: 一星期内的天（0~6，0为星期天）。 cmd要运行的程序，程序被送入sh执行，这个shell只有USER,HOME,SHELL这三个环境变量 说明 : crontab 是用来让使用者在固定时间或固定间隔执行程序之用，换句话说，也就是类似使用者的时程表。-u user 是指设定指定 user 的时程表，这个前提是你必须要有其权限(比如说是 root)才能够指定他人的时程表。如果不使用 -u user 的话，就是表示设定自己的时程表。 参数 : crontab -e : 执行文字编辑器来设定时程表，内定的文字编辑器是 VI，如果你想用别的文字编辑器，则请先设定 VISUAL [...]]]></description>
		<wfw:commentRss>http://cocobear.info/blog/2008/08/14/learning-crontab/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Fedora 8配置Heartbeat</title>
		<link>http://cocobear.info/blog/2008/08/07/fedora-8-heartbeat-config/</link>
		<comments>http://cocobear.info/blog/2008/08/07/fedora-8-heartbeat-config/#comments</comments>
		<pubDate>Thu, 07 Aug 2008 09:28:24 +0000</pubDate>
		<dc:creator>可可熊</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[heartbeat]]></category>

		<guid isPermaLink="false">http://cocobear.info/blog/?p=301</guid>
		<description><![CDATA[Heartbeat是http://linux-ha.org中HA项目的核心，HA是(High Availability)的缩写；简单来说就是为了提供高可靠的应用服务，例如拿两来机子来做HA，提供WEB服务，一台机子为主服务器平时提供WEB服务，HA就是保证在主服务器出现故障(例如掉电)的时候另一台机子可以立刻接手继续提供WEB服务，从而使用户觉得服务未曾中断；实际应用中可能使用更多的机子组成集群。 Heartbeat可以使用串口或者以太网来实现对主机的监测，这里使用的是以太网，在两台机器上分别配双网卡，用一根双绞线把两台机器连接在一起，另外两个网卡连到路由；配置是： f801(主机名；使用这台作为主服务器)： eth0: 192.168.1.110 eth1: 10.0.0.1 f802: eth1: 192.168.1.111 eth2: 10.0.0.2 网络配置好后测试无误后再检查两台机器上的WEB服务是否可以正常使用；一切都正常后使用yum安装Heartbeat： yum install heartbeat 安装好heartbeat后开始配置，三个主要配置文件都在： /usr/share/doc/heartbeat-2.1.3/下面，需要我们手工修改后拷贝到/etc/ha.d/中(两台服务器使用的脚本基本一样)。 编辑authkeys文件，下面的配置使用了sha1作为认证方式(这里需要注意的是该文件的权限必须被设置为600)： auth 2 #1 crc 2 sha1 HI! #3 md5 Hello! 编辑ha.cf，注释下掉以下内容： keepalive 1 ##设定心跳(监测)时间时间为1秒 warntime 10 ##设定警告时间 deadtime 30 ##设定确定主机宕机时间 initdead 120 ##第一宕机时间 ucast eth1 10.0.0.2 ##使用eht1做心跳监测 也就是连接两PC的网卡 udpport 694 ##使用udp端口694 进行心跳监测 node f801 ##节点1，必须要与 [...]]]></description>
		<wfw:commentRss>http://cocobear.info/blog/2008/08/07/fedora-8-heartbeat-config/feed/</wfw:commentRss>
		<slash:comments>3</slash:comments>
		</item>
		<item>
		<title>Fedora中mail命令无法发信</title>
		<link>http://cocobear.info/blog/2008/07/04/can-not-use-mail-in-fedora/</link>
		<comments>http://cocobear.info/blog/2008/07/04/can-not-use-mail-in-fedora/#comments</comments>
		<pubDate>Fri, 04 Jul 2008 07:46:25 +0000</pubDate>
		<dc:creator>可可熊</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[mail]]></category>

		<guid isPermaLink="false">http://cocobear.info/blog/?p=286</guid>
		<description><![CDATA[偶尔发现我机子上的mail命令不能发信，看了下错误日志： Jul 4 15:08:20 cocobear sendmail[4167]: m6478JxK004167: to=cocobear.cn@gmail.com, ctladdr=cocobear (500/500), delay=00:00:01, xdelay=00:00:00, mailer=relay, pri=30113, relay=[127.0.0.1] [127.0.0.1], dsn=4.0.0, stat=Deferred: Connection refused by [127.0.0.1] 发信的状态是Connection refused by [127.0.0.1] 原来是sendmail在Fedora中默认的配置有问题，修改/etc/mail/sendmail.mc文件: DAEMON_OPTIONS(`Port=smtp,Name=MTA&#8217;)dnl dnl #DAEMON_OPTIONS(`Port=smtp,Addr=127.0.0.1, Name=MTA&#8217;)dnl 把原来的指定Addr注释掉，原来这种配置只能向本机地址发送邮件，然后重新加载配置文件： make -C /etc/mail 重启服务: service sendmail restart 使用mail发信就正常了。 Update:080814: 今天又遇到这个问题了，CSDN那个文章没办法访问，看了看google的快照，顺便把过程写到这里。]]></description>
		<wfw:commentRss>http://cocobear.info/blog/2008/07/04/can-not-use-mail-in-fedora/feed/</wfw:commentRss>
		<slash:comments>1</slash:comments>
		</item>
		<item>
		<title>Fedora中ATI显示驱动问题</title>
		<link>http://cocobear.info/blog/2008/05/30/fedora9-ati/</link>
		<comments>http://cocobear.info/blog/2008/05/30/fedora9-ati/#comments</comments>
		<pubDate>Fri, 30 May 2008 08:25:34 +0000</pubDate>
		<dc:creator>可可熊</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[ATI]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[ssh]]></category>

		<guid isPermaLink="false">http://cocobear.info/blog/?p=285</guid>
		<description><![CDATA[Fedora9中由于Xorg版本过新的原因（刚开始我还以为是内核版本过新的原因），最新的ATI显卡驱动没办法使用，因此3D效果无法开启，在我的机子上不仅如此，而且连在runlevel 5 下使用Ctrl+ALT+F1这样切换终端都出现问题（不支援）。 忍了几天，今天终于解决掉了，我是按照这篇文章来做的，既然Xorg版本过新，那就直接换个低版本的Xorg（Linux不就有这个好处吗^_^）。 详细的我就不写出来了，说下大概过程： 首先是为系统添加Fedora8的源，可以直接下载这个文件，然后在Fedora9 yum配置文件中把xorg* linuxwacom* rhpxl* mesa*/&#8221; 相关的软件包排除掉，卸载Xorg，重新安装一次，这时由于Fedora9中已经排除了Xorg相关的软件包，因此yum就会从Fedora8的源中安装这些包，这样就得到了downgrade的效果。 文章的最后还给出来如果恢复到系统默认Xorg的办法，这里就不提了。 现在我的Fedora9完全没有问题了，^_^ btw:记个东西，ssh到内网的电脑： 首先得有个公网的IP，然后在内网（我公司的电脑）的电脑上使用下面命令： [cocobear@cocobear ~]$ ssh -f -N -R 1986:localhost:22 cocobear@208.113.171.94 （208.113.171.94这个IP是我网站的IP，一会儿会提到为什么用这个IP） 接着在有公网IP的电脑上登录这台内网机器： 因为我另一边要在宿舍来连公司的这台电脑，而宿舍的电脑也在内网，因此需要使用一个具有公网IP的跳板电脑，我先在宿舍ssh到我这个网站的服务器上： [cocobear@cocobear ~]$ ssh -l cocobear cocobear.info 然后在服务器上连接 [crystallight]$ ssh cocobear@localhost -p 1986 呵呵，这样就可以从宿舍电脑ssh到公司了，一会儿回宿舍看看公司这边电脑东西下完了没^_^]]></description>
		<wfw:commentRss>http://cocobear.info/blog/2008/05/30/fedora9-ati/feed/</wfw:commentRss>
		<slash:comments>5</slash:comments>
		</item>
		<item>
		<title>vim中使用sdcv(stardict CLI版)</title>
		<link>http://cocobear.info/blog/2008/05/19/vim-sdcv/</link>
		<comments>http://cocobear.info/blog/2008/05/19/vim-sdcv/#comments</comments>
		<pubDate>Mon, 19 May 2008 07:31:36 +0000</pubDate>
		<dc:creator>可可熊</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[sdcv]]></category>
		<category><![CDATA[Vim]]></category>

		<guid isPermaLink="false">http://cocobear.info/blog/?p=280</guid>
		<description><![CDATA[这里介绍的vim中使用辞典查词的方法不错，利用了vim的一些特性，这样平时使用vim的时候就可以手不离键盘要完成查词了。 sdvc是命令行版的Stardict,可以在这里下载，目前最新的版本是0.4.2，不过在ADM64平台下编译会出错，我在网上找到了一个补丁，不过这个补丁是针对debain用户的，有些用不上，那些找不到文件的patch就可以直接忽略掉。 如果在gvim中使用则在~/.gvimrc中添加： function Mybln() let expl=system('sdcv -n ' . \ v:beval_text . \ '&#124;fmt -cstw 40') return expl endfunction set bexpr=Mybln() set beval 如果直接在vim中使用，则在~/.vimrc中添加： function! Mydict() let expl=system('sdcv -n ' . \ expand(&#34;&#60;cword&#62;&#34;)) windo if \ expand(&#34;%&#34;)==&#34;diCt-tmp&#34; &#124; \ q!&#124;endif 25vsp diCt-tmp setlocal buftype=nofile bufhidden=hide noswapfile 1s/^/\=expl/ 1 endfunction nmap F :call Mydict()&#60;cr&#62; gvim中鼠标移动到单词上就可以得到翻译，在vim中光标移动到单词上，使用shift＋f可以新分割出来一个窗口显示单词的翻译。 [...]]]></description>
		<wfw:commentRss>http://cocobear.info/blog/2008/05/19/vim-sdcv/feed/</wfw:commentRss>
		<slash:comments>0</slash:comments>
		</item>
		<item>
		<title>Fedora9安装vmware</title>
		<link>http://cocobear.info/blog/2008/05/19/fedora9-vmware/</link>
		<comments>http://cocobear.info/blog/2008/05/19/fedora9-vmware/#comments</comments>
		<pubDate>Mon, 19 May 2008 01:32:25 +0000</pubDate>
		<dc:creator>可可熊</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Fedora]]></category>
		<category><![CDATA[vmware]]></category>

		<guid isPermaLink="false">http://cocobear.info/blog/?p=279</guid>
		<description><![CDATA[刚开始公司的机子上没办法装Fedora8，只好用vmware在XP下装了个Fedora8，现在F9出来了，在本机装了一个，以后就可以不用进XP了，不过F9似乎有些不太稳定，听说vmware也有linux版的,找了一个新6.0.3.build.80004版本的vmware，没想到安装时又出问题了，似乎又是因为内核版本过高的原因。 这里有一个解决方案，有人根据最新的内核写的vmware的补丁。 首先下载： http://blender6xx.ic.cz/pub/vmware/vmblock.patch http://blender6xx.ic.cz/pub/vmware/vmmon.patch http://blender6xx.ic.cz/pub/vmware/vmnet.patch 这几个补丁，然后安装使用vmware-install.pl 开始安装vmware，当编译出错时把这几个补丁打上去，需要打补丁的文件在：/usr/lib/vmware/modules/source/ ，有几个tar的包，先解压了，然后进入解压后的目录, 用 patch -Np1 < modulename.patch 打好补丁，然后再把打好补丁的包再打包一次。 完成后使用 vmware-config.pl 继续安装，中间可能会缺少一些库，如: libX11.so.6 libXtst.so.6 libXext.so.6 libXrender.so.1 libz.so.1 都可以在rpmfind.net里找到。 接下来一切都会顺利进行。把windows下的Fedora8拷过来直接就可以运行了，呵呵。]]></description>
		<wfw:commentRss>http://cocobear.info/blog/2008/05/19/fedora9-vmware/feed/</wfw:commentRss>
		<slash:comments>2</slash:comments>
		</item>
		<item>
		<title>Fedora9试用</title>
		<link>http://cocobear.info/blog/2008/05/15/fedora9-testing/</link>
		<comments>http://cocobear.info/blog/2008/05/15/fedora9-testing/#comments</comments>
		<pubDate>Thu, 15 May 2008 06:59:34 +0000</pubDate>
		<dc:creator>可可熊</dc:creator>
				<category><![CDATA[Linux]]></category>
		<category><![CDATA[Fedora]]></category>

		<guid isPermaLink="false">http://cocobear.info/blog/?p=277</guid>
		<description><![CDATA[刚在公司电脑上装了Fedora9，安装完成后发现X显示有问题，重启后进入X时显示器提示“不支援输入”，这个显示器是AOC的，查了下这种情况应该是刷新率与显示器的冲突吧，但是Fedora9中xorg.conf 文件已经不包含屏幕分辨率、刷新率的配置，而是自动进行检测，本来应该说是更智能了，但遇到这样的情况都没办法手动解决问题了，按照以往的经常，我把机子上Ubuntu的xorg.conf 文件拷了过来，覆盖掉原来的文件，X终于正常了，但屏幕的分辨率变为了：1152&#215;864，刷新率只有60Hz，而且使用Ctrl+Alt+num 切换到其它终端时显示“无信号”，太奇怪了。用了Fedora系统这么久还是头一次遇到这样的情况。 现在正在下ATI 的显卡驱动，不知道会不会解决这个问题。 在这里下载驱动，安装好后可以设置正确的分辨率，1280&#215;1024，但是其它终端仍然“无信号”，而且ati的那个控制中心没办法使用。 找到一篇文章，正在使用上面的方法重新安装驱动，里面有一点:yum install kmod-fglrx要加&#8211;enablerepo=livna-testing参数,，否则是无法找到kmod-fglrx这个包的。 公司的网速好慢……]]></description>
		<wfw:commentRss>http://cocobear.info/blog/2008/05/15/fedora9-testing/feed/</wfw:commentRss>
		<slash:comments>8</slash:comments>
		</item>
	</channel>
</rss>

