[实践OK]FreeBsd: 安装 rz , sz 工具  

jackxiang 2017-10-5 18:48 | |
[实践OK]FreeBSD中安装pkg:https://jackxiang.com/post/10436/
pkg install lrzsz   #一直提示[y|N],没有成功,后用port安装成功了
cd /usr/ports/comms/lrzsz
make install clean
备注:这种方式为编译安装,安装时同样需要联网下载。

/usr/local/bin/lrx
/usr/local/bin/lrz
/usr/local/bin/lsb
/usr/local/bin/lrb
/usr/local/bin/lsx
/usr/local/bin/lsz


Cause

This problem may be caused by improper handling of escape sequences embedded in the files being uploaded.

Resolution

Use the -e or --escape option on lrz, which escapes control characters (Z). For example, type, lrz -e. Some Zmodem clients expect escaping, while others do not.
Notes

Note, some installations of lrzsz do not have the "sz" or "rz" commands, only "lsz" and "lrz". You can edit your .login file and add lines like "alias sz lsz" and "alias rz lrz -e". This way, when you type "sz" or "rz", it will automatically execute the right program with the right options.

lrzsz is part of the FreeBSD ports collection. It contains a set of shell commands for sending and receiving files via the X/Y/ZMODEM protocols. Your SSH or Telnet client must support them for transfers to work.



From:http://francs3.blog.163.com/blog/static/405767272014658362237/


二、pkg 安装方式
1.1 pkg 安装 lrzsz

root@francs:~  # pkg install lrzsz  
Updating repository catalogue  
The following 2 packages will be installed:  
  
Upgrading gettext:  0.18.3.1  ->  0.18.3.1_1  
Installing lrzsz:  0.12.20_4  
  
The installation will require  423 KB more space  
  
66 KB to be downloaded  
  
Proceed  with installing packages [y/N]: y  

作者:jackxiang@向东博客 专注WEB应用 构架之美 --- 构架之美,在于尽态极妍 | 应用之美,在于药到病除
地址:http://jackxiang.com/post/9477/
版权所有。转载时必须以链接形式注明作者和原始出处及本声明!


最后编辑: jackxiang 编辑于2021-6-9 22:27
评论列表
发表评论

昵称

网址

电邮

打开HTML 打开UBB 打开表情 隐藏 记住我 [登入] [注册]