??xml version="1.0" encoding="utf-8" standalone="yes"?>久久久久亚洲国产,亚洲一区二区成人,亚洲一区二区中文http://m.tkk7.com/sean/category/3098.htmlRead me, read Sean.zh-cnSun, 06 Apr 2014 15:54:25 GMTSun, 06 Apr 2014 15:54:25 GMT60[RPi] 树梅z֮装XBMCq让其支持中?/title><link>http://m.tkk7.com/sean/archive/2014/04/06/411990.html</link><dc:creator>laogao</dc:creator><author>laogao</author><pubDate>Sun, 06 Apr 2014 09:45:00 GMT</pubDate><guid>http://m.tkk7.com/sean/archive/2014/04/06/411990.html</guid><wfw:comment>http://m.tkk7.com/sean/comments/411990.html</wfw:comment><comments>http://m.tkk7.com/sean/archive/2014/04/06/411990.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.tkk7.com/sean/comments/commentRss/411990.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/sean/services/trackbacks/411990.html</trackback:ping><description><![CDATA[有了RPi当然免不了要玩玩XBMCQ这里推荐XBianQ安装配|过E如下:<br /> <br /> 1- 下蝲.img文g ( <span style="font-size: 14px;"><a target="_blank">http://www.xbian.org/download/</a></span><span style="font-size: 14px;"> )Q?/span><br /> 2- 用dd命o?imgQ比如XBian_beta_2.imgQ写入SD卡;<br /> 3- 中文字体(比如wqy-zenhei.ttcQ重命名为arial.ttfQ复制到SD卡的~/.xbmc/media/Fonts目录QXBian默认用户为xbianQ密码raspberryQ;<br /> 4- ?nbsp;<span style="font-size: 14px;"><a target="_blank">https://code.google.com/p/xbmc-addons-chinese/downloads/detail?name=repository.googlecode.xbmc-addons-chinese-eden.zip</a> 下蝲资源插gq?/span><span style="font-size: 14px;">复制到SD卡;</span><br /> 5- SD卡插入RPiq连接HDMI到电(sh)视机/昄器;<br /> 6- RPi开机,q入XBian的配|页面,可以校准屏幕Q配|网l连接等Q?br /> 7- 在系l设|中选择字体为ArialQ语a选ؓ中文Q此时应该看到界面可正常昄中文Q?br /> 8- 安装扩展E序Q选择之前下蝲到SD卡的repository.googlecode.xbmc-addons-chinese-eden.zip文gQ扩展安装成功后卛_在扩展程序列表中看到对应的资源条目,逐一安装卛_?br /> <br /> 额外提示QXBMC也可以通过|络׃n播放视频Q之前跟大家提到qXBMC昄中文字幕有时出现整行被方块覆盖的问题Q解x法是在字q文件中查找q删除或替换"…"字符。EnjoyQ?img src ="http://m.tkk7.com/sean/aggbug/411990.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/sean/" target="_blank">laogao</a> 2014-04-06 17:45 <a href="http://m.tkk7.com/sean/archive/2014/04/06/411990.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>[RPi] 树梅z֮装Archlinux和蓝?/title><link>http://m.tkk7.com/sean/archive/2014/01/01/408333.html</link><dc:creator>laogao</dc:creator><author>laogao</author><pubDate>Wed, 01 Jan 2014 05:11:00 GMT</pubDate><guid>http://m.tkk7.com/sean/archive/2014/01/01/408333.html</guid><wfw:comment>http://m.tkk7.com/sean/comments/408333.html</wfw:comment><comments>http://m.tkk7.com/sean/archive/2014/01/01/408333.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://m.tkk7.com/sean/comments/commentRss/408333.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/sean/services/trackbacks/408333.html</trackback:ping><description><![CDATA[不久前入了个 Raspberry Pi 也就是大家说的树梅派Q以下简URPiQ,拿来做蓝牙测试,用的蓝牙dongle是ORICO的BTA-403-BL <a >http://item.jd.com/980800.html</a> 。这里简单记录下安装q程Q?br /> <br />首先是操作系l。作为Arch重度用户Q当焉Archlinux ARM? <a >http://archlinuxarm.org/platforms/armv6/raspberry-pi</a> 下蝲img文gQ用dd写到SD卡上Q?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 /> -->dd bs=1M <span style="color: #0000FF; ">if</span>=/path/to/archlinux-hf-*.img of=/dev/sdX</div> <br /> 然后用GParted把SD卡上的分区拖满,充分利用I间。这样SD卡就准备好了Q插到RPi上,接上Micro-USB的电(sh)源和|线Q启动RPiQ从路由器上扑ֈRPi的IP地址Q机器名默认是alarmpiQ,ssh上去Q用户名root密码rootQ,修改密码Q创建非root账号Q执行系l更?sudo pacman -Syu Q这之后开始安装蓝牙相兛_P<br /> <div style="background-color: #eeeeee; font-size: 13px; border: 1px solid #cccccc; padding: 4px 5px 4px 4px; width: 98%; word-break: break-all;"><!--<br /> <br /> Code highlighting produced by Actipro CodeHighlighter (freeware)<br /> http://www.CodeHighlighter.com/<br /> <br /> -->sudo pacman -S bluez bluez-utils</div> <br /> 保蓝牙dongle插到RPi的USB接口Q通过 hciconfig 认蓝牙讑֤被识别,输出应该cM下面q个样子Q?br /> <div style="background-color: #eeeeee; font-size: 13px; border: 1px solid #cccccc; padding: 4px 5px 4px 4px; width: 98%; word-break: break-all;"><!--<br /> <br /> Code highlighting produced by Actipro CodeHighlighter (freeware)<br /> http://www.CodeHighlighter.com/<br /> <br /> -->[sean<span style="color: #800080; ">@alarmpi</span>]$ hciconfig<br /> hci0:   Type: BR/EDR  Bus: USB<br />         BD Address: <span style="color: #800000; ">84</span>:A6:C8:DC:<span style="color: #800000; ">04</span>:<span style="color: #800000; ">97</span>  ACL MTU: <span style="color: #800000; ">310</span>:<span style="color: #800000; ">10</span>  SCO MTU: <span style="color: #800000; ">64</span>:<span style="color: #800000; ">8</span><br />         DOWN <br />         RX bytes:<span style="color: #800000; ">553</span> acl:<span style="color: #800000; ">0</span> sco:<span style="color: #800000; ">0</span> events:<span style="color: #800000; ">28</span> errors:<span style="color: #800000; ">0</span><br />         TX bytes:<span style="color: #800000; ">384</span> acl:<span style="color: #800000; ">0</span> sco:<span style="color: #800000; ">0</span> commands:<span style="color: #800000; ">27</span> errors:<span style="color: #800000; ">0</span></div> <br /> 启动bluetoothQ?br /> <div style="background-color: #eeeeee; font-size: 13px; border: 1px solid #cccccc; padding: 4px 5px 4px 4px; width: 98%; word-break: break-all;"><!--<br /> <br /> Code highlighting produced by Actipro CodeHighlighter (freeware)<br /> http://www.CodeHighlighter.com/<br /> <br /> -->sudo systemctl start bluetooth</div> <br /> 完成以后Q即可通过 bluetoothctl 命o打开蓝牙控制収ͼ执行各项蓝牙相关操作Q比如show、list、scan on、agent、info{等Q这里不展开了?br /> <br /> 如果想用图形界面操作RPiQ也很简单,基本步骤如下Q?br /> <div style="background-color: #eeeeee; font-size: 13px; border: 1px solid #cccccc; padding: 4px 5px 4px 4px; width: 98%; word-break: break-all;"><!--<br /> <br /> Code highlighting produced by Actipro CodeHighlighter (freeware)<br /> http://www.CodeHighlighter.com/<br /> <br /> -->sudo pacman -S xorg xorg-xinit lxde<br />echo <span style="font-weight: bold;">'</span><span style="font-weight: bold;">exec startlxde</span><span style="font-weight: bold;">'</span> > ~/.xinitrc<br /> startx</div><br />Enjoy!<img src ="http://m.tkk7.com/sean/aggbug/408333.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/sean/" target="_blank">laogao</a> 2014-01-01 13:11 <a href="http://m.tkk7.com/sean/archive/2014/01/01/408333.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>[Tips] Windows环境下Apache最基本的调优方?/title><link>http://m.tkk7.com/sean/archive/2011/08/02/355618.html</link><dc:creator>laogao</dc:creator><author>laogao</author><pubDate>Tue, 02 Aug 2011 13:04:00 GMT</pubDate><guid>http://m.tkk7.com/sean/archive/2011/08/02/355618.html</guid><wfw:comment>http://m.tkk7.com/sean/comments/355618.html</wfw:comment><comments>http://m.tkk7.com/sean/archive/2011/08/02/355618.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.tkk7.com/sean/comments/commentRss/355618.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/sean/services/trackbacks/355618.html</trackback:ping><description><![CDATA[<p> 今天q程支持同事在Windows环境调优Apache服务器性能Q记录在此,供需要的朋友参考?/p> <p> Java EE应用Q同旉|在两个Tomcat(5.5.27)实例上,前面放了个Apache(httpd-2.2.19-win32-x86-no_ssl)Q通过mod_jk(1.2.32)做负载均衡,同一台物理服务器Q操作系lؓ64位的Windows Server 2003 SP2。现象是60+客户端,q_每个客户端每U请求数2ơ,单个h正常响应旉?00ms以内Q即每秒冲进?20个请求,q发量最多在60上下QApache已不堪"?负,静态资源响应时间都过10sQ同时Tomcat和数据库服务器均正常。凭我的l验Q同L(fng)压力直接压到Tomcat也不至于q么隄。看来问题出在Apache?/p> <p> 首先修改httpd.conf配置文gQ打开status模块Q?/p> <p> <code> LoadModule status_module modules/mod_status.so<br/> <Location /status><br/>   SetHandler server-status<br/>   Order deny,allow<br/>   Deny from all<br/>   Allow from 127.0.0.1 #需要的话也可放开为all<br/> </Location> </code></p> <p> q样我们p通过/status面查看服务器当前的状态信息,l果观察到worker(即线E?C?4Q坑爹啊Q难怪撑不住。我记得以前Windows下面的Apache默认U程数没q么的。找准问题,接下来就好办了:</p> <p> <code> <IfModule mpm_winnt.c><br/>   ThreadsPerChild 300<br/>   MaxRequestsPerChild 0<br/> </IfModule> </code></p> <p> E微解释一下:mpm_winnt.c是Apache为Windows NT提供的MPM (Multi-Processing Module)Q对应到Linux环境下,则有prefork.c(多进E?每进E?个线E?和worker.c(多进E?多线E?两种MPM可选。Windows下面只会有父与子两个q程Q因此单个子q程能同时v多少U程(ThreadsPerChild)成了调优的关键。另一个参数MaxRequestsPerChild的含义是单个子进E篏计最多处理到个hQ超q该值则退出重启,q是Z防止内存泄露慢慢拖垮整个服务器而做的防御性措施,0表示不做此限制?/p> <p> 新配|上U后Q客L(fng)数量利冲上200+。Case closed.</p> <img src ="http://m.tkk7.com/sean/aggbug/355618.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/sean/" target="_blank">laogao</a> 2011-08-02 21:04 <a href="http://m.tkk7.com/sean/archive/2011/08/02/355618.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>Ubuntu Karmic安装手记 - T400shttp://m.tkk7.com/sean/archive/2009/12/26/307346.htmllaogaolaogaoSat, 26 Dec 2009 03:14:00 GMThttp://m.tkk7.com/sean/archive/2009/12/26/307346.htmlhttp://m.tkk7.com/sean/comments/307346.htmlhttp://m.tkk7.com/sean/archive/2009/12/26/307346.html#Feedback2http://m.tkk7.com/sean/comments/commentRss/307346.htmlhttp://m.tkk7.com/sean/services/trackbacks/307346.html 周二的时候拿C新的T400sQ安装Linux(64位Karmic)的过E比预想的要曲折Q趁周末有时_整理记录于此Q希望对遇到同样问题的h有所帮助?br />
T400s送到之前Q我先简单的在网上查了查基本的配|信息,同时也看到有很多|友十分利的安装了LinuxQ不论是Ubuntu Karmicq是Arch LinuxQ基本都是除了指Uw是out-of-box可直接工作的,q也W合我的预期。于是,拿着amd64版的Karmic盘,开始在T400s上安装?br />
基本pȝ的安装很利Q跟着提示一路走完,Karmicp够bootq正常login了,so far so good。不q登录进M后,无线|卡不工作,只有有线q接Q这是怎么回事Q用lspci一看:
  • 00:00.0 Host bridge: Intel Corporation Mobile 4 Series Chipset Memory Controller Hub (rev 07)
  • 00:02.0 VGA compatible controller: Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller (rev 07)
  • 00:02.1 Display controller: Intel Corporation Mobile 4 Series Chipset Integrated Graphics Controller (rev 07)
  • 00:03.0 Communication controller: Intel Corporation Mobile 4 Series Chipset MEI Controller (rev 07)
  • 00:03.3 Serial controller: Intel Corporation Mobile 4 Series Chipset AMT SOL Redirection (rev 07)
  • 00:19.0 Ethernet controller: Intel Corporation 82567LM Gigabit Network Connection (rev 03)
  • 00:1a.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #4 (rev 03)
  • 00:1a.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #5 (rev 03)
  • 00:1a.2 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #6 (rev 03)
  • 00:1a.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #2 (rev 03)
  • 00:1b.0 Audio device: Intel Corporation 82801I (ICH9 Family) HD Audio Controller (rev 03)
  • 00:1c.0 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 1 (rev 03)
  • 00:1c.1 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 2 (rev 03)
  • 00:1c.2 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 3 (rev 03)
  • 00:1c.3 PCI bridge: Intel Corporation 82801I (ICH9 Family) PCI Express Port 4 (rev 03)
  • 00:1d.0 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #1 (rev 03)
  • 00:1d.1 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #2 (rev 03)
  • 00:1d.2 USB Controller: Intel Corporation 82801I (ICH9 Family) USB UHCI Controller #3 (rev 03)
  • 00:1d.7 USB Controller: Intel Corporation 82801I (ICH9 Family) USB2 EHCI Controller #1 (rev 03)
  • 00:1e.0 PCI bridge: Intel Corporation 82801 Mobile PCI Bridge (rev 93)
  • 00:1f.0 ISA bridge: Intel Corporation ICH9M-E LPC Interface Controller (rev 03)
  • 00:1f.2 SATA controller: Intel Corporation ICH9M/M-E SATA AHCI Controller (rev 03)
  • 00:1f.3 SMBus: Intel Corporation 82801I (ICH9 Family) SMBus Controller (rev 03)
  • 03:00.0 Network controller: Realtek Semiconductor Co., Ltd. Device 8172 (rev 10)
  • 04:00.0 Memory controller: Intel Corporation Turbo Memory Controller (rev 11)
  • 05:00.0 SD Host controller: Ricoh Co Ltd Device e822 (rev 01)
  • 05:00.1 System peripheral: Ricoh Co Ltd Device e230 (rev 01)
