{"id":10462,"date":"2014-04-20T01:06:18","date_gmt":"2014-04-20T01:06:18","guid":{"rendered":"http:\/\/zerokidz.com\/ideas\/?p=10462"},"modified":"2014-06-24T17:21:46","modified_gmt":"2014-06-24T21:21:46","slug":"rtlsdr-ubuntu-installation","status":"publish","type":"post","link":"https:\/\/reactivemusic.net\/?p=10462","title":{"rendered":"rtlsdr &#8211; Ubuntu installation"},"content":{"rendered":"<div class=\"panel callout\">\n<p>Notes for Ubuntu 14.04 LTS<\/p>\n<\/div>\n<h3>Basic install:<\/h3>\n<p>1. use instructions at\u00a0<a href=\"http:\/\/sdr.osmocom.org\/trac\/wiki\/rtl-sdr\">http:\/\/sdr.osmocom.org\/trac\/wiki\/rtl-sdr<\/a><\/p>\n<p>You will also need to install the following dependencies:<\/p>\n<ul>\n<li>git<\/li>\n<li>cmake<\/li>\n<li>make<\/li>\n<li>libusb-1.0<\/li>\n<li>sox (optional)<\/li>\n<\/ul>\n<div><\/div>\n<h3>Two issues:<\/h3>\n<ul>\n<li>rtlsdr device gets captured by OS, preventing application access<\/li>\n<li>Standard installation process doesn&#8217;t allow non-root users to use a device<\/li>\n<\/ul>\n<h3>To prevent OS from capturing device&#8230;<\/h3>\n<p>Set up a blacklist file as explained in this post:<\/p>\n<p><a href=\"https:\/\/groups.google.com\/forum\/#!msg\/ultra-cheap-sdr\/6_sSON94Azo\/sOkhU81YINIJ\">https:\/\/groups.google.com\/forum\/#!msg\/ultra-cheap-sdr\/6_sSON94Azo\/sOkhU81YINIJ<\/a><\/p>\n<p>As the message suggests, there are two solutions. \u00a0The quickest is to<br \/>\nsimply unload the driver:<\/p>\n<p>sudo rmmod dvb_usb_rtl28xxu rtl2832<\/p>\n<p>Not sure whether &#8220;rtl2832&#8221; on the end there is required or not, but it<br \/>\ncan&#8217;t hurt. \u00a0This is only a temporary solution, as the driver will be<br \/>\nloaded again the next time you unplug and replug the USB device, so<br \/>\nyou&#8217;ll have to run the command again.<\/p>\n<p>If this works, and you don&#8217;t want to use the device for TV reception,<br \/>\nyou can stop the module from ever being loaded, solving the problem<br \/>\npermanently. \u00a0The exact method depends on your Linux distribution, but<br \/>\nfor me (running Arch Linux) I create a file in \/etc\/modprobe.d with<br \/>\na .conf extension (I called it &#8220;no-rtl.conf&#8221;) with these contents:<\/p>\n<p>blacklist dvb_usb_rtl28xxu<br \/>\nblacklist rtl2832<br \/>\nblacklist rtl2830<\/p>\n<p>Again not sure whether it&#8217;s necessary to blacklist all three of these<br \/>\nor just the first, but I was erring on the side of caution and chose to<br \/>\nlist everything to do with the Realtek DVB device.<\/p>\n<p>Once you have created this blacklist file, you may need to unload the<br \/>\ndriver one last time if it was already running &#8211; the blacklist<br \/>\nprevents it from loading but doesn&#8217;t do anything if it&#8217;s already<br \/>\nrunning.<\/p>\n<h3>To allow non-root users to use the device&#8230;<\/h3>\n<p>Set up a udev rule as explained in this post:<\/p>\n<p><a href=\"http:\/\/www.instructables.com\/id\/rtl-sdr-on-Ubuntu\/step3\/Setup-udev-rules\/\">http:\/\/www.instructables.com\/id\/rtl-sdr-on-Ubuntu\/step3\/Setup-udev-rules\/<\/a><\/p>\n<p>Next, you need to add some udev rules to make the dongle available for the non-root users. First you want to find the vendor id and product id for your dongle.<\/p>\n<p>The way I did this was to run:<\/p>\n<p>lsusb<\/p>\n<p>The last line was the Realtek dongle:<br \/>\nBus 001 Device 008: ID 0bda:2838 Realtek Semiconductor Corp.<\/p>\n<p>The important parts are &#8220;0bda&#8221; (the vendor id) and &#8220;2838&#8221; (the product id).<\/p>\n<p>Create a new file as root named \/etc\/udev\/rules.d\/20.rtlsdr.rules that contains the following line:<\/p>\n<p>SUBSYSTEM==&#8221;usb&#8221;, ATTRS{idVendor}==&#8221;0bda&#8221;, ATTRS{idProduct}==&#8221;2838&#8243;, GROUP=&#8221;adm&#8221;, MODE=&#8221;0666&#8243;, SYMLINK+=&#8221;rtl_sdr&#8221;<\/p>\n<p>With the vendor and product ids for your particular dongle. This should make the dongle accessible to any user in the adm group. and add a \/dev\/rtl_sdr symlink when the dongle is attached.<\/p>\n<p>It&#8217;s probably a good idea to unplug the dongle, restart udev (sudo restart udev) and re-plug in the dongle at this point.<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n<p>&nbsp;<\/p>\n","protected":false},"excerpt":{"rendered":"<p>Notes for Ubuntu 14.04 LTS Basic install: 1. use instructions at\u00a0http:\/\/sdr.osmocom.org\/trac\/wiki\/rtl-sdr You will also need to install the following dependencies: git cmake make libusb-1.0 sox (optional) Two issues: rtlsdr device gets captured by OS, preventing application access Standard installation process doesn&#8217;t allow non-root users to use a device To prevent OS from capturing device&#8230; Set &hellip; <\/p>\n<p class=\"link-more\"><a href=\"https:\/\/reactivemusic.net\/?p=10462\" class=\"more-link\">Continue reading<span class=\"screen-reader-text\"> &#8220;rtlsdr &#8211; Ubuntu installation&#8221;<\/span><\/a><\/p>\n","protected":false},"author":2,"featured_media":0,"comment_status":"closed","ping_status":"open","sticky":false,"template":"","format":"standard","meta":{"_coblocks_attr":"","_coblocks_dimensions":"","_coblocks_responsive_height":"","_coblocks_accordion_ie_support":"","footnotes":""},"categories":[230,21],"tags":[296,190,57,254,243],"class_list":["post-10462","post","type-post","status-publish","format-standard","hentry","category-development","category-dsp","tag-notebook","tag-portfolio","tag-radio","tag-rtl-sdr","tag-software-defined-radio"],"yoast_head":"<!-- This site is optimized with the Yoast SEO plugin v27.6 - https:\/\/yoast.com\/product\/yoast-seo-wordpress\/ -->\n<title>rtlsdr - Ubuntu installation - reactive music<\/title>\n<meta name=\"robots\" content=\"index, follow, max-snippet:-1, max-image-preview:large, max-video-preview:-1\" \/>\n<link rel=\"canonical\" href=\"https:\/\/reactivemusic.net\/?p=10462\" \/>\n<meta property=\"og:locale\" content=\"en_US\" \/>\n<meta property=\"og:type\" content=\"article\" \/>\n<meta property=\"og:title\" content=\"rtlsdr - Ubuntu installation - reactive music\" \/>\n<meta property=\"og:description\" content=\"Notes for Ubuntu 14.04 LTS Basic install: 1. use instructions at\u00a0http:\/\/sdr.osmocom.org\/trac\/wiki\/rtl-sdr You will also need to install the following dependencies: git cmake make libusb-1.0 sox (optional) Two issues: rtlsdr device gets captured by OS, preventing application access Standard installation process doesn&#8217;t allow non-root users to use a device To prevent OS from capturing device&#8230; Set &hellip; Continue reading &quot;rtlsdr &#8211; Ubuntu installation&quot;\" \/>\n<meta property=\"og:url\" content=\"https:\/\/reactivemusic.net\/?p=10462\" \/>\n<meta property=\"og:site_name\" content=\"reactive music\" \/>\n<meta property=\"article:published_time\" content=\"2014-04-20T01:06:18+00:00\" \/>\n<meta property=\"article:modified_time\" content=\"2014-06-24T21:21:46+00:00\" \/>\n<meta name=\"author\" content=\"Tom Zicarelli\" \/>\n<meta name=\"twitter:card\" content=\"summary_large_image\" \/>\n<meta name=\"twitter:label1\" content=\"Written by\" \/>\n\t<meta name=\"twitter:data1\" content=\"Tom Zicarelli\" \/>\n\t<meta name=\"twitter:label2\" content=\"Est. reading time\" \/>\n\t<meta name=\"twitter:data2\" content=\"2 minutes\" \/>\n<script type=\"application\/ld+json\" class=\"yoast-schema-graph\">{\"@context\":\"https:\\\/\\\/schema.org\",\"@graph\":[{\"@type\":\"Article\",\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/?p=10462#article\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/?p=10462\"},\"author\":{\"name\":\"Tom Zicarelli\",\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/#\\\/schema\\\/person\\\/56224d281582df7e5518e037ca63e571\"},\"headline\":\"rtlsdr &#8211; Ubuntu installation\",\"datePublished\":\"2014-04-20T01:06:18+00:00\",\"dateModified\":\"2014-06-24T21:21:46+00:00\",\"mainEntityOfPage\":{\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/?p=10462\"},\"wordCount\":489,\"keywords\":[\"notebook\",\"portfolio\",\"radio\",\"rtl-sdr\",\"software defined radio\"],\"articleSection\":[\"development\",\"DSP\"],\"inLanguage\":\"en-US\"},{\"@type\":\"WebPage\",\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/?p=10462\",\"url\":\"https:\\\/\\\/reactivemusic.net\\\/?p=10462\",\"name\":\"rtlsdr - Ubuntu installation - reactive music\",\"isPartOf\":{\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/#website\"},\"datePublished\":\"2014-04-20T01:06:18+00:00\",\"dateModified\":\"2014-06-24T21:21:46+00:00\",\"author\":{\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/#\\\/schema\\\/person\\\/56224d281582df7e5518e037ca63e571\"},\"breadcrumb\":{\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/?p=10462#breadcrumb\"},\"inLanguage\":\"en-US\",\"potentialAction\":[{\"@type\":\"ReadAction\",\"target\":[\"https:\\\/\\\/reactivemusic.net\\\/?p=10462\"]}]},{\"@type\":\"BreadcrumbList\",\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/?p=10462#breadcrumb\",\"itemListElement\":[{\"@type\":\"ListItem\",\"position\":1,\"name\":\"Home\",\"item\":\"https:\\\/\\\/reactivemusic.net\\\/\"},{\"@type\":\"ListItem\",\"position\":2,\"name\":\"rtlsdr &#8211; Ubuntu installation\"}]},{\"@type\":\"WebSite\",\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/#website\",\"url\":\"https:\\\/\\\/reactivemusic.net\\\/\",\"name\":\"reactive music\",\"description\":\"\",\"potentialAction\":[{\"@type\":\"SearchAction\",\"target\":{\"@type\":\"EntryPoint\",\"urlTemplate\":\"https:\\\/\\\/reactivemusic.net\\\/?s={search_term_string}\"},\"query-input\":{\"@type\":\"PropertyValueSpecification\",\"valueRequired\":true,\"valueName\":\"search_term_string\"}}],\"inLanguage\":\"en-US\"},{\"@type\":\"Person\",\"@id\":\"https:\\\/\\\/reactivemusic.net\\\/#\\\/schema\\\/person\\\/56224d281582df7e5518e037ca63e571\",\"name\":\"Tom Zicarelli\",\"image\":{\"@type\":\"ImageObject\",\"inLanguage\":\"en-US\",\"@id\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0da58cf21a2707dd335b204b8ed3cd9194dcbf9d9814ac5d71195a65c76c8a72?s=96&d=mm&r=g\",\"url\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0da58cf21a2707dd335b204b8ed3cd9194dcbf9d9814ac5d71195a65c76c8a72?s=96&d=mm&r=g\",\"contentUrl\":\"https:\\\/\\\/secure.gravatar.com\\\/avatar\\\/0da58cf21a2707dd335b204b8ed3cd9194dcbf9d9814ac5d71195a65c76c8a72?s=96&d=mm&r=g\",\"caption\":\"Tom Zicarelli\"},\"sameAs\":[\"http:\\\/\\\/tomzicarelli.com\"],\"url\":\"https:\\\/\\\/reactivemusic.net\\\/?author=2\"}]}<\/script>\n<!-- \/ Yoast SEO plugin. -->","yoast_head_json":{"title":"rtlsdr - Ubuntu installation - reactive music","robots":{"index":"index","follow":"follow","max-snippet":"max-snippet:-1","max-image-preview":"max-image-preview:large","max-video-preview":"max-video-preview:-1"},"canonical":"https:\/\/reactivemusic.net\/?p=10462","og_locale":"en_US","og_type":"article","og_title":"rtlsdr - Ubuntu installation - reactive music","og_description":"Notes for Ubuntu 14.04 LTS Basic install: 1. use instructions at\u00a0http:\/\/sdr.osmocom.org\/trac\/wiki\/rtl-sdr You will also need to install the following dependencies: git cmake make libusb-1.0 sox (optional) Two issues: rtlsdr device gets captured by OS, preventing application access Standard installation process doesn&#8217;t allow non-root users to use a device To prevent OS from capturing device&#8230; Set &hellip; Continue reading \"rtlsdr &#8211; Ubuntu installation\"","og_url":"https:\/\/reactivemusic.net\/?p=10462","og_site_name":"reactive music","article_published_time":"2014-04-20T01:06:18+00:00","article_modified_time":"2014-06-24T21:21:46+00:00","author":"Tom Zicarelli","twitter_card":"summary_large_image","twitter_misc":{"Written by":"Tom Zicarelli","Est. reading time":"2 minutes"},"schema":{"@context":"https:\/\/schema.org","@graph":[{"@type":"Article","@id":"https:\/\/reactivemusic.net\/?p=10462#article","isPartOf":{"@id":"https:\/\/reactivemusic.net\/?p=10462"},"author":{"name":"Tom Zicarelli","@id":"https:\/\/reactivemusic.net\/#\/schema\/person\/56224d281582df7e5518e037ca63e571"},"headline":"rtlsdr &#8211; Ubuntu installation","datePublished":"2014-04-20T01:06:18+00:00","dateModified":"2014-06-24T21:21:46+00:00","mainEntityOfPage":{"@id":"https:\/\/reactivemusic.net\/?p=10462"},"wordCount":489,"keywords":["notebook","portfolio","radio","rtl-sdr","software defined radio"],"articleSection":["development","DSP"],"inLanguage":"en-US"},{"@type":"WebPage","@id":"https:\/\/reactivemusic.net\/?p=10462","url":"https:\/\/reactivemusic.net\/?p=10462","name":"rtlsdr - Ubuntu installation - reactive music","isPartOf":{"@id":"https:\/\/reactivemusic.net\/#website"},"datePublished":"2014-04-20T01:06:18+00:00","dateModified":"2014-06-24T21:21:46+00:00","author":{"@id":"https:\/\/reactivemusic.net\/#\/schema\/person\/56224d281582df7e5518e037ca63e571"},"breadcrumb":{"@id":"https:\/\/reactivemusic.net\/?p=10462#breadcrumb"},"inLanguage":"en-US","potentialAction":[{"@type":"ReadAction","target":["https:\/\/reactivemusic.net\/?p=10462"]}]},{"@type":"BreadcrumbList","@id":"https:\/\/reactivemusic.net\/?p=10462#breadcrumb","itemListElement":[{"@type":"ListItem","position":1,"name":"Home","item":"https:\/\/reactivemusic.net\/"},{"@type":"ListItem","position":2,"name":"rtlsdr &#8211; Ubuntu installation"}]},{"@type":"WebSite","@id":"https:\/\/reactivemusic.net\/#website","url":"https:\/\/reactivemusic.net\/","name":"reactive music","description":"","potentialAction":[{"@type":"SearchAction","target":{"@type":"EntryPoint","urlTemplate":"https:\/\/reactivemusic.net\/?s={search_term_string}"},"query-input":{"@type":"PropertyValueSpecification","valueRequired":true,"valueName":"search_term_string"}}],"inLanguage":"en-US"},{"@type":"Person","@id":"https:\/\/reactivemusic.net\/#\/schema\/person\/56224d281582df7e5518e037ca63e571","name":"Tom Zicarelli","image":{"@type":"ImageObject","inLanguage":"en-US","@id":"https:\/\/secure.gravatar.com\/avatar\/0da58cf21a2707dd335b204b8ed3cd9194dcbf9d9814ac5d71195a65c76c8a72?s=96&d=mm&r=g","url":"https:\/\/secure.gravatar.com\/avatar\/0da58cf21a2707dd335b204b8ed3cd9194dcbf9d9814ac5d71195a65c76c8a72?s=96&d=mm&r=g","contentUrl":"https:\/\/secure.gravatar.com\/avatar\/0da58cf21a2707dd335b204b8ed3cd9194dcbf9d9814ac5d71195a65c76c8a72?s=96&d=mm&r=g","caption":"Tom Zicarelli"},"sameAs":["http:\/\/tomzicarelli.com"],"url":"https:\/\/reactivemusic.net\/?author=2"}]}},"_links":{"self":[{"href":"https:\/\/reactivemusic.net\/index.php?rest_route=\/wp\/v2\/posts\/10462","targetHints":{"allow":["GET"]}}],"collection":[{"href":"https:\/\/reactivemusic.net\/index.php?rest_route=\/wp\/v2\/posts"}],"about":[{"href":"https:\/\/reactivemusic.net\/index.php?rest_route=\/wp\/v2\/types\/post"}],"author":[{"embeddable":true,"href":"https:\/\/reactivemusic.net\/index.php?rest_route=\/wp\/v2\/users\/2"}],"replies":[{"embeddable":true,"href":"https:\/\/reactivemusic.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcomments&post=10462"}],"version-history":[{"count":7,"href":"https:\/\/reactivemusic.net\/index.php?rest_route=\/wp\/v2\/posts\/10462\/revisions"}],"predecessor-version":[{"id":14032,"href":"https:\/\/reactivemusic.net\/index.php?rest_route=\/wp\/v2\/posts\/10462\/revisions\/14032"}],"wp:attachment":[{"href":"https:\/\/reactivemusic.net\/index.php?rest_route=%2Fwp%2Fv2%2Fmedia&parent=10462"}],"wp:term":[{"taxonomy":"category","embeddable":true,"href":"https:\/\/reactivemusic.net\/index.php?rest_route=%2Fwp%2Fv2%2Fcategories&post=10462"},{"taxonomy":"post_tag","embeddable":true,"href":"https:\/\/reactivemusic.net\/index.php?rest_route=%2Fwp%2Fv2%2Ftags&post=10462"}],"curies":[{"name":"wp","href":"https:\/\/api.w.org\/{rel}","templated":true}]}}