2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?

More than 5 years have passed since last update.

AWS IoT Device SDK for Ruby を使ってみた #1 - Raspberry pi 初期設定

Last updated at Posted at 2016-10-11

// 当記事は, 以下親記事の Setup Flowの一部です.
// AWS IoT Device SDK for Ruby を使ってみた

当記事の内容は, 以下記事を参考とさせて頂きました. (整理したのみで内容はLink先と同一です)
ありがとうございます.
http://qiita.com/toshihirock/items/8e7f0887b565defe7989

DL raspbian lite on mac

DL from https://www.raspberrypi.org/downloads/raspbian/

console
$ unzip 2016-05-27-raspbian-jessie-lite.zip

OS imageをSDへ書き込み on mac

  • macへSDを挿入

  • install

    console
    $ diskutil list // sdのdisk番号確認。以下は、/dev/disk1と想定
    $ diskutil eraseDisk FAT32 RPI /dev/disk1
    $ diskutil unmountDisk /dev/disk1
    $ sudo dd bs=1m if=2016-05-27-raspbian-jessie-lite.img of=/dev/rdisk1
    

ssh接続 to raspberry

  • LAN cable接続

  • Micro SD 挿入

  • 電源投入

  • DHCP 払い出し IP address を確認

  • Raspberry へ ssh接続

    console
    $ ssh pi@192.168.1.18
    pi@192.168.1.18's password: raspberry
    

Wi-Fi接続設定

  • wireless interfaceの存在確認

    console
    $ ip addr
    // wlanが表示される事
    ....
    3: wlan0: <NO-CARRIER,BROADCAST,MULTICAST,UP> mtu 1500 qdisc pfifo_fast state DOWN group default qlen 1000
        link/ether b8:27:eb:1b:f4:49 brd ff:ff:ff:ff:ff:ff
        inet6 fe80::a82f:f154:7a35:b999/64 scope link tentative
        valid_lft forever preferred_lft forever
    
  • ssid設定

    console
    $ sudo sh -c 'wpa_passphrase [SSID] [PASSPHRASE] >> /etc/wpa_supplicant/wpa_supplicant.conf'
    
  • commet部のpassword削除

    console
    $ sudo vi /etc/wpa_supplicant/wpa_supplicant.conf
    comment outしている生passwordを削除して保存
    
  • wi-fi IP 固定

    console
    $ sudo vi /etc/network/interfaces
    
    /etc/network/interfaces
    allow-hotplug wlan0
    iface wlan0 inet static
        wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf
        address 192.168.1.100
        netmask 255.255.255.0
        gateway 192.168.1.0
    
  • 再起動

    console
    $ sudo shutdown -r now
    
  • wi-fi接続を確認

    console
    $ ssh pi@192.168.1.100
    pi@192.168.1.100's password: raspberry
    

以上.
次は, #2 - Raspberry pi / sensor 配線

2
2
0

Register as a new user and use Qiita more conveniently

  1. You get articles that match your needs
  2. You can efficiently read back useful information
  3. You can use dark theme
What you can do with signing up
2
2

Delete article

Deleted articles cannot be recovered.

Draft of this article would be also deleted.

Are you sure you want to delete this article?