博客园 - 番茄侠uuid:24b78886-0ed1-41c2-8670-e3f31dcf42c4;id=687212011-12-29T11:26:29Z番茄侠https://www.cnblogs.com/minglog/feed.cnblogs.comhttps://www.cnblogs.com/minglog/archive/2011/12/29/2306576.htmlHow To Install Oracle Java 7 (JDK) In Ubuntu(or linuxdeepin12) - 番茄侠As you probably know, Oracle Java (JVM/JDK) will not be available in the Debian / Ubuntu repositories anymore because Oracle retired the "Operating System Distributor License for Java" (JDL) and the only release available in the repositories will be OpenJDK.But of course, Oracle Java can s2011-12-29T11:26:00Z2011-12-29T11:26:00Z番茄侠https://www.cnblogs.com/minglog/【摘要】As you probably know, Oracle Java (JVM/JDK) will not be available in the Debian / Ubuntu repositories anymore because Oracle retired the "Operating System Distributor License for Java" (JDL) and the only release available in the repositories will be OpenJDK.But of course, Oracle Java can s <a href="https://www.cnblogs.com/minglog/archive/2011/12/29/2306576.html" target="_blank">阅读全文</a>https://www.cnblogs.com/minglog/archive/2011/09/25/2189974.html升级ubuntu至11.10 beta2 - 番茄侠尝个鲜,在11.04桌面按"alt+F2",在"run a command"中输入"update-manager -d",然后按步操作。安装完后,装输入法fcitx,执行命令:"sudo apt-get install fcitx"然后执行"im-switch -s fcitx",重启后,默认的输入法就是它了。可惜没有我要的五笔,所以又google了一下,发现可以在ibus中装极点五笔。执行如下:sudo wget http://www.xiit.cn/wp-content/uploads/202011-09-25T02:06:00Z2011-09-25T02:06:00Z番茄侠https://www.cnblogs.com/minglog/【摘要】尝个鲜,在11.04桌面按"alt+F2",在"run a command"中输入"update-manager -d",然后按步操作。安装完后,装输入法fcitx,执行命令:"sudo apt-get install fcitx"然后执行"im-switch -s fcitx",重启后,默认的输入法就是它了。可惜没有我要的五笔,所以又google了一下,发现可以在ibus中装极点五笔。执行如下:sudo wget http://www.xiit.cn/wp-content/uploads/20 <a href="https://www.cnblogs.com/minglog/archive/2011/09/25/2189974.html" target="_blank">阅读全文</a>https://www.cnblogs.com/minglog/archive/2011/09/19/2181397.htmlPermission denied (publickey,gssapi-with-mic). - 番茄侠$ ssh root@192.168.xx.xxPermission denied (publickey,gssapi-with-mic).报了这么个错,原因是我上次做测试时修改了/etc/ssh/sshd_config 中的"PasswordAuthentication"参数值为"no",修改回"yes",重启sshd服务即可。2011-09-19T07:34:00Z2011-09-19T07:34:00Z番茄侠https://www.cnblogs.com/minglog/【摘要】$ ssh root@192.168.xx.xxPermission denied (publickey,gssapi-with-mic).报了这么个错,原因是我上次做测试时修改了/etc/ssh/sshd_config 中的"PasswordAuthentication"参数值为"no",修改回"yes",重启sshd服务即可。 <a href="https://www.cnblogs.com/minglog/archive/2011/09/19/2181397.html" target="_blank">阅读全文</a>https://www.cnblogs.com/minglog/archive/2011/09/16/2178984.htmlconfigure ssh 密钥认证 - 番茄侠这是个老的不能再老的配置需求,网上相关文章多如牛毛。之所以还要记录一下,主要这次配置出现了点小问题,所以在这里要强调一下。配置localhost(ssh客户机)请用您的用户账户在源机上登录,并运行命令ssh-keygen -t rsa:$ssh-keygen-trsa连续3次回车就可以了,一般默认的输出路径就是对的为了实现自动登录, passphrase为空。注意:由于passphrase为空,生成的私钥必须绝对禁止未授权的访问!将生成的id_rsa.pub文件复制到remotehost的/home/username/.ssh/目录下。配置remotehost(ssh服务器)请以usernam2011-09-16T09:15:00Z2011-09-16T09:15:00Z番茄侠https://www.cnblogs.com/minglog/【摘要】这是个老的不能再老的配置需求,网上相关文章多如牛毛。之所以还要记录一下,主要这次配置出现了点小问题,所以在这里要强调一下。配置localhost(ssh客户机)请用您的用户账户在源机上登录,并运行命令ssh-keygen -t rsa:$ssh-keygen-trsa连续3次回车就可以了,一般默认的输出路径就是对的为了实现自动登录, passphrase为空。注意:由于passphrase为空,生成的私钥必须绝对禁止未授权的访问!将生成的id_rsa.pub文件复制到remotehost的/home/username/.ssh/目录下。配置remotehost(ssh服务器)请以usernam <a href="https://www.cnblogs.com/minglog/archive/2011/09/16/2178984.html" target="_blank">阅读全文</a>https://www.cnblogs.com/minglog/archive/2011/09/15/2177411.html32位ubuntu 使用pae - 番茄侠用的是linuxdeepin,下完后才看到它原来有64位版本的。不过不再想下载了。用pae吧。sudoapt-getinstalllinux-generic-paelinux-headers-generic-paeAfter a reboot the PAE kernel should be booted as the default option in the GRUB boot menu.To confirm that PAE was enabled correctly you can use the system monitor form the System menu under Ad2011-09-15T06:04:00Z2011-09-15T06:04:00Z番茄侠https://www.cnblogs.com/minglog/【摘要】用的是linuxdeepin,下完后才看到它原来有64位版本的。不过不再想下载了。用pae吧。sudoapt-getinstalllinux-generic-paelinux-headers-generic-paeAfter a reboot the PAE kernel should be booted as the default option in the GRUB boot menu.To confirm that PAE was enabled correctly you can use the system monitor form the System menu under Ad <a href="https://www.cnblogs.com/minglog/archive/2011/09/15/2177411.html" target="_blank">阅读全文</a>https://www.cnblogs.com/minglog/archive/2011/09/09/2172538.html如何用好cpan - 番茄侠1、查看perl版本:perl -v 、perl -version 、perl -V2、什么是cpan: CPAN是Comprehensive Perl Archive Network的缩写,“perl档案智能网络”的意思,其中包括了大量的perl模块,软件和文档。你可以从以下几个地方找到CPAN:http://www.cpan.org或http://www.perl.com/CPAN/或其他的列在http://www.cpan.org/SITES.html和http://mirror.cpan.org中的镜像站点 同时请注意,CPAN还是一个PERL的模块名,CPAN.pm是一个用来自动下载2011-09-09T06:54:00Z2011-09-09T06:54:00Z番茄侠https://www.cnblogs.com/minglog/【摘要】1、查看perl版本:perl -v 、perl -version 、perl -V2、什么是cpan: CPAN是Comprehensive Perl Archive Network的缩写,“perl档案智能网络”的意思,其中包括了大量的perl模块,软件和文档。你可以从以下几个地方找到CPAN:http://www.cpan.org或http://www.perl.com/CPAN/或其他的列在http://www.cpan.org/SITES.html和http://mirror.cpan.org中的镜像站点 同时请注意,CPAN还是一个PERL的模块名,CPAN.pm是一个用来自动下载 <a href="https://www.cnblogs.com/minglog/archive/2011/09/09/2172538.html" target="_blank">阅读全文</a>https://www.cnblogs.com/minglog/archive/2011/09/07/2169971.html无法执行jar文件(绝对路径) - 番茄侠执行某jar文件时,发现在只能在当前目录下,执行 java -jar "xxx.jar",如果在别的路径下执行 java -jar "d:\xxx\xxx.jar"时,就会报某某文件找不到的错误。于是写了个bat文件,加载环境变量setclasspath=%classpath%;d:\dist\config.properties;d:\dist\lib\commons-io-1.4.jar;d:\dist\lib\commons-logging-1.1.1.jar;d:\dist\lib\httpclient-4.0.3.jar;d:\dist\lib\2011-09-07T08:17:00Z2011-09-07T08:17:00Z番茄侠https://www.cnblogs.com/minglog/【摘要】执行某jar文件时,发现在只能在当前目录下,执行 java -jar "xxx.jar",如果在别的路径下执行 java -jar "d:\xxx\xxx.jar"时,就会报某某文件找不到的错误。于是写了个bat文件,加载环境变量setclasspath=%classpath%;d:\dist\config.properties;d:\dist\lib\commons-io-1.4.jar;d:\dist\lib\commons-logging-1.1.1.jar;d:\dist\lib\httpclient-4.0.3.jar;d:\dist\lib\ <a href="https://www.cnblogs.com/minglog/archive/2011/09/07/2169971.html" target="_blank">阅读全文</a>https://www.cnblogs.com/minglog/archive/2011/08/31/2160940.html飞信机器人的使用 - 番茄侠飞信机器人实在是个不错的东东。以前也一直用飞信(命令行接口),但机器人程序还是第一次使用。使用方法就不详细介绍了,网上太多的文章。寥寥记上几笔,防止以后重复使用。1.下载程序,去http://www.it-adv.net/寻找程序包,最新的程序包应该是这个(http://bbs.it-adv.net/viewthread.php?tid=1081&extra=&page=1),找到相应平台的版本(我是centos5 64位)的。包分为库文件和主程序,分开下载。引用原文的片段:(为何分开下载?因为机器人主程序经常更新,而支持库不会更新) 注意:linux用户,请不要把支持库中的 2011-08-31T08:55:00Z2011-08-31T08:55:00Z番茄侠https://www.cnblogs.com/minglog/【摘要】飞信机器人实在是个不错的东东。以前也一直用飞信(命令行接口),但机器人程序还是第一次使用。使用方法就不详细介绍了,网上太多的文章。寥寥记上几笔,防止以后重复使用。1.下载程序,去http://www.it-adv.net/寻找程序包,最新的程序包应该是这个(http://bbs.it-adv.net/viewthread.php?tid=1081&extra=&page=1),找到相应平台的版本(我是centos5 64位)的。包分为库文件和主程序,分开下载。引用原文的片段:(为何分开下载?因为机器人主程序经常更新,而支持库不会更新) 注意:linux用户,请不要把支持库中的 <a href="https://www.cnblogs.com/minglog/archive/2011/08/31/2160940.html" target="_blank">阅读全文</a>https://www.cnblogs.com/minglog/archive/2011/08/29/2158405.html修改yum配置使用163源 - 番茄侠今天需要使用dbt2来测试数据库,安装一些环境软件时,sohu的源表现的非常不给力,老是说资源不可访问。于是想把yum源改为163。这里有先行之人的文章(http://xiaotanglinux.blog.51cto.com/694236/639423),抄之。#!/bin/sh#****************************************************************##ScriptName:yum_update.sh#Author:baoqing.guobq#CreateDate:2011-07-21#ModifyAuthor:#ModifyDate:2011-08-29T09:34:00Z2011-08-29T09:34:00Z番茄侠https://www.cnblogs.com/minglog/【摘要】今天需要使用dbt2来测试数据库,安装一些环境软件时,sohu的源表现的非常不给力,老是说资源不可访问。于是想把yum源改为163。这里有先行之人的文章(http://xiaotanglinux.blog.51cto.com/694236/639423),抄之。#!/bin/sh#****************************************************************##ScriptName:yum_update.sh#Author:baoqing.guobq#CreateDate:2011-07-21#ModifyAuthor:#ModifyDate: <a href="https://www.cnblogs.com/minglog/archive/2011/08/29/2158405.html" target="_blank">阅读全文</a>https://www.cnblogs.com/minglog/archive/2011/08/11/2134500.htmlfedora 15中使用evolution获取exchange邮件 - 番茄侠#yuminstallevolution-mapi#yuminstallevolution-exchange2011-08-11T02:06:00Z2011-08-11T02:06:00Z番茄侠https://www.cnblogs.com/minglog/【摘要】#yuminstallevolution-mapi#yuminstallevolution-exchange <a href="https://www.cnblogs.com/minglog/archive/2011/08/11/2134500.html" target="_blank">阅读全文</a>https://www.cnblogs.com/minglog/archive/2011/08/09/2132199.htmlfedora 15环境下使用remmina访问远程windows desktop - 番茄侠#yuminstallremmina安装完后,GUI界面中默认是没有RDP协议的,所以也无法连接windows远程桌面服务,还需安装其plugins包:#yuminstallremmina-plugins-rdp现在再打开remmina 图形界面就能在协议下拉菜单中看到RDP选项了。2011-08-09T05:58:00Z2011-08-09T05:58:00Z番茄侠https://www.cnblogs.com/minglog/【摘要】#yuminstallremmina安装完后,GUI界面中默认是没有RDP协议的,所以也无法连接windows远程桌面服务,还需安装其plugins包:#yuminstallremmina-plugins-rdp现在再打开remmina 图形界面就能在协议下拉菜单中看到RDP选项了。 <a href="https://www.cnblogs.com/minglog/archive/2011/08/09/2132199.html" target="_blank">阅读全文</a>https://www.cnblogs.com/minglog/archive/2011/08/09/2131662.htmlfedora 15使用unrar - 番茄侠rpm-Uvhhttp://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpmhttp://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpmInstall unrar by doing this while being rootyuminstallunrarFollow the prompts by answering “y” to finish the installation2011-08-08T22:17:00Z2011-08-08T22:17:00Z番茄侠https://www.cnblogs.com/minglog/【摘要】rpm-Uvhhttp://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpmhttp://download1.rpmfusion.org/nonfree/fedora/rpmfusion-nonfree-release-stable.noarch.rpmInstall unrar by doing this while being rootyuminstallunrarFollow the prompts by answering “y” to finish the installation <a href="https://www.cnblogs.com/minglog/archive/2011/08/09/2131662.html" target="_blank">阅读全文</a>https://www.cnblogs.com/minglog/archive/2011/07/26/2117456.html在linuxdeepin里安装secureCRT的替代品--pac - 番茄侠$ sudo apt-add-repository "deb http://archive.getdeb.net/ubuntu maverick-getdeb apps"$ sudo apt-get update$ sudo apt-get install pac$ apt-get -f install2011-07-26T09:27:00Z2011-07-26T09:27:00Z番茄侠https://www.cnblogs.com/minglog/【摘要】$ sudo apt-add-repository "deb http://archive.getdeb.net/ubuntu maverick-getdeb apps"$ sudo apt-get update$ sudo apt-get install pac$ apt-get -f install <a href="https://www.cnblogs.com/minglog/archive/2011/07/26/2117456.html" target="_blank">阅读全文</a>https://www.cnblogs.com/minglog/archive/2011/07/05/2098254.html添加db_16k_cache_size后,db不能mount - 番茄侠SQL> CREATE PFILE=‘path/xxx.ora’from spfile; shell> vi xxx.ora*.db_16k_cache_size=16384 SQL> create spfile='path/spfilexxx.ora' from pfile='path/xxx.ora'; SQL> shutdown immediate SQL> STARTUPORACLE instance started.Total System Global Area 1653518336 bytesFixed Size 222011-07-05T06:23:00Z2011-07-05T06:23:00Z番茄侠https://www.cnblogs.com/minglog/【摘要】SQL> CREATE PFILE=‘path/xxx.ora’from spfile; shell> vi xxx.ora*.db_16k_cache_size=16384 SQL> create spfile='path/spfilexxx.ora' from pfile='path/xxx.ora'; SQL> shutdown immediate SQL> STARTUPORACLE instance started.Total System Global Area 1653518336 bytesFixed Size 22 <a href="https://www.cnblogs.com/minglog/archive/2011/07/05/2098254.html" target="_blank">阅读全文</a>https://www.cnblogs.com/minglog/archive/2011/06/13/2079873.htmlMySQL Semi-Synchronous Replication. See the Magic. Try the Magic. - 番茄侠OverviewMySQL Replication是MySQL中最常用也是最重要的结构之一。不象市场上其它的产品,它拥有即装即用、易配置、免费等特点。在很多大中小型应用场景下都用它来进行"scale-out"扩展。另外也用它来进行异地备份。在开始之前,需要先理解"Semi-Synchronous Replication"的概念。"Synchronous(同步)"是什么,为什么它只是"Semi(半)"。Asynchronous VS. SynchronousSynchronous:每个写事务(insert\updat2011-06-13T08:49:00Z2011-06-13T08:49:00Z番茄侠https://www.cnblogs.com/minglog/【摘要】OverviewMySQL Replication是MySQL中最常用也是最重要的结构之一。不象市场上其它的产品,它拥有即装即用、易配置、免费等特点。在很多大中小型应用场景下都用它来进行"scale-out"扩展。另外也用它来进行异地备份。在开始之前,需要先理解"Semi-Synchronous Replication"的概念。"Synchronous(同步)"是什么,为什么它只是"Semi(半)"。Asynchronous VS. SynchronousSynchronous:每个写事务(insert\updat <a href="https://www.cnblogs.com/minglog/archive/2011/06/13/2079873.html" target="_blank">阅读全文</a>https://www.cnblogs.com/minglog/archive/2011/06/07/2074361.htmlmysql cluster配置参数更新 - 番茄侠按照'Get MySQL Cluster Running-Linux'上的步骤,进行到如下步骤时:[cuser1@localhostmy_cluster]$/home/cuser1/mysqlc/bin/ndb_mgmd-fconf/config.ini--initial--configdir=/home/cuser1/my_cluster/conf/MySQLClusterManagementServermysql-5.1.56ndb-7.1.132011-06-0715:25:37[MgmtSrvr]WARNING--atline4:[MGM]idisdeprecated,2011-06-07T07:37:00Z2011-06-07T07:37:00Z番茄侠https://www.cnblogs.com/minglog/【摘要】按照'Get MySQL Cluster Running-Linux'上的步骤,进行到如下步骤时:[cuser1@localhostmy_cluster]$/home/cuser1/mysqlc/bin/ndb_mgmd-fconf/config.ini--initial--configdir=/home/cuser1/my_cluster/conf/MySQLClusterManagementServermysql-5.1.56ndb-7.1.132011-06-0715:25:37[MgmtSrvr]WARNING--atline4:[MGM]idisdeprecated, <a href="https://www.cnblogs.com/minglog/archive/2011/06/07/2074361.html" target="_blank">阅读全文</a>https://www.cnblogs.com/minglog/archive/2011/06/01/2067308.html北京之行 - 番茄侠第一次去北京,没有想像中的好。也没去名胜处玩,在路途上随手拍的,当个记念。掐头去尾,只看“朝阳区芳草地”,如今还有这样的地方吗?自由、随意如果不是风沙大,它们还能建在么?第一次坐飞机,拍照留念2011-06-01T10:39:00Z2011-06-01T10:39:00Z番茄侠https://www.cnblogs.com/minglog/【摘要】第一次去北京,没有想像中的好。也没去名胜处玩,在路途上随手拍的,当个记念。掐头去尾,只看“朝阳区芳草地”,如今还有这样的地方吗?自由、随意如果不是风沙大,它们还能建在么?第一次坐飞机,拍照留念 <a href="https://www.cnblogs.com/minglog/archive/2011/06/01/2067308.html" target="_blank">阅读全文</a>https://www.cnblogs.com/minglog/archive/2011/06/01/2067298.html期待《步步惊心》 - 番茄侠空山鸟语兮,人与白云栖,潺潺清泉濯我心,潭深鱼儿戏。风吹山林兮,月照花影移。红尘如梦聚又离,多情多悲戚。 望一片幽冥兮,我与月相惜。 抚一曲遥相寄,难诉相思意。 我心如烟云,当空舞长袖。 人在千里,魂梦常相依。红颜空自许. 南柯一梦难醒,空老山林。 听那泉水叮咚叮咚似无意, 映我长夜清寂。2011-06-01T10:27:00Z2011-06-01T10:27:00Z番茄侠https://www.cnblogs.com/minglog/【摘要】空山鸟语兮,人与白云栖,潺潺清泉濯我心,潭深鱼儿戏。风吹山林兮,月照花影移。红尘如梦聚又离,多情多悲戚。 望一片幽冥兮,我与月相惜。 抚一曲遥相寄,难诉相思意。 我心如烟云,当空舞长袖。 人在千里,魂梦常相依。红颜空自许. 南柯一梦难醒,空老山林。 听那泉水叮咚叮咚似无意, 映我长夜清寂。 <a href="https://www.cnblogs.com/minglog/archive/2011/06/01/2067298.html" target="_blank">阅读全文</a>https://www.cnblogs.com/minglog/archive/2011/05/29/2062188.htmlmysql与postgresql的表复制语句 - 番茄侠在mysql中复制已有的表结构给一个新表的方法:第一种方法:createtablecustNew1likecustomers;这种方法只能被复制的表是什么结构,新表就是什么结构,无法在建表的同时进行增加新列的行为。不过新表会保留被复制表的索引结构。第二种方法:createtablecustNew2(idintauto_incrementnotnullprimarykey)select*fromcustomers;这种方法是可以新添加列的,不过它不会保留被复制表的索引结构。上面这条语句不仅会把被复制表的结构复制过来,数据也会被复制。如果不想复制数据可以加'where'子句:cre2011-05-29T09:56:00Z2011-05-29T09:56:00Z番茄侠https://www.cnblogs.com/minglog/【摘要】在mysql中复制已有的表结构给一个新表的方法:第一种方法:createtablecustNew1likecustomers;这种方法只能被复制的表是什么结构,新表就是什么结构,无法在建表的同时进行增加新列的行为。不过新表会保留被复制表的索引结构。第二种方法:createtablecustNew2(idintauto_incrementnotnullprimarykey)select*fromcustomers;这种方法是可以新添加列的,不过它不会保留被复制表的索引结构。上面这条语句不仅会把被复制表的结构复制过来,数据也会被复制。如果不想复制数据可以加'where'子句:cre <a href="https://www.cnblogs.com/minglog/archive/2011/05/29/2062188.html" target="_blank">阅读全文</a>https://www.cnblogs.com/minglog/archive/2011/05/27/2059450.html名言 - 番茄侠“过去的33年里,我每天早上看着镜子问自己:“今天是我生命的最后一天吗?我是否要去做今天该做的事?”一天一天太多次 是“不是”,我知道这需要改变…所有的事情 —— 所有身外的期望,所有的骄傲,所有的对困难和失败的恐惧 —— 这些东西在死亡面前立刻消失的无影无踪,只剩下真正重要的东西。想着自己即将死去,这是让我避免落入担心失去什么的陷阱里的最好的方法。” —— Steve Jobs2011-05-27T00:36:00Z2011-05-27T00:36:00Z番茄侠https://www.cnblogs.com/minglog/【摘要】“过去的33年里,我每天早上看着镜子问自己:“今天是我生命的最后一天吗?我是否要去做今天该做的事?”一天一天太多次 是“不是”,我知道这需要改变…所有的事情 —— 所有身外的期望,所有的骄傲,所有的对困难和失败的恐惧 —— 这些东西在死亡面前立刻消失的无影无踪,只剩下真正重要的东西。想着自己即将死去,这是让我避免落入担心失去什么的陷阱里的最好的方法。” —— Steve Jobs <a href="https://www.cnblogs.com/minglog/archive/2011/05/27/2059450.html" target="_blank">阅读全文</a>