-->

Tuesday, December 10, 2013

Initial Installation on Raspian Wheezy

Before you begin
  • Make sure you have a reliable power supply (5V 1A).
  • Make sure you have access to a router (or access to a USB to TTL cable).
Install Raspian image to an SD card
  • Download Raspian.
  • On OS X, use PiFiller to copy the Raspian image to an empty SD card.
Put the SD card in the Pi and attach some power.
  • AC/DC wall adapter plugged into the micro SD
  • OR
  • USB to TTL plugged into pins 1, 3, 4, 5 colors are: red - skip - black - white - green.
  • IMPORTANT: Do not attach power on both the USB and Raspberry pins at the same time.
First time login
  • If you have a router, connect an ethernet cable from your Raspberry to the router, figure out your Pi's IP and login with ssh.
  • If your using a USB to TTL cable, use screen (see Problems)
Configure Wireless network

pi@Rasberry$ sudo pico /etc/network/interfaces









auto lo
iface lo inet loopback

iface eth0 inet dhcp

allow-hotplug wlan0
auto wlan0
iface wlan0 inet dhcp
    wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf

iface default inet dhcp


pi@Rasberry$ sudo pico /etc/wpa_supplicant/wpa_supplicant.conf





ctrl_interface=DIR=/var/run/wpa_supplicant

#GROUP=netdev

#update_config=1

network={
        ssid="your_work_ssid"
        key_mgmt=WPA-EAP
        eap=PEAP
        phase2="auth=MSCHAPV2"
        identity="your_user_id"
        password="your_password"
}

network={
        ssid="your_router_ssid"
        psk="your_router_password"
}

Problem: If you have connected your Raspberry with a USB to TTL cable (xxx) and have logged in from a host computer using screen then the carriage return character can sometimes not be correct. You will see this as you edit /etc/network/interfaces, when you reopen the file some of the lines will be mashed into the same line and calls to 'sudo ifup wlan0' or 'sudo ifdown' will give you unpredictable errors.

Solution: Limit your time using a USB to TTL cable with screen. While using one, just configure your two network files (above). For each line in the file, just  put two carriage returns per line.

Linux Commands:







sudo ifup wlan0
sudo ifdown wlan0
ifconfig

No comments:

Post a Comment