M1Mac에서 텔넷을 할 수 있을 때까지.

4236 단어 macOSM1telnettech
나는 새 것을 사고 싶어서 M1Mac를 샀다.
결국 이거야.

구매하고 처음 알았어요.
최근 애플의 방침으로 텔넷과 ftp는 폐지 방침인 것 같다.
Use ssh and scp instead of telnet and ftp in Terminal
그래서 내가 자주 이용하는eve-ng의 사용은 치명적인 상처를 입는다.
이것은 안 되기 때문에 텔넷이 완성되기 전에 비망록으로 남긴다.

프로비저닝


PC : Mac Book Pro 2020 M1 13inch
OS: macOS BigSur 버전 11.1

해본 일


• 설치 홈breaw
• 텔넷 설치

홈brew 설치


솔직히 홈brew가 뭔지 아직 잘 모르겠어요.centos yum 같은 사람만 아는 거야.하지만 맥에서는 무언가를 설치하는 데 자주 쓰이는 것 같아서 이번 텔레넷 설치도 사용했다.
M1Mac는 작년 12월 업데이트 당시 현지인 작업으로 업그레이드돼 설치하기로 했다.
패키지 관리자
홈페이지에서 아래 명령을 사용하여 설치를 시작합니다.
/bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/HEAD/install.sh )"
admin@~ % /bin/bash -c "$(curl -fsSL https://raw.githubusercontent.com/Homebrew/install/master/install.sh)"
Password:
==> This script will install:
/opt/homebrew/bin/brew
/opt/homebrew/share/doc/homebrew
/opt/homebrew/share/man/man1/brew.1
/opt/homebrew/share/zsh/site-functions/_brew
/opt/homebrew/etc/bash_completion.d/brew
/opt/homebrew
(省略)
설치가 순조롭게 끝났다.
하지만 설치가 완료되면 이런 메시지가 적혀 있다.
Warning: /opt/homebrew/bin is not in your PATH.
==> Installation successful!

==> Homebrew has enabled anonymous aggregate formulae and cask analytics.
Read the analytics documentation (and how to opt-out) here:
  https://docs.brew.sh/Analytics
No analytics data has been sent yet (or will be during this `install` run).

==> Homebrew is run entirely by unpaid volunteers. Please consider donating:
  https://github.com/Homebrew/brew#donations

==> Next steps:
- Add Homebrew to your PATH in /Users/admin/.zprofile:
    echo 'eval $(/opt/homebrew/bin/brew shellenv)' >> /Users/admin/.zprofile
    eval $(/opt/homebrew/bin/brew shellenv)
- Run `brew help` to get started
- Further documentation:
    https://docs.brew.sh
M1맥에 있는 홈brew의 추천 설치 위치는/opt/homebrew가 먼저 설치한 것 같아서 이것만 설치하면 PATH가 통과하지 못할 것 같습니다.
※ 공식 문서에도/opt/homebrew 설치를 권장하는 주소가 있습니다.자세한 내용은 아래 페이지에 많이 기재되어 있다.
https://docs.brew.sh
따라서 위의 정보에 따라 Next steps: 다음은 ①②의 명령입니다.
하나하나 대응하기로 결정하다.
Next steps:
- Add Homebrew to your PATH in /Users/admin/.zprofile:
    ①echo 'eval $(/opt/homebrew/bin/brew shellenv)' >> /Users/admin/.zprofile
    ②eval $(/opt/homebrew/bin/brew shellenv)
- Run `brew help` to get started
실행한 후에 나는 brew doctor를 쳐서 홈 brew가 움직이는지 확인해 보았다.
admin@~ % brew doctor
Please note that these warnings are just used to help the Homebrew maintainers
with debugging if you file an issue. If everything you use Homebrew for is
working fine: please don't worry or file an issue; just ignore this. Thanks!

Warning: The following directories are not writable by your user:
/opt/homebrew/share/zsh
/opt/homebrew/share/zsh/site-functions

You should change the ownership of these directories to your user.
  sudo chown -R $(whoami) /opt/homebrew/share/zsh /opt/homebrew/share/zsh/site-functions

And make sure that your user has write permission.
  chmod u+w /opt/homebrew/share/zsh /opt/homebrew/share/zsh/site-functions
그래서 이런 메시지가 나왔다.
설치 지침을 따랐지만 홈brew를 사용해도 괜찮을 것 같습니다.나는 앞으로의 계획을 위해 권한도 변경했지만, 개의치 않는 사람은 할 필요가 없습니까
권한을 변경한 후 다시 확인합니다.
admin@~ % brew doctor
Your system is ready to brew.
admin@~ %
설치가 완료되었습니다.

텔넷 설치


이것은 brew install telnet에서 완료됩니다.
특별히 할 말이 없다.

텔넷을 써보도록 하겠습니다.


텔레넷을 잘 할 수 있게 됐습니다!

공사 완료!폐정!

좋은 웹페이지 즐겨찾기