HOWTO Run D-RATS on Raspberry Pi

1. Introduction

These instructions worked with the Raspberry Pi Debian image  Raspbian "wheezy", which you can download here:

The latest at the time of this HOWTO writing was:   

The Soft Float Debian "wheezy" image may also work, but this has not been tested. If it works, it would allow the same Rasberry Pi to run a DVAP and D-RATS.  

The installation instructions that follow assume you have already have a working Rasberry Pi running Debian Raspbian "wheezy".


2. Installation

2.1 Open a command shell.

2.2 Get the latest updates. Enter:

       sudo apt-get update

2.3 Wait for the update to complete.

2.4 Enter:

      sudo apt-get upgrade     

2.5 Wait for the upgrade to complete 

2.6 Repeat 2.2 - 2.5 until no more updates are found.

2.7 The release version of D-RATS is avaiable in the Raspbian "wheezy" Apt repository. D-RATS also needs  for the following packages to be installed:

       python-libxml2 python-libxslt1 python-serial python-glade2    

Installing D-RATS from the repository will install everything D-RATS needs to run, except one package:


It will have to be installed via an additional apt-get command.    

2.8 Enter:

       sudo apt-get install d-rats

2.9 Wait for the installation to complete. This will install all of the packages listed in 2.7 except python-glade2, which will take some  time.

2.10 Install python-glade2. Enter:

        sudo apt-get install python-glade2       

2.11 Wait for the install to complete. Again, this may take some time, and may install more packages required by python-glade2.

2.12 Installation is complete, you may now run d-rats and configure it for your needs.

3. Post Installation Notes

3.1   To use D-RATS with a real radio, the Raspberry Pi user must be included in the "dialout" group to access the serial port. To add user pi (the Raspberry Pi default user) enter:

        sudo usermod -a -G dialout pi

If you're using a different user name, sustitute that name  for pi.

3.2 You must use an USB to RS-232 serial dongle to talk to a D-STAR radio on the Radpberry Pi. I'm currently using using FTDI chipset adapters and they work great. I recommend plugging in the USB adapter before starting D-RATS. Mine plugged directly into the Rasberry Pi, but using a powered USB hub might be a good thing to add, because my Raspberry Pi ocassionally restarts when I plug in the USB erial adapter, I believe because plugging in the USB serial adapter causes the USB port to "starve" for energy as the USB dongle powers up.