SuseInstall

OpenSuse 12.1 Instructions
sudo zypper install cmake cppunit-devel doxygen fftw3-devel git gsl-devel libjack-devel libqt4-devel libqwtplot3d-devel libSDL-devel libusb-1_0-devel orc portaudio portaudio-devel python-cheetah python-devel python-lxml python-wxGTK python-wxWidgets-devel qwt-devel wxWidgets-devel xmlto To build gr-qtgui, you might have to point cmake to the location of the header files:

cmake -DQWT_INCLUDE_DIRS=/usr/include/qwt5

Previous Versions
'''NOTE: Things have been changing in GNU Radio since this was last touched. It could probably use some updating.'''

This information should work for openSUSE 11.1, and also hopefully SuSE 10.1.

If you choose to use downloadable packages, get the most recent package version, then use rpm to install ( package_filename).

To install dependencies using the YAST2 package manager, issue &quot;sudo /sbin/yast2&quot; and a GUI will be brought up. Search for each package to install, find the correct package name, then hit the spacebar to mark it for installation.


 * gnuradio-core:

As of GNU Radio 3.2, in order for 'configure' to execute, you need the following YAST2 packages, if they are not already installed:

* autoconf, automake, libtool, make

* python-devel

* swig

* fftw3-devel

* cppunit-devel

* boost-devel

* guile

* gsl-devel

* doxygen

* texlive-latex