注意03:00.0q一行,竟然是Realtek?172Q对应Windows下的型号?192QLenovo什么时候把T400s原本的无U芯片配|?Intel WiMAX/WiFi Link 5xxx)换成了Realtek 8172的?难怪没有无U,q块|卡的驱动还没有被Linux内核直接支持Q需要手工安装。网上搜到很多方案,比如ndiswrapper+win版驱动等{,但这个Ubuntu LaunchPad上的Ҏ(gu)[1]看上L靠谱Q还{什么,开工吧?br />
  • 首先下蝲驱动: http://launchpadlibrarian.net/34090404/rtl8192se_linux_2.6.0010.1012.2009_64bit.tar.gz
  • 解压后进入rtl8192se_linux_2.6.0010.1020.2009_64bit子目录,make
  • 成功后在HAL/rtl8192下能够找到r8192se_pci.ko文gQcp?lib/modules/`uname -r`/kernel/drivers/net/wireless/
  • 然后固件相xӞ即firmware/RTL8192SE目录Qcp?lib/firmware/`uname -r`/
  • 执行命odepmod -a重新扫描module依赖关系
  • 执行命omodprobe r8192se_pci加蝲该moduleQ这一步完成以后NetworkManager可以搜到无U网lƈq行q接?/li>
好了Q到此最大的拦\虎已l消灭,开始装别的软g吧。就在这Ӟ新的问题出现了,dmesg可以看到重复出现的如下报?警告信息Q?br />
  • [ 483.431670] DMA: Out of SW-IOMMU space for 9100 bytes at device 0000:0e:00.0
  • [ 483.435783] DMA: Out of SW-IOMMU space for 9100 bytes at device 0000:0e:00.0
  • [ 483.439867] DMA: Out of SW-IOMMU space for 9100 bytes at device 0000:0e:00.0
  • ...
通常l过数分钟的U篏Q系l就L了,只剩下CapsLock键上的小灯不停闪烁,典型的kernel panic? Ҏ(gu)|友提供的线索[2]Q由于Intel?4位实现虽是参考AMD64但细节有差异Q所以在实际内存大于{于4G的环境下Q某些未考虑到该Ҏ(gu)的代码会leak memoryQ怎么办?增加内核启动参数mem=4G iommu=offQ一斚w限定内存范围Q另一斚w关闭IOMMU?br />
l过试Q这L(fng)配置下系l和无线|络都能够持l稳定运行。系l安装到此,一个大的里E碑达成Q唯一的缺憾是每次kernel升Q可能还需要手工做一些工作,且暂时不能既开无线又开4G以上内存Q不q这hdq没有无U,或者缴枪投降,不是吗?本想多骂几句LenovoQ好好的Intel芯片不用Q要换RealtekQ但转念一惻Iq已是既成事实,而且看到很多其他型号的ThinkPadQ如R500、SL400{,也有不少用上了Realtek的这ƾ无U芯片,让我们一h待稳定可靠的驱动最l被Linux内核支持的那一天吧?br />
参考链?
[1] https://bugs.launchpad.net/ubuntu/+source/linux/+bug/401126
[2] http://lwn.net/Articles/91870/



laogao 2009-12-26 11:14 发表评论
]]>
[Tips] Wake-on-LANhttp://m.tkk7.com/sean/archive/2009/03/18/260576.htmllaogaolaogaoWed, 18 Mar 2009 12:03:00 GMThttp://m.tkk7.com/sean/archive/2009/03/18/260576.htmlhttp://m.tkk7.com/sean/comments/260576.htmlhttp://m.tkk7.com/sean/archive/2009/03/18/260576.html#Feedback0http://m.tkk7.com/sean/comments/commentRss/260576.htmlhttp://m.tkk7.com/sean/services/trackbacks/260576.html其实很早听说有q个东东Q只是一直没玩过Q最q公司调整PC服务器,正好找个I闲实战了一把。基本的配置步骤如下(旉有限Q挑单的_假定你要Wake-on-LAN的机器是WindowsQ控制服务器是Linux)Q?br />
[被控制方]
1- 正常开入BIOS讄
2- 扑ֈWake-on-LAN的选项enable?如果是Dell的机器这个选项叫Remote Wake Up)
3- q入OSQ在需要配|Wake-on-LAN的网l端口的配置中(|络q接属?>配置->甉|理)Q选择允许此设备计算d机状?br />4- 记录|卡的MAC地址
5- 正常x
// 如果被控制方是Linux/UbuntuQOS的配|方法参考链接[4]

[控制方]
1- 安装wakeonlanQ可以选择(如果有的? apt-get install wakeonlanQ或者从链接[3]获取源码手工安装Q是Perl写的Q?br />2- 通过wakeonlan+MAC地址的命令行方式控制需要wake up的机器,?wakeonlan 01:23:45:67:89:AB
// 更高U的用法包括~写脚本Q添加到cronQ以及通过-f指定一个包含多个MAC地址的文件同时操作等

[基本原理]

Wake-on-LAN的相关通信协议位于OSI七层模型中的数据链\层,比IP需要的|络层还要低一层,在局域网范围发送广播,数据包格式ؓQ?br />FF FF FF FF FF FF $MAC*16
?FF FF FF FF FF FF然后重复16ơ对方的MAC地址Q被戏称?magic packet"?br />
配置成功后,只要被控制方正常x、挂赗休眠,且环境始l不掉电(sh)QQ何时候在局域网中广?magic packet"Q指定网卡的机器可以被唤醒?br />
链接:

[1] http://en.wikipedia.org/wiki/Wake-on-LAN
[2] http://en.wikipedia.org/wiki/OSI_model
[3] http://gsd.di.uminho.pt/jpo/software/wakeonlan/
[4] http://ubuntuforums.org/showthread.php?t=234588




laogao 2009-03-18 20:03 发表评论
]]>
Hello, Gusty Gibbon!http://m.tkk7.com/sean/archive/2007/12/22/169664.htmllaogaolaogaoSat, 22 Dec 2007 15:57:00 GMThttp://m.tkk7.com/sean/archive/2007/12/22/169664.htmlhttp://m.tkk7.com/sean/comments/169664.htmlhttp://m.tkk7.com/sean/archive/2007/12/22/169664.html#Feedback0http://m.tkk7.com/sean/comments/commentRss/169664.htmlhttp://m.tkk7.com/sean/services/trackbacks/169664.html前段旉工作比较忙,xGusty Gibbon也已l出?个月了,q没来得及好好把玩,q周l于有点旉和精力把它下载下来安装到本本上?br />
q个版本用下来最直接的感受有两点Q?br />1- 默认的中文字体支持更好了Q一斚w字体的处理更加协调一_不像之前默认时经怸文字W一大一的Q默认采用英文字体时对中文的昄也做的不错?br />2- Compiz和Beryl复和之后Q成了Ubuntu新的标配Q省得大家费力折腾从其他的apt源或者源码安装了?br />
当然了,其他l微的改q还有很多,比如Pidgin、默认的ntfs-3g、keyring的处理、闭源的驱动和codecs{等。ȝ来说QGusty Gibbon在Feisty Fawn基础上,更加成熟Q也让我们对明年4月的Hardy Heronq个?.06之后W二个LTS版本有了更多的期待?br />
q里有一个截图,很多东东q没有装Q基本上也没花太多时间去hackQ感觉就已经挺漂亮,也挺好用的了Q呵?
screenshot_20071222.png

BTWQAWN(Avant Window Navigator)已经认会包含在明年8.04(Hardy Heron)默认的apt源中Q这对AWN fans们,以及所有喜?eye candy"但又不愿花时间去折腾的朋友们来说Q无疑是个好消息?br />



laogao 2007-12-22 23:57 发表评论
]]>
[新闻] 联想于今年W四季度发售预装Linux的ThinkPadhttp://m.tkk7.com/sean/archive/2007/08/07/135071.htmllaogaolaogaoTue, 07 Aug 2007 13:09:00 GMThttp://m.tkk7.com/sean/archive/2007/08/07/135071.htmlhttp://m.tkk7.com/sean/comments/135071.htmlhttp://m.tkk7.com/sean/archive/2007/08/07/135071.html#Feedback1http://m.tkk7.com/sean/comments/commentRss/135071.htmlhttp://m.tkk7.com/sean/services/trackbacks/135071.html 据外甉|道,lDell发布预装Ubuntu的PC和笔记本?sh)脑之后Q联想也宣布?yu)于今年W四季度开始发售预装SuSE Linux Enterprise Desktop 10的ThinkPadW记本电(sh)脑,g和操作系l均p惛_客户提供支持Q操作系l升U则由Novell提供。值得注意的是Q与Dell面向Linux 爱好者和个h用户不同Q联惌ơ更多的是针对企业用戗?br />
对于q大Linux爱好者来_q可是个不错的消息哦?br />
详见:
http://www.reghardware.co.uk/2007/08/06/lenovo_linux/




