時間:2015-06-28 00:00:00 來源:IT貓撲網(wǎng) 作者:網(wǎng)管聯(lián)盟 我要評論(0)
安裝配置minicom
————————————————–
# lsmod | grep? usbserial (如果直接使用串口線,而沒有用到USB轉(zhuǎn)串口設(shè)備,此步可以跳過; 如果有usbserial,說明系統(tǒng)支持USB轉(zhuǎn)串口。)
安裝minicom? (Fedora自帶有minicom,此步可以跳過)
apt-get? install minicom
apt-get install? lrzsz
配置minicom
# minicom? -s
Serial port? setup [Enter]
+————————————————————-+
| A -??? Serial Device????? : /dev/ttyUSB0 |
| B - Lockfile Location???? :? /var/lock????? |
| C -?? Callin? Program :??? |
| D - Callout Program -:??? |
| E -???? Bps/Par/Bits : 115200 8N1 |
| F - Hardware Flow Control :? No |
| G - Software Flow Control :? No |
|? |
|??? Change which? setting? |
+————————————————————-+
注:? 如果沒有使用USB轉(zhuǎn)接口,Serial? Device要配置為/dev/ttyS0
Save setup as? dfl
Exit from? Minicom
使用minicom傳輸文件
————————————————–
# minicom
(Ctrl + a) –> s –> zmodem –>? [Okay] –>
+—————————————–+
|No file? selected - enter filename:? |
|>? /home/zxl/ssl/codes/led/lls_led.ko???? |? [Enter]
+—————————————–+
注: download kernel by minicom in? ubuntu
————————————————–
When I download linux kernel by x? protocol in minicom, it says "Failure executing protocol, press any key to? continue".
The problem is the x protocol isn’t installed? bye ubuntu by default, so you should install it by hand:
# apt-get install? lrzsz
After successful download and? install, you can send files by x protocol in minicom.
lrzsz包括了x/y/zmodem協(xié)議
#p#副標(biāo)題#e#
安裝lrzsz
————————————————–
1.? 從下面的網(wǎng)站下載lrzsz-0.12.20.tar.gz
http://www.filewatcher.com/m/lrzsz-0.12.20.tar.gz.280938.0.0.html
2. tar? zxvf lrzsz-0.12.20.tar.gz
3. 查看里面的INSTALL文檔了解安裝參數(shù)說明和細(xì)節(jié)
4. # cd? lrzsz-0.12.20
5. # ./configure –prefix=/usr/local/lrzsz
6. # make
7. #? make install
8. 建立軟鏈接
# cd /usr/bin
# ln -s? /usr/local/lrzsz/bin/lrz rz
# ln -s /usr/local/lrzsz/bin/lsz? sz
這樣minicom就可以使用zmodem傳輸文件了
配置文件所在目錄
————————————————–
Ctrl? + a???? o
+—–[configuration]——+
| Filenames and? paths |
| File transfer protocols? -|
|? Serial port setup?? |
| Modem and? dialing?? |
| Screen and? keyboard |
| Save setup as? dfl?? |
| Save setup? as..???? |
|? Exit??? |
+————————–+
+———————————————————————–+
|? A - Download directory : /home/zxl |
| B - Upload directory?? : /tmp |
| C - Script directory??? :???? |
| D - Script program???? :? runscript |
| E - Kermit program????? :???? |
| F - Logging? options??? |
|?&nb
關(guān)鍵詞標(biāo)簽:Linux,minicom
相關(guān)閱讀
熱門文章 安裝紅帽子RedHat Linux9.0操作系統(tǒng)教程 Tomcat9.0如何安裝_Tomcat9.0環(huán)境變量配置方法 多種操作系統(tǒng)NTP客戶端配置 Linux操作系統(tǒng)修改IP
人氣排行 Linux下獲取CPUID、硬盤序列號與MAC地址 dmidecode命令查看內(nèi)存型號 linux tc實現(xiàn)ip流量限制 安裝紅帽子RedHat Linux9.0操作系統(tǒng)教程 linux下解壓rar文件 lcx.exe、nc.exe、sc.exe入侵中的使用方法 Ubuntu linux 關(guān)機、重啟、注銷 命令 查看linux服務(wù)器硬盤IO讀寫負(fù)載