From a72e063fe2a6d0d5bfd76af698bb5175226456de Mon Sep 17 00:00:00 2001 From: John-Mark Gurney Date: Fri, 17 Apr 2020 02:46:01 -0700 Subject: [PATCH] initial work to get gnuradio working audio doesn't work yet, not sure why, but it's somewhat close in that aplay -l lists the device, but can't get sox or gnuradio to output to a device.. --- Vagrantfile | 18 ++++++++++++++++++ bootstrap.sh | 10 ++++++++++ 2 files changed, 28 insertions(+) create mode 100644 Vagrantfile create mode 100644 bootstrap.sh diff --git a/Vagrantfile b/Vagrantfile new file mode 100644 index 0000000..2bcefad --- /dev/null +++ b/Vagrantfile @@ -0,0 +1,18 @@ +Vagrant.configure("2") do |config| + config.vm.box = "hashicorp/bionic64" + config.ssh.forward_x11 = true + + config.vm.provider 'virtualbox' do |v| + #v.customize ["modifyvm", :id, '--audio', 'coreaudio', '--audiocontroller', 'hda'] + + v.customize ['modifyvm', :id, '--usb', 'on'] + v.customize ['modifyvm', :id, '--usbehci', 'on'] + v.customize ["usbfilter", "add", "0", + "--target", :id, + "--name", "RTLSDR1", + "--manufacturer", "Realtek", + "--product", "RTL2838UHIDIR"] + end + + config.vm.provision :shell, path: "bootstrap.sh" +end diff --git a/bootstrap.sh b/bootstrap.sh new file mode 100644 index 0000000..9ead4bd --- /dev/null +++ b/bootstrap.sh @@ -0,0 +1,10 @@ +apt-get update +apt-get install -y xauth +apt-get install -y gnuradio +apt-get install -y gr-osmosdr + +# audio +#apt-get install -y linux-sound-base alsa-utils +#modprobe snd-hda-intel +#echo "options snd_hda_intel index=0" >> /etc/modprobe.d/alsa-base.conf +#sudo usermod -a -G audio vagrant