Setting up my Raspberry Pi as a SDR Server with RTL-2832U USB dongle

Software configeration

First update you Raspberry Pi wheezy Linux to the latest version.

sudo apt-get update
sudo apt-get install git 
sudo apt-get install cmake
sudo apt-get install libusb-1.0-0.dev
sudo apt-get install build-essential

Now install the RTL-2832U USB dongle driver src and compile

git clone git://git.osmocom.org/rtl-sdr.git
cd rtl-sdr/
mkdir build
cd build
cmake ../ -DINSTALL_UDEV_RULES=ON
make
sudo make install
sudo ldconfig

Edit the following file /etc/modprobe.d/raspi-blacklist.conf

use your favourite editor like nano or vi

sudo vi /etc/modprobe.d/raspi-blacklist.conf

add the following lines in the file.
blacklist dvb_usb_rtl28xxu
blacklist rtl2832
blacklist rtl2830

Save and exist

You need to reboot. so just run sudo shutdown -r 0

Run this command sudo rtl_test -t to test the compiled driver

Now you maybe see a error like this:

pi@raspberrypi ~/rtl-sdr/build $ rtl_test -t
Found 1 device(s):
  0:  Generic, RTL2832U, SN: =

Using device 0: Generic RTL2832U
usb_open error -3
Please fix the device permissions, e.g. by installing the udev rules file rtl-sdr.rules
Failed to open rtlsdr device #0.

Need edit rtl-sdr.rules file

sudo vi /etc/udev/rules.d/rtl-sdr.rules

find the line and change it like this

SUBSYSTEMS=="usb", ATTRS{idVendor}=="0bda", ATTRS{idProduct}=="2832", MODE:="0666", GROUP="adm", SYMLINK+="rtl_sdr"

now you re-run this command sudo rtl_test -t to test. In my case the output look like this:

pi@raspberrypi ~ $ rtl_test -t
Found 1 device(s):
  0:  Generic, RTL2832U, SN: 77771111153705700

Using device 0: Generic RTL2832U
Found Rafael Micro R820T tuner
Supported gain values (29): 0.0 0.9 1.4 2.7 3.7 7.7 8.7 12.5 14.4 15.7 16.6 19.7 20.7 22.9 25.4 28.0 29.7 32.8 33.8 36.4 37.2 38.6 40.2 42.1 43.4 43.9 44.5 48.0 49.6 
Sampling at 2048000 S/s.
No E4000 tuner found, aborting.

To run the rtl server type rtl_tcp -a X.X.X.X , use you ip address of your Pi replace x.x.x.x.

Have Fun.