红联Linux门户
Linux帮助

Ubuntu16.04中安装Kermit

发布时间:2016-05-05 09:56:28来源:linux网站作者:OneSea

在Ubuntu16.04中安装Kermit的方法有两种:apt-get安装和源码编译安装,下面分别这两种方法进行说明。


1、apt-get安装

可以通过面的命令安装Kermit。

sudo apt-get install ckermit 

1.1、配置

通过上述方法安装好ckermit后,将会生成配置文件/etc/kermit/kermic,其内容如下:

; This is /etc/kermit/kermrc 
; It is executed on startup if ~/.kermrc is not found. 
; See "man kermit" and http://www.kermit-project.org/ for details on 
; configuring this file, and /etc/kermit/kermrc.full 
; for an example of a complex configuration file 
; If you want to run additional user-specific customisations in 
; addition to this file, place them in ~/.mykermrc 
; Execute user's personal customization file (named in environment var  
; CKERMOD or ~/.mykermrc) 
;  
if def \$(CKERMOD) assign _myinit \$(CKERMOD) 
if not def _myinit assign _myinit \v(home).mykermrc 
xif exist \m(_myinit)  {        ; If it exists, 
echo Executing \m(_myinit)...   ; print message, 
take \m(_myinit)            ; and TAKE the file. 

上述第2行内容如下:

It is executed on startup if ~/.kermrc is not found. 

可见,Kermit会优先找~/.kermic配置文件,找不到才找/etc/kermit/kermic,为了避免修改/etc/kermit/kermic,可以在~中创建.kermic,然后输入如下配置信息:

set line          /dev/ttyUSB0  
set speed         115200  
set carrier-watch off  
set handshake     none  
set flow-control none  
robust  
set file type     bin  
set file name     lit  
set rec pack      1000  
set send pack     1000  
set window        5  


2、源码编译安装

同《Ubuntu 14.04中编译Kermit》:http://www.linuxdiyf.com/linux/14424.html


本文永久更新地址:http://www.linuxdiyf.com/linux/20346.html