Raspberry Pi


Flash SD card on Mac:

$ diskutil list
$ diskutil unmount /dev/disk2s1
$ sudo dd if=/Desktop/2015-02-16-raspbian-wheezy.img of=/dev/rdisk2 bs=1m

Boot the Pi connected to Ethernet.

Find Pi:

$ sudo nmap -sP

Look for:

Nmap scan report for
Host is up (0.00093s latency).
MAC Address: B8:27:EB:8D:96:58 (Raspberry Pi Foundation)

SSH to Pi:

ssh pi@

Password is ‘raspberry’.

$ sudo raspi-config

Advanced Options -> Update Expand Filesystem

Finish to reboot.

$ sudo apt-get update && sudo apt-get upgrade

Running VNC server

$ sudo apt-get install tightvncserver
$ tightvncserver
$ vncserver :1 -geometry 1280x720 -depth 24

Start client on mac (RealVNC) and connect to

Tunnel VNC

$ ssh -L 5901:localhost:5901 -N -f -l pi billeberga.homeip.net

Ham Radio

Some useful things for hams.

$ sudo apt-get install xastir
$ sudo apt-get install fldigi

Raspberry Pi B+ is reportedly too slow for fldigi.


$ git clone https://github.com/JamesP6000/WsprryPi.git
$ cd WsprryPi
$ make
$ sudo ./wspr -o -r --self-calibration [YOUR_CALL] [YOUR_GRID] 10 40m

rtl-sdr on Raspberry Pi

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

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

To block the kernel driver from claming the device we need to blacklist it.

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

Add the following lines:

blacklist dvb_usb_rtl28xxu
blacklist rtl2832
blacklist rtl2830

To be able to run the rtl programs as a normal user you need to create a rules file for the dongle.

First run lsusb.

$ lsusb
Bus 001 Device 002: ID 0424:9514 Standard Microsystems Corp. 
Bus 001 Device 001: ID 1d6b:0002 Linux Foundation 2.0 root hub
Bus 001 Device 003: ID 0424:ec00 Standard Microsystems Corp. 
Bus 001 Device 006: ID 0bda:2838 Realtek Semiconductor Corp. RTL2838 DVB-T

The last line is the important one. Take note of the ID. The first part of it is the vendor ID and the second the product ID.

Now create the file /etc/udev/rules.d/20.rtlsdr.rules with the content:

SUBSYSTEM=="usb", ATTRS{idVendor}=="0bda", ATTRS{idProduct}=="2838", GROUP="adm", MODE="0666", SYMLINK+="rtl_sdr"

After these changes we need to reboot.

[ IndexPage | Edit on Github | Powered by PotBliki | © 2010-2014 Daniel Hjort - CC BY-SA 3.0 | http://danielhjort.net ]

blog comments powered by Disqus