Get the App
SLTechnology News&Howtos  ›  Servers  › 

Rzsz installation

Shulou Source: shulou.com Published: 2022-06-03 05:05:25 09月21日 Update

rz, sz is Linux/Unix and Windows ZModem file transfer command line tool

Advantages: It is more convenient than ftp command, and the server does not have to open FTP service.

sz: Send selected files to local machine

rz: Running this command will pop up a file selection window to upload files from the local selection to the Linux server

Linux confirms that make and gcc are installed

solaris confirms that make, cc are installed

Otherwise, an error will be reported when compiling and installing

1. Download rzz-3.48.tar.gz

wget http://freeware.sgi.com/source/rzsz/rzsz-3.48.tar.gz

2. Decompress tar zxf rzsz-3.48.tar.gz and generate scr directory after decompression.

Install cd src, which is different from regular GNU software-no configure and make install. First execute the command make, which will give you the following prompt:

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

aix AIX systems

next NeXtstep v3.x (POSIX)

odt SCO Open Desktop

everest SCO Open Desktop (elf, strict)

sysvr4 SYSTEM 5.4 Unix

sysvr3 SYSTEM 5.3 Unix with mkdir(2), COHERENT 4.2

sysv SYSTEM 3/5 Unix

sysiii SYS III/V Older Unix or Xenix compilers

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)

undos Make the undos, todos, etc. program.

doc Format the man pages with nroff

4, according to their own system to choose the location parameters of make, under normal circumstances, choose posix or linux can be. Execute the command to make posix

lnxxt@suse10-1085:~/rzsz/src> make posix

cc -O -DPOSIX -DMD=2 rz.c -o rz

size rz

text data bss dec hex filename

25726 648 10404 36778 8faa rz

rm -f rb rx rc

ln rz rb

ln rz rx

ln rz rc

cc -O -DPOSIX sz.c -o sz

size sz

text data bss dec hex filename

30899 708 43084 74691 123c3 sz

rm -f sb sx zcommand zcommandi

ln sz sb

ln sz sx

ln sz zcommand

ln sz zcommandi

5. Add instructions to copy the relevant files to the directory/usr/bin. Here you only need to copy two files rz and sz,

The command is cp rz sz /usr/bin

6. Other issues:

a. Remove the "Unregistered COPY" prompt

**** UNREGISTERED COPY *****

Please read the License Agreement in rz.doc

Solution:

Modify the fourth line of Makefile OFLAG= -O to OFLAG= -O -DREGISTERED

b. If you want to migrate to ARM, you need to modify Makefile as follows:

#vi Makefile

CC=arm-linux-gcc

save and exit

#make posix

c. If the user has permission errors, please refer to the following modifications.

[root@leader bin]# su - test

[test@leader ~]$ rz -y

/dev/pts/0: Permission denied

[root@leader bin]# cd /dev/pts

[root@leader pts]# ll

Total 0

crw--w---- 1 root tty 136, 0 Oct 5 10:17 0

crw--w---- 1 root tty 136, 1 Oct 5 09:19 1

crw--w---- 1 root tty 136, 2 Oct 5 08:26 ptmx

[root@leader pts]# chmod 666 0 #Similarly, modify the corresponding terminal permissions

Tags: Commands files services selections servers permissions directories software prompts different no advantages locations parameters epigenetic tools general situation copy instructions Apple Docker Huawei Linux macOS MariaDB Microsoft MySQL NVidia OPPO Reno Linux Shulou Information Docker MySQL OPPO Reno