<?xml version="1.0"?>
<feed xmlns="http://www.w3.org/2005/Atom" xml:lang="en">
	<id>https://charlesreid1.com/w/index.php?action=history&amp;feed=atom&amp;title=HackRF%2FVirtualBox</id>
	<title>HackRF/VirtualBox - Revision history</title>
	<link rel="self" type="application/atom+xml" href="https://charlesreid1.com/w/index.php?action=history&amp;feed=atom&amp;title=HackRF%2FVirtualBox"/>
	<link rel="alternate" type="text/html" href="https://charlesreid1.com/w/index.php?title=HackRF/VirtualBox&amp;action=history"/>
	<updated>2026-06-19T15:00:06Z</updated>
	<subtitle>Revision history for this page on the wiki</subtitle>
	<generator>MediaWiki 1.39.12</generator>
	<entry>
		<id>https://charlesreid1.com/w/index.php?title=HackRF/VirtualBox&amp;diff=10817&amp;oldid=prev</id>
		<title>Admin: Created page with &quot;=Instructions: Debian Virtualbox=  These are instructions for how to get the HackRF working with a Macbook Pro running OS X, by running the HackRF through a Debian VirtualBox....&quot;</title>
		<link rel="alternate" type="text/html" href="https://charlesreid1.com/w/index.php?title=HackRF/VirtualBox&amp;diff=10817&amp;oldid=prev"/>
		<updated>2016-06-04T22:37:59Z</updated>

		<summary type="html">&lt;p&gt;Created page with &amp;quot;=Instructions: Debian Virtualbox=  These are instructions for how to get the HackRF working with a Macbook Pro running OS X, by running the HackRF through a Debian VirtualBox....&amp;quot;&lt;/p&gt;
