六狼论坛

 找回密码
 立即注册

QQ登录

只需一步,快速开始

新浪微博账号登陆

只需一步,快速开始

搜索
查看: 65|回复: 0

Ubuntu安装gftp

[复制链接]

升级  25.33%

22

主题

22

主题

22

主题

秀才

Rank: 2

积分
88
 楼主| 发表于 2013-1-28 16:37:57 | 显示全部楼层 |阅读模式
1、安装:$:sudo apt-get install gftp


2、解决乱码问题:
让系统支持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 
效果:


 
 
 
您需要登录后才可以回帖 登录 | 立即注册 新浪微博账号登陆

本版积分规则

快速回复 返回顶部 返回列表