laogao 2007-08-07 21:09 发表评论
]]>
[Tips] 在Linux环境下调整Eclipse中树状列?GtkTreeView)的显C密?/title><link>http://m.tkk7.com/sean/archive/2007/06/09/123109.html</link><dc:creator>laogao</dc:creator><author>laogao</author><pubDate>Sat, 09 Jun 2007 14:46:00 GMT</pubDate><guid>http://m.tkk7.com/sean/archive/2007/06/09/123109.html</guid><wfw:comment>http://m.tkk7.com/sean/comments/123109.html</wfw:comment><comments>http://m.tkk7.com/sean/archive/2007/06/09/123109.html#Feedback</comments><slash:comments>1</slash:comments><wfw:commentRss>http://m.tkk7.com/sean/comments/commentRss/123109.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/sean/services/trackbacks/123109.html</trackback:ping><description><![CDATA[ <br /> 如果你在Windows和Linux两个q_下都使用qEclipseQ那么你一定注意到Windows下Eclipse目列表的显C比Linux? 紧凑许多。对于做开发的朋友来讲Q在屏幕上同时看到的信息L希望可能多Q尽可能全,在这一点上目前的GNOMEq不能让我们十分满意Q它的GTK+? 件本w和控g之间的间隙占掉了不少本来很有限的屏q空_其当屏q分辨率不是特别高的时候?br /><br /> Linux版的Eclipse默认使用GTK+2.0的控Ӟ所以在默认的情况下Q会和其他GTK应用E序Q如OpenOffice.orgQ一L(fng)Z U不够密实的感觉。当Ӟq和GNOME的设计哲学不无关p,不过q不是本文主旨,׃深入讨论了,q入正题讲讲如何调整Eclipse树状列表的显C密 度?br /><br /> ZGTK+2.0的程序在启动时会到用L(fng)home目录找GTK+2.0的配|文Ӟ即~/.gtkrc-2.0QUbuntu下默认没有这个文Ӟ需要我们自己创建。打开你习惯的~辑器,加入如下代码Q?br /><br /> style "eclipse" {<br />   font_name="Sans 8"<br />   GtkTreeView::vertical-separator=0<br />   GtkTreeView::horizontal-separator=0<br /> }<br /> class "GtkTreeView" style "eclipse"<br /><br /> 重启Eclipse应该p看到效果了。如果你惛_得更dQ对所有常用的GTK+2.0控g都开刀的话Q可以这样写Q?br /><br /> style "gtkcompact" {<br />   font_name="Sans 8"<br />   GtkButton::default_border={0,0,0,0}<br />   GtkButton::default_outside_border={0,0,0,0}<br />   GtkButtonBox::child_min_width=0<br />   GtkButtonBox::child_min_heigth=0<br />   GtkButtonBox::child_internal_pad_x=0<br />   GtkButtonBox::child_internal_pad_y=0<br />   GtkMenu::vertical-padding=1<br />   GtkMenuBar::internal_padding=0<br />   GtkMenuItem::horizontal_padding=4<br />   GtkOptionMenu::indicator_size=0<br />   GtkOptionMenu::indicator_spacing=0<br />   GtkPaned::handle_size=4<br />   GtkRange::trough_border=0<br />   GtkRange::stepper_spacing=0<br />   GtkScale::value_spacing=0<br />   GtkScrolledWindow::scrollbar_spacing=0<br />   GtkExpander::expander_size=10<br />   GtkExpander::expander_spacing=0<br />   GtkTreeView::vertical-separator=0<br />   GtkTreeView::horizontal-separator=0<br />   GtkTreeView::expander-size=8<br />   GtkTreeView::fixed-height-mode=TRUE<br />   GtkWidget::focus_padding=0<br /> }<br /> class "GtkWidget" style "gtkcompact"<br /><br /><br /><img src ="http://m.tkk7.com/sean/aggbug/123109.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/sean/" target="_blank">laogao</a> 2007-06-09 22:46 <a href="http://m.tkk7.com/sean/archive/2007/06/09/123109.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>[Tips] 解决Linux环境下SQL*Plus方向键无法用的问题http://m.tkk7.com/sean/archive/2007/06/07/122736.htmllaogaolaogaoThu, 07 Jun 2007 14:13:00 GMThttp://m.tkk7.com/sean/archive/2007/06/07/122736.htmlhttp://m.tkk7.com/sean/comments/122736.htmlhttp://m.tkk7.com/sean/archive/2007/06/07/122736.html#Feedback0http://m.tkk7.com/sean/comments/commentRss/122736.htmlhttp://m.tkk7.com/sean/services/trackbacks/122736.html Linux下面使用Oracle的SQL*Plus工具有个挺恼人的问题Q通过sqlplus命oq入到SQL*Plus控制台后Q我们在Bash中已l? 习以为常的上下左右键H然变成了^[[A^[[B^[[D^[[Cq样?q"。熟(zhn)ksh的朋友肯定要说我们这是大惊小怪了Q不q对于从 Windowsq_转过来的一般用戯言Q不心按错一下就?个错误的字符Q而且历史命o也无法方便的回查了,实挺郁L(fng)?br />
别着急,如果你的Linux是Debian或者Ubuntu/KubuntuQ直接sudo apt-get install rlwrap安装q个y的readline扩展Q然后就可以以rlwrap sqlplus的方式进入方向键"正常"的SQL*Plus了。当Ӟ如果嫌每ơ敲rlwrap不爽Q可以在/etc/profile或者自q ~/.bashrc里面dalias sqlplus='rlwrap sqlplus'。其他发行版的朋友可以选择rpm包或者干脆从源码自己~译?br />


