基本能用了

第一个有点用的程序,上一篇日志里有出现过。

作用是给plink弄个简单的图形前端,直接输入基本信息就能通过SSH上网,映射端口固定为7070。因为是第一次写程序,不知道的东西太多了,慢慢摸索吧,代码写的也不是很有条理,这个程序就作为我学习GTK+的一个过程吧,说实在的,用shell脚本非常方便 :neutral:

接下来看图说话吧

1、主界面如下,在docky有一个模糊的程序图标,不知道怎么弄大,我的图标文件很大的……

程序在运行时会载入上一次所填写的内容,不需要再次填写。而那些内容保存在程序同一个文件夹下。

2、“连接”按钮在plink连接后会变为“断开”

3、最小化后缩小到通知区域

4、右键可控制断开或是退出程序

接下来的想法就是,把“连接“那个双态按钮改成普通按钮,并且设置点击该按钮可以直接最小化到通知区域。

再改改咯,嘻嘻

Previous Next

68 Comments (+add yours?)

  1. yetone
    十一 21, 2011 @ 08:25:09

    Firefox 2012 Firefox 2012 Ubuntu 11.10 x64 Ubuntu 11.10 x64

    我认为少了个选项哦,本地映射端口有,但是服务端开放的端口不一定都是22号端口哦

    给评论打分: Thumb up 0 Thumb down 0

    回复

  2. sasoritattoo
    三 28, 2011 @ 19:40:14

    Firefox 3.6.10 Firefox 3.6.10 Ubuntu 10.10 x64 Ubuntu 10.10 x64

    希望lz继续努力,多学习一下gtk+编程,如果能顺便把练手的源码贴上来就更好了,嘿嘿,小弟也能跟着学一下

    给评论打分: Thumb up 0 Thumb down 0

    回复

    • sasoritattoo
      三 28, 2011 @ 19:45:22

      Firefox 3.6.10 Firefox 3.6.10 Ubuntu 10.10 x64 Ubuntu 10.10 x64

      晕~~
      经常上论坛跟帖子跟习惯了,动不动小弟小弟的
      请自行替换成“偶”吧

      给评论打分: Thumb up 0 Thumb down 0

      回复

      • 婉秋
        三 28, 2011 @ 20:16:27

        Firefox 4.0 Firefox 4.0 GNU/Linux GNU/Linux

        呵呵,还有一个论坛习惯就是“LZ”~~
        你在ubuntu中文论坛上有篇关于嵌入式的文章吧,那天看了才发现ID是一样的

        给评论打分: Thumb up 0 Thumb down 0

        回复

        • sasoritattoo
          三 29, 2011 @ 11:57:50

          Firefox 3.6.10 Firefox 3.6.10 Ubuntu 10.10 x64 Ubuntu 10.10 x64

          呵呵,倒是没见过你的名号,估计不是叫婉秋吧

          给评论打分: Thumb up 0 Thumb down 0

          回复

  3. vastar
    十二 18, 2010 @ 10:12:43

    Safari 5.0.1 Safari 5.0.1 Mac OS X 10.6.4 Mac OS X 10.6.4

    这个linux主题不错啊。一直用自带的默认主题。。。

    给评论打分: Thumb up 0 Thumb down 0

    回复

  4. 换肤堂
    十二 08, 2010 @ 11:19:19

    Google Chrome 8.0.552.215 Google Chrome 8.0.552.215 Windows XP Windows XP

    技术达人,真的很累!!

    给评论打分: Thumb up 0 Thumb down 0

    回复

  5. iOver
    十二 01, 2010 @ 19:16:34

    Firefox 3.6.12 Firefox 3.6.12 Windows 7 Windows 7

    很漂亮的Linux主题啊~~
    心动~~

    给评论打分: Thumb up 0 Thumb down 0

    回复

    • 婉秋
      十二 01, 2010 @ 22:37:53

      Firefox 3.6.12 Firefox 3.6.12 Windows XP Windows XP

      是啊,我用了两年多的主题,看着舒服啊

      给评论打分: Thumb up 0 Thumb down 0

      回复

  6. nike dunk sb
    九 25, 2010 @ 17:12:43

    Firefox 3.6.10 Firefox 3.6.10 Windows XP Windows XP

    挺好的了

    给评论打分: Thumb up 0 Thumb down 0

    回复

  7. A.shun
    九 05, 2010 @ 11:10:20

    Opera 10.70 Opera 10.70 Windows XP Windows XP

    8-O 看起来蛮实用的。
    自己折腾有成就感吧

    给评论打分: Thumb up 0 Thumb down 0

    回复

  8. Heiher
    九 04, 2010 @ 22:58:38

    Internet Explorer 6.0 Internet Explorer 6.0 Windows XP Windows XP

    可以上代码了吧?

    给评论打分: Thumb up 0 Thumb down 0

    回复

    • 婉秋
      九 04, 2010 @ 23:15:22

      Firefox 3.6.8 Firefox 3.6.8 Ubuntu 10.04 Ubuntu 10.04

      ==这两天没弄,在准备开学的事情……
      到宿舍后再整理整理~~~呵呵 :-|

      给评论打分: Thumb up 0 Thumb down 0

      回复

  9. 秋上书
    九 04, 2010 @ 19:21:29

    Google Chrome 7.0.503.0 Google Chrome 7.0.503.0 Windows XP Windows XP

    俺是不知道**噶哈,右图壁、非死不可。、推啥呀,俺都不用,

    给评论打分: Thumb up 0 Thumb down 0

    回复

    • 婉秋
      九 04, 2010 @ 20:09:56

      Firefox 3.6.8 Firefox 3.6.8 Ubuntu 10.04 Ubuntu 10.04

      呵呵,这个因人而异嘛 :-P

      给评论打分: Thumb up 0 Thumb down 0

      回复

  10. 竹下无为梦
    九 04, 2010 @ 18:03:02

    Firefox 3.6.8 Firefox 3.6.8 Windows XP Windows XP

    你这主题好酷,感觉很特别。

    给评论打分: Thumb up 0 Thumb down 0

    回复

    • 婉秋
      九 04, 2010 @ 20:10:39

      Firefox 3.6.8 Firefox 3.6.8 Ubuntu 10.04 Ubuntu 10.04

      嗯呵,蛮喜欢这个主题的,用了接近两年

      给评论打分: Thumb up 0 Thumb down 0

      回复

  11. 连裤袜
    九 04, 2010 @ 15:00:58

    Internet Explorer 6.0 Internet Explorer 6.0 Windows XP Windows XP

    哇,非常的不错啊

    给评论打分: Thumb up 0 Thumb down 0

    回复

  12. 学夫子
    九 04, 2010 @ 09:15:27

    Internet Explorer 8.0 Internet Explorer 8.0 Windows XP Windows XP

    这是你自己开发的?你真是强人

    给评论打分: Thumb up 0 Thumb down 0

    回复

    • 婉秋
      九 04, 2010 @ 20:07:07

      Firefox 3.6.8 Firefox 3.6.8 Ubuntu 10.04 Ubuntu 10.04

      嗯,自己做的。不强,这也许是最容易做的东西了 :-|

      给评论打分: Thumb up 0 Thumb down 0

      回复

  13. 点读机有用吗
    九 03, 2010 @ 21:37:08

    Internet Explorer 6.0 Internet Explorer 6.0 Unknown Unknown

    额,回帖是一种美德啊

    给评论打分: Thumb up 0 Thumb down 0

    回复

  14. Bubuto
    九 03, 2010 @ 21:28:33

    Chromium 5.0.375.127 Chromium 5.0.375.127 Ubuntu 10.04 Ubuntu 10.04

    :-P

    给评论打分: Thumb up 0 Thumb down 0

    回复

    • 婉秋
      九 04, 2010 @ 20:05:57

      Firefox 3.6.8 Firefox 3.6.8 Ubuntu 10.04 Ubuntu 10.04

      :?:

      给评论打分: Thumb up 0 Thumb down 0

      回复

  15. imfigo
    九 03, 2010 @ 15:31:31

    Maxthon 2.0 Maxthon 2.0 Windows XP Windows XP

    喜欢你博客最下方的那一栏。 :wink:

    给评论打分: Thumb up 0 Thumb down 0

    回复

    • 婉秋
      九 04, 2010 @ 20:02:22

      Firefox 3.6.8 Firefox 3.6.8 Ubuntu 10.04 Ubuntu 10.04

      呵呵,可以去弄一个啊

      给评论打分: Thumb up 0 Thumb down 0

      回复

  16. abx
    九 03, 2010 @ 06:46:24

    Google Chrome 7.0.503.0 Google Chrome 7.0.503.0 Windows XP Windows XP

    很漂亮的博客,很漂亮的软件 博主应该是MM吧

    给评论打分: Thumb up 0 Thumb down 0

    回复

    • 婉秋
      九 04, 2010 @ 20:13:02

      Firefox 3.6.8 Firefox 3.6.8 Ubuntu 10.04 Ubuntu 10.04

      :-|

      给评论打分: Thumb up 0 Thumb down 0

      回复

  17. 七叶草
    九 03, 2010 @ 01:04:47

    Google Chrome 3.0.195.0 Google Chrome 3.0.195.0 Windows XP Windows XP

    和facebook有关系?

    给评论打分: Thumb up 0 Thumb down 0

    回复

    • 婉秋
      九 04, 2010 @ 20:12:37

      Firefox 3.6.8 Firefox 3.6.8 Ubuntu 10.04 Ubuntu 10.04

      没关系,只是截图接下来的 :mrgreen:

      给评论打分: Thumb up 0 Thumb down 0

      回复

  18. Firm
    九 02, 2010 @ 15:07:51

    Google Chrome 6.0.490.0 Google Chrome 6.0.490.0 Windows XP Windows XP

    界面我还是蛮喜欢的

    给评论打分: Thumb up 0 Thumb down 0

    回复

    • 婉秋
      九 02, 2010 @ 23:50:22

      Firefox 3.6.8 Firefox 3.6.8 Ubuntu 10.04 Ubuntu 10.04

      呵呵,这只是一个GTK+主题而已,就像Windows主题一样。好处是只要更换主题,其他GTK+的程序主题也一起跟着变,协调多了

      给评论打分: Thumb up 0 Thumb down 0

      回复

  19. 希丸嘉
    九 02, 2010 @ 14:54:09

    Internet Explorer 6.0 Internet Explorer 6.0 Windows XP Windows XP

    那你就多折腾吧,能多学东西.

    给评论打分: Thumb up 0 Thumb down 0

    回复

    • 婉秋
      九 02, 2010 @ 23:50:57

      Firefox 3.6.8 Firefox 3.6.8 Ubuntu 10.04 Ubuntu 10.04

      是啊,折腾着就会有收获

      给评论打分: Thumb up 0 Thumb down 0

      回复

  20. joyla
    九 02, 2010 @ 13:40:54

    Google Chrome 5.0.375.127 Google Chrome 5.0.375.127 Windows XP Windows XP

    分享下!呵呵 我用的还是myenturnel呢!呵呵

    给评论打分: Thumb up 0 Thumb down 0

    回复

    • 婉秋
      九 02, 2010 @ 15:47:23

      Firefox 3.6.8 Firefox 3.6.8 Ubuntu 10.04 Ubuntu 10.04

      我也在用,可惜没有linux版本的
      Ctrl+enter回复的功能,加了,没成功,不知有什么问题,再去瞅瞅

      给评论打分: Thumb up 0 Thumb down 0

      回复

      • joyla
        九 02, 2010 @ 17:28:09

        Google Chrome 5.0.375.127 Google Chrome 5.0.375.127 Windows XP Windows XP

        说的是我的方法吗??还是啥? 方法在这里:http://joyla.org/private/typecho-embellishment-techniques.html

        给评论打分: Thumb up 0 Thumb down 0

        回复

        • 婉秋
          九 02, 2010 @ 19:45:51

          Firefox 3.6.8 Firefox 3.6.8 Ubuntu 10.04 Ubuntu 10.04

          是你的那种,改完就不能评论了。那个ID也没错

          给评论打分: Thumb up 0 Thumb down 0

          回复

          • joyla
            九 02, 2010 @ 20:12:44

            Google Chrome 5.0.375.127 Google Chrome 5.0.375.127 Windows XP Windows XP

            不会吧!应该可以的!我的都是好的啊!

            给评论打分: Thumb up 0 Thumb down 0

            回复

  21. Feng
    九 02, 2010 @ 10:51:33

    Firefox 3.6.8 Firefox 3.6.8 Mac OS X 10.6 Mac OS X 10.6

    太高级了,厉害

    给评论打分: Thumb up 0 Thumb down 0

    回复

    • 婉秋
      九 02, 2010 @ 12:54:36

      Firefox 3.6.8 Firefox 3.6.8 Ubuntu 10.04 Ubuntu 10.04

      8-O 其实有很严重问题没有解决……就是SSH第一次连接是会提示是否存储key……
      于是我这玩意就不好使了……
      就当作学习GTK+好了。

      给评论打分: Thumb up 0 Thumb down 0

      回复

      • Feng
        九 02, 2010 @ 15:05:47

        Firefox 3.6.8 Firefox 3.6.8 Mac OS X 10.6 Mac OS X 10.6

        恩,抱着学习的态度折腾

        给评论打分: Thumb up 0 Thumb down 0

        回复

  22. 刘晓林
    九 01, 2010 @ 23:40:59

    Google Chrome 6.0.496.0 Google Chrome 6.0.496.0 Windows 7 Windows 7

    你就折腾吧,最近用词最多的就是折腾二字

    给评论打分: Thumb up 0 Thumb down 0

    回复

    • 婉秋
      九 01, 2010 @ 23:43:00

      Firefox 3.6.8 Firefox 3.6.8 Ubuntu 10.04 Ubuntu 10.04

      折腾能学到点东西

      给评论打分: Thumb up 0 Thumb down 0

      回复

      • bokit
        九 02, 2010 @ 10:24:39

        Firefox 3.6.6 Firefox 3.6.6 Windows Server 2003 Windows Server 2003

        折腾是能学到东西。而且有DIY的成就感。
        PS:不过你上面是啥东东。偶怎么没感觉?!你现在的应用平台都是乌托帮了?!

        给评论打分: Thumb up 0 Thumb down 0

        回复

        • 婉秋
          九 02, 2010 @ 12:55:30

          Firefox 3.6.8 Firefox 3.6.8 Ubuntu 10.04 Ubuntu 10.04

          ubuntu上的程序

          给评论打分: Thumb up 0 Thumb down 0

          回复

  23. 朵未
    九 01, 2010 @ 23:02:02

    Maxthon 3.0 Maxthon 3.0 Windows XP Windows XP

    小东西很酷啊。。。就是无法拿来用用。婉秋常翻wall吧。还facebook :mrgreen:

    给评论打分: Thumb up 0 Thumb down 0

    回复

    • 婉秋
      九 01, 2010 @ 23:10:31

      Firefox 3.6.8 Firefox 3.6.8 Ubuntu 10.04 Ubuntu 10.04

      是啊,总是会上的嘛。facebook、twitter还有新闻网站啦
      倒是我家可以ipv6直接上youtube :-D

      给评论打分: Thumb up 0 Thumb down 0

      回复

      • 朵未
        九 01, 2010 @ 23:23:31

        Maxthon 3.0 Maxthon 3.0 Windows XP Windows XP

        那很不错啊。我好久没上推、非死不可、yutube了。不知道我网盘里的fg还有用没,有用的话还可以翻翻。 :)

        给评论打分: Thumb up 0 Thumb down 0

        回复

        • 婉秋
          九 01, 2010 @ 23:25:20

          Firefox 3.6.8 Firefox 3.6.8 Ubuntu 10.04 Ubuntu 10.04

          听说这几天鸽子不好使了

          给评论打分: Thumb up 0 Thumb down 0

          回复

          • 朵未
            九 01, 2010 @ 23:45:27

            Maxthon 3.0 Maxthon 3.0 Windows XP Windows XP

            手头还有个vpn,就怕好久没用,密码忘了。 :-?

            给评论打分: Thumb up 0 Thumb down 0

            回复

        • BoKeam
          九 01, 2010 @ 23:56:30

          Google Chrome 7.0.503.0 Google Chrome 7.0.503.0 Windows 7 Windows 7

          我到是天天玩 :-)

          给评论打分: Thumb up 0 Thumb down 0

          回复

  24. 宁怡
    九 01, 2010 @ 21:55:52

    Firefox 3.6.8 Firefox 3.6.8 Windows 7 Windows 7

    我已经不**了,因为突然不知道翻出去要干什么~~~ :-| :-|

    给评论打分: Thumb up 0 Thumb down 0

    回复

    • 婉秋
      九 01, 2010 @ 22:24:56

      Firefox 3.6.8 Firefox 3.6.8 Windows XP Windows XP

      偶尔还要用的,比如facebook,看新闻,搜索

      给评论打分: Thumb up 0 Thumb down 0

      回复

      • 宁怡
        九 01, 2010 @ 22:29:47

        Firefox 3.6.8 Firefox 3.6.8 Windows 7 Windows 7

        facebook不上。。不过看新闻,搜索用”饭强“吗?
        那两字被河蟹了。。。。

        给评论打分: Thumb up 0 Thumb down 0

        回复

        • 婉秋
          九 01, 2010 @ 22:34:18

          Firefox 3.6.8 Firefox 3.6.8 Ubuntu 10.04 Ubuntu 10.04

          美国之音
          从小听到大的

          给评论打分: Thumb up 0 Thumb down 0

          回复

          • 宁怡
            九 01, 2010 @ 22:38:02

            Firefox 3.6.8 Firefox 3.6.8 Windows 7 Windows 7

            http://www.voanews.com吗?可以直接上啊!

            给评论打分: Thumb up 0 Thumb down 0

            回复

            • 婉秋
              九 01, 2010 @ 22:39:52

              Firefox 3.6.8 Firefox 3.6.8 Ubuntu 10.04 Ubuntu 10.04

              中文版不能上的,BBC也是这样,中文版不能上。
              GOV只是针对国人,不敢对在大陆的外国人怎么样。

              给评论打分: Thumb up 0 Thumb down 0

              回复

              • 宁怡
                九 01, 2010 @ 22:45:24

                Firefox 3.6.8 Firefox 3.6.8 Windows 7 Windows 7

                杯具~~ :arrow: :arrow:

                给评论打分: Thumb up 0 Thumb down 0

                回复

  25. Mucid
    九 01, 2010 @ 21:29:08

    Firefox 3.6.8 Firefox 3.6.8 Ubuntu 10.04 Ubuntu 10.04

    冏,我表示我打错邮箱了,学校用不了gmail得翻…………
    留言就用163吧。。
    呃,邮箱多了搞糊涂了。。

    给评论打分: Thumb up 0 Thumb down 0

    回复

    • 婉秋
      九 01, 2010 @ 21:30:55

      Firefox 3.6.8 Firefox 3.6.8 Ubuntu 10.04 Ubuntu 10.04

      窗口黑灰色的,按钮和菜单是蓝色的

      给评论打分: Thumb up 0 Thumb down 0

      回复

      • Mucid
        九 01, 2010 @ 21:33:20

        Firefox 3.6.8 Firefox 3.6.8 Ubuntu 10.04 Ubuntu 10.04

        其实,我看到说,蓝色,红色对眼睛不好,当然深蓝色我就不知道啦,我喜欢黑色和灰色^_^

        给评论打分: Thumb up 0 Thumb down 0

        回复

        • 婉秋
          九 01, 2010 @ 21:39:42

          Firefox 3.6.8 Firefox 3.6.8 Ubuntu 10.04 Ubuntu 10.04

          用两年了都
          上网本上还是10.04默认主题,简单就好了

          给评论打分: Thumb up 0 Thumb down 0

          回复

          • Mucid
            九 01, 2010 @ 21:44:03

            Firefox 3.6.8 Firefox 3.6.8 Ubuntu 10.04 Ubuntu 10.04

            呃,这么专一啊,呵呵。
            我也是从8.04开始用的ubuntu,我最喜欢那一版的桌面图图,我至今都珍藏着。
            也许是那张图让我迷上了ubuntu吧,那孤傲的鹤(PS:不晓得是不是鹤)
            那种傲视力一切的气魄!

            给评论打分: Thumb up 0 Thumb down 0

            回复

  26. Mucid
    九 01, 2010 @ 21:26:54

    Firefox 3.6.8 Firefox 3.6.8 Ubuntu 10.04 Ubuntu 10.04

    嘿嘿,偶就喜欢这个,明明是黑色的啊,只有按钮是深蓝色的啊。。

    给评论打分: Thumb up 0 Thumb down 0

    回复

  27. Heiher
    九 01, 2010 @ 21:22:09

    Internet Explorer 6.0 Internet Explorer 6.0 Windows XP Windows XP

    再实现可以同时转发多个连接和在一个连接中同时转发多个端口。

    给评论打分: Thumb up 0 Thumb down 0

    回复

    • 婉秋
      九 01, 2010 @ 21:24:29

      Firefox 3.6.8 Firefox 3.6.8 Ubuntu 10.04 Ubuntu 10.04

      plink支持这些功能?

      给评论打分: Thumb up 0 Thumb down 0

      回复

      • Heiher
        九 01, 2010 @ 21:37:09

        Internet Explorer 6.0 Internet Explorer 6.0 Windows XP Windows XP

        Yes.
        多个连接可以开启多个 plink 进程;一个连接里转发多个端口 plink 可以使用如下格式的命令。

        plink -N -L xxx:NNN:xxx:NNN -D NNN -R xxx:NNN:xxx:NNN xxx@xxxx

        -L -R -D 可以多次使用。

        给评论打分: Thumb up 0 Thumb down 0

        回复

        • 婉秋
          九 01, 2010 @ 21:38:55

          Firefox 3.6.8 Firefox 3.6.8 Ubuntu 10.04 Ubuntu 10.04

          嗯,瞅瞅去~谢啦

          给评论打分: Thumb up 0 Thumb down 0

          回复

Leave a Reply

:wink: :-| :-x :twisted: :) 8-O :( :roll: :-P :oops: :-o :mrgreen: :lol: :idea: :-D :evil: :cry: 8) :arrow: :-? :?: :!:

Switch to our mobile site