Wednesday, April 23, 2014

เริ่มเล่น Raspbery Pi สักที ลืมหมดล่ะ

--------------------------------
Raspberry Pi Default account
User : pi
Password : raspberry
--------------------------------

Wifi Basic command
--------------------------------

Check wifi connected
- iwcongi
--------------------------------

Check if each network interface
- ifconfig
--------------------------------

WiFi Scanning
- iwlist wlan0 scanning
--------------------------------

Setting Wifi Connect to router WPA Security (Not work with WPA2)
Setting  by DHCP
1. Command to edit network interface file
>sudo nano /etc/network/interfaces
auto lo

iface lo inet loopback
iface eth0 inet dhcp

allow-hotplug wlan0
auto wlan0
iface wlan0 inet dhcp
wpa-ssid "YOUR_SSID"
wpa-psk "YOUR_PASSPHRASE"

Setting  by Static IP
1. Command to edit network interface file
>sudo nano /etc/network/interfaces

auto lo

iface lo inet loopback
iface eth0 inet dhcp

allow-hotplug wlan0
auto wlan0
iface wlan0 inet static
address 192.168.0.6
netmask 255.255.255.0
gateway 192.168.0.1
wpa-ssid "YOUR_SSID"
wpa-psk "YOUR_PASSPHRASE"


Reference my tutorial
1. Download image for SD card
http://www.engadget.com/2012/09/04/raspberry-pi-getting-started-guide-how-to/

2. Wifi Connect
       2.1auto dhcp
       http://www.maketecheasier.com/setup-wifi-on-raspberry-pi/
       http://pingbin.com/2012/12/setup-wifi-raspberry-pi/

       2.2 Static IP
       http://docs.brewpi.com/installing-your-pi/rpi-setup.html
       https://learn.adafruit.com/adafruits-raspberry-pi-lesson-3-network-setup/setting-up-wifi-with-occidentalis