Skip to content

Instantly share code, notes, and snippets.

@YutoMizutani
Created June 2, 2018 16:15
Show Gist options
  • Save YutoMizutani/84ce68f334c7c6fc96c408e13a3e969b to your computer and use it in GitHub Desktop.
Save YutoMizutani/84ce68f334c7c6fc96c408e13a3e969b to your computer and use it in GitHub Desktop.
Raspberry Pi 3にUSB無線LANアダプタを接続し,インターネット接続を維持しつつアドホック通信を行う ref: https://qiita.com/YutoMizutani/items/a74af25c856a14d9fd0b
pi@~ $ cat /proc/cpuinfo
Hardware : BCM2835
Revision : a22082
pi@~ $ cat /etc/os-release
PRETTY_NAME="Raspbian GNU/Linux 8 (jessie)"
$ system_profiler SPSoftwareDataType
System Version: macOS 10.13.4 (17E202)
$ sysctl hw.model
hw.model: MacBookPro12,1
pi:~ $ sudo sudo vi /etc/network/interfaces
iface wlan1 inet manual
auto wlan1
iface wlan1 inet static
address 192.168.<foo>.<bar>
netmask 255.255.255.0
wireless-channel 1
wireless-mode ad-hoc
wireless-essid <display name>
# wireless-key <104 bit WSP>
pi:~ $ sudo ifdown wlan1
pi:~ $ sudo ifup wlan1
pi:~ $ sudo reboot
$ sudo ssh <pi name>@<wlan1 IP address>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment