Account Options

  1. Sign in
The old Google Groups will be going away soon, but your browser is incompatible with the new version.
Google Groups Home
« Groups Home
How to install from scratch in Ubuntu 11.04
There are currently too many topics in this group that display first. To make this topic appear first, remove this option from another topic.
There was an error processing your request. Please try again.
flag
  4 messages - Collapse all  -  Translate all to Translated (View all originals)
The group you are posting to is a Usenet group. Messages posted to this group will make your email address visible to anyone on the Internet.
Your reply message has not been sent.
Your post was successful
 
From:
To:
Cc:
Followup To:
Add Cc | Add Followup-to | Edit Subject
Subject:
Validation:
For verification purposes please type the characters you see in the picture below or the numbers you hear by clicking the accessibility icon. Listen and type the numbers you hear
 
Ulrik Brinck - Kanal Plus  
View profile  
 More options Jul 1 2011, 8:08 pm
From: "Ulrik Brinck - Kanal Plus" <ul...@kanalplus.fm>
Date: Sat, 2 Jul 2011 02:08:02 +0200
Local: Fri, Jul 1 2011 8:08 pm
Subject: How to install from scratch in Ubuntu 11.04
Hi,
During the last month I have been working to find out how to install all the needed software for transmitting DAB+ from scratch on Ubuntu 11.04. Some of it was absolutely not straight-forward in this Linux distro, but with good help from particularly Pascal Charest in this mailing list (thank you Pascal!), I succeeded in the end. So here, I will describe step-by-step how it can be done.

Please note:
- The OS in my case is Ubuntu 11.04, 32 bit version, standard version (not the server version). Hardware is Ettus USRP1 and WBX daughterboard. I have not tried it with other OS or hardware.
- I only intend to describe how to install all the software, not how to use it after installation. But how to use it is pretty much the same as on the mmbTools live cd, based on Ubuntu 9.04. Note however, that crc-dabmod, crc-dwap.py and crc-dabplus are installed with their names in lower case, so they must be called with lower case names also in your shell script.
- You will need to know how to unpack a tarball (.tar.gz og .tar.bz2 file). For tar.gz it's "tar xvzf package.tar.gz", and for tar.bz2 it's "tar xvjf package.tar.bz2".
- I installed on a brand new Ubuntu 11.04 installation after installing all the OS updates offered by the Update Manager.
- There might be some of it which can be done in an easier way, but I'm not that experienced with Linux, and this is what worked for me.

Step 0:
Begin with "sudo apt-get update" to make sure that you can install all that you need.

Step 1: Installation of Gnuradio 3.3.0. This is needed for USRP1 with WBX.
a) First "sudo apt-get build-dep gnuradio" (takes quite some time).
b) Then go to this page:
http://gnuradio.org/redmine/projects/gnuradio/wiki/UbuntuInstall
and install all the dependencies as mentioned in the first step there (for Ubuntu 10.04 plus the additional line for 11.04). Do NOT continue with the next step (Installing GNU Radio) on that page. Instead -
c) Download and unpack this file:
http://ftp.gnu.org/gnu/gnuradio/gnuradio-3.3.0.tar.gz (be default it goes to a "Downloads" folder in your homedir, this is fine).
d) Before you can compile it, you will need to apply a patch as described here:
http://lists.nongnu.org/archive/html/discuss-gnuradio/2011-05/msg0010...
But it was not so easy to apply the patch directly from that page, so you might want to just patch it manually instead (in fact, that's what I did) :
To patch it manually, open ~/Downloads/gnuradio-3.3.0/usrp2/host/lib/usrp2.cc with a text editor. In line 41, 43 and 73 change "usrp2::usrp2" into just "usrp2". That's all, then save and close.
e) Now you can compile it as described in the file ~/Downloads/gnuradio-3.3.0/INSTALL . It's "./configure", "make", "make check" and "sudo make install".
f) Then back to this page:
http://gnuradio.org/redmine/projects/gnuradio/wiki/UbuntuInstall
and scroll down to "Configuring USRP support" and perform the steps mentioned there. I chose to reboot the pc after this, to be absolutely sure that the USRP support would work. Note: The section also mentions that an UHD driver can be installed from the ettus.com homepage, but you don't need to do that.
g) At the end of the "Configuring USRP support" section of that page, there are some test you can perform to test that the USRP is available to Ubuntu. The "./usrp_benchmark_usb.py" test fails, but it doesn't matter in our case. The "./test_usrp_standard_tx" should however go well and a.o. show that your daughterboard is WBX (if that is actually what it is).