laogao 2007-06-07 22:13 发表评论
]]>
[阅读] 从RH/Fedora到UbuntuQESR如是?/title><link>http://m.tkk7.com/sean/archive/2007/02/22/100329.html</link><dc:creator>laogao</dc:creator><author>laogao</author><pubDate>Wed, 21 Feb 2007 20:49:00 GMT</pubDate><guid>http://m.tkk7.com/sean/archive/2007/02/22/100329.html</guid><wfw:comment>http://m.tkk7.com/sean/comments/100329.html</wfw:comment><comments>http://m.tkk7.com/sean/archive/2007/02/22/100329.html#Feedback</comments><slash:comments>0</slash:comments><wfw:commentRss>http://m.tkk7.com/sean/comments/commentRss/100329.html</wfw:commentRss><trackback:ping>http://m.tkk7.com/sean/services/trackbacks/100329.html</trackback:ping><description><![CDATA[<br /> <a target="_blank">http://www.linux-watch.com/news/NS6401388051.html</a><br /> <br /> Linux-Watch上刚发布了一关于最qEric S. Raymond (ESR)“受够?rdquo;FedoraQ?ldquo;转投”Ubuntu的文章,挺有的?br /> <br /> Note: Eric S. Raymond可以说是Unix大牛和开源运动的ȝ之一Q他最有名的著作ؓ"The Cathedral and the Bazaar"(中译“大教堂与市集”)?quot;The Art of UNIX Programming"(中译“UNIX~程艺术”)?br /> <br/> <br/><img src ="http://m.tkk7.com/sean/aggbug/100329.html" width = "1" height = "1" /><br><br><div align=right><a style="text-decoration:none;" href="http://m.tkk7.com/sean/" target="_blank">laogao</a> 2007-02-22 04:49 <a href="http://m.tkk7.com/sean/archive/2007/02/22/100329.html#Feedback" target="_blank" style="text-decoration:none;">发表评论</a></div>]]></description></item><item><title>[阅读] Why Windows is less secure than Linuxhttp://m.tkk7.com/sean/archive/2007/02/08/98634.htmllaogaolaogaoThu, 08 Feb 2007 00:29:00 GMThttp://m.tkk7.com/sean/archive/2007/02/08/98634.htmlhttp://m.tkk7.com/sean/comments/98634.htmlhttp://m.tkk7.com/sean/archive/2007/02/08/98634.html#Feedback0http://m.tkk7.com/sean/comments/commentRss/98634.htmlhttp://m.tkk7.com/sean/services/trackbacks/98634.html 今天在ZDNet上看C挺有意思的blogQؓ什么Windows比Linux更难实现pȝ安全。文章D例Windows+IIS和Linux+Apache处理同样一个简单的带有囄的网,在后台的pȝ调用图表大不一栗系l调用越多,层次l构复杂,p隑֮现安全性?br />
http://blogs.zdnet.com/threatchaos/?p=311



laogao 2007-02-08 08:29 发表评论
]]>
[新闻] Open Source Development Labs (OSDL) ?Free Software Group (FSG) 合ƈ成ؓ Linux Foundationhttp://m.tkk7.com/sean/archive/2007/01/22/95429.htmllaogaolaogaoMon, 22 Jan 2007 15:59:00 GMThttp://m.tkk7.com/sean/archive/2007/01/22/95429.htmlhttp://m.tkk7.com/sean/comments/95429.htmlhttp://m.tkk7.com/sean/archive/2007/01/22/95429.html#Feedback0http://m.tkk7.com/sean/comments/commentRss/95429.htmlhttp://m.tkk7.com/sean/services/trackbacks/95429.html 详见:
http://www.linux-foundation.org/wordpress/?p=286




laogao 2007-01-22 23:59 发表评论
]]>
[新闻] FreeBSD 6.2正式发布http://m.tkk7.com/sean/archive/2007/01/15/94040.htmllaogaolaogaoMon, 15 Jan 2007 13:16:00 GMThttp://m.tkk7.com/sean/archive/2007/01/15/94040.htmlhttp://m.tkk7.com/sean/comments/94040.htmlhttp://m.tkk7.com/sean/archive/2007/01/15/94040.html#Feedback0http://m.tkk7.com/sean/comments/commentRss/94040.htmlhttp://m.tkk7.com/sean/services/trackbacks/94040.html 详情误FreeBSD官方|站?a >官方声明?br/>



laogao 2007-01-15 21:16 发表评论
]]>
[Tips] Debian/Ubuntu下安装NFS如无法正常启动需要dpkg-reconfigure portmaphttp://m.tkk7.com/sean/archive/2007/01/10/93006.htmllaogaolaogaoWed, 10 Jan 2007 13:17:00 GMThttp://m.tkk7.com/sean/archive/2007/01/10/93006.htmlhttp://m.tkk7.com/sean/comments/93006.htmlhttp://m.tkk7.com/sean/archive/2007/01/10/93006.html#Feedback0http://m.tkk7.com/sean/comments/commentRss/93006.htmlhttp://m.tkk7.com/sean/services/trackbacks/93006.html 安装NFS的方法很单,apt-get install nfs-kernel-serverQ之后只要配|?etc/exports (如[path] [client-hostname](rw,async))Q然?etc/init.d/nfs-kernel-server start (或者stop|restart{等)卛_启动和控制NFS服务q行。在客户端通过mount xxx.xxx.xxx.xxx:/xxx ([ip-address]:[server-path])的方式即可挂载ƈ当做本地文gpȝ一样用?br/>
如果遇到在服务器端无法正常启动nfs-kernel-serverQ多半是你的portmap没有正确配置Q需要dpkg-reconfigure portmapQ弹出的界面选No?br/>



laogao 2007-01-10 21:17 发表评论
]]>
[Tips] Debian Sarge(3.1r4)下编译和安装PostgreSQL 8.2.1http://m.tkk7.com/sean/archive/2007/01/10/92796.htmllaogaolaogaoTue, 09 Jan 2007 17:35:00 GMThttp://m.tkk7.com/sean/archive/2007/01/10/92796.htmlhttp://m.tkk7.com/sean/comments/92796.htmlhttp://m.tkk7.com/sean/archive/2007/01/10/92796.html#Feedback1http://m.tkk7.com/sean/comments/commentRss/92796.htmlhttp://m.tkk7.com/sean/services/trackbacks/92796.html [注]׃Debian相当保守的包理和更新机Ӟ本文提到的编译和安装q程可能要求你在/etc/apt/sources.list中开放testingU别的包?br/>
1- 首先是去PostgreSQL的官方网站[link]下蝲最?.2.1版本的源码,postgresql-8.2.1.tar.gz?br/> 2- 拯q解?
     $ sudo -s
     # cp postgresql-8.2.1.tar.gz /opt
     # cd /opt
     # tar zxvf postgresql-8.2.1.tar.gz
     # cd postgresql-8.2.1
3- 在开始configure和make之前Q先做一些准备工作,Z正常configure和makeQ需?
     # apt-get install build-essential gcc-4.0 libreadline5 libreadline5-dev m4 flex bison zlib1g zlib1g-dev
4- 一切就l,开?
     # ./configure --prefix=/opt/postgresql ### 更多选项参?/configure --help ###
     # make
  正常的话Q可以看到最后一行输Zؓ: "All of PostgreSQL successfully made. Ready to install."
5- 安装:
     # make install
  最后应该看到输?PostgreSQL installation complete."?br/> 6- 初始化数据库环境:
     # mkdir /opt/postgresql/data
     # adduser postgres
     # chown postgres /opt/postgresql/data
     # sudo -u postgres /opt/postgresql/bin/initdb /opt/postgresql/data/
  ~辑/opt/postgresql/data目录下的pg_hba.confQ添加local all postgres ident sameuser和local all all md5两行Q?br/>   ~辑/opt/postgresql/data目录下的postgresql.confQ去掉listen_addresses的注释符Q修改ؓlisten_addresses = '*'?br/> 7- 启动数据?
     # sudo -u postgres /opt/postgresql/bin/pg_ctl -D /opt/postgresql/data -l /opt/postgresql/data/serverlog start
     # sudo -u postgres /opt/postgresql/bin/createuser -P dbuser
     # sudo -u postgres /opt/postgresql/bin/createdb testdb
     # /opt/postgresql/bin/psql -U dbuser testdb
  若能正常q入PostgreSQL控制台ƈ执行查询如select version();卌C安装成功?br/>
每次都这样去命o行启动数据库当然有点太笨了,下次再抽I和大家分nPostgreSQL自动化启动脚本的~写?br/>



laogao 2007-01-10 01:35 发表评论
]]>
[阅读] Linux software installation to improvehttp://m.tkk7.com/sean/archive/2007/01/03/91647.htmllaogaolaogaoWed, 03 Jan 2007 14:23:00 GMThttp://m.tkk7.com/sean/archive/2007/01/03/91647.htmlhttp://m.tkk7.com/sean/comments/91647.htmlhttp://m.tkk7.com/sean/archive/2007/01/03/91647.html#Feedback0http://m.tkk7.com/sean/comments/commentRss/91647.htmlhttp://m.tkk7.com/sean/services/trackbacks/91647.html http://www.linux-watch.com/news/NS4586903228.html

由Debian创始Z一Ian Murdock担Qd的LSB(Linux Standard Base, Free Software Group的下属机?q日做出计划Q要提供一套通用的API整合不同的包理工具/机制Q如Debian的APT、RedHat和SuSE的RPM、YUM{等Q得在Linuxq_安装软g变得更加标准化,以吸引更多的ISV为Linuxq_开发Y件?br />



laogao 2007-01-03 22:23 发表评论
]]>
[新闻] 文泉驿点阵宋体v8.0-嬴政发布RC1版本http://m.tkk7.com/sean/archive/2007/01/01/91309.htmllaogaolaogaoMon, 01 Jan 2007 11:17:00 GMThttp://m.tkk7.com/sean/archive/2007/01/01/91309.htmlhttp://m.tkk7.com/sean/comments/91309.htmlhttp://m.tkk7.com/sean/archive/2007/01/01/91309.html#Feedback1http://m.tkk7.com/sean/comments/commentRss/91309.htmlhttp://m.tkk7.com/sean/services/trackbacks/91309.html http://wqy.sourceforge.net/cgi-bin/index.cgi?BitmapSong

该版本更好的支持_体中西方字W,推荐大家更新。一个小的注意事项Q如果你使用官方的deb包在Ubuntu下安装,可能需要加?-ignore-depends=xfonts-utilsQ才能正dpkg -i成功Q这应该是这个安装包的一个bug?br />



laogao 2007-01-01 19:17 发表评论
]]>
[阅读] Windows Vista and DRMhttp://m.tkk7.com/sean/archive/2006/12/31/91203.htmllaogaolaogaoSun, 31 Dec 2006 09:10:00 GMThttp://m.tkk7.com/sean/archive/2006/12/31/91203.htmlhttp://m.tkk7.com/sean/comments/91203.htmlhttp://m.tkk7.com/sean/archive/2006/12/31/91203.html#Feedback0http://m.tkk7.com/sean/comments/commentRss/91203.htmlhttp://m.tkk7.com/sean/services/trackbacks/91203.html http://www.theregister.co.uk/2006/12/27/windows_drm_monstered/

