﻿<?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++博客-我的CPP之路-随笔分类-ＵＮＩＸ</title><link>http://www.cppblog.com/yanvenhom/category/15761.html</link><description>路漫漫其修远兮</description><language>zh-cn</language><lastBuildDate>Sun, 01 Feb 2015 15:19:26 GMT</lastBuildDate><pubDate>Sun, 01 Feb 2015 15:19:26 GMT</pubDate><ttl>60</ttl><item><title>[Log]20150129-FreeBSD 10.1 学习笔记-6</title><link>http://www.cppblog.com/yanvenhom/archive/2015/01/29/209672.html</link><dc:creator>yanvenhom</dc:creator><author>yanvenhom</author><pubDate>Thu, 29 Jan 2015 15:29:00 GMT</pubDate><guid>http://www.cppblog.com/yanvenhom/archive/2015/01/29/209672.html</guid><wfw:comment>http://www.cppblog.com/yanvenhom/comments/209672.html</wfw:comment><comments>http://www.cppblog.com/yanvenhom/archive/2015/01/29/209672.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/yanvenhom/comments/commentRss/209672.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/yanvenhom/services/trackbacks/209672.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: 1，不安装vbox的guest additions，修改xorg.conf中monitor的HorizSync，Xorg可以识别出更多的显示模式。<br>2，安装vbox的guest addition，可手添加任意modeline来自定义Xorg的显示大小。&nbsp;&nbsp;<a href='http://www.cppblog.com/yanvenhom/archive/2015/01/29/209672.html'>阅读全文</a><img src ="http://www.cppblog.com/yanvenhom/aggbug/209672.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/yanvenhom/" target="_blank">yanvenhom</a> 2015-01-29 23:29 <a href="http://www.cppblog.com/yanvenhom/archive/2015/01/29/209672.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>[Log]20150126-FreeBSD 10.1 学习笔记-5</title><link>http://www.cppblog.com/yanvenhom/archive/2015/01/27/209643.html</link><dc:creator>yanvenhom</dc:creator><author>yanvenhom</author><pubDate>Tue, 27 Jan 2015 01:13:00 GMT</pubDate><guid>http://www.cppblog.com/yanvenhom/archive/2015/01/27/209643.html</guid><wfw:comment>http://www.cppblog.com/yanvenhom/comments/209643.html</wfw:comment><comments>http://www.cppblog.com/yanvenhom/archive/2015/01/27/209643.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/yanvenhom/comments/commentRss/209643.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/yanvenhom/services/trackbacks/209643.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: 把昨天安装的xfce配置给了root启动，把今天装的lxde配置给了vvenF。&nbsp;&nbsp;<a href='http://www.cppblog.com/yanvenhom/archive/2015/01/27/209643.html'>阅读全文</a><img src ="http://www.cppblog.com/yanvenhom/aggbug/209643.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/yanvenhom/" target="_blank">yanvenhom</a> 2015-01-27 09:13 <a href="http://www.cppblog.com/yanvenhom/archive/2015/01/27/209643.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>[Log]20150124-FreeBSD 10.1 学习笔记-4</title><link>http://www.cppblog.com/yanvenhom/archive/2015/01/25/209633.html</link><dc:creator>yanvenhom</dc:creator><author>yanvenhom</author><pubDate>Sun, 25 Jan 2015 05:00:00 GMT</pubDate><guid>http://www.cppblog.com/yanvenhom/archive/2015/01/25/209633.html</guid><wfw:comment>http://www.cppblog.com/yanvenhom/comments/209633.html</wfw:comment><comments>http://www.cppblog.com/yanvenhom/archive/2015/01/25/209633.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/yanvenhom/comments/commentRss/209633.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/yanvenhom/services/trackbacks/209633.html</trackback:ping><description><![CDATA[<div>用</div><div></div><div><br />pkg info xorg-server | grep HAL</div><div></div><div><br />来查看，显示 HAL 是 off，按照文档，不用启动 hald 和 dbus 这两个service。</div><div></div><div>好像记得两三年前玩freebsd9的时候，如果不开启hald和dbus，startx出现的屏幕鼠标指针是动不了的。</div><div></div><div>现在startx，出现了两三个xterm，结果鼠标指针能动。先配置xorg。</div><div></div><div><br />Xorg -configure （root身份）会产生一个新文件，/root/xorg.conf.new。</div><div>Xorg -config xorg.conf.new -retro 测试这个生成的配置文件，结果花屏，鼠标指针能动。</div><div></div><div><br />按照handbook，应该cp xorg.conf.new /etc/X11/xorg.conf把xorg.conf.new文件copy到/etc/X11/xorg.conf，先不做。</div><div></div><div>先装xdm</div><div></div><div>进入 /usr/ports/x11/xdm ，make install clean，很快就完成。</div><div></div><div>修改 /etc/ttys 文件，注释掉原来的ttyv7，加入，</div><div></div><div><br />ttyv7 "/usr/local/bin/xdm -nodaemon" xterm on secure</div><div></div><div><br />结果关机重启卡在 Starting background file system check in 60 seconds</div><div></div><div>还显示无法启动powerd，因为找不到cpufreq(4)</div><div></div><div>怀疑原因是输入错误，fsck和mount -a 之后用ee查看 /etc/rc.conf 貌似正常，之前hostname=""，曾改为过hostname="freeboY"，估计这不是无法进入virtual terminal的原因，但还是暂时先改回空。</div><div></div><div>想查看/etc/ttys文件，结果误操作，结果误删除，很要命。。。</div><div></div><div>ee创建之，查看handbook，先加两行（记得之前的ttys中还有更多选项，貌似什么远程连接？暂时不管）：</div><div></div><div><br />ttyv0 "/usr/libexec/getty Pc" xterm on secure</div><div>ttyv7 "/usr/local/bin/xdm -nodaemon" xterm on secure</div><div></div><div><br />ok，结果输入exit，稍等2、3秒，进入xdm的界面了，怎么回事。。</div><div></div><div>重启看看，反正这么糟的情况都经历过来了。。。真长经验呐。。。</div><div></div><div>OK，不卡了，不知道powerd有没有被启动。。。</div><div></div><div>在xdm的login界面输入用户名密码就会再进入login界面，原因估计没有session。</div><div></div><div>xdm的login界面显示Welcome to 1，估计这个1是因为hostname为空。</div><div></div><div>Ctrl+Alt+F1可以退出xdm，进入ttyv0。</div><div></div><div>Alt+F2能进入前面编辑的ttyv7，所以Fn是/etc/ttys文件中的第几行，而不是ttyv7的7。</div><div></div><div>pkg info pkg 显示 segmentation fault (core dumped)</div><div></div><div>暂时将ttyv7 设为 off。</div><div></div><div>尝试</div><div><br /># cd /usr/ports/ports-mgmt/pkg</div><div># make</div><div># make install clean</div><div></div><div><br />结果装到一半error。</div><div></div><div>pkg delete pkg也显示 segmentation fault (core dumped)。</div><div></div><div>继续测试 /etc/ttys 这个文件。把ttyv0 修改掉，比如改成 myttyv0。handbook上说&#8220;不要把system console ttyv0&#8221;。在重启前，结果发现，root无法登陆了，不过vvenF可以登陆。而且pkg info pkg显示正常了。</div><div></div><div>重启，显示getty报错，无法open /dev/myttyv0。</div><div></div><div>OK，进入single user mode（别忘了mount -a，否则/usr/下都空）改回ttyv0。</div><div></div><div>exit之后就进入普通多用户模式，root账户能登陆ttyv0了。</div><div></div><div>在/dev/下发现ttyv0到ttyvf，共16个。所以说/etc/ttys里面的每个virtual terminal的名字不能乱取。</div><div></div><div>root账户安装xfce4，在/usr/ports/x11-wm/xfce4/内make install clean，安装选项选择SLIM（login manager），SQUEEZE（Archive manager）和XPM（Power manager）。</div><div></div><div>结果又悲剧了，virtualbox下按win键会输入很怪的字符（^J，或者^]什么的。。。），瞬间两三个安装选项因此跳过了（估计是认为输入了cancel，而且不知道cancel了什么。。。）结果经过漫长过程还是显示Error code 1，在xfce4文件夹内。</div><div></div><div>尝试重新make install clean，之前提示安装的如果选了安装而且执行无误的话，估计是不会被要求再安装的，因为会check出存在。结果真是前面的win键把某些package取消了，这次的提出和上次看见的都不一样，而且安装过程很冗长（时间和依赖数量与从ports安装Xorg在一个量级上。。。），切换到其他virtual terminal查看/usr/一度达到5.5GB（如果再第一个cleaning前查看估计更大）。最后N多安装后，N多cleaning后，没有显示error，完成。（让我在意的是居然被问及要不要安装dbus和hal，这两个不是新版xorg不依赖了么。）</div><div></div><div><br />pkg info xfce 显示 4.10_9。Options中除了PRINT是off，其他都是on。</div><div></div><div>df -h 查看磁盘使用情况，/usr/的那个分区到了2.6G，又加了大约700MB。</div><div></div><div>今天主要是处理操作失误花了N久（看来确实是/etc/ttys文件误操作，之后又误删），而且segementation fault（出现此错的时候还尝试过pkg delete pkg，还好没什么反应，貌似。。。）的原因还不知道，还好重启就ok了，现在正常。</div><div></div><img src ="http://www.cppblog.com/yanvenhom/aggbug/209633.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/yanvenhom/" target="_blank">yanvenhom</a> 2015-01-25 13:00 <a href="http://www.cppblog.com/yanvenhom/archive/2015/01/25/209633.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>[Log]20150123-FreeBSD 10.1 学习笔记-3</title><link>http://www.cppblog.com/yanvenhom/archive/2015/01/24/209624.html</link><dc:creator>yanvenhom</dc:creator><author>yanvenhom</author><pubDate>Fri, 23 Jan 2015 16:04:00 GMT</pubDate><guid>http://www.cppblog.com/yanvenhom/archive/2015/01/24/209624.html</guid><wfw:comment>http://www.cppblog.com/yanvenhom/comments/209624.html</wfw:comment><comments>http://www.cppblog.com/yanvenhom/archive/2015/01/24/209624.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/yanvenhom/comments/commentRss/209624.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/yanvenhom/services/trackbacks/209624.html</trackback:ping><description><![CDATA[ls的输出太大，超过一个屏幕，用<br />ls | more<br />或者<br />ls | less<br />来滚屏，q 退出。<br /><br />=========<br />du 可以查看文件夹大小。<br />df 可以查看磁盘使用情况。<br /><br />安装Xorg前，查看/usr/bin，81MB。<br />df的记录保存在用户文件夹内。<br /><br /><div># cd /usr/ports/x11/xorg</div><div># make install clean<br /><br />显示需要root权限来创建/var/db/ports/x11_xorg<br /><br /><div>结果提示error，安装失败，似乎根本没有安装什么。</div><div></div><div>干脆完全进入root，从ports安装xorg。</div><div></div><div>这次能装了，被提问各种软件选项，gtar，取消了某port的doc文档貌似是xorg的？其他选项一律默认，否则没完没了。</div><div></div><div>gmake的native language support也选了，默认的。</div><div></div><div>当提示安装dejavu的时候，df -h显示，/usr/分区一度到达5.2GB，果然增加了4GB。</div><div></div><div>显示N多Cleaning后，/usr分区最后是1.9GB，比原来1.2GB增加了约700MB。还有/var/增加了8MB。其他分区在1MB这个量级上没有变化。</div><div></div><div>Xorg安装完成。</div><div></div><div>/usr/bin 还是81MB。</div></div><img src ="http://www.cppblog.com/yanvenhom/aggbug/209624.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/yanvenhom/" target="_blank">yanvenhom</a> 2015-01-24 00:04 <a href="http://www.cppblog.com/yanvenhom/archive/2015/01/24/209624.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>[Log]20150122-FreeBSD 10.1 学习笔记-2</title><link>http://www.cppblog.com/yanvenhom/archive/2015/01/23/209617.html</link><dc:creator>yanvenhom</dc:creator><author>yanvenhom</author><pubDate>Fri, 23 Jan 2015 03:43:00 GMT</pubDate><guid>http://www.cppblog.com/yanvenhom/archive/2015/01/23/209617.html</guid><wfw:comment>http://www.cppblog.com/yanvenhom/comments/209617.html</wfw:comment><comments>http://www.cppblog.com/yanvenhom/archive/2015/01/23/209617.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/yanvenhom/comments/commentRss/209617.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/yanvenhom/services/trackbacks/209617.html</trackback:ping><description><![CDATA[执行了以下命令：<br /><br />portsnap fetch<br />portsnap extract<br />portsnap update<br /><br />vvenF（wheel组），提示没有权限写入ports的文件夹，换root就行。<br />登陆root之后又执行了以下命令：<br /><br /><div># /usr/sbin/pkg</div><div># cd /usr/ports/ports-mgmt/pkg</div><div># make</div><div># make install clean<br /><br /># pkg info pkg显示pkg的版本是1.4.6</div><img src ="http://www.cppblog.com/yanvenhom/aggbug/209617.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/yanvenhom/" target="_blank">yanvenhom</a> 2015-01-23 11:43 <a href="http://www.cppblog.com/yanvenhom/archive/2015/01/23/209617.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>[Log]20150119-FreeBSD 10.1 学习笔记-1</title><link>http://www.cppblog.com/yanvenhom/archive/2015/01/23/209579.html</link><dc:creator>yanvenhom</dc:creator><author>yanvenhom</author><pubDate>Fri, 23 Jan 2015 03:40:00 GMT</pubDate><guid>http://www.cppblog.com/yanvenhom/archive/2015/01/23/209579.html</guid><wfw:comment>http://www.cppblog.com/yanvenhom/comments/209579.html</wfw:comment><comments>http://www.cppblog.com/yanvenhom/archive/2015/01/23/209579.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/yanvenhom/comments/commentRss/209579.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/yanvenhom/services/trackbacks/209579.html</trackback:ping><description><![CDATA[Virtual Box 安装，虚拟机。<br /><br />host name : freeboy<br /><br />一块128GB的虚拟硬盘，分区如下：<br /><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 />-->Partition&nbsp;Type&nbsp;&nbsp;&nbsp;&nbsp;Size&nbsp;&nbsp;&nbsp;&nbsp;Mountpoint&nbsp;&nbsp;&nbsp;&nbsp;Label<br />freebsd-boot&nbsp;&nbsp;&nbsp;&nbsp;512K&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;&nbsp;<br />freebsd-ufs&nbsp;&nbsp;&nbsp;&nbsp;16G&nbsp;&nbsp;&nbsp;&nbsp;/&nbsp; &nbsp; rootufs<br />freebsd-swap&nbsp;&nbsp;&nbsp;&nbsp;4G &nbsp; &nbsp; &nbsp; &nbsp; swap<br />freebsd-ufs&nbsp;&nbsp;&nbsp;&nbsp;4G&nbsp;&nbsp;&nbsp;&nbsp;/var &nbsp; &nbsp;varufs<br />freebsd-ufs&nbsp;&nbsp;&nbsp;&nbsp;4G&nbsp;&nbsp;&nbsp;&nbsp;/tmp &nbsp; &nbsp;tmpufs<br />freebsd-ufs &nbsp; &nbsp;all the rest&nbsp; &nbsp;&nbsp;/usr &nbsp; &nbsp;usrufs</div><div><br />root password : freeroot<br /><br />创建了一个用户<br /><br />vvenF<br />vvenFreeBSD<br />uid : 1001<br />pwd : vbox<br />在wheel组内, vvenF组<br />Shell : /bin/sh<br /><br />=========<br />安装过程中有个启动选项，里面选了dynamic cpu控制，没选ps/2 mouse pointer选项。</div><img src ="http://www.cppblog.com/yanvenhom/aggbug/209579.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/yanvenhom/" target="_blank">yanvenhom</a> 2015-01-23 11:40 <a href="http://www.cppblog.com/yanvenhom/archive/2015/01/23/209579.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Unix学习笔记</title><link>http://www.cppblog.com/yanvenhom/archive/2011/01/03/137905.html</link><dc:creator>yanvenhom</dc:creator><author>yanvenhom</author><pubDate>Sun, 02 Jan 2011 16:07:00 GMT</pubDate><guid>http://www.cppblog.com/yanvenhom/archive/2011/01/03/137905.html</guid><wfw:comment>http://www.cppblog.com/yanvenhom/comments/137905.html</wfw:comment><comments>http://www.cppblog.com/yanvenhom/archive/2011/01/03/137905.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/yanvenhom/comments/commentRss/137905.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/yanvenhom/services/trackbacks/137905.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: Unix学习笔记，找到了网上著名的FreeBSD 使用手册，Beej's 网络编程指南中文版，KDE/QT和GNOME/GTK发展历史，Unix和Linux的文件系统层次结构。&nbsp;&nbsp;<a href='http://www.cppblog.com/yanvenhom/archive/2011/01/03/137905.html'>阅读全文</a><img src ="http://www.cppblog.com/yanvenhom/aggbug/137905.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/yanvenhom/" target="_blank">yanvenhom</a> 2011-01-03 00:07 <a href="http://www.cppblog.com/yanvenhom/archive/2011/01/03/137905.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>综述，FreeBSD、Linux、Unix的比较</title><link>http://www.cppblog.com/yanvenhom/archive/2010/12/31/137782.html</link><dc:creator>yanvenhom</dc:creator><author>yanvenhom</author><pubDate>Fri, 31 Dec 2010 02:15:00 GMT</pubDate><guid>http://www.cppblog.com/yanvenhom/archive/2010/12/31/137782.html</guid><wfw:comment>http://www.cppblog.com/yanvenhom/comments/137782.html</wfw:comment><comments>http://www.cppblog.com/yanvenhom/archive/2010/12/31/137782.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://www.cppblog.com/yanvenhom/comments/commentRss/137782.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/yanvenhom/services/trackbacks/137782.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: 综述，综合整理了几个页面的内容，希望阅读本随笔后读者会了解Unix、FreeBSD和Linux的区别。&nbsp;&nbsp;<a href='http://www.cppblog.com/yanvenhom/archive/2010/12/31/137782.html'>阅读全文</a><img src ="http://www.cppblog.com/yanvenhom/aggbug/137782.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/yanvenhom/" target="_blank">yanvenhom</a> 2010-12-31 10:15 <a href="http://www.cppblog.com/yanvenhom/archive/2010/12/31/137782.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>[转]不同操作系统对文本文件“行结束符”的不同定义</title><link>http://www.cppblog.com/yanvenhom/archive/2010/12/26/137490.html</link><dc:creator>yanvenhom</dc:creator><author>yanvenhom</author><pubDate>Sun, 26 Dec 2010 03:50:00 GMT</pubDate><guid>http://www.cppblog.com/yanvenhom/archive/2010/12/26/137490.html</guid><wfw:comment>http://www.cppblog.com/yanvenhom/comments/137490.html</wfw:comment><comments>http://www.cppblog.com/yanvenhom/archive/2010/12/26/137490.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/yanvenhom/comments/commentRss/137490.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/yanvenhom/services/trackbacks/137490.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: 很多在Unix下的源文件到了Windows下换行符会显示黑框，原因是在Mac、大多数Unix、Windows三者的换行符是不一样的。&nbsp;&nbsp;<a href='http://www.cppblog.com/yanvenhom/archive/2010/12/26/137490.html'>阅读全文</a><img src ="http://www.cppblog.com/yanvenhom/aggbug/137490.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/yanvenhom/" target="_blank">yanvenhom</a> 2010-12-26 11:50 <a href="http://www.cppblog.com/yanvenhom/archive/2010/12/26/137490.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>[转]提高您的 UNIX 命令行效率</title><link>http://www.cppblog.com/yanvenhom/archive/2010/12/24/137361.html</link><dc:creator>yanvenhom</dc:creator><author>yanvenhom</author><pubDate>Fri, 24 Dec 2010 03:22:00 GMT</pubDate><guid>http://www.cppblog.com/yanvenhom/archive/2010/12/24/137361.html</guid><wfw:comment>http://www.cppblog.com/yanvenhom/comments/137361.html</wfw:comment><comments>http://www.cppblog.com/yanvenhom/archive/2010/12/24/137361.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/yanvenhom/comments/commentRss/137361.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/yanvenhom/services/trackbacks/137361.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: 提高UNIX下命令行的工作效率，理解控制符，巧用控制符。&nbsp;&nbsp;<a href='http://www.cppblog.com/yanvenhom/archive/2010/12/24/137361.html'>阅读全文</a><img src ="http://www.cppblog.com/yanvenhom/aggbug/137361.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/yanvenhom/" target="_blank">yanvenhom</a> 2010-12-24 11:22 <a href="http://www.cppblog.com/yanvenhom/archive/2010/12/24/137361.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>[转]在 Ubuntu Linux 下搜索文件和文件内容</title><link>http://www.cppblog.com/yanvenhom/archive/2010/12/24/137347.html</link><dc:creator>yanvenhom</dc:creator><author>yanvenhom</author><pubDate>Thu, 23 Dec 2010 20:39:00 GMT</pubDate><guid>http://www.cppblog.com/yanvenhom/archive/2010/12/24/137347.html</guid><wfw:comment>http://www.cppblog.com/yanvenhom/comments/137347.html</wfw:comment><comments>http://www.cppblog.com/yanvenhom/archive/2010/12/24/137347.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/yanvenhom/comments/commentRss/137347.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/yanvenhom/services/trackbacks/137347.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: whereis，locate，find，grep简介。&nbsp;&nbsp;<a href='http://www.cppblog.com/yanvenhom/archive/2010/12/24/137347.html'>阅读全文</a><img src ="http://www.cppblog.com/yanvenhom/aggbug/137347.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/yanvenhom/" target="_blank">yanvenhom</a> 2010-12-24 04:39 <a href="http://www.cppblog.com/yanvenhom/archive/2010/12/24/137347.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>ubuntu-10.10使用笔记-2</title><link>http://www.cppblog.com/yanvenhom/archive/2010/12/23/137272.html</link><dc:creator>yanvenhom</dc:creator><author>yanvenhom</author><pubDate>Thu, 23 Dec 2010 02:50:00 GMT</pubDate><guid>http://www.cppblog.com/yanvenhom/archive/2010/12/23/137272.html</guid><wfw:comment>http://www.cppblog.com/yanvenhom/comments/137272.html</wfw:comment><comments>http://www.cppblog.com/yanvenhom/archive/2010/12/23/137272.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/yanvenhom/comments/commentRss/137272.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/yanvenhom/services/trackbacks/137272.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: 查看cpu信息，查看显卡使用，ifconfig，virtualbox中ubuntu guest挂载xp host的share folder中遇到的问题，查看杀死进程，查看网络连接端口，重命名文件。&nbsp;&nbsp;<a href='http://www.cppblog.com/yanvenhom/archive/2010/12/23/137272.html'>阅读全文</a><img src ="http://www.cppblog.com/yanvenhom/aggbug/137272.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/yanvenhom/" target="_blank">yanvenhom</a> 2010-12-23 10:50 <a href="http://www.cppblog.com/yanvenhom/archive/2010/12/23/137272.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>[转]Ubuntu下创建、重命名、删除文件及文件夹，强制清空回收站方法</title><link>http://www.cppblog.com/yanvenhom/archive/2010/12/23/137271.html</link><dc:creator>yanvenhom</dc:creator><author>yanvenhom</author><pubDate>Thu, 23 Dec 2010 02:45:00 GMT</pubDate><guid>http://www.cppblog.com/yanvenhom/archive/2010/12/23/137271.html</guid><wfw:comment>http://www.cppblog.com/yanvenhom/comments/137271.html</wfw:comment><comments>http://www.cppblog.com/yanvenhom/archive/2010/12/23/137271.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/yanvenhom/comments/commentRss/137271.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/yanvenhom/services/trackbacks/137271.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: 原文地址：http://hi.baidu.com/%B0%A2%CD%F2/blog/item/a45890673218382fab184ca4.html。一般用mv，移动文件这个命令来重命名文件。。。&nbsp;&nbsp;<a href='http://www.cppblog.com/yanvenhom/archive/2010/12/23/137271.html'>阅读全文</a><img src ="http://www.cppblog.com/yanvenhom/aggbug/137271.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/yanvenhom/" target="_blank">yanvenhom</a> 2010-12-23 10:45 <a href="http://www.cppblog.com/yanvenhom/archive/2010/12/23/137271.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>[转]XP下Virtualbox虚拟Ubuntu共享文件夹设置</title><link>http://www.cppblog.com/yanvenhom/archive/2010/12/23/137256.html</link><dc:creator>yanvenhom</dc:creator><author>yanvenhom</author><pubDate>Wed, 22 Dec 2010 21:39:00 GMT</pubDate><guid>http://www.cppblog.com/yanvenhom/archive/2010/12/23/137256.html</guid><wfw:comment>http://www.cppblog.com/yanvenhom/comments/137256.html</wfw:comment><comments>http://www.cppblog.com/yanvenhom/archive/2010/12/23/137256.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/yanvenhom/comments/commentRss/137256.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/yanvenhom/services/trackbacks/137256.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: 原文地址：http://blog.csdn.net/ConanYang/archive/2010/02/10/5304329.aspx。&nbsp;&nbsp;<a href='http://www.cppblog.com/yanvenhom/archive/2010/12/23/137256.html'>阅读全文</a><img src ="http://www.cppblog.com/yanvenhom/aggbug/137256.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/yanvenhom/" target="_blank">yanvenhom</a> 2010-12-23 05:39 <a href="http://www.cppblog.com/yanvenhom/archive/2010/12/23/137256.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>ubuntu-10.10使用笔记-1</title><link>http://www.cppblog.com/yanvenhom/archive/2010/12/23/137255.html</link><dc:creator>yanvenhom</dc:creator><author>yanvenhom</author><pubDate>Wed, 22 Dec 2010 21:36:00 GMT</pubDate><guid>http://www.cppblog.com/yanvenhom/archive/2010/12/23/137255.html</guid><wfw:comment>http://www.cppblog.com/yanvenhom/comments/137255.html</wfw:comment><comments>http://www.cppblog.com/yanvenhom/archive/2010/12/23/137255.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/yanvenhom/comments/commentRss/137255.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/yanvenhom/services/trackbacks/137255.html</trackback:ping><description><![CDATA[<span style="font-family: courier new;">ubuntu 10.10，系统默认的键盘输入法是IBus，当然能输入中文，但是：</span><br style="font-family: courier new;"><br style="font-family: courier new;"><span style="font-family: courier new;">系统语言法语，键盘为fra或usa，用不了IBus，系统启动时不会自动载入，手动启动也不能用。</span><br style="font-family: courier new;"><span style="font-family: courier new;">系统语言中文，键盘为usa，IBus系统启动时就自动载入了，能用，直接ctrl+space切换。</span><br style="font-family: courier new;"><br style="font-family: courier new;"><span style="font-family: courier new;">还挺好用的说，不过我必须法语作业，没办法，切换回法语。</span><br style="font-family: courier new;"><br style="font-family: courier new;"><span style="font-family: courier new;">Pinyin Engine for IBus和Table Engine for IBus在Systeme-&gt;Administration-&gt;Gestionnaire de paquets Synaptic里。</span><br style="font-family: courier new;"><br style="font-family: courier new;"><span style="font-family: courier new;">看了以下两篇文章，</span><br style="font-family: courier new;"><span style="font-family: courier new;">http://bbs.kaspersky.com.cn/archiver/tid-275511.html</span><br style="font-family: courier new;"><span style="font-family: courier new;">http://www.lslnet.com/linux/dosc1/36/linux-267268.htm</span><br style="font-family: courier new;"><br style="font-family: courier new;"><span style="font-family: courier new;">得到启发，在/etc/environment最后加入LC_CTYPE=zh_CN.UTF-8</span><br style="font-family: courier new;"><br style="font-family: courier new;"><span style="font-family: courier new;">就能在法语locale下使用IBus了。</span><br style="font-family: courier new;"><br style="font-family: courier new;"><span style="font-family: courier new;">查了不少解决方法，感觉这不是唯一的方法，也没好到哪里去，但有用。注意用sudo来修改environment的内容。</span><br style="font-family: courier new;"><br style="font-family: courier new;"><span style="font-family: courier new;">窗口可以被放到不同的工作区里。按住 Ctrl+Alt 和左/右方向键可以方便的在各个工作区之间移动。</span><br style="font-family: courier new;"><br style="font-family: courier new;"><span style="font-family: courier new;">clear和reset清屏。clear感觉是排版骗局，而reset更暴力，感觉是reset了terminal。。。。。。</span><br style="font-family: courier new;"><br style="font-family: courier new;"><span style="font-family: courier new;">ln命令为创建link，比如，创建/mnt/hda6的link到/home/usr/下。</span><br style="font-family: courier new;"><span style="font-family: courier new;">sudo ln -s /mnt/hda6 /home/usr/</span><br style="font-family: courier new;"><br style="font-family: courier new;"><span style="font-family: courier new;">ubuntu下中文输入法有很多，比如</span><br style="font-family: courier new;"><span style="font-family: courier new;">Fcitx-小企鹅输入法：Free Chinese Input Toy for X</span><br style="font-family: courier new;"><span style="font-family: courier new;">SCIM，IBus。。。</span><br style="font-family: courier new;"><br style="font-family: courier new;"><span style="font-family: courier new;">截图推荐用KSnapshot</span><br style="font-family: courier new;"><span style="font-family: courier new;">sudo apt-get install ksnapshot</span><br style="font-family: courier new;"><br><span style="font-family: courier new;">=========</span><br style="font-family: courier new;"><span style="font-family: courier new;">使用virtualbox的共享文件夹：</span><br style="font-family: courier new;"><br style="font-family: courier new;"><span style="font-family: courier new;">Lists all shared folders accessible to this machine.</span><br style="font-family: courier new;"><br style="font-family: courier new;"><span style="font-family: courier new;">Use 'net use x:\\vboxsvr\share' to access a shared folder named share from a DOS-like OS,</span><br style="font-family: courier new;"><br style="font-family: courier new;"><span style="font-family: courier new;">or 'mount -t vboxsf share mount_point' to access it from a Linux OS.</span><br style="font-family: courier new;"><br style="font-family: courier new;"><span style="font-family: courier new;">This feature requires Guest Additions.</span><br style="font-family: courier new;"><br>   <img src ="http://www.cppblog.com/yanvenhom/aggbug/137255.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/yanvenhom/" target="_blank">yanvenhom</a> 2010-12-23 05:36 <a href="http://www.cppblog.com/yanvenhom/archive/2010/12/23/137255.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>[转]Ubuntu不能修改密码，长度太短或太简单？</title><link>http://www.cppblog.com/yanvenhom/archive/2010/12/22/137152.html</link><dc:creator>yanvenhom</dc:creator><author>yanvenhom</author><pubDate>Tue, 21 Dec 2010 23:12:00 GMT</pubDate><guid>http://www.cppblog.com/yanvenhom/archive/2010/12/22/137152.html</guid><wfw:comment>http://www.cppblog.com/yanvenhom/comments/137152.html</wfw:comment><comments>http://www.cppblog.com/yanvenhom/archive/2010/12/22/137152.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/yanvenhom/comments/commentRss/137152.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/yanvenhom/services/trackbacks/137152.html</trackback:ping><description><![CDATA[<span style="font-family: courier new;">http://my.oschina.net/zengsai/blog/5534</span><br style="font-family: courier new;"><span style="font-family: courier new;"><span style="font-family: courier new;">Ubuntu不能修改密码，长度太短或太简单？</span><br></span><span class="time">发表于 2010年06月13日 11:05</span><br style="font-family: courier new;"><br style="font-family: courier new;"><span style="font-family: courier new;">在安装 Ubuntu 的时候建立的帐户 sai，想把密码改成两个字母aa，方便输入。</span><br style="font-family: courier new;"><br style="font-family: courier new;"><span style="font-family: courier new;">运行终端</span><br style="font-family: courier new;"><br style="font-family: courier new;"><span style="font-family: courier new;">sai@xmomx:~$ passwd sai</span><br style="font-family: courier new;"><span style="font-family: courier new;">更改 sai 的密码。</span><br style="font-family: courier new;"><span style="font-family: courier new;">（当前）UNIX 密码： xx</span><br style="font-family: courier new;"><span style="font-family: courier new;">输入新的 UNIX 密码： aa</span><br style="font-family: courier new;"><span style="font-family: courier new;">重新输入新的 UNIX 密码：aa</span><br style="font-family: courier new;"><span style="font-family: courier new;">必须选择更长的密码</span><br style="font-family: courier new;"><span style="font-family: courier new;">输入新的 UNIX 密码： 1234567</span><br style="font-family: courier new;"><span style="font-family: courier new;">重新输入新的 UNIX 密码： 1234567</span><br style="font-family: courier new;"><span style="font-family: courier new;">Bad: new password is too simple</span><br style="font-family: courier new;"><span style="font-family: courier new;">输入新的 UNIX 密码：</span><br style="font-family: courier new;"><br style="font-family: courier new;"><span style="font-family: courier new;">&nbsp;</span><br style="font-family: courier new;"><br style="font-family: courier new;"><span style="font-family: courier new;">绿色为手动输入。怎么办？加上su权限执行即可。这样来做：</span><br style="font-family: courier new;"><br style="font-family: courier new;"><span style="font-family: courier new;">方案一：</span><br style="font-family: courier new;"><br style="font-family: courier new;"><span style="font-family: courier new;">sai@xmomx:~$ sudo passwd sai</span><br style="font-family: courier new;"><span style="font-family: courier new;">[sudo] password for sai:&nbsp; xxx</span><br style="font-family: courier new;"><span style="font-family: courier new;">输入新的 UNIX 密码： aa</span><br style="font-family: courier new;"><span style="font-family: courier new;">重新输入新的 UNIX 密码： aa</span><br style="font-family: courier new;"><span style="font-family: courier new;">passwd：已成功更新密码</span><br style="font-family: courier new;"><br style="font-family: courier new;"><span style="font-family: courier new;"></span><br style="font-family: courier new;"><span style="font-family: courier new;">方案二：</span><br style="font-family: courier new;"><br style="font-family: courier new;"><span style="font-family: courier new;">sai@xmomx:~$ su</span><br style="font-family: courier new;"><span style="font-family: courier new;">密码： super</span><br style="font-family: courier new;"><span style="font-family: courier new;">root@xmomx:/home/sai# passwd sai</span><br style="font-family: courier new;"><span style="font-family: courier new;">输入新的 UNIX 密码： aa</span><br style="font-family: courier new;"><span style="font-family: courier new;">重新输入新的 UNIX 密码： aa</span><br style="font-family: courier new;"><span style="font-family: courier new;">passwd：已成功更新密码</span><br style="font-family: courier new;"><span style="font-family: courier new;">root@xmomx:/home/sai#</span><br style="font-family: courier new;"><br style="font-family: courier new;"><span style="font-family: courier new;">成功！</span><br style="font-family: courier new;"><br style="font-family: courier new;"><br>   <img src ="http://www.cppblog.com/yanvenhom/aggbug/137152.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/yanvenhom/" target="_blank">yanvenhom</a> 2010-12-22 07:12 <a href="http://www.cppblog.com/yanvenhom/archive/2010/12/22/137152.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>[转]修改 ubuntu 语言环境与键盘布局</title><link>http://www.cppblog.com/yanvenhom/archive/2010/12/22/137151.html</link><dc:creator>yanvenhom</dc:creator><author>yanvenhom</author><pubDate>Tue, 21 Dec 2010 23:10:00 GMT</pubDate><guid>http://www.cppblog.com/yanvenhom/archive/2010/12/22/137151.html</guid><wfw:comment>http://www.cppblog.com/yanvenhom/comments/137151.html</wfw:comment><comments>http://www.cppblog.com/yanvenhom/archive/2010/12/22/137151.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/yanvenhom/comments/commentRss/137151.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/yanvenhom/services/trackbacks/137151.html</trackback:ping><description><![CDATA[<span style="font-family: courier new;">http://hi.baidu.com/guolibo/blog/item/5f75ad18a8059b0035fa41e2.html<br>[转]修改 ubuntu 语言环境与键盘布局</span><br style="font-family: courier new;"><span style="font-family: courier new;">2008-12-05 14:59</span><br style="font-family: courier new;"><br style="font-family: courier new;"><span style="font-family: courier new;">修改Ubuntu的命令行语言环境</span><br style="font-family: courier new;"><br style="font-family: courier new;"><span style="font-family: courier new;">修改Ubuntu的命令行语言环境的2个步骤：</span><br style="font-family: courier new;"><span style="font-family: courier new;">1、修改/etc/default/locale</span><br style="font-family: courier new;"><br style="font-family: courier new;"><span style="font-family: courier new;">如不存在则新建一个</span><br style="font-family: courier new;"><br style="font-family: courier new;"><span style="font-family: courier new;">如下：</span><br style="font-family: courier new;"><br style="font-family: courier new;"><span style="font-family: courier new;">LANG='en_US' #中文可以用zh_CN</span><br style="font-family: courier new;"><br style="font-family: courier new;"><span style="font-family: courier new;">LANGUAGE='en_US:en' #中文可以用zh_CN:zh</span><br style="font-family: courier new;"><br style="font-family: courier new;"><span style="font-family: courier new;">2、reboot即可</span><br style="font-family: courier new;"><br style="font-family: courier new;"><span style="font-family: courier new;">locale命令可以列出当前系统所用的所有语言设置</span><br style="font-family: courier new;"><br style="font-family: courier new;"><br style="font-family: courier new;"><span style="font-family: courier new;">修改ubuntu 键盘布局</span><br style="font-family: courier new;"><br style="font-family: courier new;"><br style="font-family: courier new;"><span style="font-family: courier new;">sudo dpkg-reconfigure console-setup</span><br style="font-family: courier new;">=========<br>实际上注意了，登陆界面屏幕下方有选择语言和键盘布局的。我用的是10.10。<br><br><br>  <img src ="http://www.cppblog.com/yanvenhom/aggbug/137151.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/yanvenhom/" target="_blank">yanvenhom</a> 2010-12-22 07:10 <a href="http://www.cppblog.com/yanvenhom/archive/2010/12/22/137151.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>[图] Unix的家谱~</title><link>http://www.cppblog.com/yanvenhom/archive/2009/01/23/72510.html</link><dc:creator>yanvenhom</dc:creator><author>yanvenhom</author><pubDate>Fri, 23 Jan 2009 08:45:00 GMT</pubDate><guid>http://www.cppblog.com/yanvenhom/archive/2009/01/23/72510.html</guid><wfw:comment>http://www.cppblog.com/yanvenhom/comments/72510.html</wfw:comment><comments>http://www.cppblog.com/yanvenhom/archive/2009/01/23/72510.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://www.cppblog.com/yanvenhom/comments/commentRss/72510.html</wfw:commentRss><trackback:ping>http://www.cppblog.com/yanvenhom/services/trackbacks/72510.html</trackback:ping><description><![CDATA[&nbsp;&nbsp;&nbsp;&nbsp; 摘要: Unix的家谱~&nbsp;&nbsp;<a href='http://www.cppblog.com/yanvenhom/archive/2009/01/23/72510.html'>阅读全文</a><img src ="http://www.cppblog.com/yanvenhom/aggbug/72510.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://www.cppblog.com/yanvenhom/" target="_blank">yanvenhom</a> 2009-01-23 16:45 <a href="http://www.cppblog.com/yanvenhom/archive/2009/01/23/72510.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item></channel></rss>