Step 2: Crc-DabMod and CRC-Dwap.py.
a) Download CRC-DabMod from the CRC homepage, http://mmbtools.crc.ca/content/view/37/63/ , unpack it and compile as described in ~/Downloads/crc-dabmod-0.2.0/INSTALL . It's "./configure --disable-debug", "make" and "sudo make install".
b) Then go here http://mmbtools.crc.ca/content/view/37/63/ and download CRC-Dwap.py for Gnuradio 3.3 .
c) Navigate to /usr/local/bin and replace the existing crc-dwap.py with the new one that you have just downloaded (rename it into crc-dwap.py (lower case) so that it's name becomes exactly the same as the old one). Then set it's permissions: "sudo chmod a+x crc-dwap.py".

Step 3: Crc-DabMux and Libfec.
a) First some necessary software: "sudo apt-get install devscripts". Note: This will also install a mail server (postfix) and ask you for a configuration, but, unless you actually want a mail server, you can just select "OK" and then "No configuration" (do not just close the terminal window).
b) And "sudo apt-get install debhelper" (you might already have this).
c) Go to http://mmbtools.crc.ca/content/view/39/65/ and download and unpack CRC-DabMux and Libfec 3.0.1-2.
d) Inside the Libfec 3.0.1-2 package are some more packages and a README file. Be sure to do EXACTLY as described in that README file.
e) Compile CRC-DabMux as described in ~/Downloads/crc-dabmux-0.3.0.4/INSTALL. It's just the usual way, "./compile", "make" and "sudo make install".

Step 4: Buffer software.
On the mmbTools live cd, the "bfr" buffer is used between CRC-DabMux and CRC-DabMod. But on this Ubuntu 11.04 system, my experience is, that bfr sometimes stops working and hangs the whole system. Instead I use mbuffer, which works better for me:
a) "sudo apt-get install mbuffer".

Step 5: CRC-DabPlus.
Note: CRC-DabPlus is not free, because of HE-AAC royalty, but can be bought from CRC. If you don't have or want CRC-DabPlus, you can skip this step.
Note: Together with CRC-DabPlus came HASP (for the software protection dongle) and Libfec. You already installed Libfec in step 3, so you don't have to do it again now.
a) Install HASP as described in the README-html which came with CRC-DabPlus (sudo dpkg -i *.deb).
b) As mentioned on http://opendigitalradio.org/index.php/CRC-dabplus there is a bit more to do, and for me it was a bit different in Ubuntu 11.04, this is what works for me: Open /etc/rc.local with a text editor (with root privileges, for example "sudo gedit /etc/rc.local") and insert the following lines before the existing "exit 0":
sudo mount --bind /dev/bus /proc/bus
sudo ln -s /sys/kernel/debug/usb/devices /proc/bus/usb/devices
sudo /usr/sbin/aksusbd restart

c) Insert the dongle in an empty USB slot and reboot the computer. License for CRC-DabPlus is now ready.
d) Install CRC-DabPlus as described in the README.html.

Step 6: AudioScience ASI504x sound cards.
In the README.html which came with CRC-DabPlus is described how to use it together with AudioScience sound cards. It also tells how to install the AudioScience cards, but this is NOT necessary in Ubuntu 11.04. It already works "out of the box". However the GUI sound control panel does not work correctly with these cards, so if you need to change it's configuration, you must use the non-GUI alsamixer (type "alsamixer" in a terminal window).

That's it. Now you're ready to set up your DAB multiplex.

Best wishes,
Ulrik.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Ulrik Brinck - Kanal Plus  
View profile  
 More options Jul 1 2011, 8:13 pm
From: "Ulrik Brinck - Kanal Plus" <ul...@kanalplus.fm>
Date: Sat, 2 Jul 2011 02:13:01 +0200
Local: Fri, Jul 1 2011 8:13 pm
Subject: How to install from scratch in Ubuntu 11.04
Sorry, there was a wrong link in the first version - let's try again:

Hi,
During the last month I have been working to find out how to install all the needed software for transmitting DAB+ from scratch on Ubuntu 11.04. Some of it was absolutely not straight-forward in this Linux distro, but with good help from particularly Pascal Charest in this mailing list (thank you Pascal!), I succeeded in the end. So here, I will describe step-by-step how it can be done.

