You are here :   Home » SDR# installation with Wine
 
Members area

Connect again :
Your user name :
Your password


  71747 visitors
  1 visitor online

  Count of members 370 members
Connected :
(nobody)
Snif !!!
Newsletter
To receive news about this website, consider subscribing to our Newsletter.
38 Subscribers
Calendar

Software Defined Radio (SDR)


SDR-Sharp.png
 

The only solution to run the program in a Linux environment under Wine for now involves solving three major problems:

Problem n°1 :

Old versions ofSDR#, were originally developed for the Windows ™ operating system and Microsoft Net Framework 3.5. To install the software, we have to  download as a small script that, once launched, recovers all components of the software via Internet. But this script did not work under Linux environment.

Last versions of SDR€ available for download on the author Website are now complete but only works with Microsoft Net Framework 4.6 that is still not available for Wine.

Solution :

Using the last version of SDR# running with Microsoft Net Framework version 3.5 available in "Software/Download" area which includes all components of the program including the Doppler effect correction plugin.


Problème n°2 :

SDR# needs the software "Microsoft.NET Framework 3.5 Service Pack 1" to run. Installing this component on Linux is the most time consuming process because we must first download and install all its previous versions to setup the one needed. However, the automatic recovery of the files systematically fails. The installation is then stopped and the user has to to recover himself the files that must be saved to the right place and each time the setup is interrupted, the whole installation process has to be started again.

Solution :

Using the archive with all the components required to install "Microsoft.NET Framework 3.5 Service Pack 1" that is available in the "Software/Download" area.


Problème n°3 :

SDR# don't detect any hardware on Linux.

Solution :

Using a network gateway to solve the problem.

 

barre-separation.jpg
 

1) Right Click on the desktop and select "Open in a terminal" in the menu. If you already have installed SDR#for Mono you can jump to the step 11.

000.png


2) Now we need to  allow the use of DTT receivers and install the program that will make the bridge between hardware and SDR#. In the terminal window, type the following command and confirm with "Enter":

sudo gedit /etc/modprobe.d/no-rtl.conf

001.png


3) Enter the root password when asked and confirm with "Enter".

002.png


4) In the editor window, add the following lines :

blacklist dvb_usb_rtl28xxu

blacklist rtl2832

blacklist rtl2830

Then click on the "Save" button and close the window.

003.png


5) Next, type the command below and validate with "Enter" :

sudo gedit /etc/sysctl.d/10-ptrace.conf

004.png


6) In the next window, locate the line kernel.yama.ptrace_scope = 1   at the bottom of the screen.

005.png


7) Change the value 1 to 0 (zero) like this : kernel.yama.ptrace_scope = 0

006.png


8) Go to the "File" menu, click on "Save" then close the window.

007.png


9) Back to the terminal window, enter the following command line and validate with "Enter" :

sudo apt-get install -y rtl-sdr

008.png


10) Once the installation is over, you're ready for the next step...

009.png


11) Enter the following lines then press "Enter" :  sudo apt-get install -y winetricks

010.png


12) Once winetricks installed, close the terminal window.

011.png


13) Launch "PlayOnLinux" then click on the "Configure" button at the top-right on the toolbar.

012.png


14) Click on "New" at the bottom-left.

013.png


15) Click on "Next".

014.png


16) Select "32 bits windows installation" even if your operating system is 64 bits.

015.png


17) Then click on "Next".

016.png


18) Name the virtual disk "SDR" then click on "Next".

017.png


19) Wait while the virtual disk is created.

018.png


019.png


20) Once the virtual disk created, close the PlayOnLinux window.

020.png


21) Go to the "Software/Download" area and get the "winetricks" archive.

Download SDR-SHARP-eng.png

22) Save the file to the place of your choice. In this example, it is saved in the "Software" folder on the desktop.

021.png


23) Right-Click beside the archive. In the contextual menu, click on "Open in a terminal".

022.png


24) In the terminal, enter this command and press "Enter" :

tar xvf winetricks.tar.gz -C $HOME/.cache

023.png


25) All the necessary files to install "Microsoft.NET Framework 3.5 Service Pack 1" are copied to the ".cache" folder used by winetricks for the installation process. This will prevent the program to download files and stop the process in case of failure.

024.png

26) To start the setup of Microsoft.NET Framtework 3.5, enter the 3 following commands :

export WINEARCH=win32

export WINEPREFIX=$HOME/.PlayOnLinux/wineprefix/SDR

winetricks -q dotnet35sp1 corefonts

001.png

27) Setup is launched. Be patient, this step is very long...

002.png


28) Once installation is finished, you can close the terminal window.

003.png


29) Download the SDR# for Linux archive.

Download SDR-SHARP-eng.png

30) and save the file in the same place you have choosen for winetricks.

068.png


31) Right click beside the archive's icons and select "Open in a terminal" in the menu.

069.png


32) Enter this command to copy the SDR# directory to the 'SDR' virtual drive that we have created at the beginning of this tutorial :

SDR-Sharp-Command.png

070.png


33) When the SDR# folder is copied to the virtual drive, close the terminal window.

071.png


34) Now, open PlayOnLinux and click on the "Configure" icon on the toolbar.

072.png


35) When the configuration window is opened, "default" virtual drive is selected. Click on "SDR" in the list.

073.png


36) Then, on the right side, click on the "Wine" tab.

074.png


37) Next, click to the "Configure Wine" button.

075.png


38) In the new window, click on the "Libraries" tab.

076.png


39) We are going to install the gdiplus library needed by SDR# to display waterfall.

077.png


40) Type "gdiplus" like the picture below then click on "Add" button to the right.

078.png


41) Select "gdiplus (native, integrated)" in the list then click on "Modify..." button to the right.

079.png


42) Select "native (Windows)" in the list then click on the "OK" button.

080.png

43) Click on "OK" at the bottom of the window.

081.png


44) Next step, click on the "Main" tab then click on the "Create a new shortcut from this virtual disk" button.

082.png


45) Select "SDRSharp.exe" in the list then click on "Next".

083.png


46) Click on "Next".

084.png


47) Select "I don't want to create another icon" at the top of the list then click on "Next".

085.png


48) SDRSharp is now added to the software list.

086.png

49) Click on "SDRSharp" then "Configure" on the left.

004.png


50) Then click on the "Miscellaneous" tab.

005.png


51) In the input area at the bottom of the window, enter the command rtl_tcp & then close the window.

006.png


52) Now use the desktop shortcut of SDR# to start the software.

090.png


53) Welcome to SDR# !

091.png


54) On the left panel, select the "RTL-SDR (TCP)" source.

092.png


55) Then, click on the "Configure" icon just on the left of the speaker icon on the toolbar.

093.png

56) Check the "Host" address which must be set to 127.0.0.1 and the port to 1234. If it is not the case, adjust the settings. Then select the highest "Sample Rate" (3.2 MSPS in this example). To Finish, close the window.

094.png


57) Click on the "Play" icon in the toolbar to start...

095.png


58) SDR# is now running under Linux !

096.png


© David OLIVARES - F4BPP