These instructions will provide you with a list of requirements and steps for configuring your own local Wi-Fi media server using the Raspberry Pi. Once complete, you will be able to plug a USB drive into your Raspberry Pi and provide the drive's content across a local wireless area. Anyone within the vicinity will be able to view images, documents, videos and more with their laptops and mobile devices.

Step 1: Materials

Raspbery Pi Model B
Power adapter
SD storage card
WiFi Adapter (ASUS USB-N13)
Ethernet cable
USB storage (USB key or thumbdrive)
Raspbian “wheezy” Linux distribution (2013-02-09-wheezy-raspbian)
Imaging software (ex: Win32DiskImager, http://sourceforge.net/projects/win32diskimager/)
Driver for WiFi (Realtek RTL8192CU)
[optional] Javascript Framework (bootstrap.js)
<p>Since Raspberry Pi doesn't support USB 3.0, and I have a 128 GB 80mb/s Micro SD card, can I use the SD card in place of the USB drive?</p>
<p>can be playable when accessing onto the browser, like browse-&amp; play not browse-grab file-&amp; play video, music, photos, etc?</p>
<p>OK, just to ensure nothing from the earlier errors was causing problems, I restarted from scratch with a fresh install of Raspbian, and performed every step up to the end of Step 7, and this time everything worked properly, and I can see my ssid from my ipad.</p><p>Ready to continue with Step 8 in the morning. :-)</p>
<p>Got it all up and running! I had a significant issue with the ipad not being able to connect to the PiFi ssid, but the addition of a few lines in the hostapd.conf file (Step 7.14):</p><p><br>wpa_key_mgmt=WPA-PSK<br>wpa_pairwise=TKIP<br><br>made all the difference. But I also have a query, given that we are using DNSMASQ as both DNS server and DHCP server, shouldn't the dhcpcd service be disabled? </p>
<p>This project is just what I was looking for. All was going well until Step 7.5c, in which I downloaded the correct Linux driver zip OK, but the extraction of the zipped files (I had three) in the wpa_supplicant_hostapd folder each generated two errors that a Symbolic link was unable to be created. I carried on anyway and copied the root directory of the unzipped archive along with the three extracted subfolders to the USB drive. I reached Step 7.8, &quot;sudo make&quot; and &quot;sudo make install&quot;.<br><br>sudo make: several warnings appear, almost all of the &quot;variable set but not used&quot; variety, but no obvious errors or failures.<br><br>sudo make install: completed without any errors or warnings.<br><br>I carried on to the end of Step 7, but was unable to get confirmation that the services were working.<br><br>On starting the hostapd service I get the message &quot;Starting advanced IEEE 802.11 management: hostapdioctl(SIOCGIFINDEX); No such device failed!&quot;, though the N13 is plugged in and was visible to lsusb as USB-N13.<br><br>On rebooting, I get the same message again, a few lines up from the login prompt, but further up the screen I also see:<br><br>Configuring network interfaces... /etc/network/interfaces: 11: misplaced option ifup: couldn't read interfaces file &quot;/etc/network/interfaces&quot; failed!<br><br>Line 11 of the interfaces file is &quot;wpa-conf /etc/wpa_supplicant/wpa_supplicant.conf&quot; in the wlan0 section. If I comment this line out and reboot the Pi, I get (paraphrasing a little):<br><br>configuring network interfaces the wpa_supplicant daemon failed to start, return code 1, and I still get the &quot;hostapdioctl(SIOCGIFINDEX); No such device failed!&quot; error.<br><br>Now, assuming that the problem is to do with the &quot;Symbolic link&quot; errors I had, I revisited the WinRar issue and resolved them (Run as administrator) and re-extracted the relevant archives as per Step7.5c, this time with no errors, and so I wiped the USB drive and copied over the RTL8188C root folder with all its now corrected subfolders, followed all of the subsequent Step 7 paces again, but with the same results as before.<br><br>I am unclear if the symbolic link issue is causing the problem. I do not know if the corrected symbolic links in the unpacked folders transferred properly to the USB stick and were read properly by Raspbian. Naturally, the original errors did not mention which files/folders were affected, so I do not know what to look for.<br><br>Is anyone able to help? My linux knowledge is very shallow, and I do want to know more, but some guidance would be appreciated.<br><br>Mike</p>
<p>First thanks for great tutorial. I just want to know that how many number of user can connect any view video at a time?</p><p>you guidance will be really appreciated.</p><p>Thank you.</p>
<p>Hi,</p><p>I'm stuck in Step 10 - where exactly (the folder) I should put the Bootstrap's materials? Since there is no folder as /root/www/ in Pi.</p><p>Thanks for your tutorial; I'm already excited I can scan RaspAP through WiFi.</p><p>Patrick</p>
<p>good help, sadly as a hard NOOB user i couldn't even go through step 5.C and here is why:</p><p>I bought the rtl8188c for the Raspberry pi 2 model B and i got the on the box the antenna and a cd with proper softwares...when i reached the step where you gotta find the &lsquo;wpa_supplicant_hostapd&rsquo; and unzip 2 files i found 3</p><p>&quot;wpa_supplicant_8_jb_4.1_rtw_r7473.20130517&quot;</p><p>&quot;wpa_supplicant_8_jb_4.2_rtw_r8680.20130821&quot;</p><p>&quot;wpa_supplicant_hostapd-0.8_rtw_r7475.20130812&quot;</p><p>So i decided to use the link provided by OP, so i download this file &quot;rtl8712_8188_8191_8192SU_usb_linux_v2.;, opened up, went to wpa_supplicant , but i couldn't find &quot;wpa_supplicant_hostapd&quot;...so im lost</p><p>also i had to do this to be able to get in to the usb </p><p><a href="http://raspi.tv/2012/mount-a-usb-flash-drive-on-raspberry-pi" rel="nofollow">http://raspi.tv/2012/mount-a-usb-flash-drive-on-ra...</a></p><p>and also i had to download all updates via command line.</p><p>Any thoughts????</p><p>Cheers</p>
<p>got it done, Raspberrypi.org on the forum section is awesome!</p>
<p>Can we be able to download the contents too ?? Please reply me ASAP. Also can there be any security issue that is needed to take in account.</p>
<p>does this work with a standard lamp installation?</p>
<p>What happened? Up to this point, you gave very detailed instructions. Then you suddenly assumed I knew how to do everything. I am a full professor in Biomedical Engineering Technology, but my programming is limited to Assembly. I have no idea where folder /www/ is nor how to go about entering PHP code. Can you explain this part so us newbies can understand?</p>
hey there, would you be able to host the completed install that you have on the SSD?

About This Instructable




More by bradshack213:Raspberry Pi Wi-Fi Media Server 
Add instructable to: