Linux系統手動安裝rzsz 軟體包

2021-09-22 03:10:42 字數 2316 閱讀 3848

linux系統手動安裝rzsz軟體包

([email][email protected][/email])

定製安裝的linux可能沒有把rzsz包安裝到系統,這對用securecrt這樣的windows工具傳輸檔案特別不方便。為了使用這個方便的法門,可以手動安裝之。

1、  

wget [url]

2、解壓 tar zxvf  rzsz-3.34.tar.gz

[root@web1 rzsz]#make

please study the #ifdef's in crctab.c, rbsb.c, rz.c and sz.c,

make any necessary hacks for oddball or merged sysv/bsd systems,

then type 'make system' where system is one of:

posix   posix compliant systems

linux   linux systems

odt     sco open desktop

icc     sco open desktop, intel compiler

sysvr4  system 5.4 unix, sco open desktop

sysvr3  system 5.3 unix with mkdir(2), coherent 4.2

sysv    system 3/5 unix

xenix   xenix

x386    386 xenix

bsd     berkeley 4.x bsd, ultrix, v7

tandy   tandy 6000 xenix

dnix    diab dnix 5.2

dnix5r3 diab dnix 5.3

amiga   3000ux running svr4

posix   posix compliant systems (sco open desktop, strict)

doc     format the man pages with nroff

根據自己的系統選擇make的位置引數,一般情況下,選posix或linux就可以了。執行命令make posix,我們從輸出部分可以很清楚的看見這個步驟所進行的工作:

[root@web1 rzsz]#make posix

gcc -m486 -o2 -dlinux -dhvm -dregistered -s -dposix -dmd=2 rz.c -o rz

size rz

text    data     bss     dec     hex filename

24847     636   10400   35883    8c2b rz

rm -f rb rx rc

ln rz rb

ln rz rx

ln rz rc

gcc -m486 -o2 -dlinux -dhvm -dregistered -s -dposix sz.c -o sz

size sz

text    data     bss     dec     hex filename

29030     696   10208   39934    9bfe sz

rm -f sb sx zcommand zcommandi

ln sz sb

ln sz sx

ln sz zcommand

ln sz zcommandi

4、為了方便使用這個工具,把相關檔案複製到目錄/usr/bin下面。這裡只需要拷貝2個檔案rz及sz,命令為:cp rz sz  /usr/bin .

5、設定環境變數 export  rzszline=/dev/modem。如果不設定這個環境變數,執行命令rz的時候,總是會提示你「

warning: missing environment variable 'rzszline' (linux)

rz ready. type "sz file ..." to your modem program」。

5、上傳檔案測試rzsz。在windows下通過securecrt連線遠端linux伺服器,然後執行命令rz。

回車後將彈出發送檔案選擇視窗:

怎麼把windows下的目錄上傳到linux呢?乙個辦法是在windows下把目錄打包壓縮成乙個檔案在上傳,另外乙個是使用另外乙個工具ssh secure shell(可以在操作介面直接拖拽檔案或目錄)。

Linux系統手動安裝rzsz 軟體包

包安裝到系統,這對用securecrt1 登入linux 解壓 tar zxvf rzsz 3.34.tar.gz root web1 rzsz make please study the ifdef s in crctab.c,rbsb.c,rz.c and sz.c,make any neces...

Linux系統手動安裝rzsz 軟體包

定製安裝的linux可能沒有把rzsz包安裝到系統,這對用securecrt這樣的windows工具傳輸檔案特別不方便。為了使用這個方便的法門,可以手動安裝之。2 解壓 tar zxvf rzsz 3.34.tar.gz root web1 rzsz make please study the if...

Linux系統手動安裝rzsz 軟體包

2 解壓 tar zxvf rzsz 3.34.tar.gz make please study the ifdef s in crctab.c,rbsb.c,rz.c and sz.c,make any necessary hacks for oddball or merged sysv bsd ...