|上关于Vista和DRM的讨论已l存在很长时_按照上文中提到的Peter Gutmann的说法,Vistal大Ӟ其是最l用P带来了什么呢Q答案是Q?br />"A more expensive and less functional operating system"?br />



laogao 2006-12-31 17:10 发表评论
]]>
[Tips] 推荐Linux下命令行版的q程理工具 - htophttp://m.tkk7.com/sean/archive/2006/12/31/91190.htmllaogaolaogaoSun, 31 Dec 2006 08:19:00 GMThttp://m.tkk7.com/sean/archive/2006/12/31/91190.htmlhttp://m.tkk7.com/sean/comments/91190.htmlhttp://m.tkk7.com/sean/archive/2006/12/31/91190.html#Feedback1http://m.tkk7.com/sean/comments/commentRss/91190.htmlhttp://m.tkk7.com/sean/services/trackbacks/91190.html你是否经帔R要ps aux然后kill -9Q或者你已经使用qtopQ向你推荐一ƾtop工具的全面升U版 - htopQ这是一Ƒ֜命o行运行,但是操作十分友好的Linuxq程理工具Q打开以后Q你可以直接用上下键选择q程及垂直滚屏,用左右键水^滚屏QF6选择排序方式QF9选择kill某进E,传递的SIGNAL可选,F10或q退出?br />
截屏Q?br />
htop.jpg

安装Ҏ(gu)Q如果你是用Ubuntu或者DebianQ?br />$ sudo apt-get install htop




laogao 2006-12-31 16:19 发表评论
]]>
[Facts] Windows Search vs. grep on GNU/Linuxhttp://m.tkk7.com/sean/archive/2006/12/21/89385.htmllaogaolaogaoThu, 21 Dec 2006 15:59:00 GMThttp://m.tkk7.com/sean/archive/2006/12/21/89385.htmlhttp://m.tkk7.com/sean/comments/89385.htmlhttp://m.tkk7.com/sean/archive/2006/12/21/89385.html#Feedback0http://m.tkk7.com/sean/comments/commentRss/89385.htmlhttp://m.tkk7.com/sean/services/trackbacks/89385.html看到q样的结果你也许q不意外Q但是看到具体的数字可能会惊Ӟ

试环境Q?br />IBM (Lenovo) ThinkPad T43 (1G Mem);
Windows XP Professional (SP2), 文gpȝNTFSQ默认设|?
Ubuntu GNU/Linux 6.06 (Dapper Drake), 文gpȝext3Q默认设|?

试用例Q?br />1M左右大小的文本文Ӟp200个,搜烦包含字符?1000456732'的文件和相关内容?br />
Windows Search - 37U,正确扑ֈ包含字符串的6个文Ӟ但是没有直接提取出相兛_宏V?br />Notepad++ (Windows) Search in Files - N/AQ超q?分钟没有M反应QCPU99%?br />grep (Ubuntu, 直接读NTFS分区) - 12U,正确扑և所?个文Ӟ63行相兛_宏V?br />grep (Ubuntu, 拯到ext3分区再执? - 拯3U,执行2U,正确扑և所?个文Ӟ63行相兛_宏V?br />
q记得上ơ在Ubuntu下安装CVS带来的性能提升吗?
http://m.tkk7.com/sean/archive/2006/09/17/70145.html




laogao 2006-12-21 23:59 发表评论
]]>
Vista, Office, and User Lock-inhttp://m.tkk7.com/sean/archive/2006/12/08/86450.htmllaogaolaogaoFri, 08 Dec 2006 13:16:00 GMThttp://m.tkk7.com/sean/archive/2006/12/08/86450.htmlhttp://m.tkk7.com/sean/comments/86450.htmlhttp://m.tkk7.com/sean/archive/2006/12/08/86450.html#Feedback1http://m.tkk7.com/sean/comments/commentRss/86450.htmlhttp://m.tkk7.com/sean/services/trackbacks/86450.html昨天刚刚向大家推荐了一个关于Trusted Computing的短?/a>Q今天l沿着q个话题往前走Q读一来自InformationWeek的文章:

How Vista Lets Microsoft Lock User In