&lt;p&gt;&lt;b&gt;New page&lt;/b&gt;&lt;/p&gt;&lt;div&gt;=Instructions: Debian Virtualbox=&lt;br /&gt;
&lt;br /&gt;
These are instructions for how to get the HackRF working with a Macbook Pro running OS X, by running the HackRF through a Debian VirtualBox.&lt;br /&gt;
&lt;br /&gt;
==Create Debian VirtualBox==&lt;br /&gt;
&lt;br /&gt;
I created a VirtualBox running Debian 8.4 and the XFCE desktop. &lt;br /&gt;
&lt;br /&gt;
==Install Libhackrf==&lt;br /&gt;
&lt;br /&gt;
Next step was to install HackRF libraries:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ aptitude search hackrf&lt;br /&gt;
$ apt-get install libhackrf0 libhackrf-dev&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Switch to Sid==&lt;br /&gt;
&lt;br /&gt;
Next step was to install GnuRadio. Unfortunately, the version in the stable Debian repos, 3.7.5, is too old to work with osmosdr. &lt;br /&gt;
&lt;br /&gt;
The unstable Debian repo, sid, has version 3.7.9, which was late enough to work with osmosdr.&lt;br /&gt;
&lt;br /&gt;
Guess I&amp;#039;m upgrading to sid (unstable Debian). Instructions: https://www.digitalocean.com/community/tutorials/upgrading-debian-to-unstable&lt;br /&gt;
&lt;br /&gt;
The short version is:&lt;br /&gt;
* edit your &amp;lt;code&amp;gt;/etc/apt/sources.list&amp;lt;/code&amp;gt; to replace stable repos with unstable repos&lt;br /&gt;
* run &amp;lt;code&amp;gt;apt-get update&amp;lt;/code&amp;gt;&lt;br /&gt;
* run &amp;lt;code&amp;gt;apt-get dist-upgrade&amp;lt;/code&amp;gt;&lt;br /&gt;
* run &amp;lt;code&amp;gt;reboot&amp;lt;/code&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Install GnuRadio==&lt;br /&gt;
&lt;br /&gt;
Okay, now install gnuradio:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ apt-get install gnuradio gnuradio-dev&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Install Cmake and Boost==&lt;br /&gt;
&lt;br /&gt;
We also need cmake to build osmosdr stuff, and boost because osmosdr links to it.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ apt-get install cmake&lt;br /&gt;
$ apt-get install libboost-dev libboost-all-dev&lt;br /&gt;
$ ldconfig&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Install GnuRadio Osmo SDR Stuff==&lt;br /&gt;
&lt;br /&gt;
To successfully use a HackRF with Gnu Radio, you need version 3.7 or later, and GnuRadio Osmo SDR block.&lt;br /&gt;
&lt;br /&gt;
Follow these instructions for installing the block: http://sdr.osmocom.org/trac/wiki/GrOsmoSDR&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
git clone git://git.osmocom.org/gr-osmosdr&lt;br /&gt;
cd gr-osmosdr&lt;br /&gt;
mkdir build&lt;br /&gt;
cd build&lt;br /&gt;
cmake ../&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will generate a makefile that you can use to build the osmo blocks for gnuradio.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
make clean&lt;br /&gt;
make &lt;br /&gt;
sudo make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Whatever you do, &amp;#039;&amp;#039;&amp;#039;do not&amp;#039;&amp;#039;&amp;#039; use &amp;lt;code&amp;gt;make -j2&amp;lt;/code&amp;gt;, or the Python SWIG bindings will be broken.&lt;br /&gt;
&lt;br /&gt;
===Testing GnuRadio Osmocom Blocks===&lt;br /&gt;
&lt;br /&gt;
To test that the Osmo sdr stuff was installed correctly, open Gnu Radio Companion:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ gnuradio-companion&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Look for an Osmo source block, listed under &amp;quot;Sources&amp;quot;:&lt;br /&gt;
&lt;br /&gt;
[[Image:GnuRadioOsmocom.png|500px]]&lt;br /&gt;
&lt;br /&gt;
=Instructions: Andy&amp;#039;s Ham Radio Linux=&lt;br /&gt;
&lt;br /&gt;
==Download KB1OIQ Andy&amp;#039;s Ham Radio Linux==&lt;br /&gt;
&lt;br /&gt;
Start by downloading Andy&amp;#039;s Ham Radio Linux. This is a Debian distribution with a slew of useful radio programs, including NEC, the antenna simulation software. This also comes with gnuradio, gqrx, and other useful sdr tools, so this is a good candidate operating system to get the HackRF working.&lt;br /&gt;
&lt;br /&gt;
Alternatively, you can use Pentoo, which is recommended by the HackRF folks, or Kali, although I understand some people have had a harder time with SDR after the January 2016 rolling release of Kali. You can also use the Gnu Radio Companion virtualbox provided by the Gnu Radio project, which runs Ubuntu.&lt;br /&gt;
&lt;br /&gt;
https://github.com/mossmann/hackrf/wiki/Getting-Started-with-HackRF-and-GNU-Radio&lt;br /&gt;
&lt;br /&gt;
==Install KB1OIQ Linux==&lt;br /&gt;
&lt;br /&gt;
Once you&amp;#039;ve downloaded Andy&amp;#039;s Ham Radio Linux and run it, you&amp;#039;ll see that it is relatively spartan - it&amp;#039;s using icewm, good for older, junky machines. Everything has an early 90s feel. You can take a look around at all the programs available: [[Andys Ham Radio Linux]]&lt;br /&gt;
&lt;br /&gt;
===Get a Reasonable Terminal===&lt;br /&gt;
&lt;br /&gt;
the xterm that comes with Any&amp;#039;s ham radio linux is terrible, horrible, ugly, awful, and cruddy. Update it first thing:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ apt-get install gnome-terminal&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
===Get a Reasonable Key Repeat Rate===&lt;br /&gt;
&lt;br /&gt;
Another problem is the keyboard repeat rate, which is by default set to wait for about 6 seconds before it starts repeating, and only repeats about 3 characters per second. Absuuuuuuurd.&lt;br /&gt;
&lt;br /&gt;
You can fix this by using the xset command. This command fixes the repeat rate once, if executed from the command line:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
xset r 120 70&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
To make this happen every time, add this command to the list of things icewm does when it starts the x server. Edit the file:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ vim /etc/X11/icewm/startup&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
abd add the line&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
xset r rate 120 70&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
now everything should work fine - log out, log back in, and test it out.&lt;br /&gt;
&lt;br /&gt;
==Install Libhackrf==&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
apt-get install libhackrf0 libhackrf-dev&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
==Install GnuRadio Osmo SDR Stuff==&lt;br /&gt;
&lt;br /&gt;
To successfully use a HackRF with Gnu Radio, you need version 3.7 or later, and GnuRadio Osmo SDR block.&lt;br /&gt;
&lt;br /&gt;
Follow these instructions for installing the block: http://sdr.osmocom.org/trac/wiki/GrOsmoSDR&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
git clone git://git.osmocom.org/gr-osmosdr&lt;br /&gt;
cd gr-osmosdr&lt;br /&gt;
mkdir build&lt;br /&gt;
cd build&lt;br /&gt;
cmake ../&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
This will generate a makefile that you can use to build the osmo blocks for gnuradio.&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
make clean&lt;br /&gt;
make &lt;br /&gt;
sudo make install&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Whatever you do, &amp;#039;&amp;#039;&amp;#039;do not&amp;#039;&amp;#039;&amp;#039; use &amp;lt;code&amp;gt;make -j2&amp;lt;/code&amp;gt;, or the Python SWIG bindings will be broken.&lt;br /&gt;
&lt;br /&gt;
===Testing GnuRadio Osmocom Blocks===&lt;br /&gt;
&lt;br /&gt;
To test that the Osmo sdr stuff was installed correctly, open Gnu Radio Companion, and look for an Osmo source block, listed under &amp;quot;Sources&amp;quot;:&lt;br /&gt;
&lt;br /&gt;
[[Image:GnuRadioOsmocom.png|500px]]&lt;br /&gt;
&lt;br /&gt;
==Test Drive The HackRF==&lt;br /&gt;
&lt;br /&gt;
Now that you&amp;#039;ve installed all the requisite software, you&amp;#039;re ready to run GnuRadio with an Osmocom SDR source, which is what will allow you to use the HackRF with GnuRadio and receive signals from it.&lt;br /&gt;
&lt;br /&gt;
Start by plugging in the HackRF and making sure it is present and visible by the computer:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ hackrf_info&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
Download the FM receiver test (the HackRF equivalent of &amp;quot;Hello world&amp;quot;) from here: http://github.com/rrobotics/hackrf-tests&lt;br /&gt;
&lt;br /&gt;
Now run the FM receiver test from the command line. You should hear some static from your speakers:&lt;br /&gt;
&lt;br /&gt;
&amp;lt;pre&amp;gt;&lt;br /&gt;
$ python fm_radio_rx.py&lt;br /&gt;
&amp;lt;/pre&amp;gt;&lt;br /&gt;
&lt;br /&gt;
=Flags=&lt;br /&gt;
&lt;br /&gt;
{{HackRFFlag}}&lt;/div&gt;</summary>
		<author><name>Admin</name></author>
	</entry>
</feed>