Ubuntu安装gftp
1、安装:$:sudo apt-get install gftp2、解决乱码问题:
让系统支持GBK
$:sudo locale-gen zh_CN.GBK
修改~/.gftp/gftprc
# 这是用逗号分隔的字符集列表,gFTP
# 会使用这些字符集将远程信息转换为当前语系。
remote_charsets=GB2312
修改/usr/bin/gftp
#!/bin/shexport LANG=zh_CN.GBKprefix=/usrexec_prefix=${prefix}if [ "$DISPLAY " != " " ] && [ -f ${exec_prefix}/bin/gftp-gtk ]; then exec ${exec_prefix}/bin/gftp-gtk ${1+"$@"}elif [ -f ${exec_prefix}/bin/gftp-text ]; then exec ${exec_prefix}/bin/gftp-text ${1+"$@"}else echo "Error: Can't find gFTP binaries installed in ${exec_prefix}/bin"fi
效果:
http://dl.iteye.com/upload/attachment/432526/9e117989-9a7e-3251-8112-13c676e531d2.png
页:
[1]