1. Download Raspbian SD card image for Raspberry Pi
Download raspbian image from here.
Here is quick download log.
$ wget --content-disposition http://downloads.raspberrypi.org/raspbian_latest
Extract downloaded file.
To install Raspbian SD card image on your MicroSD card, you can use dd command.
Before the dd command, you need to find SD card location.
user@user:~/Downloads$ unzip 2015-11-21-raspbian-jessie.zip
Archive: 2015-11-21-raspbian-jessie.zip
inflating: 2015-11-21-raspbian-jessie.img
user@user:~/Downloads$ ls
2015-11-21-raspbian-jessie.img
2. Copy image to SD card
To install Raspbian SD card image on your MicroSD card, you can use dd command.
Before the dd command, you need to find SD card location.
user@user:~/Downloads$ df -h
Filesystem Size Used Avail Use% Mounted on
/dev/sdf1 29G 44M 27G 1% /media/user/2d9c8a57
In my case, SD card is located in /dev/sdf.
Now, you can use dd command.
Here is the dd command log.
user@user:~/Downloads$ sudo dd bs=4M if=2015-11-21-raspbian-jessie.img of=/dev/sdf
[sudo] password for user:
938+0 records in
938+0 records out
3934257152 bytes (3.9 GB) copied, 214.141 s, 18.4 MB/s
user@user:~/Downloads$ sync
user@user:~/Downloads$ umount /dev/sdf1
3. Insert SD card to Raspberry Pi
If the installation was successful this screen appears.
4. Expand user partition
This allows your SD card to use all its storage rather than the small partition it was released with.
pi@raspberrypi:~$ sudo raspi-config
Entering 1.Expand Filesystem
And reboot
pi@raspberrypi:~$ sudo reboot
5. Network configuration
If you use a static IP, make settings as shown below.
Modify interface file.
pi@raspberrypi:~$ nano /etc/network/interfaces
Wired network settings is as follows.
iface eth0 inet static
address XXX.XXX.XXX.XXX
netmask XXX.XXX.XXX.XXX
gateway XXX.XXX.XXX.XXX
dns-nameservers XXX.XXX.XXX.XXX
Wireless network settings is as follows.
allow-hotplug wlan0
iface wlan0 inet static
address XXX.XXX.XXX.XXX
netmask XXX.XXX.XXX.XXX
gateway XXX.XXX.XXX.XXX
dns-nameservers XXX.XXX.XXX.XXX
wpa-scan-ssid 1
wpa-ap-ssid 1
wpa-key-mgmt WPA-PSK
wpa-proto RSN WPA
wpa-pairwise CCMP TKIP
wpa-group CCMP TKIP
wpa-ssid "WirelessNetworkName"
wpa-psk "PASSWORD"
wpa-roam /etc/wpa_supplicant/wpa_supplicant.conf
And system reboot or network reboot.
pi@raspberrypi:~$ sudo reboot
pi@raspberrypi:~$ sudo service network restart
6. Package & Firmware upgrade
pi@raspberrypi:~$ sudo apt-get update
pi@raspberrypi:~$ sudo apt-get upgrade
pi@raspberrypi:~$ sudo rpi-update
7. Setup GPIO
Install a wiringPi for the use of the Raspberry Pi GPIO.
pi@raspberrypi:~$ git clone git://git.drogon.net/wiringPi
pi@raspberrypi:~$ cd wiringPi
pi@raspberrypi:~/wiringPi$ sudo ./build
Now, you can use the Raspberry Pi.
0 개의 댓글:
댓글 쓰기