Created
February 2, 2020 08:13
-
-
Save yoronneko/2c36e0ecc115b37bd08d2171d98b150e to your computer and use it in GitHub Desktop.
ISDB-T one-segment broadcasting reception configuration for GNU Radio with Vagrant
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
# -*- mode: ruby -*- | |
# vi: set ft=ruby : | |
VAGRANTFILE_API_VERSION = "2" | |
Vagrant.configure(VAGRANTFILE_API_VERSION) do |config| | |
config.vm.box = "bento/debian-9.3" | |
config.vm.hostname = "gnuradio" | |
config.vm.provider :virtualbox do |vbox| | |
vbox.name = "gnuradio" | |
vbox.gui = true | |
vbox.cpus = 2 | |
vbox.memory = 4096 | |
vbox.customize [ | |
"modifyvm", :id, | |
"--vram", "256", | |
"--clipboard", "bidirectional", | |
"--draganddrop", "bidirectional", | |
] | |
end | |
config.vm.provision "shell", inline: <<-SHELL | |
#--- | |
apt-get update | |
apt-get upgrade | |
apt-get -y install xrdp task-cinnamon-desktop tigervnc-standalone-server | |
apt-get install -y python-pip git libgmp-dev ffmpeg swig | |
# | |
chown vagrant:vagrant .xsessionrc | |
im-config -n fcitx | |
sudo -u vagrant bash -i -c "export DISPLAY=:0.0 && fcitx -r" | |
cp /etc/xrdp/xrdp.ini /etc/xrdp/xrdp.ini.org | |
cat /etc/xrdp/xrdp.ini.org | gawk '/\\[Globals\\]/,/\\[Xorg\\]/' | sed -e 's/\\[Xorg\\]//' > /etc/xrdp/xrdp.ini | |
cat << EOF >> /etc/xrdp/xrdp.ini | |
[Xvnc] | |
name=Xvnc | |
lib=libvnc.so | |
username=ask | |
password=ask | |
ap=127.0.0.1 | |
port=-1 | |
EOF | |
systemctl restart xrdp | |
systemctl enable xrdp | |
# install pyboms | |
pip install git+https://github.com/gnuradio/pybombs.git | |
cd ~vagrant | |
su vagrant -c "pybombs auto-config" | |
su vagrant -c "pybombs recipes add-defaults" | |
su vagrant -c "pybombs prefix init ~vagrant/prefix -a myprefix -R gnuradio-default" | |
su vagrant -c "pybombs install gr-osmosdr" | |
su vagrant -c "git clone httpd://github.com/git-artes/gr-isdbt.git" | |
cd gr-isdbt | |
su vagrant -c "mkdir build" | |
cd build | |
su vagrant -c "cmake ../" | |
su vagrant -c "make" | |
make install | |
ldconfig | |
cd ~vagrant | |
su vagrant -c "mkfifo test_out.ts" | |
#--- | |
SHELL | |
end |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment