Usually, Linux does not come with rz and sz commands, you need to manually install rz and sz packages, the following small series will introduce you how to install rz under Linux And sz order, interested friends to study together.
1, set up the environment: Host: ubuntu9.10
platform: mini2440
kernels: 2.6.30.10
cross compiler: arm -linux-3.4.1
2, download the software rzsz-3.48.tar.gz:
#wget http://freeware.sgi.com/source/rzsz/rzsz-3.48. Tar.gz
3, unzip
#tar zxvf rzsz-3.48.tar.gz
The src directory will appear in the directory.
4, I have to put the command into the mini2440 to execute, so I want to modify the Makefile
#gedit Makefile
Modify CC=arm-linux-gcc
Modify OFLAG= -O -DREGISTERED
Otherwise, it will appear:
**** UNREGISTERED COPY *****
Please read the License Agreement in rz. Doc
5, Installation
#cd src
#make posix
Note: This software installation is different from regular GNU software — no configure( Configuration) and make install (installation process). Executing the command make first will give the following prompt:
[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< Br>
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
According to your own system, choose the location parameter of make. Under normal circumstances, you can choose posix or linux. Executing the command make posix, we can clearly see the work done in this step from the output section:
#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
6, development board Set
1), copy the compiled rb, rx, rc, rz, sb, sx, sz, zcommand zcommandi to the host /mnt/nfs directory,
start the nfs service, put Copy these executable files to the /usr/bin directory on the development board,
2), then copy the files under the cross compiler /usr/local/arm/3.4.1/arm-linux/lib to /lib on the development board.
3), set the environment variable export RZSZLINE=/dev/modem, if you do not set this environment variable, you may be prompted when you execute the command rz "Warning: Missing environment variable & rsquo; RZSZLINE & rsquo; (Linux ) rz ready. Type “sz file . . .” to your modem program”.
Note: The above steps may not be ready to be used.
7, use
Start the serial port in SecureCRT under XP. After Linux starts, enter the corresponding directory and input rz to select the file to be transferred.
If it is an application, use chmod +x filename to change to an executable property.
The above is the method of installing rz/sz command under Linux. If you want to transfer between Linux and windows files, you need to use rz, sz command, you can use the above operation for rz, Installation configuration of the sz command.
Currently, the version number of the IP protocol is 4, that is, IPv4. Then IPv6 is
When Linux users want to view the contents of a directory, can they be viewed with
Many people want to know which shell is used in the Linux system of this machine, the following smal
In RedHat system, because of the need of programming, you need to install JDK on the system, because
How Ubuntu builds virtual network card
Linux prompts gzip:stdin:not when extracting tar.gz file?
Linux configuration Python environment method
Installing Linux mint graphic tutorial with U disk under Windows
How to close the website on the Linux server?
Essential skills for Linux end users
Amazon Amazon AWS Access Key Creation Tutorial
Linux configuration minicom step
How to upgrade OpenSSH under Linux system?
How to configure HTTP load balancing system
After the Linux boot, the terminal prompts -bash-2.05b$ What should I do?
How to solve the win10 NIC driver problem with driver life?
Win8 Media Center Installation Process
Windows 7 default fonts are easy to restore
Win8.1 Wi-Fi dropped the line? Manual optimization tutorial!
Vista upgrade appears 0X80240029 error code resolution
How does the Win8 system use the Scan Repair System File command SFC scannow?
Windows8 system Metro interface to increase shutdown, restart button tutorial
Win7 system to close the 80 port method
How does WinXP look at the graphics card? Viewing the computer graphics card