Use SecureCRT on Linux
如果你和我一样无法忍受Linux默认的Terminal,你可以尝试给自己的Linux安装终端模拟工具:SecureCRT。
安装介质的获取可以从官方网站上得到:
https://www.vandyke.com/download/securecrt/download.html
当前决定在Linux下部署,所以选择“SecureCRT for linux”。
然后在分栏中选择你当前的Linux发行版,我的当前系统是RHEL7,所以选择“Red Hat Enterprise Linux 6.0 64-bit”即可。
安装介质有两种版本:RPM包或者压缩文件。
他们的区别是:RPM包需要在目标系统上安装后才能使用,而压缩文件(*.tar.gz)则可以解压后立即使用(类似绿色版本,无需安装)。
而安装介质的内容有两种版本:
1.单纯的SecureCRT
2.融合了SecureCRT与SecureFX的整合包(该版本包含FTP工具:SecureFX)
这里,我选择:SecureCRT + SecureFX 7.3.4 Bundle *的压缩包版本。
然后,你会看到如下的登录界面:
这里的登录账户你可以在VANDYKE.COM免费注册。
下载完成后,上传服务器,并解压:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 |
[root@adamhuan-linux 下载]# pwd /root/下载 [root@adamhuan-linux 下载]# ls -ltr | grep --color scrt drwxr-xr-x 4 531 users 4096 6月 9 21:57 scrt-sfx-7.3.4 -rw-r--r-- 1 root root 66805760 7月 29 14:17 scrt-sfx-7.3.4.839.rhel6-64.tar.gz -rw-r--r-- 1 root root 17451560 7月 29 14:24 scrt-sfx-7.3.4-839.rhel6-64.x86_64.rpm [root@adamhuan-linux 下载]# [root@adamhuan-linux 下载]# tar -xzf scrt-sfx-7.3.4.839.rhel6-64.tar.gz [root@adamhuan-linux 下载]# ls -ltr | grep --color scrt drwxr-xr-x 4 531 users 4096 6月 9 21:57 scrt-sfx-7.3.4 -rw-r--r-- 1 root root 66805760 7月 29 14:17 scrt-sfx-7.3.4.839.rhel6-64.tar.gz -rw-r--r-- 1 root root 17451560 7月 29 14:24 scrt-sfx-7.3.4-839.rhel6-64.x86_64.rpm [root@adamhuan-linux 下载]# [root@adamhuan-linux 下载]# cd scrt-sfx-7.3.4/ [root@adamhuan-linux scrt-sfx-7.3.4]# ls -ltr 总用量 42476 drwxr-xr-x 6 531 users 16384 6月 9 21:57 SecureFXHelp drwxr-xr-x 6 531 users 16384 6月 9 21:57 SecureCRTHelp -rw-r--r-- 1 531 users 4881 6月 9 21:57 sfxcl.1.gz -rwxr-xr-x 1 531 users 7728080 6月 9 21:57 sfxcl -rw-r--r-- 1 531 users 12504 6月 9 21:57 SecureFX_README.txt -rw-r--r-- 1 531 users 12270 6月 9 21:57 SecureFX_HISTORY.txt -rw-r--r-- 1 531 users 235 6月 9 21:57 SecureFX.desktop -rw-r--r-- 1 531 users 76645 6月 9 21:57 securefx_64.png -rwxr-xr-x 1 531 users 10327952 6月 9 21:57 SecureFX -rw-r--r-- 1 531 users 5981 6月 9 21:57 SecureCRT_SecureFX_EULA.txt -rw-r--r-- 1 531 users 13749 6月 9 21:57 SecureCRT_README.txt -rw-r--r-- 1 531 users 20899 6月 9 21:57 SecureCRT_HISTORY.txt -rw-r--r-- 1 531 users 266 6月 9 21:57 SecureCRT.desktop -rw-r--r-- 1 531 users 7723 6月 9 21:57 securecrt_64.png -rwxr-xr-x 1 531 users 9566320 6月 9 21:57 SecureCRT -rwxr-xr-x 1 531 users 1342224 6月 9 21:57 libQtNetwork.so.4 -rwxr-xr-x 1 531 users 11326056 6月 9 21:57 libQtGui.so.4 -rwxr-xr-x 1 531 users 2972376 6月 9 21:57 libQtCore.so.4 [root@adamhuan-linux scrt-sfx-7.3.4]# |
在上面的解压后文件中:
运行“./SecureCRT”,即可开启SecureCRT的程序
FTP工具是:SecureFX
注意,在LInux中,执行上述两个命令的时候极有可能碰到的问题是这样的:
1 2 3 4 5 |
[root@adamhuan-linux scrt-sfx-7.3.4]# ./SecureCRT & [1] 21862 ./SecureCRT: error while loading shared libraries: libpython2.6.so.1.0: cannot open shared object file: No such file or directory [1]+ 退出 127 ./SecureCRT [root@adamhuan-linux scrt-sfx-7.3.4]# |
如上所示:没有找到“libpython2.6.so.1.0”的支持。
这个时候,你需要为Linux安装Python2.6(Python的版本过高也不可以,太低也是不行的)。
1 – 下载Python 2.6:
1 |
wget http://www.python.org/ftp/python/2.6.6/Python-2.6.6.tgz |
2 – 解压缩:
1 |
tar -xzf Python-2.6.6.tgz |
3 – 创建Python 2.6安装目录:
1 |
mkdir /usr/Python26 |
4 – 编译与安装:
1 2 3 |
./configure --prefix=/usr/Python26 --enable-shared; make; make install; |
5 – 查看“/usr/Python26”,安装后的状态:
1 2 3 4 5 6 7 8 9 10 |
[root@adamhuan-linux Python-2.6.6]# ll /usr/Python26/ 总用量 0 drwxr-xr-x 2 root root 127 9月 8 16:07 bin drwxr-xr-x 3 root root 22 9月 8 16:07 include drwxr-xr-x 3 root root 70 9月 8 16:07 lib drwxr-xr-x 3 root root 16 9月 8 16:07 share [root@adamhuan-linux Python-2.6.6]# [root@adamhuan-linux Python-2.6.6]# ls /usr/Python26/lib/ libpython2.6.so libpython2.6.so.1.0 python2.6 [root@adamhuan-linux Python-2.6.6]# |
配置Linux动态链接库设定:
修改:/etc/ld.so.conf
1 2 3 4 5 6 7 8 |
[root@adamhuan-linux Python-2.6.6]# cat /etc/ld.so.conf include ld.so.conf.d/*.conf /lib /usr/lib /usr/lib64 /usr/local/lib /usr/Python26/lib [root@adamhuan-linux Python-2.6.6]# |
如上,将Python 2.6的动态链接库路径添加进去。
确认修改生效:
查看动态链接库当前状态的详细信息:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 |
[root@adamhuan-linux Python-2.6.6]# /sbin/ldconfig -v (... ... 过多的输出) libncurses++.so.5 -> libncurses++.so.5.9 libmenuw.so.5 -> libmenuw.so.5.9 libgcc_s.so.1 -> libgcc_s-4.8.3-20140911.so.1 libcom_err.so.2 -> libcom_err.so.2.1 /usr/Python26/lib: libpython2.6.so.1.0 -> libpython2.6.so.1.0 /lib/sse2: (hwcap: 0x0000000004000000) /lib/i686: (hwcap: 0x0008000000000000) /usr/lib64/sse2: (hwcap: 0x0000000004000000) /usr/lib64/tls: (hwcap: 0x8000000000000000) [root@adamhuan-linux Python-2.6.6]# |
可以看到其中有了Python 2.6的链接库记录:
/usr/Python26/lib:
libpython2.6.so.1.0 -> libpython2.6.so.1.0
这样,再次执行“./SecureCRT”的时候,就不会报错“libpython2.6.so.1.0”找不到了。
启动SecureCRT:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 |
[root@adamhuan-linux scrt-sfx-7.3.4]# pwd /software/scrt-sfx-7.3.4 [root@adamhuan-linux scrt-sfx-7.3.4]# [root@adamhuan-linux scrt-sfx-7.3.4]# export DISPLAY=168.0.1.185:0.0 [root@adamhuan-linux scrt-sfx-7.3.4]# xhost + access control disabled, clients can connect from any host [root@adamhuan-linux scrt-sfx-7.3.4]# [root@adamhuan-linux scrt-sfx-7.3.4]# ls libQtCore.so.4 securecrt_64.png SecureCRT_README.txt SecureFX.desktop sfxcl libQtGui.so.4 SecureCRT.desktop SecureCRT_SecureFX_EULA.txt SecureFXHelp sfxcl.1.gz libQtNetwork.so.4 SecureCRTHelp SecureFX SecureFX_HISTORY.txt SecureCRT SecureCRT_HISTORY.txt securefx_64.png SecureFX_README.txt [root@adamhuan-linux scrt-sfx-7.3.4]# [root@adamhuan-linux scrt-sfx-7.3.4]# ./SecureCRT & [1] 24386 [root@adamhuan-linux scrt-sfx-7.3.4]# |
GUI:
第一次执行时会需要登记Licence信息:
或者,你可以选择试用,不过只有30天的试用期。
进入SecureCRT的主界面后,从帮助的About中,你可以看到当前的软件版本与Licence信息:
查看文件系统,你会知道上面的注册过程实际上是在当前用户下增加了一个*.lic的文件:
1 2 3 4 5 6 7 8 |
[root@adamhuan-linux Config]# pwd /root/.vandyke/SecureCRT/Config [root@adamhuan-linux Config]# ls -a . .. ButtonBarV4.ini Color Schemes.ini Global.ini SecureCRT.lic Sessions [root@adamhuan-linux Config]# [root@adamhuan-linux Config]# file SecureCRT.lic SecureCRT.lic: UTF-8 Unicode (with BOM) text [root@adamhuan-linux Config]# |
就像上面看到的,就是增加了一个“SecureCRT.lic”的文件。
如果下次还是提示30天过期的话,将它的文件名修改为“SecureCRT_eval.lic”:
1 2 3 4 5 6 7 |
cp SecureCRT.lic SecureCRT_eval.lic [root@adamhuan-linux Config]# cp SecureCRT.lic SecureCRT_eval.lic [root@adamhuan-linux Config]# [root@adamhuan-linux Config]# ls -a . .. ButtonBarV4.ini Color Schemes.ini Global.ini SecureCRT_eval.lic SecureCRT.lic Sessions SSH2.ini [root@adamhuan-linux Config]# |
————————
剩下的操作,基本上就和MS Windows没有什么差别了。
上面离线注册的时候的信息如下:
for SecureCRT 7.3.* / 6.7.* 也是适用的:
A:
1 2 3 4 5 |
Name: Sherrill Ray Company: Serial Number:03-40-084141 License Key: ABWGUE ZPPZ6X XHTN2S 1N7PER AB39ZJ PX3312 WS6BZF GHN2ET Issue Date: 10-26-2002 |
B:
1 2 3 4 5 |
Name: Richard P Merrell Company: Serial Number: 03-41-000899 License key: AD84V4 B3SYMS HEC6JM 1JNFH8 AAEBCS FNY2PK AT3S6M 4ZYQFB Issue Date: 09-02-2003 |
——————————————————————————
Done。
参考文档:
http://blog.csdn.net/wanyanxgf/article/details/8021641
http://blog.chinaunix.net/xmlrpc.php?r=blog/article&uid=26202633&id=3768876
FIrefox保存网页经常失败,特别是Linux中,…