PUTTY是一款自由的telnet/SSH客户端,而且是开放源码的.你可以去它的官网看看:
http://www.putty.nl/
只有WINDOWS和UNIX的二进制包和源码包,,用UNIX下的源码包在LINUX下编译应该是能够编译通过的.
首先安装GTK,博文的另外一处有说明安装方法:
好了,在下面这个网址下载UNIX下的源码包putty-0.62.tar.gz.
好了,现在开始解压源码包:
[
root@SunLife Desktop]# ls
putty-0.59.tar.gz QQ.desktop temp temp.txt
[
root@SunLife Desktop]# mkdir /home/roy/putty
[
root@SunLife Desktop]# mkdir /home/roy/putty/source
[
root@SunLife Desktop]# mv putty-0.62.tar.gz /home/zhc/putty/source/
[
root@SunLife Desktop]# cd /home/zhc/putty/
[
root@SunLife putty]# ls
source
[
root@SunLife putty]# tar -xvf source/putty-0.62.tar.gz
.......................
[
root@SunLife putty]# ls
putty-0.59 source
[
root@SunLife putty]# cd putty-0.62/
接下来就是例行的配置,编译了:
[
root@SunLife putty-0.59]# cd unix/ <-------------------(要先切换到UNIX目录.)
[
root@SunLife unix]#sudo ./configure
OK,编译完毕,上面是编译生成的目标文件.
如果产生以下错误:
../unix/gtkfont.c: In function ‘x11font_enum_fonts’:
../unix/gtkfont.c:527:6: error: ‘g_strcasecmp’ is deprecated (declared at /usr/include/glib-2.0/glib/gstrfuncs.h:172) [-Werror=deprecated-declarations]
../unix/gtkfont.c:529:6: error: ‘g_strcasecmp’ is deprecated (declared at /usr/include/glib-2.0/glib/gstrfuncs.h:172) [-Werror=deprecated-declarations]
../unix/gtkfont.c:527:6: error: ‘g_strcasecmp’ is deprecated (declared at /usr/include/glib-2.0/glib/gstrfuncs.h:172) [-Werror=deprecated-declarations]
../unix/gtkfont.c:529:6: error: ‘g_strcasecmp’ is deprecated (declared at /usr/include/glib-2.0/glib/gstrfuncs.h:172) [-Werror=deprecated-declarations]
某些功能(如案例中的"g_strcasecmp")被弃用,抛出一些警告而已。
现在的情况是,GCC将警告当成错误处理,打开Makefile,将-Werror选项去掉。
[
root@SunLife unix]#./putty
【转载】PUTTY在Linux下的安装 - 随缘 - 工作坊
配置一下,就用127.0.0.1(是不是很无聊啊) 吧.看看下面这个截图:
【转载】PUTTY在Linux下的安装 - 随缘 - 工作坊
呵呵,怎么样,还不错吧.你可能不想每次都这样启动PUTTY吧.那我们就为它添加一个符号链接吧:
[
root@SunLife /]# cd /usr/local/bin/
[
root@SunLife bin]# ln -s /home/roy/putty/putty-0.62/unix/putty ./putty
[
root@SunLife bin]# ls
arm-elf-addr2line arm-elf-c++filt arm-elf-gcc arm-elf-objcopy arm-elf-readelf arm-elf-unprotoize mencoder
arm-elf-ar arm-elf-elf2flt arm-elf-ld arm-elf-objdump arm-elf-size elf2flt mplayer
arm-elf-as arm-elf-flthdr arm-elf-ld.real arm-elf-protoize arm-elf-strings flthdr putty
arm-elf-c++ arm-elf-g++ arm-elf-nm arm-elf-ranlib arm-elf-strip genromfs qvfb
[
root@SunLife bin]# putty
[
root@SunLife bin]# cd /
呵呵,你现在就可以在任何目录下输入putty就可以启动PUTTY了.
[
root@SunLife /]# putty
如果你还不满意,你可以在你的桌面为它添加快捷方式