Please note:
- The OS in my case is Ubuntu 11.04, 32 bit version, standard version (not the server version). Hardware is Ettus USRP1 and WBX daughterboard. I have not tried it with other OS or hardware.
- I only intend to describe how to install all the software, not how to use it after installation. But how to use it is pretty much the same as on the mmbTools live cd, based on Ubuntu 9.04. Note however, that crc-dabmod, crc-dwap.py and crc-dabplus are installed with their names in lower case, so they must be called with lower case names also in your shell script.
- You will need to know how to unpack a tarball (.tar.gz og .tar.bz2 file). For tar.gz it's "tar xvzf package.tar.gz", and for tar.bz2 it's "tar xvjf package.tar.bz2".
- I installed on a brand new Ubuntu 11.04 installation after installing all the OS updates offered by the Update Manager.
- There might be some of it which can be done in an easier way, but I'm not that experienced with Linux, and this is what worked for me.

Step 0:
Begin with "sudo apt-get update" to make sure that you can install all that you need.

Step 1: Installation of Gnuradio 3.3.0. This is needed for USRP1 with WBX.
a) First "sudo apt-get build-dep gnuradio" (takes quite some time).
b) Then go to this page:
http://gnuradio.org/redmine/projects/gnuradio/wiki/UbuntuInstall
and install all the dependencies as mentioned in the first step there (for Ubuntu 10.04 plus the additional line for 11.04). Do NOT continue with the next step (Installing GNU Radio) on that page. Instead -
c) Download and unpack this file:
http://ftp.gnu.org/gnu/gnuradio/gnuradio-3.3.0.tar.gz (be default it goes to a "Downloads" folder in your homedir, this is fine).
d) Before you can compile it, you will need to apply a patch as described here:
http://lists.nongnu.org/archive/html/discuss-gnuradio/2011-05/msg0010...
But it was not so easy to apply the patch directly from that page, so you might want to just patch it manually instead (in fact, that's what I did) :
To patch it manually, open ~/Downloads/gnuradio-3.3.0/usrp2/host/lib/usrp2.cc with a text editor. In line 41, 43 and 73 change "usrp2::usrp2" into just "usrp2". That's all, then save and close.
e) Now you can compile it as described in the file ~/Downloads/gnuradio-3.3.0/INSTALL . It's "./configure", "make", "make check" and "sudo make install".
f) Then back to this page:
http://gnuradio.org/redmine/projects/gnuradio/wiki/UbuntuInstall
and scroll down to "Configuring USRP support" and perform the steps mentioned there. I chose to reboot the pc after this, to be absolutely sure that the USRP support would work. Note: The section also mentions that an UHD driver can be installed from the ettus.com homepage, but you don't need to do that.
g) At the end of the "Configuring USRP support" section of that page, there are some test you can perform to test that the USRP is available to Ubuntu. The "./usrp_benchmark_usb.py" test fails, but it doesn't matter in our case. The "./test_usrp_standard_tx" should however go well and a.o. show that your daughterboard is WBX (if that is actually what it is).

Step 2: Crc-DabMod and CRC-Dwap.py.
a) Download CRC-DabMod from the CRC homepage, http://mmbtools.crc.ca/content/view/44/71/ , unpack it and compile as described in ~/Downloads/crc-dabmod-0.2.0/INSTALL . It's "./configure --disable-debug", "make" and "sudo make install".
b) Then go here http://mmbtools.crc.ca/content/view/37/63/ and download CRC-Dwap.py for Gnuradio 3.3 .
c) Navigate to /usr/local/bin and replace the existing crc-dwap.py with the new one that you have just downloaded (rename it into crc-dwap.py (lower case) so that it's name becomes exactly the same as the old one). Then set it's permissions: "sudo chmod a+x crc-dwap.py".

Step 3: Crc-DabMux and Libfec.
a) First some necessary software: "sudo apt-get install devscripts". Note: This will also install a mail server (postfix) and ask you for a configuration, but, unless you actually want a mail server, you can just select "OK" and then "No configuration" (do not just close the terminal window).
b) And "sudo apt-get install debhelper" (you might already have this).
c) Go to http://mmbtools.crc.ca/content/view/39/65/ and download and unpack CRC-DabMux and Libfec 3.0.1-2.
d) Inside the Libfec 3.0.1-2 package are some more packages and a README file. Be sure to do EXACTLY as described in that README file.
e) Compile CRC-DabMux as described in ~/Downloads/crc-dabmux-0.3.0.4/INSTALL. It's just the usual way, "./compile", "make" and "sudo make install".

