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

 
效果:


Ubuntu安装gftp
 
 

 

相关文章:

  • 2021-11-21
  • 2021-05-09
  • 2021-12-25
  • 2021-12-11
  • 2021-10-20
  • 2021-10-04
  • 2021-06-17
猜你喜欢
  • 2022-12-23
  • 2021-10-14
  • 2022-12-23
  • 2022-02-23
  • 2022-02-12
  • 2021-07-23
  • 2021-05-18
相关资源
相似解决方案