上一页 1 ··· 23 24 25 26 27 28 29 30 31 ··· 82 下一页
摘要: class Imagenumbers { inherit itk::Widget itk_option define -command command Command "" constructor { args } { }}body Imagenumbers::constructor { args } { # create dummy gEntry to allow options to be kept! itk_component add dummy {gEntry $itk_interior.dummy } {usual } eval itk_initialize $a 阅读全文
posted @ 2011-09-05 23:19 greencolor 阅读(126) 评论(0) 推荐(0) 编辑
摘要: button .a \ -text "aaa" \ -command {pack forget .b}button .b \ -text "bbb" \button .c \ -text "ccc" \ -command {pack .b}pack .apack .cpack .b 阅读全文
posted @ 2011-09-03 22:37 greencolor 阅读(167) 评论(0) 推荐(0) 编辑
摘要: puts $this.bb.c.body.cellref.normal.rf.sf.sc.eenamespace tail $this.bb.c.body.cellref.normal.rf.sf.sc 阅读全文
posted @ 2011-09-03 21:09 greencolor 阅读(107) 评论(0) 推荐(0) 编辑
摘要: class testt {inherit itk::Widget private variable socket public method acceptSocketConnectionpublic method processMessagepublic method sendCommandconstructor {args} {set server [socket -server acceptSocketConnection -myaddr 127.0.0.1 2200] itk_component add buttone { button .b \-text "aaa" 阅读全文
posted @ 2011-09-03 10:53 greencolor 阅读(198) 评论(0) 推荐(0) 编辑
摘要: set socket ""class testt { private variable socket public method acceptSocketConnectionpublic method processMessageconstructor {args} {set server [socket -server acceptSocketConnection -myaddr 127.0.0.1 2200]vwait forever }}body testt::acceptSocketConnection { a_sock an_addr a_port } { glo 阅读全文
posted @ 2011-09-03 10:16 greencolor 阅读(173) 评论(0) 推荐(0) 编辑
摘要: Server:set socket ""proc acceptSocketConnection { a_sock an_addr a_port } { global socket set socket $a_sock fconfigure $socket -buffering line -translation lf -blocking 0 -buffersize 72000 fileevent $socket readable processMessage set ready 1 set datestamp 20110901if { ![regexp -nocase wi 阅读全文
posted @ 2011-09-02 23:12 greencolor 阅读(191) 评论(0) 推荐(0) 编辑
摘要: =========================={set server [socket -server [code $this acceptSocketConnection] -myaddr 127.0.0.1 0]} socketerrormsg ]} acceptSocketConnection fileevent $socket readable [code $this processMessage]processMessage [catch {gets $socket l_message} l_result] set test_segment [string range $l_me 阅读全文
posted @ 2011-09-02 16:37 greencolor 阅读(892) 评论(0) 推荐(0) 编辑
摘要: deb http://mirrors.sohu.com/ubuntu/ lucid main restricted universe multiversedeb http://mirrors.sohu.com/ubuntu/ lucid-security main restricted universe multiversedeb http://mirrors.sohu.com/ubuntu/ lucid-updates main restricted universe multiversedeb http://mirrors.sohu.com/ubuntu/ lucid-proposed m 阅读全文
posted @ 2011-08-31 22:51 greencolor 阅读(211) 评论(0) 推荐(0) 编辑
摘要: sudo apt-get install openssh-serverUbuntu缺省安装了openssh-client,所以在这里就不安装了,如果你的系统没有安装的话,再用apt-get安装上即可。然后确认sshserver是否启动了:ps -e |grep ssh如果只有ssh-agent那ssh-server还没有启动,需要/etc/init.d/ssh start,如果看到sshd那说明ssh-server已经启动了。ssh-server配置文件位于/ etc/ssh/sshd_config,在这里可以定义SSH的服务端口,默认端口是22,你可以自己定义成其他端口号,如222。然后重启 阅读全文
posted @ 2011-08-31 22:23 greencolor 阅读(211) 评论(0) 推荐(0) 编辑
摘要: * First, ufw needs to be enabled. From a terminal prompt enter: sudo ufw enable * To open a port (ssh in this example): sudo ufw allow 22 * Similarly, to close an opened port: sudo ufw deny 22 * To remove a rule, use delete followed by the rule: sudo ufw delete deny 22 * It is also possible to allo. 阅读全文
posted @ 2011-08-31 21:04 greencolor 阅读(281) 评论(0) 推荐(0) 编辑
上一页 1 ··· 23 24 25 26 27 28 29 30 31 ··· 82 下一页