Install under Mac and use RZ, sz remote upload download file

Source: Internet
Author: User
Tags install homebrew

1. First install the ITEM2,ITEM2 is similar to the Mac Shell terminal
ITEM2, http://iterm2.com/downloads.html, unzip after download, run directly.

2.Install Homebrew # #在下载和安装时需要花几分钟时间,

dragondemacbook-air:~ dragon$ ruby-e "$ (Curl-fssl https://raw.githubusercontent.com/Homebrew/install/master/ Install) "

==> This script would install:

/usr/local/bin/brew

/usr/local/library/...

/usr/local/share/man/man1/brew.1

==> The following directories would be made group writable:

/usr/local/.

/usr/local/bin

==> The following directories'll has their owner set to Dragon:

/usr/local/.

/usr/local/bin

==> The following directories'll has their group set to admin:

/usr/local/.

/usr/local/bin


Press RETURN to continue or any other key to abort

==>/usr/bin/sudo/bin/chmod g+rwx/usr/local/. /usr/local/bin

==>/usr/bin/sudo/usr/sbin/chown dragon/usr/local/. /usr/local/bin

==>/usr/bin/sudo/usr/bin/chgrp admin/usr/local/. /usr/local/bin

==>/usr/bin/sudo/bin/mkdir/library/caches/homebrew

==>/usr/bin/sudo/bin/chmod G+rwx/library/caches/homebrew

==>/usr/bin/sudo/usr/sbin/chown Dragon/library/caches/homebrew

==> downloading and installing Homebrew ...

Remote:counting objects:3769, done.

Remote:compressing objects:100% (3608/3608), done.

Remote:total 3769 (Delta), reused 534 (delta), pack-reused 0

Receiving objects:100% (3769/3769), 3.21 MiB | 20.00 kib/s, done.

Resolving deltas:100% (43/43), done.

From Https://github.com/Homebrew/homebrew

* [New branch] master, Origin/master

HEAD is now at 28c13e2 clockywock:add 0.3.1a bottle.

==> installation successful!

==> Next Steps

Run ' Brew help ' to get started


dragondemacbook-air:~ dragon$ Bre

Break Brew


dragondemacbook-air:~ dragon$ sudo brew install Lrzsz

Error:cowardly refusing to ' sudo brew install '

You can use a brew with sudo and only if the brew executable are owned by root.

However, this is both not recommended and completely unsupported so does at

Your own risk.


dragondemacbook-air:~ dragon$ Brew Install Lrzsz

==> Downloading http://www.ohse.de/uwe/releases/lrzsz-0.12.20.tar.gz

==> downloading from https://ohse.de/uwe/releases/lrzsz-0.12.20.tar.gz

######################################################################## 100%

==>./configure--prefix=/usr/local/cellar/lrzsz/0.12.20--mandir=/usr/local/cel

==> make

==> make Install

/usr/local/cellar/lrzsz/0.12.20:16 files, 456K, built in seconds

dragondemacbook-air:~ dragon$

As you can see, the installation was successful.

Check if Ls-alh/usr/local/bin/sz is present after installation is complete
if LS is present:/usr/local/bin/sz:no such file or directory executes the following command
wangqingyis-air:bin wangqingyi$ ln-s/usr/local/bin/lrz/usr/local/bin/rz
wangqingyis-air:bin wangqingyi$ ln-s/usr/local/bin/lsz/usr/local/bin/sz


4. Download Iterm2-zmodem
wangqingyis-air:bin wangqingyi$ pwd
/usr/local/bin

wangqingyis-air:bin wangqingyi$ sudo wget https://raw.github.com/mmastrac/iterm2-zmodem/master/ Iterm2-send-zmodem.sh
wangqingyis-air:bin wangqingyi$ sudo wget https://raw.github.com/mmastrac/iterm2-zmodem/master/ Iterm2-recv-zmodem.sh

wangqingyis-air:~ wangqingyi$sudo chmod 777/usr/local/bin/iterm2-*

5. Run the downloaded iterm add trigger
Open iterm2------simultaneously press command and,-------Profiles----------Default-------advanced------Triggers Edit button

Regular expression: \*\*b0100
Action:run Silent coprocess
Parameters:/usr/local/bin/iterm2-send-zmodem.sh

Regular expression: \*\*b00000000000000
Action:run Silent coprocess
Parameters:/usr/local/bin/iterm2-recv-zmodem.sh

This article comes from "anything you insist on!" "Blog, be sure to keep this provenance http://zhaowenlong51.blog.51cto.com/3231475/1701255

Install under Mac and use RZ, sz remote upload download file

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.