<commit_before>Traffic Signal on Raspberry Pi
==============================

Things You'll Need
------------------
- [Raspberry Pi Model B](http://www.amazon.com/s?url=search-alias%3Daps&field-keywords=Raspberry+Pi+Model+B)
- [5V Micro USB Power Supply](http://www.amazon.com/s?url=search-alias%3Daps&field-keywords=5V+Micro+USB+Power+Supply)
- [USB WiFi Adapter](http://www.amazon.com/s?url=search-alias%3Daps&field-keywords=USB+WiFi+Adapter) (Optional)
- [Traffic Light](http://www.amazon.com/s?url=search-alias%3Daps&field-keywords=Traffic+Light)
- [4GB+ SD Card](http://www.amazon.com/s?url=search-alias%3Daps&field-keywords=4GB+SD+Card)
- [Relay Board](http://www.amazon.com/s?url=search-alias%3Daps&field-keywords=Relay+Board) ([The one I used](http://www.amazon.com/gp/product/B0057OC5O8/ref=oh_aui_detailpage_o00_s00?ie=UTF8&psc=1))
- For setup you'll need an [HDMI Cable](http://www.amazon.com/s?url=search-alias%3Daps&field-keywords=HDMI+Cable) (or [RCA Cable](http://www.amazon.com/s?url=search-alias%3Daps&field-keywords=RCA+Cable)) and a [USB Keyboard](http://www.amazon.com/s?url=search-alias%3Daps&field-keywords=USB+Keyboard).

Setting up the Raspberry Pi
---------------------------

Download the [Arch Linux disk image for the Raspberry Pi](http://archlinuxarm.org/platforms/armv6/raspberry-pi) and extract the contents.
```sh
$ wget http://downloads.raspberrypi.org/arch_latest --output-document alarmpi.zip
$ unzip alarmpi.zip
```

Using `dd`, copy the image onto your SD card. Replace `/dev/sdX` with your SD card's device. **Warning:** Be careful that `of=` points to your SD card device. If you chose the wrong option, it may overwrite your hard disk, causing severe data loss.
```sh
$ dd bs=1M if=archlinux-hf-2013-07-22.img of=/dev/sdX
```

Now you should be able to insert the SD card and connect your Raspberry Pi to power. By default, the root password is `root`. If you ran into problems, refer to one of the many guides online and be sure to check out [the official guide](http://archlinuxarm.org/platforms/armv6/raspberry-pi).

If you want to set up WiFi, grab yourself a USB Wifi dongle and enter the WiFi menu.
```sh
$ wifi-menu -o
```
<commit_msg>Added docs on Wifi Setup<commit_after>Traffic Signal on Raspberry Pi
==============================

Things You'll Need
------------------
- [Raspberry Pi Model B](http://www.amazon.com/s?url=search-alias%3Daps&field-keywords=Raspberry+Pi+Model+B)
- [5V Micro USB Power Supply](http://www.amazon.com/s?url=search-alias%3Daps&field-keywords=5V+Micro+USB+Power+Supply)
- [USB WiFi Adapter](http://www.amazon.com/s?url=search-alias%3Daps&field-keywords=USB+WiFi+Adapter) (Optional)
- [Traffic Light](http://www.amazon.com/s?url=search-alias%3Daps&field-keywords=Traffic+Light)
- [4GB+ SD Card](http://www.amazon.com/s?url=search-alias%3Daps&field-keywords=4GB+SD+Card)
- [Relay Board](http://www.amazon.com/s?url=search-alias%3Daps&field-keywords=Relay+Board) ([The one I used](http://www.amazon.com/gp/product/B0057OC5O8/ref=oh_aui_detailpage_o00_s00?ie=UTF8&psc=1))
- For setup you'll need an [HDMI Cable](http://www.amazon.com/s?url=search-alias%3Daps&field-keywords=HDMI+Cable) (or [RCA Cable](http://www.amazon.com/s?url=search-alias%3Daps&field-keywords=RCA+Cable)) and a [USB Keyboard](http://www.amazon.com/s?url=search-alias%3Daps&field-keywords=USB+Keyboard).

Setting up the Raspberry Pi
---------------------------

Download the [Arch Linux disk image for the Raspberry Pi](http://archlinuxarm.org/platforms/armv6/raspberry-pi) and extract the contents.
```sh
$ wget http://downloads.raspberrypi.org/arch_latest --output-document alarmpi.zip
$ unzip alarmpi.zip
```

Using `dd`, copy the image onto your SD card. Replace `/dev/sdX` with your SD card's device. **Warning:** Be careful that `of=` points to your SD card device. If you chose the wrong option, it may overwrite your hard disk, causing severe data loss.
```sh
$ dd bs=1M if=archlinux-hf-2013-07-22.img of=/dev/sdX
```

Now you should be able to insert the SD card and connect your Raspberry Pi to power. By default, the root password is `root`. If you ran into problems, refer to one of the many guides online and be sure to check out [the official guide](http://archlinuxarm.org/platforms/armv6/raspberry-pi).

If you want to set up WiFi, grab yourself a USB Wifi dongle and enter the WiFi menu.
```sh
$ wifi-menu -o
```

In order to get the Wifi connection to activate automaticlly on boot, you'll need to use something like the following:
```sh
$ pacman -Syu wpa_actiond
$ ls /etc/netctl/ 
$ netctl enable PROFILE_IN_ETC_NETCTL
```

{'fraction_non_alphanumeric': 0.17044463818657368, 'fraction_numerical': 0.015693112467306015, 'mean_word_length': 4.73625, 'pattern_counts': {'":': 0, '<': 3, '<?xml version=': 0, '>': 3, 'https://': 0, 'lorem ipsum': 0, 'www.': 20, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 4, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '35474', 'n_tokens_mistral': 1667, 'n_tokens_neox': 1545, 'n_words': 407}