User Tools

Site Tools


softwarelinux

Differences

This shows you the differences between two versions of the page.

Link to this comparison view

softwarelinux [2015/09/17 23:05]
roklobsta
softwarelinux [2016/07/16 02:15] (current)
roklobsta
Line 10: Line 10:
 ==== Getting SDR# Running in Linux ==== ==== Getting SDR# Running in Linux ====
  
-As of 14 September 2015 SDR# works again in Linux on x86/x64 and ARM using Mono!  This has been tested on Linux Mint 17.2 and an Odroid XU4.+As of 14 September 2015 SDR# (along with AstroSpy and SpectrumSpy) and works again in Linux on x86/x64 and ARM using Mono!  This has been tested on Linux Mint 18 x64 and an Odroid XU4.
  
-The fact that SDR# worked in Mono at all was a happy accident. ​ The author did not intend this and is not obligated to keep the code backwards-compatible with Mono.+The fact that SDR# worked in Mono at all was a happy accident. ​ The author did not intend this and is not obligated to keep the code backwards-compatible with Mono.  Any performance issues with SDR# in Mono are a problem with Mono **NOT** SDR# - //do not complain about SDR# on Linux until Mono gets much better at executing .net code//.
  
 There are 2 ways to do this, you can use the PlayOnLinux way shown in [[http://​f4bpp.raidghost.com/​articles.php?​lng=fr&​pg=75&​tconfig=0|Français ici]] and [[http://​f4bpp.raidghost.com/​articles.php?​lng=en&​pg=75&​tconfig=0|English here]] or the Mono way detailed below. There are 2 ways to do this, you can use the PlayOnLinux way shown in [[http://​f4bpp.raidghost.com/​articles.php?​lng=fr&​pg=75&​tconfig=0|Français ici]] and [[http://​f4bpp.raidghost.com/​articles.php?​lng=en&​pg=75&​tconfig=0|English here]] or the Mono way detailed below.
  
-== Instructions ==+== Instructions ​(updated 16 Jul 2016) ==
  
-  * Install ''​mono''​ 4.0.4 (or later) for your distro from [[http://​www.mono-project.com/​download/#​download-lin|here]]. ​ This is the Linux version of Microsoft'​s .net.+  * Install ''​mono''​ 4.4 (or later) for your distro from [[http://​www.mono-project.com/​download/#​download-lin|here]]. ​ This is the Linux version of Microsoft'​s .net.
   * Install ''​libportaudio2''​ to make sure sound works. ​ <​code>​sudo apt-get install libportaudio2</​code>​   * Install ''​libportaudio2''​ to make sure sound works. ​ <​code>​sudo apt-get install libportaudio2</​code>​
   * RTLSDR users: ​ I used the cmake version as detailed [[http://​sdr.osmocom.org/​trac/​wiki/​rtl-sdr#​Buildingthesoftware|here]]. ​ Don't forget to run ''​ldconfig''​ as root at the end to sort the newly installed libraries out.   * RTLSDR users: ​ I used the cmake version as detailed [[http://​sdr.osmocom.org/​trac/​wiki/​rtl-sdr#​Buildingthesoftware|here]]. ​ Don't forget to run ''​ldconfig''​ as root at the end to sort the newly installed libraries out.
-  * Airspy users: Download and install the host drivers from [[https://​github.com/​airspy/​host/​|here]]. +  * Airspy users: Download and install the host drivers from [[https://​github.com/​airspy/​host/​|here]].  Don't forget to blacklist the kernel driver as mentioned [[https://​github.com/​airspy/​host/​wiki/​Troubleshooting]here]. 
-  * Download the latest zipfile copy of SDR# from [[http://​airspy.com/​download|here]] ​- you will need to make an account first.+  * Download the latest zipfile copy of SDR# from [[http://​airspy.com/​download|here]].
   * Unzip to a new directory.   * Unzip to a new directory.
   * ''​cd''​ into the new SDR# directory and type the following: <​code>​ln -s /​usr/​local/​lib/​librtlsdr.so librtlsdr.dll   * ''​cd''​ into the new SDR# directory and type the following: <​code>​ln -s /​usr/​local/​lib/​librtlsdr.so librtlsdr.dll
Line 29: Line 29:
   * With your favourite text editor open ''​FrontEnds.xml''​ and find the line <​code> ​  <​!-- <add key="​RTL-SDR (USB)" value="​SDRSharp.RTLSDR.RtlSdrIO,​SDRSharp.RTLSDR"​ /> --></​code>​ and remove .net comments of so that it looks like: <​code><​add key="​RTL-SDR (USB)" value="​SDRSharp.RTLSDR.RtlSdrIO,​SDRSharp.RTLSDR"​ /></​code> ​ This will enable use of the RTLSDR dongle. Comment out any radios you don't have so you don't get any startup errors and exceptions for non-existent radios.   * With your favourite text editor open ''​FrontEnds.xml''​ and find the line <​code> ​  <​!-- <add key="​RTL-SDR (USB)" value="​SDRSharp.RTLSDR.RtlSdrIO,​SDRSharp.RTLSDR"​ /> --></​code>​ and remove .net comments of so that it looks like: <​code><​add key="​RTL-SDR (USB)" value="​SDRSharp.RTLSDR.RtlSdrIO,​SDRSharp.RTLSDR"​ /></​code> ​ This will enable use of the RTLSDR dongle. Comment out any radios you don't have so you don't get any startup errors and exceptions for non-existent radios.
   * Before running SDRSharp you can compile it so that it may run a bit faster. ​ To compile do: <​code>​mono --aot --optimize=all --optimize=float32 SDRSharp.exe</​code>​   * Before running SDRSharp you can compile it so that it may run a bit faster. ​ To compile do: <​code>​mono --aot --optimize=all --optimize=float32 SDRSharp.exe</​code>​
-  * Type ''​mono SDRSharp.exe''​ and you should see something like the screenshot below! +  * Type ''​mono ​--optimize=float32 ​SDRSharp.exe''​ and you should see something like the screenshot below! 
-  * If you get audio stutter (I do on my i7 CPU!) change the audio latency from 100ms to 200ms or more.  It seems Mono doesn'​t run SDR# anywhere as efficiently as the native Windows CLR.  I have tried --optimize=all and also the --llvm options and it doesn'​t seem to help.  Any advice appreciated!+  * If you get audio stutter (I do on my old i7-720QM ​CPU!) change the audio latency from 100ms to 200ms or more.  It seems Mono doesn'​t run SDR# anywhere as efficiently as the native Windows CLR.  I have tried --optimize=all and also the --llvm options and it doesn'​t seem to help.  Any advice appreciated!
   * Be sure to select **[ALSA] Default** as audio output, otherwise you may experience audio stutter.   * Be sure to select **[ALSA] Default** as audio output, otherwise you may experience audio stutter.
 {{:​sdrs1368.png?​nolink|}} {{:​sdrs1368.png?​nolink|}}
softwarelinux.1442523940.txt.gz · Last modified: 2015/09/17 23:05 by roklobsta