Ubuntu16.04中安装Kermit

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

1 apt-get安装

    根据参考资料[1][2]的说明,可以通过面的命令安装Kermit,配置方法见参考资料[1]或[2]。

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》,配置方法见《Kermit》。

参考资料

[1]ubuntu下kermit的安装和配置

[2]ubuntu下C-Kermit安装和使用

你可能感兴趣的:(Ubuntu16.04中安装Kermit)