In addition to Weibo, there is also WeChat
Please pay attention
WeChat public account
Shulou
2025-02-22 Update From: SLTechnology News&Howtos shulou NAV: SLTechnology News&Howtos > Servers >
Share
Shulou(Shulou.com)06/01 Report--
This article mainly explains the "installation and configuration of rz and sz commands in linux". The explanation in this article is simple and clear and easy to learn and understand. Please follow the editor's train of thought to study and learn "the installation and configuration of rz and sz commands in linux".
1. Build environment: host: ubuntu9.10
Platform: mini2440
Kernel: 2.6.30.10
Cross compiler: arm-linux-3.4.1
2. Download software rzsz-3.48.tar.gz:
# wget http://freeware.sgi.com/source/rzsz/rzsz-3.48.tar.gz
3, decompression
# tar zxvf rzsz-3.48.tar.gz
The src directory appears under the directory.
4. I'm going to put the command into mini2440 to execute, so I'm going to modify Makefile.
# gedit Makefile
Modify CC=arm-linux-gcc
Modify OFLAG=-O-DREGISTERED
Otherwise, it will appear during execution:
* UNREGISTERED COPY *
Please read the License Agreement in rz.doc
5, install
# cd src
# make posix
Note: this software installation is different from regular GNU software-there is no configure (configuration) and make install (installation process). Execute the command make first, and the following prompt is given:
[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
Choose the location parameters of make according to your system. In general, you can choose posix or linux. Execute the command make posix, and we can clearly see the work done in this step from the output:
# 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 settings
1) copy the compiled rb,rx,rc,rz,sb,sx,sz,zcommand zcommandi to the host / mnt/nfs directory
Start the nfs service and copy these executable files to the / usr/bin directory of the development board
2), and then copy the files under the cross-compiler / usr/local/arm/3.4.1/arm-linux/lib to the / lib on the development board.
3), set the environment variable export RZSZLINE=/dev/modem, if you do not set this environment variable, when you execute the command rz, you may be prompted "Warning: Missing environment variable 'RZSZLINE' (Linux) rz ready. Type" sz file. "to your modem program".
Note: you may not have to do all the above steps.
7, use the
Start the serial port in SecureCRT under XP. After Linux starts, enter the corresponding directory and enter rz to select the file to be transferred.
If it is an application, change it to an executable property with chmod + x filename.
Thank you for reading, these are the contents of "installation and configuration of rz and sz commands in linux". After the study of this article, I believe you have a deeper understanding of the installation and configuration of rz and sz commands in linux, and the specific use needs to be verified in practice. Here is, the editor will push for you more related knowledge points of the article, welcome to follow!
Welcome to subscribe "Shulou Technology Information " to get latest news, interesting things and hot topics in the IT industry, and controls the hottest and latest Internet news, technology news and IT industry trends.
Views: 0
*The comments in the above article only represent the author's personal views and do not represent the views and positions of this website. If you have more insights, please feel free to contribute and share.
Continue with the installation of the previous hadoop.First, install zookooper1. Decompress zookoope
"Every 5-10 years, there's a rare product, a really special, very unusual product that's the most un
© 2024 shulou.com SLNews company. All rights reserved.