RaspberryPi를 모니터 없음, 키보드 없이 설정
4960 단어 RaspberryPiarchLinuxraspbian
텔레비전에 연결하면 좋지만 귀찮았기 때문에!
전제 조건
준비하는 것
ArchLinux 디스크 이미지 or Raspbian 디스크 이미지
각각 아카이브를 다운로드해 둡시다.
절차
SD 카드에 이미지 복사
Apple-Pi Baker를 사용하여 디스크 이미지를 SD 카드에 설치합니다.
IMG file의 오른쪽에있는 …를 클릭하여 디스크 이미지 파일을 선택하십시오.
RaspberryPi 시작
RaspberryPi에 SD 카드를 삽입하고 이더넷 케이블을 연결하고 전원을 켭니다.
검색
ping 명령으로 네트워크를 검색합니다. 나의 집은 192.168.0.0/24를 사용하고 있기 때문에, 재밌게 브로드캐스트에 문의했습니다.
[key@mbp-retina] ping 192.168.0.255
PING 192.168.0.255 (192.168.0.255): 56 data bytes
64 bytes from 192.168.0.16: icmp_seq=0 ttl=64 time=0.093 ms
64 bytes from 192.168.0.3: icmp_seq=0 ttl=255 time=0.832 ms
64 bytes from 192.168.0.1: icmp_seq=0 ttl=255 time=1.129 ms
64 bytes from 192.168.0.15: icmp_seq=0 ttl=255 time=1.824 ms
64 bytes from 192.168.0.5: icmp_seq=0 ttl=64 time=3.306 ms
64 bytes from 192.168.0.12: icmp_seq=0 ttl=64 time=163.979 ms
64 bytes from 192.168.0.11: icmp_seq=0 ttl=64 time=191.068 ms
64 bytes from 192.168.0.16: icmp_seq=1 ttl=64 time=0.125 ms
64 bytes from 192.168.0.3: icmp_seq=1 ttl=255 time=0.891 ms
64 bytes from 192.168.0.1: icmp_seq=1 ttl=255 time=1.206 ms
64 bytes from 192.168.0.15: icmp_seq=1 ttl=255 time=1.916 ms
arp를 사용하여 Mac 주소도 확인해 봅니다.
[key@mbp-retina] arp -a
? (192.168.0.1) at 0:1b:8b:xx:xx:xx on en0 ifscope [ethernet]
? (192.168.0.2) at d8:30:62:xx:xx:xx on en0 ifscope [ethernet]
? (192.168.0.3) at 0:26:bb:xx:xx:xx on en0 ifscope [ethernet]
? (192.168.0.4) at (incomplete) on en0 ifscope [ethernet]
? (192.168.0.5) at 28:e7:cf:xx:xx:xx on en0 ifscope [ethernet]
? (192.168.0.6) at 0:26:bb:xx:xx:xx on en0 ifscope [ethernet]
? (192.168.0.7) at 0:1d:73:xx:xx:xx on en0 ifscope [ethernet]
? (192.168.0.8) at 0:8:9b:xx:xx:xx on en0 ifscope [ethernet]
? (192.168.0.9) at 0:17:ab:xx:xx:xx on en0 ifscope [ethernet]
? (192.168.0.10) at 4:db:56:xx:xx:xx on en0 ifscope [ethernet]
? (192.168.0.11) at e4:98:d6:xx:xx:xx on en0 ifscope [ethernet]
? (192.168.0.12) at d8:30:62:xx:xx:xx on en0 ifscope [ethernet]
? (192.168.0.14) at 4:1e:64:xx:xx:xx on en0 ifscope [ethernet]
? (192.168.0.15) at f0:b4:79:xx:xx:xx on en0 ifscope [ethernet]
? (192.168.0.17) at b8:27:eb:xx:xx:xx on en0 ifscope [ethernet]
? (192.168.0.18) at 0:23:18:xx:xx:xx on en0 ifscope [ethernet]
RaspberryPi의 이더넷 주소는 하드웨어에서 읽지 않은 것 같습니다 (참고). 벤더 ID는
B8:27:EB이므로 분명히 192.168.0.17가 RaspberryPi와 같습니다.SSH로 연결
ping이 지나면 SSH로 로그인 할 수 있습니다. 기본 사용자로 RaspberryPi에 로그인합니다.
distribution
username
password
ArchLinux
루트
루트
Raspbian
pi
raspberry
[key@mbp-retina] ssh [email protected]
[email protected]'s password:
Welcome to Arch Linux ARM
Website: http://archlinuxarm.org
Forum: http://archlinuxarm.org/forum
IRC: #archlinux-arm on irc.Freenode.net
[root@alarmpi ~]#
이상으로 로그인 할 수 있게 되었습니다!
ArchLinux 패키지 업그레이드
파이썬이 없으면 ansible이 움직이지 않는다.
pacman 명령을 사용하여 시스템 업그레이드 및 패키지 설치.pacman -Syu python2
Raspbian 패키지 업그레이드
aptitude update
aptitude -y dist-upgrade
참고
How to Setup Raspberry Pi via SSH With Arch Linux (No Monitor, No Keyboard) arp를 사용하여 뽀뽀하면, 역시 같은 일을하고있는 사람이 있었다
Reference
이 문제에 관하여(RaspberryPi를 모니터 없음, 키보드 없이 설정), 우리는 이곳에서 더 많은 자료를 발견하고 링크를 클릭하여 보았다 https://qiita.com/key/items/699611bb199f63a230d1텍스트를 자유롭게 공유하거나 복사할 수 있습니다.하지만 이 문서의 URL은 참조 URL로 남겨 두십시오.
우수한 개발자 콘텐츠 발견에 전념
(Collection and Share based on the CC Protocol.)