Since I was bored with kids battles choosing cartoons from old DVDs I decided to use a Raspberry Pi together with Raspbmc as a media center. Everything had to be powered from the cigar lighter receptacle...
I took an old 2.5" hard-drive as the repository for cartoons. Because of power constraints, I bought a 2.1A dual USB car adapter: it provides enough power for the Raspberry Pi and for the hard-drive; one USB cable goes to the power input of the Raspberry and another "Y" USB cable is connected to the USB car adapter, to the Rabspberry Pi USB port and to the hard-drive. Y USB Cable like this one: http://www.lacie.com/lu/products/product.htm?id=10572.
I wanted to use my iPad as a remote control for XBMC so the idea was to have a wifi emitter in the Raspberry Pi, to connect the iPad to this Wifi network and to use the official remote control app.
So I bought a cheap USB Wifi dongle: D-Link DWA-121 (less than 13€ on Amazon.fr). This dongle has a Realtek RTL8188CUS chipset compatible with the rtl8192cu linux driver already installed on the latest Raspbmc. However, configuring this dongle as a Wifi access point can turn to be a nightmare! So this post is to help people doing the same thing!
Here is how to proceed, using your home network first before going into the car.
1. Install Raspbmc (http://www.raspbmc.com/download/) on the SD Card.
2. Start your Raspberry Pi and let it boot with a connection to your Ethernet network first.
3. Use the official XBMC iPad or iPhone app to automatically detect your Raspberry (your iPhone has to be connected to your home Wifi wich uses the same network as the Raspberry Pi).
4. Check the IP address of the Raspberry in the 'Systems' / 'Info' menu.
5. From your PC or your MAC, connect to the Raspberry Pi using an SSH terminal (from MacOS, you can go to a terminal and type
Code: Select all
ssh -l pi IP_ADDRESS
Code: Select all
sudo -s
6. You will need to follow this tutorial: http://elinux.org/RPI-Wireless-Hotspot but at the first step you have to change the following code:
Code: Select all
sudo apt-get install hostapd udhcpd
Code: Select all
sudo apt-get install hostapd udhcpd iptables
Code: Select all
driver=nl80211
Code: Select all
driver=rtl871xdrv
Code: Select all
wget http://dl.dropbox.com/u/1663660/hostapd/hostapd
Code: Select all
mv hostapd /usr/sbin
Code: Select all
chmod 755 /usr/sbin/hostapd
Code: Select all
nano /etc/rc.local
Code: Select all
ifup wlan0
service udhcpd restart
Pictures from the installation in my car:




Official XBMC iPad app together with Raspbmc in my Renault Espace:
