Ubuntu安装gftp
1、安装:$:sudo apt-get install gftp
2、解决乱码问题:
让系统支持GBK
$:sudo locale-gen zh_CN.GBK
修改~/.gftp/gftprc
# 这是用逗号分隔的字符集列表,gFTP
# 会使用这些字符集将远程信息转换为当前语系。
remote_charsets=GB2312
修改/usr/bin/gftp
#!/bin/sh
export LANG=zh_CN.GBK
prefix=/usr
exec_prefix=${prefix}
if [ "$DISPLAY " != " " ] && [ -f ${exec_prefix}/bin/gftp-gtk ]; then
exec ${exec_prefix}/bin/gftp-gtk ${1+"[email protected]"}
elif [ -f ${exec_prefix}/bin/gftp-text ]; then
exec ${exec_prefix}/bin/gftp-text ${1+"[email protected]"}
else
echo "Error: Can't find gFTP binaries installed in ${exec_prefix}/bin"
fi
效果: