Editing WindowsInstall

Jump to: navigation, search

Warning: You are not logged in. Your IP address will be publicly visible if you make any edits. If you log in or create an account, your edits will be attributed to your username, along with other benefits.

The edit can be undone. Please check the comparison below to verify that this is what you want to do, and then save the changes below to finish undoing the edit.
Latest revision Your text
Line 108: Line 108:
 
Enable WSL from windows features.  
 
Enable WSL from windows features.  
 
    
 
    
Install Ubuntu 20.04 (or newer) from Microsoft Store.     
+
Install Ubuntu from Microsoft Store.     
 
    
 
    
Using the Ubuntu terminal, install gnuradio as you would on linux [https://wiki.gnuradio.org/index.php/InstallingGR#Ubuntu_PPA_Installation]. If you want to develop GNU Radio's core you will need to build GNU Radio from source.
+
Using the Ubuntu terminal, install gnuradio as you would on linux [https://wiki.gnuradio.org/index.php/InstallingGR#Ubuntu_PPA_Installation]
 
 
==== WSL 1/2 (before WSLg) ====
 
  
 
Install additional package "libgtk-3-dev"   
 
Install additional package "libgtk-3-dev"   
Line 118: Line 116:
 
   sudo apt install libgtk-3-dev
 
   sudo apt install libgtk-3-dev
 
    
 
    
WSL 1 and 2 (before WSLg) do not have an X server for displaying graphical applications. Install an X server, either VcXsrv [https://sourceforge.net/projects/vcxsrv/] or Xming [https://sourceforge.net/projects/xming/] as WSL does not come with an X server. VcXsrv is recommended as it is open source and self-contained instead of being tied to Cygwin, whereas Xming "asks for donations" to the developer as a dubious "sale" for non-existent support.
+
Install an X server, either VcXsrv [https://sourceforge.net/projects/vcxsrv/] or Xming [https://sourceforge.net/projects/xming/] as WSL does not come with an X server. VcXsrv is recommended as it is open source and self-contained instead of being tied to Cygwin, whereas Xming "asks for donations" to the developer as a dubious "sale" for non-existent support.
  
 
Launch VcXsrv, making sure to select "Disable access control" option in the Extra settings so that any application can export to X11.
 
Launch VcXsrv, making sure to select "Disable access control" option in the Extra settings so that any application can export to X11.
 
    
 
    
Edit '''bashrc''' to set up the display by adding the following lines at the bottom of the file.  
+
Edit '''bashrc''' to set up the display by adding the following line at the bottom of the file   
 
 
'''WSL1:'''
 
 
 
  # X11 forwarding for Windows
 
  export DISPLAY=:0.0
 
  export LIBGL_ALWAYS_INDIRECT=1
 
 
 
'''WSL2:'''
 
 
 
 
   # X11 forwarding for Windows
 
   # X11 forwarding for Windows
 
   export DISPLAY=$(awk '/nameserver / {print $2; exit}' /etc/resolv.conf 2>/dev/null):0
 
   export DISPLAY=$(awk '/nameserver / {print $2; exit}' /etc/resolv.conf 2>/dev/null):0
Line 138: Line 127:
 
Restart the Ubuntu terminal and run   
 
Restart the Ubuntu terminal and run   
 
   gnuradio-companion
 
   gnuradio-companion
 
==== WSLg ====
 
 
Currently in early testing stages, the WSLg update contains a Wayland graphics server and X interface layer allowing graphical applications to run without extra setup.
 
 
From the Ubuntu terminal run 
 
  gnuradio-companion
 
 
=== Using an Azure VM ===
 
 
Another way to generate a GNU Radio environment if you're using Windows, is to create an Azure Virtual Machine running Ubuntu Server 18.04 LTS.
 
 
If you already have an existing Azure account you can follow the instructions here[https://docs.microsoft.com/en-us/azure/virtual-machines/linux/quick-create-portal] to create an Ubuntu VM using the Azure portal.  Otherwise, you can sign up for an account here[https://signup.azure.com]. Azure provides free accounts for students[https://azure.microsoft.com/en-us/free/students/] with a limited set of credits.
 
 
Once your VM is created you should be able to SSH into it, to install a desktop environment. Full instructions can be found here, but in summary:
 
Install xfce
 
  sudo apt-get update
 
  sudo apt-get -y install xfce4
 
Install xrdp as a remote desktop server
 
  sudo apt-get -y install xrdp
 
  sudo systemctl enable xrdp
 
Configure xrdp to use xfce
 
  echo xfce4-session >~/.xsession
 
Restart the xrdp service
 
  sudo service xrdp restart
 
 
You will need to create a local password for your Linux VM (on top of your existing SSH key), and open port 3389[https://docs.microsoft.com/en-us/azure/virtual-machines/windows/nsg-quickstart-portal] on the VM.
 
 
Finally you can use a remote desktop client, such as Remote Desktop Connection to connect to your VM and follow the instructions for GNU Radio on Ubuntu found here[https://wiki.gnuradio.org/index.php/InstallingGR#Ubuntu_PPA_Installation].
 
  
 
== Known Windows Build Issues ==
 
== Known Windows Build Issues ==

Please note that all contributions to GNU Radio are considered to be released under the Creative Commons Attribution-ShareAlike (see GNU Radio:Copyrights for details). If you do not want your writing to be edited mercilessly and redistributed at will, then do not submit it here.
You are also promising us that you wrote this yourself, or copied it from a public domain or similar free resource. Do not submit copyrighted work without permission!

To edit this page, please answer the question that appears below (more info):

Cancel | Editing help (opens in new window)