In order to execute some parts of gnuradio-core (a runtime dependency), you will need to install NUMPY either from package or from source (http://numpy.scipy.org/). If from source, after extracting execute &quot;sudo python setup.py install&quot;.

For GNU Radio 3.5, to build with cmake, also install

* cmake, cmake-gui


 * GRC: Install the following using YAST2:

* python-lxml

* python-gtk

* libxslt-python

You will also need to install Cheetah from source (http://www.cheetahtemplate.org/). After extracting, execute &quot;sudo python setup.py install&quot;.


 * USRP and related components:

* Install the following using yast2:

* libusb-devel (the 0.1 series, not the 1.0 series)

* You will need also install SDCC either from package or source (http://sdcc.sourceforge.net/). If from source, then you also need to install using yast2:

* bison

* flex

before doing the usual &quot;./configure &amp;&amp; make &amp;&amp; sudo make install&quot;.


 * SDL-video: Install the following using YAST2:

* SDL-devel


 * WXGUI: Install the following using YAST2:

* python-wxGTK


 * JACK audio: Install the following using YAST2:

* libjack-devel


 * PortAudio audio: Install the following using YAST2:

* libportaudio-devel


 * ALSA audio: Install the following using YAST2:

* alsa-devel


 * QTGUI: Install the following using YAST2:

* libqt4-devel

You will also need to install from package or source QWT (http://qwt.sourceforce.net/) and QwtPlot3d (http://qwtplot3d.sourceforge.net/). For QWT for the usual Linux installation, you need to edit qwtconfig.pri and change the 'INSTALLBASE' to '/usr/local', and 'headers.path' to '$$INSTALLBASE/include/qwt'; then execute 'qmake &amp;&amp; make &amp;&amp; sudo make install'. For QwtPlot3d, ignore the error when unpacking the tarball; issue &quot;qmake &amp;&amp; make&quot; to make. To install, use the following script from the qwtplot3d top-level directory:

sudo mkdir /usr/local/include/qwtplot3d (cd include; tar cf - . | (cd /usr/local/include/qwtplot3d; sudo tar xf -)) tar cf - lib | (cd /usr/local; sudo tar xf -) Then follow instructions at BuildGuide.

Accessing the USRP as a non-root user
SuSE 10.1 uses &quot;udev&quot; rather than &quot;hotplug&quot; to automatically handle plug/unplug events for usb devices. To allow users other than root to use the USRP, follow these directions.

= Installing GnuRadio and the USRP on Suse 10.1 for the Linux-impaired. =

Version 0.21 7 November 2006

What you will need:


 * PC with USB 2.0 and DVD drive,
 * Suse 10.1 DVD,
 * USRP,
 * An internet connection,
 * The better part of an afternoon.

INSTALLING LINUX
Boot from the DVD. Don't use the CD version; it is missing fftw3f.pc and the FFTW package will not install.

Choose your language of choice and click on NEXT.

Select &quot;YES&quot; to accept the license and click on NEXT.

On the &quot;System Analysis&quot; screen select &quot;New Installation&quot; and click on NEXT.

On the &quot;Time Zone&quot; screen set up your clock and click on NEXT.

On the &quot;Desktop&quot; screen select &quot;Gnome&quot; and click on NEXT.

On the &quot;Installation Summary&quot; screen click on &quot;Software&quot; (it should be displaying &quot;Standard Software Gnome 2&quot;).

The &quot;Software Selection&quot; screen appears. Click on &quot;Details&quot; to customize your selection.

Select &quot;Package Groups&quot; as the Filter; you should get a tree on the left of the screen.

Click on the &quot;development&quot; branch; click on the &quot;package&quot; menu on the toolbar, scroll down to &quot;All in this list,&quot; in the pull down menu, then select &quot;Install.&quot;

Under the &quot;Development&quot; tree, click on &quot;KDE&quot; sub-branch; click on the &quot;package&quot; menu on the toolbar, scroll down to &quot;All in this list,&quot; in the pull down menu, then select &quot;Do not install.&quot;

Under the &quot;Productivity&quot; tree, click on &quot;Scientific&quot; sub-branch; click on the &quot;package&quot; menu on the toolbar, scroll down to &quot;All in this list,&quot; in the pull down menu, then select &quot;Install.&quot;

Click on the &quot;Libraries&quot; tree; click on the &quot;package&quot; menu on the toolbar, scroll down to &quot;All in this list,&quot; in the pull down menu, then select &quot;Install.&quot;

Click on &quot;Accept.&quot;

You will get a pop-up window with three warnings. Click on the circles next to &quot;do not install flex-old&quot; for the first two warnings and click on the circle next to &quot;do not install gtkl-compat-devel&quot; for the remaining warning.

Click on the &quot;OK, try again&quot; button at the bottom of the pop up window.

An Adobe license window appears; click on the &quot;Accept&quot; button.

A flash player license window appears, click on the &quot;Cancel&quot; button.

The &quot;Installation Settings&quot; window reappears after a long pause.

Click on &quot;Accept&quot; at the lower right hand corner.

A &quot;Confirm&quot; window appears; click &quot;Install.&quot;

A &quot;Package Installation&quot; screen appears. Click on the &quot;Details&quot; tab to watch the progress of the install. This would be a good time to take a break; installation will

take about 1 hour to complete.

The system will reboot and the Install screen re-appears.

Enter your hostname and domain and click on Next.

Enter your root password and click on Next. Write down your root password so you don't forget it!

A &quot;Network Configuration&quot; screen appears. If you have DHCP set up, select that option and click on Next.

A &quot;Test Connection&quot; window appears. Click on Next. Assuming all is well with the connection, click on Next again after the test is complete.

An &quot;Online Update&quot; screen appears; select &quot;Configure now&quot; and click on Next.

Wait for a while for the server to be selected.

An &quot;Online Update Configuration&quot; window appears; click on &quot;OK.&quot;

Click on the circle next to &quot;Run Update,&quot; then click on Next.

An &quot;Update Select&quot; screen appears; click on &quot;Accept&quot;

The YAST package will now be updated. You can update the rest of your system later.

After &quot;Total Progress&quot; reaches 100%, click on Next.

After a pause, the &quot;Update Select&quot; screen reappears. Click on Cancel.

The &quot;Authentication Method&quot; screen appears. Click on the circle next to &quot;Local.&quot;

The &quot;New Local User&quot; screen appears. Enter your name, username, and password.

The &quot;Release Notes&quot; screen appears. Click on Next.

The &quot;Hardware Configuration&quot; screen appears. Click on Next.

The &quot;Installation Complete&quot; screen appears. Click on Finish.

Congratulations! You have a shiny new Suse 10.1 box!

INSTALLING SDCC
Log on to your account (not root).

You need to install the SDCC package. You can install from source or use the Suse RPMs.

Installing from source:

Get the source tarball from Sourceforge at

http://sourceforge.net/project/showfiles.php?group_id=599.

(it will be called &quot;sdcc-src-2.6.0.tar.gz&quot; unless a newer version is available now)

Put the tarball in your home directory.

Double-click on the icon for the tarball. A window will appear; click on &quot;Extract.&quot;

Click on &quot;Extract&quot; in the new window that appears. This will create a directory called

&quot;SDCC&quot; in your home directory.

Open up a terminal. (Click on &quot;Applications&quot; on the menu toolbar,scroll up to

&quot;System&quot; in the menu that appears,scroll down to &quot;Terminal&quot; in the next menu that

appears, then click on &quot;Gnome Terminal&quot; in yet another menu that appears)

In the terminal window, type &quot;cd SDCC&quot; and hit Enter.

Now type &quot;./configure&quot; and hit Enter.

Now type &quot;make&quot; and hit Enter.

now type &quot;sudo make install&quot; and hit Enter.

When asked for the root password, enter it.

type &quot;cd ..&quot; and hit Enter.

Installing from Suse RPMs

Get the RPMs from sourceforge:

http://sourceforge.net/project/showfiles.php?group_id=599&amp;package_id=111949

You need two packages, sdcc-common-2.4.0-1.noarch.rpm and sdcc-2.4.0-1-SL90.i586.rpm.

Open up a terminal. (Click on &quot;Applications&quot; on the menu toolbar,scroll up to

&quot;System&quot; in the menu that appears,scroll down to &quot;Terminal&quot; in the next menu that

appears, then click on &quot;Gnome Terminal&quot; in yet another menu that appears)

Install both RPMs with the command

rpm -ivh sdcc*.rpm

INSTALLING GNURADIO
Now it's time to install GnuRadio itself.

Type &quot;svn co !http://gnuradio.org/svn/gnuradio/trunk gnuradio&quot; and hit Enter.

The most current version of GnuRadio is now being loaded onto you machine. When

it's done, note the revision number for future reference.

Type &quot;cd gnuradio&quot; and hit Enter.

Type &quot;./bootstrap&quot; and hit Enter.

Type &quot;./configure&quot; and hit Enter.

You are now ready to install everything except:

gr-audio-osx

gr-audio-portaudio

gr-audio-windows

gr-comedi

gr-ezdop

ezdop

If you needed any of these you willl need to track down the missing dependencies and

install them.

type &quot;make&quot; and hit Enter.

type &quot;make check&quot; and hit Enter.

type &quot;sudo make install&quot; and hit Enter.

When asked for the root password, enter it.

At this point, with a little luck, you have an operational installation.

EXPLORING THE USRP
Connect your USRP (power and USB 2 cables)

There is a tiny little green LED underneath the &quot;A&quot; side receive daughtercard.

It should be flashing at a few times per second.

For the moment you will need to have root priviledges to access the USRP. A procedure to

remove this requirement will appear in the next version of this walkthrough.

type &quot;su&quot; and hit Enter. When prompted for a password, type the root password and hit Enter.

type &quot;export PYTHONPATH=~/gnuradio/lib/python2.4/site-packages&quot; and hit Enter.

You should put this command in your startup file so you won't have to enter it

every time you start up a shell. Instructions will appear will appear in the next version

of this walkthrough.

Type &quot;cd gnuradio-examples/python/usrp&quot; and hit Enter.

Type &quot;python test_counting.py&quot; and hit Enter.

The green LED should be blinking more slowly to indicate a successful load.

You should see messages from &quot;gr_check_counting,&quot; with the final message saying something about &quot;enter_LOCKED.&quot;

Type a &quot;control-C&quot; character to exit the test.

Type &quot;python benchmark_usb.py&quot; anfd hit Enter.

You should see tests of the USB link up to 32 MB/sec with &quot;OK&quot; displayed after each test.

If you have a daughtercard installed in the &quot;A&quot; connector, you can run a spectrum analyzer.

Type &quot;python usrp_fft.py -d 64 -f 10000000&quot; and hit Enter.

You are now looking at a GUI display of a 1 MHz segment of spectrum centered at 10 MHz.

To change the bandwidth, enter an even decimation factor (256 or lower down to 4) into the &quot;Decim&quot; field.

To change the center frequency, enter the frequency (in Hz) into the &quot;Center freq&quot; field.

You can also enter the frequency in Mhz followed by a capital &quot;M&quot;

At this point you are ready to start exploring the full potential of your new system!