Step 4: Buffer software.
On the mmbTools live cd, the "bfr" buffer is used between CRC-DabMux and CRC-DabMod. But on this Ubuntu 11.04 system, my experience is, that bfr sometimes stops working and hangs the whole system. Instead I use mbuffer, which works better for me:
a) "sudo apt-get install mbuffer".

Step 5: CRC-DabPlus.
Note: CRC-DabPlus is not free, because of HE-AAC royalty, but can be bought from CRC. If you don't have or want CRC-DabPlus, you can skip this step.
Note: Together with CRC-DabPlus came HASP (for the software protection dongle) and Libfec. You already installed Libfec in step 3, so you don't have to do it again now.
a) Install HASP as described in the README-html which came with CRC-DabPlus (sudo dpkg -i *.deb).
b) As mentioned on http://opendigitalradio.org/index.php/CRC-dabplus there is a bit more to do, and for me it was a bit different in Ubuntu 11.04, this is what works for me: Open /etc/rc.local with a text editor (with root privileges, for example "sudo gedit /etc/rc.local") and insert the following lines before the existing "exit 0":
sudo mount --bind /dev/bus /proc/bus
sudo ln -s /sys/kernel/debug/usb/devices /proc/bus/usb/devices
sudo /usr/sbin/aksusbd restart

c) Insert the dongle in an empty USB slot and reboot the computer. License for CRC-DabPlus is now ready.
d) Install CRC-DabPlus as described in the README.html.

Step 6: AudioScience ASI504x sound cards.
In the README.html which came with CRC-DabPlus is described how to use it together with AudioScience sound cards. It also tells how to install the AudioScience cards, but this is NOT necessary in Ubuntu 11.04. It already works "out of the box". However the GUI sound control panel does not work correctly with these cards, so if you need to change it's configuration, you must use the non-GUI alsamixer (type "alsamixer" in a terminal window).

That's it. Now you're ready to set up your DAB multiplex.

Best wishes,
Ulrik.


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Pascal Charest  
View profile  
 More options Jul 4 2011, 1:57 pm
From: Pascal Charest <pascal.char...@crc.ca>
Date: Mon, 04 Jul 2011 13:57:40 -0400
Local: Mon, Jul 4 2011 1:57 pm
Subject: Re: How to install from scratch in Ubuntu 11.04
Ulrik Brinck - Kanal Plus wrote:

> Hi,
> During the last month I have been working to find out how to install all the needed software for transmitting DAB+ from scratch on Ubuntu 11.04. Some of it was absolutely not straight-forward in this Linux distro, but with good help from particularly Pascal Charest in this mailing list (thank you Pascal!), I succeeded in the end. So here, I will describe step-by-step how it can be done.

Thank you very much Ulrik for taking time to write this detailed HowTo.
I've added a link to your message on our live CD web page:
http://mmbtools.crc.ca/content/view/30/54/

I've also started a new sub-section for external sources in our
documentation section.
http://mmbtools.crc.ca/content/view/35/61/

Regards,

Pascal


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
Chaim  
View profile  
 More options Jul 21 2011, 6:55 am
From: Chaim <chaim....@gmail.com>
Date: Thu, 21 Jul 2011 03:55:49 -0700 (PDT)
Local: Thurs, Jul 21 2011 6:55 am
Subject: Re: How to install from scratch in Ubuntu 11.04
Hi Ulrik,

Thanks for the HowTo! I've followed all the steps till step 5 on a
fresh Ubuntu 11.04 installation, and it worked like a charm. Some
small remarks:

Step 1f: The udev rule finally used was:
SUBSYSTEM=="usb", ACTION=="add", ATTRS{idVendor}=="fffe",
ATTRS{idProduct}=="0002", SYMLINK+="usrp", GROUP:="usrp", MODE:="0660"

Step 3d: Don't forget to install the -dev package as well when using
Ubuntu dpkg (sudo dpkg -i ../libfec3-dev_3.0.1-*.deb). Otherwise
compiling dabmux will fail complaining it isn't able to find the fec.h
file.

Step 3e: Small typo "./compile" should be "./configure"

Regards,
Chaim Zax


 
You must Sign in before you can post messages.
To post a message you must first join this group.
Please update your nickname on the subscription settings page before posting.
You do not have the permission required to post.
End of messages
« Back to Discussions « Newer topic     Older topic »