Created
June 2, 2018 16:15
-
-
Save YutoMizutani/84ce68f334c7c6fc96c408e13a3e969b to your computer and use it in GitHub Desktop.
Raspberry Pi 3にUSB無線LANアダプタを接続し,インターネット接続を維持しつつアドホック通信を行う ref: https://qiita.com/YutoMizutani/items/a74af25c856a14d9fd0b
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pi@~ $ cat /proc/cpuinfo | |
Hardware : BCM2835 | |
Revision : a22082 | |
pi@~ $ cat /etc/os-release | |
PRETTY_NAME="Raspbian GNU/Linux 8 (jessie)" |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ system_profiler SPSoftwareDataType | |
System Version: macOS 10.13.4 (17E202) | |
$ sysctl hw.model | |
hw.model: MacBookPro12,1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pi:~ $ sudo sudo vi /etc/network/interfaces |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
pi:~ $ sudo ifdown wlan1 | |
pi:~ $ sudo ifup wlan1 | |
pi:~ $ sudo reboot |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
$ 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