通过在Vista中真正融入所谓的DRM/IRM(Digital/Information Rights Management)技术,微Y可以有效地在"开攑֒标准化Office文g格式"的同Ӟ通过加密、数字签名和数字授权{方式控制文件的打开、打印、修攏V保存、{发,渗透到文档的整个生命周期,甚至文档发出M后,q能亡羊补牢Q收回授权!表面上这当然是在提高安全性,事实上这也是在打压Google、OpenOffice.org{MS Office之外的MS Office格式文g阅读/~辑器,使得它们不再能够在没有微软授权的情况下合法的打开MS Office文档Q或者至会让这个过E变得极端复杂。故事的另一_在最l用户对安全都十二分的敏感的大前提下Q典型的Office用户当然会遵从微软的官方或者许多媒体推荐的安全Q把安全U别提高Q乃至采取严格的加密授权q样的极端措施,因ؓMS Officel他/提供了这L(fng)便利。到最后,要想得到加密的内容,光有keyq不行,q必M用MS OfficeQ因为IRM理论上可以阻止其他阅?~辑器得到认证?br />
举个例子Q如果我的PC装的是Windows和Linux双系l,那么当我使用Linuxq试囄h权,管我的机器配置不变QIRM仍然可以认ؓ我是不可信赖的接收者,因ؓOS也会参与IRM认证计算Q甚x可能当我升我自qgQ会造成先前q行良好的应用程序或服务H然变得无法使用Q同理,同样是Windows环境Q如果用非MS Office的编辑器Q那么计出的序号也不同,无法获得密钥Q从而也无法打开文档Q这׃实上把用P把用L(fng)数据Q和MS Windows、MS Officel在了一赗我们有理由|疑q背后的动机QTC/DRM/IRM是不是有点管得太宽了呢?

如果我们日常工作和生zȝ文g~辑、交换、共享,甚至是官方公文的{Q都采用MS的格式和MS的工P一旦微软成功实CLock-inQ想想都觉得可怕?br />
TC/DRM/IRM背后最大的利益推动者就是微软,U观微YTC/IRM/DRM的渗透过E,大致可以分ؓ三个阶段Q第一个阶D|g支持Q目前市Z相当数量的主板,都已l集成了TCM(Trusted Computing Module)模块Q只是没有被很好的利用;W二个阶D实现Y件、服务^台、乃x作系l别的支持Q初步实现远E认证,q个在微软的Genuine Advantage实施中收C实际效果Q第三个阶段当所有h都更新到最新的支持TC/DRM/IRM的Windows和MS OfficeQ微软就可以从容的用他们精心部|的"U密武器"来实现垄断了?br />
q一D|间以来我时常对同事朋友们_MS的世界是闭的,Z辑ֈ所谓的"Openness"Q它要求所有h都用MS WindowsQ进入这个封闭的世界Q而且L列D各式各样冠冕堂皇的理由。如果有一天,MS占据了我们整个生产链条的每个环节Qƈ且有效的控制了盗版,我们每做一件事Q哪怕是C份早点,都在lMS上税Q因Zؓ我们提供早点的整个流水线的成本中包含了MS软g的成本,因ؓ找不到合适的替代品,或者寻找替代品代h(hun)高昂(也许通过FUD造成q样的假?。这是垄断的危宻Iq就是ؓ什么我d大家更多的了解、学习和使用那些更开攄Q甚臛_源的操作pȝ、服务器和应用Y件?br />
别小看了微YQ尽这两年.NET喜忧参半QVista发布一再推q,开源风头正q,微Y也一度被很多|疑和负面消息笼|,g正在逐渐失去它以往的光环,现如今Vista已经正式发布Q微软这个昔日Y件帝国新一轮的战斗野心正蓄势待发?br />
除了我自己,我无法阻止Q何h使用Windows、MS OfficeQ也无法L他们使用盗版软gQ但是,我可以以自己的实际行动避免把自己反锁在微软的乌托邦,希望你也可以?br />



laogao 2006-12-08 21:16 发表评论
]]>
[链接] Linux Distribution Chooserhttp://m.tkk7.com/sean/archive/2006/12/04/85450.htmllaogaolaogaoMon, 04 Dec 2006 13:20:00 GMThttp://m.tkk7.com/sean/archive/2006/12/04/85450.htmlhttp://m.tkk7.com/sean/comments/85450.htmlhttp://m.tkk7.com/sean/archive/2006/12/04/85450.html#Feedback0http://m.tkk7.com/sean/comments/commentRss/85450.htmlhttp://m.tkk7.com/sean/services/trackbacks/85450.html发现一l有的试题,完成q些试Q你会得到适合你的Linux发行版的。如果你正在众多优秀的Linux发行版中难以取舍Q也许这l测试题能够帮你你找到答案:

http://www.zegeniestudios.net/ldc/index.php?firsttime=true




laogao 2006-12-04 21:20 发表评论
]]>
[Tips] Ubuntu 6.06 LTS (Dapper Drake)下手动安装Firefox 2.0http://m.tkk7.com/sean/archive/2006/11/29/84448.htmllaogaolaogaoWed, 29 Nov 2006 15:32:00 GMThttp://m.tkk7.com/sean/archive/2006/11/29/84448.htmlhttp://m.tkk7.com/sean/comments/84448.htmlhttp://m.tkk7.com/sean/archive/2006/11/29/84448.html#Feedback2http://m.tkk7.com/sean/comments/commentRss/84448.htmlhttp://m.tkk7.com/sean/services/trackbacks/84448.html当Firefox 2.0正式发布后,你也许觉得Ubuntu 6.06下面理所当然可以自动更新到最新的Firefox 2.x吧,可能你也听说了,Ubuntu 6.10默认是Firefox 2.0Q但是很不幸Q在Ubuntu 6.06下面你ƈ不能使用你也许已l习惯甚至依赖的apt-get install命o来安装它Q你需要在命o行做一些dirty workQ?br />
首先备䆾原有的Firefox讄Q这些可以在~/.mozilla/firefox/目录下找到。[此步骤可选]
从Mozilla官方|站下蝲最新的for Linux的Firefox 2.xQ?a >http://www.mozilla.com/firefox/
打开命o行:
# sudo -s
[输入root密码]
[cdC保存Firefox下蝲包的路径解压~]
# tar -C /opt -zxvf firefox-2.0.tar.gz
[链接plugins]
# mv /opt/firefox/plugins /opt/firefox/plugins.bak
# ln -s /usr/lib/firefox/plugins /opt/firefox/plugins
[链接firefox启动脚本]
# dpkg-divert --divert /usr/bin/firefox.ubuntu --rename /usr/bin/firefox
# ln -s /opt/firefox/firefox /usr/bin/firefox
# dpkg-divert --divert /usr/bin/mozilla-firefox.ubuntu --rename /usr/bin/mozilla-firefox
# ln -s /opt/firefox/firefox /usr/bin/mozilla-firefox
# exit

现在x所有FirefoxH口Q重新按照原来打开Firefox的方式即可启动新版本的Firefox了。另外,如果你觉得Ubuntu默认的蓝色地球A图标不好看,可以右键选择快捷方式Q选属性,点击图标卛_更改。我的做法是把官方的icon拯?usr/share/pixmaps/目录下,卛_从列表中直接选择?br />



laogao 2006-11-29 23:32 发表评论
]]>
[阅读] 和微软订立一份抛弃Novell/SUSE的五q期协议http://m.tkk7.com/sean/archive/2006/11/09/80267.htmllaogaolaogaoThu, 09 Nov 2006 13:45:00 GMThttp://m.tkk7.com/sean/archive/2006/11/09/80267.htmlhttp://m.tkk7.com/sean/comments/80267.htmlhttp://m.tkk7.com/sean/archive/2006/11/09/80267.html#Feedback0http://m.tkk7.com/sean/comments/commentRss/80267.htmlhttp://m.tkk7.com/sean/services/trackbacks/80267.html最q有兛_软和Novell之间颇受争议的五q协议引来网上大媒体争相报道,褒贬不一Q甚为热闹,I竟微Yq次真正意图何在Q未来的Linux市场上会因ؓq次微Y和Novell的合作协议受到怎样的媄响,很多人的经都不由得Z紧张h。故事的背景我在q里׃重复了,本来也没想着Zq个已经被闹得沸沸扬扬的事g再多写些什么,但今天看到Linux界颇有媄响的Nicholas Petreley的一与微Y和Novell针锋相对?q内和Novell/SuSE划清界限的宣aQ忍不住q是Zq篇随笔Q和大家分nQ?br />
A five year deal with Microsoft to dump Novell/SUSE




laogao 2006-11-09 21:45 发表评论
]]>
[新闻] Ubuntu Linux 6.10发布http://m.tkk7.com/sean/archive/2006/10/28/77806.htmllaogaolaogaoSat, 28 Oct 2006 08:24:00 GMThttp://m.tkk7.com/sean/archive/2006/10/28/77806.htmlhttp://m.tkk7.com/sean/comments/77806.htmlhttp://m.tkk7.com/sean/archive/2006/10/28/77806.html#Feedback5http://m.tkk7.com/sean/comments/commentRss/77806.htmlhttp://m.tkk7.com/sean/services/trackbacks/77806.html http://www.ubuntu.com/news/610released

主要的功能能强包括:
# TomboyC工具Q电(sh)子版报事贴Y?br /># F-Spot囄理Q类似Picasa
# GNOME 2.16桌面pȝ
# UpstartQ新的启动daemon
# 最新版Firefox 2.0览?br /># d预防式安全功?br /># Evolution邮g客户?br />
Tomboy和F-Spot可能是目前Mono应用中最成功的两个项目了。比较遗憄是Canonicalq次对于新版的Ubuntu 6.10 (Edgy Eft)q没有提供Shipit免费寄送光盘服务,它的Shipit服务目前仍然?.06 LTS版,当然Q你q是可以在相当多的镜像服务器免费下蝲到最新的ISO?br />



laogao 2006-10-28 16:24 发表评论
]]>
[Tips] 在Ubuntu下限制本Z用的|络带宽http://m.tkk7.com/sean/archive/2006/10/22/76587.htmllaogaolaogaoSat, 21 Oct 2006 16:00:00 GMThttp://m.tkk7.com/sean/archive/2006/10/22/76587.htmlhttp://m.tkk7.com/sean/comments/76587.htmlhttp://m.tkk7.com/sean/archive/2006/10/22/76587.html#Feedback6http://m.tkk7.com/sean/comments/commentRss/76587.htmlhttp://m.tkk7.com/sean/services/trackbacks/76587.html看到q个标题你也怼问,|络带宽不是大好么,q嘛q要限制Q事情是q样的:如今来多的互联网接入都不再是单机Q而是一个互联网q接Q多个PC机或服务器共享。这样一来如果不Ҏ(gu)个点的带宽做限制Q当q个点肆意用带宽的话,势必影响到同样用该q接的其他主机对互联|的讉K效果?br />
Linux下有什么设|可以实CQ答案是trickle和trickled。如果你q没有安装,那么在Ubuntu下,打开命o行,使用如下命o安装Q?br />
# sudo apt-get install trickle

安装完毕Q即可用trickled -d [XX] -u [XX]修改全局的下载速率和上传速率Q对所有trickleq程的d兌非pȝU别Q,或者用trickle -d [XX] -u [XX] [COMMAND]以限刉率的方式启动某个程序。如Q?br />
# trickled -d 40 -u 20
或?br /># trickle -d 40 -u 20 firefox

q样下蝲速率׃被限制在40KB/s之内Q上传速率会被限制?0KB/s。以下信息仅供参考:一般家庭接入的ADSLM载速率可以辑ֈ100~150Q上传速率可以辑ֈ50左右?br />




laogao 2006-10-22 00:00 发表评论
]]>
[Tips] 在Ubuntu Linux 6.06 LTS (Dapper Drake)上安装文泉驿炚w字体 - 北斗http://m.tkk7.com/sean/archive/2006/09/17/70146.htmllaogaolaogaoSun, 17 Sep 2006 09:44:00 GMThttp://m.tkk7.com/sean/archive/2006/09/17/70146.htmlhttp://m.tkk7.com/sean/comments/70146.htmlhttp://m.tkk7.com/sean/archive/2006/09/17/70146.html#Feedback2http://m.tkk7.com/sean/comments/commentRss/70146.htmlhttp://m.tkk7.com/sean/services/trackbacks/70146.html实事求是的说QLinux下面默认的字体,其是中文字体,l大多数发行版自带的都不怎么好看。于是安装字体成了安装桌面版Linux之后理成章的一个必要的步骤。但是从哪里开始呢Q推荐GNU的文泉驿目Qhttp://wqy.sourceforge.net/

q篇blog中,我就单整理一下文泉驿炚w宋体0.7版(北斗Q在Dapper Drake上的安装步骤Q供大家参考。(部分内容来自|友ailantian的Debian下安装文泉驿炚w宋体的说明文?http://wqy.sourceforge.net/cgi-bin/index.cgi?Dou_INSTALL_Deb Q?br />
本文成型时最新的北斗版本?.7.0-4Q首先到文泉驿的主页扑ֈwqy-bitmapfont-pcf-0.7.0-4.tar.gz的下载,从SourceForge.net的其中一个镜像站点下载到本地。(W者用的是Optus Net http://optusnet.dl.sourceforge.net/sourceforge/wqy/wqy-bitmapfont-pcf-0.7.0-4.tar.gz Q?br />
下蝲好的文g攑ֈ本地/opt目录下,接下来在本地依次执行以下命oQ?br /># sudo -s
# cd /opt
# tar zxvf wqy-bitmapfont-pcf-0.7.0-4.tar.gz
# cd wqy-bitmapfont
# mkdir -p /usr/share/fonts/bitmap/wenquanyi
# cp *.pcf /usr/share/fonts/bitmap/wenquanyi
# fc-cache -f
# cd /usr/share/fonts/bitmap/wenquanyi
# mkfontdir
# vi /etc/X11/xorg.conf
{在这里添加如下一行:FontPath "/usr/share/fonts/bitmap/wenquanyi"}
# cd /etc/fonts/conf.d
# unlink 30-debconf-no-bitmaps.conf
# exit

q个时候从System->Preferences->Font中已l可以找到WenQuanYi Bitmap Songq个字体了,按自q喜好选择使用该字体(W者的选择是除了Fixed width Font之外都是用WenQuanYiQ。如果确认以后ƈ没有整个桌面都刷出新的字体,dGNOME再登录回来即可?br />


laogao 2006-09-17 17:44 发表评论
]]>
[Tips] 在Ubuntu Linux 6.06 LTS (Dapper Drake)上安装CVS服务http://m.tkk7.com/sean/archive/2006/09/17/70145.htmllaogaolaogaoSun, 17 Sep 2006 09:10:00 GMThttp://m.tkk7.com/sean/archive/2006/09/17/70145.htmlhttp://m.tkk7.com/sean/comments/70145.htmlhttp://m.tkk7.com/sean/archive/2006/09/17/70145.html#Feedback8http://m.tkk7.com/sean/comments/commentRss/70145.htmlhttp://m.tkk7.com/sean/services/trackbacks/70145.html之前目一直用Win32环境的CVSNT做源代码版本理Q终于有一天受不了Windows下面跑CVS的性能Q一斚wCVS很慢Q另一斚w做CVS服务器的机子也被拖篏了)Q下定决心把CVS搬到Linux环境下?br />
以下单记录一下在Dapper Drake上安装和配置CVS的步骤,供大家参考(׃服务器在内网Q无法用Debianpȝ下方便而强大的apt-getQ只能手动下载了Q:

1- 下蝲和Dapper Drake匚w的CVS版本cvs_1.12.9-17_i386.debQ徏议从国内比较快的ubuntu.cn99.com的源上拿Q\径是/pool/main/c/cvs/cvs_1.12.9-17_i386.debQ?br />
2- 下蝲xinetd包,同上/pool/main/x/xinetd/xinetd_2.3.14-0ubuntu1_i386.debQ?br />
3- sudo -s转成rootQ?br />
4- dpkg -i cvs_1.12.9-17_i386.debQ?br />
5- dpkg -i xinetd_2.3.14-0ubuntu1_i386.debQ?br />
6- Z的CVS资源库选择一个目录,比如mkdir /MyCVSQ?br />
7- cvs -d /MyCVS init 初始化该CVS资源库;

8- vi /etc/xinetd.d/cvspserverQ添?br />service cvspserver
{
     port = 2401
     socket_type = stream
     protocol = tcp
     user = root
     wait = no
     type = UNLISTED
     server = /usr/bin/cvs
     server_args = -f --allow-root /MyCVS pserver
     disable = no
}

9- /etc/init.d/xinetd startQ?br />
10- 开始配|CVS用户Q最单的方式是采用Linux自己的用?文gpȝ权限理机制Q我的做法是d一个专门的用户ldevQ然后往里面加用P最后修改CVS资源目录的权限:
# addgroup dev
# adduser username
# adduser username dev
# chown -R username:dev /MyCVS
# chmod -R 775 /MyCVS
暂时?75Q今后可以根据需要再l化每个文g/文g夹的l节权限Q?br />
11- exit 退出sudo -s模式Q?br />
12- 打开你熟(zhn)的CVS客户端开始n用新的CVS服务器吧Q相信它的性能相比较Win32下的CVSNTQ一定会l你带来惊喜:D?br />



laogao 2006-09-17 17:10 发表评论
]]>
[链接] Qt for Java?http://m.tkk7.com/sean/archive/2006/08/02/61421.htmllaogaolaogaoWed, 02 Aug 2006 15:29:00 GMThttp://m.tkk7.com/sean/archive/2006/08/02/61421.htmlhttp://m.tkk7.com/sean/comments/61421.htmlhttp://m.tkk7.com/sean/archive/2006/08/02/61421.html#Feedback0http://m.tkk7.com/sean/comments/commentRss/61421.htmlhttp://m.tkk7.com/sean/services/trackbacks/61421.htmlTrolltech发布了针对Java的Qt工具?Preview版本) - Qt JambiQ可以直接用Java~写Qt式跨q_(Linux/Mac OS/Windows)GUI应用Q承了Qt的简z高效和本地化的L&FQ同时也和SWT/Swing/AWT友好共存。不q一斚wq个东东还在探索阶D,另一斚w不太喜欢Qt的授权模式,姑且先观望一阵吧?br />
http://www.trolltech.com/company/newsroom/announcements/press.2006-07-14.7914556269/

FAQs:
http://www.trolltech.com/developer/faqs/Qt%20Jambi




laogao 2006-08-02 23:29 发表评论
]]>
[阅读] Red Hat or Ubuntu?http://m.tkk7.com/sean/archive/2006/08/02/61409.htmllaogaolaogaoWed, 02 Aug 2006 14:35:00 GMThttp://m.tkk7.com/sean/archive/2006/08/02/61409.htmlhttp://m.tkk7.com/sean/comments/61409.htmlhttp://m.tkk7.com/sean/archive/2006/08/02/61409.html#Feedback0http://m.tkk7.com/sean/comments/commentRss/61409.htmlhttp://m.tkk7.com/sean/services/trackbacks/61409.htmlFree Software Magazine发表的评论文章:

Why Red Hat will go bust because of Ubuntu
http://www.freesoftwaremagazine.com/articles/editorial_13




laogao 2006-08-02 22:35 发表评论
]]>
վ֩ģ壺 ĻƷѾþ| ĻһƵ | 131ŮëƬ| 9ᆱƷƵ| 뾫Ʒһѿ| ȫӳѹۿ߿| ڵֻˬվ| 72paoƵ| aһƬ| ֻƬ| ˳Ƶ69| һѿ| ʮ߹ۿӰ| 99þþùƷţţ| ŷһëƬ| ҹƵ| һëƬ߲Ųշ| ޾ƷۺϾþһ| ձһ| 97þþƷĻ| Ӱ| sŷm봵| ۲ӰԺѹۿ| ¾þþþa| þùѹۿƷ3| ëƬ߿Ƭ˿Ƶ| ձѲƵ| պɬɬҹ˽ӰԺ| ޾Ʒ޿| ޵av| ޹Ʒۿþ| kk4kkƵëƬ| ҹƵѹۿ| Ů߾Ʒѹۿ| AVһ| þ޹ŷ޾Ʒһ| ˳߲| ˳ˬһ| һպƵ| Ůվ߿| ˵va|