kermit在启动时会查找~/.kermrc文件,调用里面的命令来初始化kermit。只要将你所需的命令写到~/.kermrc文件里,启动后就不这么麻烦了。 # vi ~/.kermrc
点击(此处)折叠或打开
set line /dev/ttyS0 #如果是用USB转串口查看/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
c
保存后退出。 输入 kermit 命令启动 [xt@butbueatiful ~]# kermit Connecting to /dev/ttyS0, speed 115200 Escape character: Ctrl-/ (ASCII 28, FS): enabled Type the escape character followed by C to get back, or followed by ? to see other options.
注:如果出现如下错误 ?SET SPEED has no effect without prior SET LINE Sorry, you must SET LINE or SET HOST first C-Kermit 8.0.211, 10 Apr 2004, for Linux Copyright (C) 1985, 2004, Trustees of Columbia University in the City of New York. Type ? or HELP for help. (/home/xt/) C-Kermit> 执行chmod 777 /dev/ttyS0即可 发送文件: