Difference between revisions of "GNURadio: Ubuntu 11.10 Instal GNURadio 3.6.0"
Onnowpurbo (talk | contribs) (New page: ==Handling USRP== Ubuntu menggunakan udev untuk menangani hotplug devices, dan secara default tidak memberikan akses non-root ke USRP. Script berikut akan memberikan akses bagi us...) |
Onnowpurbo (talk | contribs) |
||
(7 intermediate revisions by the same user not shown) | |||
Line 60: | Line 60: | ||
Download dari http://sourceforge.net/projects/swig/files/swig/ | Download dari http://sourceforge.net/projects/swig/files/swig/ | ||
− | cp swig-2.0. | + | cp swig-2.0.5.tar.gz /usr/local/src/ |
cd /usr/local/src/ | cd /usr/local/src/ | ||
− | tar zxvf swig-2.0. | + | tar zxvf swig-2.0.5.tar.gz |
− | cd /usr/local/src/swig-2.0. | + | cd /usr/local/src/swig-2.0.5/ |
./configure | ./configure | ||
make | make | ||
Line 82: | Line 82: | ||
+ | ==Instal boost== | ||
+ | |||
+ | Instalasi secara manual boost | ||
+ | |||
+ | Download dari http://sourceforge.net/projects/boost/files/boost/1.49.0/boost_1_49_0.zip/download | ||
+ | |||
+ | cp boost_1_49_0.zip /usr/local/src | ||
+ | cd /usr/local/src | ||
+ | unzip boost_1_49_0.zip | ||
+ | chmod -Rf 777 /usr/local/src/boost_1_49_ | ||
+ | mkdir /opt/boost_1_49_0 | ||
+ | BOOST_PREFIX=/opt/boost_1_49_0 | ||
+ | cd /usr/local/src/boost_1_49_0 | ||
+ | ./bootstrap.sh | ||
+ | sudo ./b2 --prefix=$BOOST_PREFIX --with-thread --with-date_time \ | ||
+ | --with-program_options --with-filesystem --with-system \ | ||
+ | --layout=versioned threading=multi variant=release install | ||
+ | |||
+ | ==Siapkan GIT== | ||
+ | |||
+ | Install GIT minimal | ||
+ | |||
+ | apt-get install git-core git | ||
+ | |||
+ | jika ingin lebih eksis dapat menginstalasi lebih lengkap | ||
+ | |||
+ | apt-get install git-core git-doc gitk stgit git-arch git-cvs git-svn git-email gitweb | ||
==Install GNURadio== | ==Install GNURadio== | ||
Line 89: | Line 116: | ||
Download aplikasi [[GNURadio]] dari | Download aplikasi [[GNURadio]] dari | ||
− | http://gnuradio.org/redmine/attachments/download/ | + | http://gnuradio.org/redmine/attachments/download/326/gnuradio-3.6.0.tar.gz |
− | |||
Install [[GNURadio]] | Install [[GNURadio]] | ||
− | cp gnuradio-3. | + | cp gnuradio-3.6.0.tar.gz /usr/local/src/ |
cd /usr/local/src/ | cd /usr/local/src/ | ||
− | tar zxvf gnuradio-3. | + | tar zxvf gnuradio-3.6.0.tar.gz |
− | cd /usr/local/src/gnuradio-3. | + | cd /usr/local/src/gnuradio-3.6.0/ |
− | . | + | cmake ../ |
− | |||
− | |||
− | |||
make | make | ||
− | make | + | make test |
− | make install | + | sudo make install |
sudo ldconfig | sudo ldconfig | ||
+ | |||
+ | |||
+ | ===Error=== | ||
+ | |||
+ | Tidak ada bootstrap | ||
==Edit bashrc== | ==Edit bashrc== | ||
Line 191: | Line 219: | ||
* [[GNURadio: Ubuntu Install]] | * [[GNURadio: Ubuntu Install]] | ||
* [[GNURadio: Ubuntu Install GNURadio 3.4.2]] '''*RECOMMENDED*''' | * [[GNURadio: Ubuntu Install GNURadio 3.4.2]] '''*RECOMMENDED*''' | ||
+ | * [[GNURadio: Ubuntu Install GNURadio 3.4.2 Clock 52MHz]] '''*RECOMMENDED*''' | ||
* [[GNURadio: Contoh Aplikasi]] | * [[GNURadio: Contoh Aplikasi]] | ||
* [[GNURadio: Spectrum Analizer GSM]] | * [[GNURadio: Spectrum Analizer GSM]] | ||
Line 196: | Line 225: | ||
* [[GNURadio: Programming Untuk Pemula]] | * [[GNURadio: Programming Untuk Pemula]] | ||
* [[OpenBTS: Ubuntu Install]] | * [[OpenBTS: Ubuntu Install]] | ||
+ | * [[OpenBTS: Ubuntu Install OpenBTS 2.6 Clock 52MHz]] | ||
* [[OpenBTS: Konfigurasi]] | * [[OpenBTS: Konfigurasi]] | ||
* [[OpenBTS: Kalibrasi]] | * [[OpenBTS: Kalibrasi]] | ||
Line 211: | Line 241: | ||
===OpenBTS 2.8=== | ===OpenBTS 2.8=== | ||
− | * [[GNURadio: Ubuntu 11.10 Install]] '' | + | * [[GNURadio: Ubuntu 11.10 Install]] ''NOT RECOMMENED'' |
− | * [[GNURadio: Ubuntu 11.10 instalasi menggunakan Repo]] | + | * [[GNURadio: Ubuntu 11.10 instalasi menggunakan Repo]] ''NOT RECOMMENDED'' |
+ | * [[GNURadio: Download GNURadio]] | ||
* [[GNURadio: Ubuntu 11.10 Instal GNURadio 3.3.0]] | * [[GNURadio: Ubuntu 11.10 Instal GNURadio 3.3.0]] | ||
* [[GNURadio: Ubuntu 11.10 Instal GNURadio 3.4.2]] | * [[GNURadio: Ubuntu 11.10 Instal GNURadio 3.4.2]] | ||
− | * [[GNURadio: Ubuntu 11.10 Install dari GIT GNURadio]] | + | * [[GNURadio: Ubuntu 11.10 Instal GNURadio 3.5.0]] |
+ | * [[GNURadio: Ubuntu 11.10 Instal GNURadio 3.5.3.2]] | ||
+ | * [[GNURadio: Ubuntu 11.10 Instal GNURadio 3.6.0]] ''NOT RECOMMENDED'' | ||
+ | * [[GNURadio: Ubuntu 11.10 Install dari GIT GNURadio]] ''NOT RECOMMENDED'' | ||
* [[GNURadio: Ubuntu 11.10 cek USRP Daughter Board]] | * [[GNURadio: Ubuntu 11.10 cek USRP Daughter Board]] | ||
+ | * [[GNURadio: UHD]] | ||
+ | * [[GNURadio: UHD Image]] | ||
+ | * [[GNURadio: UHD Identifikasi Device]] | ||
* [[OpenBTS: Ubuntu 11.10 Install]] | * [[OpenBTS: Ubuntu 11.10 Install]] | ||
+ | * [[OpenBTS: dari GIT ttsou]] '''RECOMMENDED''' | ||
* [[OpenBTS: 2.8 dari SVN Install]] '''RECOMMENDED''' | * [[OpenBTS: 2.8 dari SVN Install]] '''RECOMMENDED''' | ||
* [[OpenBTS: 2.8 Instalasi Real Time Asterisk]] | * [[OpenBTS: 2.8 Instalasi Real Time Asterisk]] | ||
Line 234: | Line 272: | ||
* [[OpenBTS: E110 Install UHD Image]] | * [[OpenBTS: E110 Install UHD Image]] | ||
* [[OpenBTS: E110 Instalasi OpenBTS]] | * [[OpenBTS: E110 Instalasi OpenBTS]] | ||
− | * [[OpenBTS: E110 Instalasi OpenBTS 2.6]] '' | + | * [[OpenBTS: E110 Instalasi OpenBTS 2.6]] ''NOT RECOMMENDED'' |
===Lain Lain=== | ===Lain Lain=== | ||
Line 256: | Line 294: | ||
* [[Siapa Bilang OpenBTS Ilegal?]] | * [[Siapa Bilang OpenBTS Ilegal?]] | ||
* [[OpenBTS: Catatan MNC dan MCC Indonesia]] | * [[OpenBTS: Catatan MNC dan MCC Indonesia]] | ||
+ | * [[OpenBTS: Catatan MNC dan MCC COOL]] | ||
* [[OpenBTS : Alokasi Frekuensi Operator GSM Indonesia]] | * [[OpenBTS : Alokasi Frekuensi Operator GSM Indonesia]] | ||
+ | * [[GSM: Daftar Channel Frekuensi]] | ||
===Catatan Sejarah=== | ===Catatan Sejarah=== |
Latest revision as of 14:41, 26 April 2012
Handling USRP
Ubuntu menggunakan udev untuk menangani hotplug devices, dan secara default tidak memberikan akses non-root ke USRP. Script berikut akan memberikan akses bagi user untuk menghandel USRP via USB baik secara live atau hot-plug.
sudo addgroup usrp sudo usermod -G usrp -a <YOUR_USERNAME> echo 'ACTION=="add", BUS=="usb", SYSFS{idVendor}=="fffe", SYSFS{idProduct}=="0002", GROUP:="usrp", MODE:="0660"' > tmpfile sudo chown root.root tmpfile sudo mv tmpfile /etc/udev/rules.d/10-usrp.rules
Pada titik ini, Ubuntu telah di konfigurasi untuk tahu apa yang harus di kerjakan jika medeteksi USRP di USB tapi "udev" perlu me-reload rules untuk memasukan rules yang baru kita buat. Langkah berikut dapat dilakukan sehingga kita tidak perlu me-reboot komputer.
sudo udevadm control --reload-rules
atau
sudo /etc/init.d/udev stop sudo /etc/init.d/udev start
atau
sudo killall -HUP udevd
Kita dapat mencek jika USRP telah di kenali dengan mengamati /dev/bus/usb setelah USRP di pasang menggunakan perintah
ls -lR /dev/bus/usb | grep usrp
Harusnya akan keluar seperti
crw-rw---- 1 root usrp 189, 1 2010-12-09 17:38 002
Setiap USRP yang terpasang akan terdaftar pada group 'usrp' dan mode 'crw-rw----'.
Instal Library
Update
sudo apt-get update
Instal untuk Ubuntu 11.10
sudo apt-get -y install libfontconfig1-dev libxrender-dev libpulse-dev swig \ g++ automake libtool python-dev libfftw3-dev \ libcppunit-dev libboost-all-dev libusb-dev fort77 sdcc sdcc-libraries \ libsdl1.2-dev python-wxgtk2.8 subversion git-core guile-1.8-dev \ libqt4-dev python-numpy ccache python-opengl libgsl0-dev \ python-cheetah python-lxml doxygen qt4-dev-tools \ libqwt5-qt4-dev libqwtplot3d-qt4-dev pyqt4-dev-tools \ libpcre3 libpcre3-dbg libpcre3-dev libpcrecpp0 \ python-wxgtk2.8 python-wxtools wx2.8-i18n libwxgtk2.8-dev libgtk2.0-dev \ autoconf libtool libosip2-dev libortp-dev \ libusb-1.0-0-dev g++ sqlite3 libsqlite3-dev erlang \ asterisk asterisk-mysql
Instal SWIG
Install secara manual SWIG
Download dari http://sourceforge.net/projects/swig/files/swig/ cp swig-2.0.5.tar.gz /usr/local/src/ cd /usr/local/src/ tar zxvf swig-2.0.5.tar.gz cd /usr/local/src/swig-2.0.5/ ./configure make make install
Instal QWT
Install secara manual QWT
Download dari http://sourceforge.net/projects/qwt/files/ cp qwt-6.0.1.tar.bz2 /usr/local/src/ cd /usr/local/src/ tar jxvf qwt-6.0.1.tar.bz2 cd /usr/local/src/qwt-6.0.1/ qmake make make install
Instal boost
Instalasi secara manual boost
Download dari http://sourceforge.net/projects/boost/files/boost/1.49.0/boost_1_49_0.zip/download
cp boost_1_49_0.zip /usr/local/src cd /usr/local/src unzip boost_1_49_0.zip chmod -Rf 777 /usr/local/src/boost_1_49_ mkdir /opt/boost_1_49_0 BOOST_PREFIX=/opt/boost_1_49_0 cd /usr/local/src/boost_1_49_0 ./bootstrap.sh sudo ./b2 --prefix=$BOOST_PREFIX --with-thread --with-date_time \ --with-program_options --with-filesystem --with-system \ --layout=versioned threading=multi variant=release install
Siapkan GIT
Install GIT minimal
apt-get install git-core git
jika ingin lebih eksis dapat menginstalasi lebih lengkap
apt-get install git-core git-doc gitk stgit git-arch git-cvs git-svn git-email gitweb
Install GNURadio
Sebaiknya pada saat melakukan instalasi GNURadio, kita pasang USRP ke USB port-nya.
Download aplikasi GNURadio dari
http://gnuradio.org/redmine/attachments/download/326/gnuradio-3.6.0.tar.gz
Install GNURadio
cp gnuradio-3.6.0.tar.gz /usr/local/src/ cd /usr/local/src/ tar zxvf gnuradio-3.6.0.tar.gz cd /usr/local/src/gnuradio-3.6.0/ cmake ../ make make test sudo make install sudo ldconfig
Error
Tidak ada bootstrap
Edit bashrc
Masukan PYTHONPATH dengan cara mengedit
vi ~/.bashrc
Tambahkan
PYTHONPATH=/usr/local/lib/python2.7/dist-packages PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/
Untuk memastikan ada baiknya lakukan
sudo ldconfig export PYTHONPATH=/usr/local/lib/python2.7/dist-packages export PKG_CONFIG_PATH=/usr/local/lib/pkgconfig/
Test
Lakukan
/usr/local/src/gnuradio-3.4.2/gnuradio-examples/python/usrp ./usrp_benchmark_usb.py
Hasilnya
Testing 2MB/sec... usb_throughput = 2M ntotal = 1000000 nright = 998137 runlength = 998137 delta = 1863 OK Testing 4MB/sec... usb_throughput = 4M ntotal = 2000000 nright = 1998117 runlength = 1998117 delta = 1883 OK Testing 8MB/sec... usb_throughput = 8M ntotal = 4000000 nright = 3998437 runlength = 3998437 delta = 1563 OK Testing 16MB/sec... usb_throughput = 16M ntotal = 8000000 nright = 7998859 runlength = 7998859 delta = 1141 OK Testing 32MB/sec... usb_throughput = 32M ntotal = 16000000 nright = 15996766 runlength = 15996766 delta = 3234 OK Max USB/USRP throughput = 32MB/sec
Referensi
- http://gnuradio.org/redmine/projects/gnuradio/wiki/InstallingGR
- http://gnuradio.org/redmine/projects/gnuradio/wiki/BuildGuide
- http://gnuradio.org/redmine/wiki/gnuradio/Download
- http://gnuradio.org/redmine/wiki/gnuradio/UbuntuInstall
Pranala Menarik
Persiapan
- USRP: High Precision Clock
- USRP: Menyambungkan ClockTamer ke USRP1
- USRP: Kalibrasi ClockTamer
- USRP: ClockTamer Control Protocol
- USRP: Instalasi Board
- OpenBTS: GIT Source Code
OpenBTS 2.6
- GNURadio
- GNURadio: Ubuntu Install
- GNURadio: Ubuntu Install GNURadio 3.4.2 *RECOMMENDED*
- GNURadio: Ubuntu Install GNURadio 3.4.2 Clock 52MHz *RECOMMENDED*
- GNURadio: Contoh Aplikasi
- GNURadio: Spectrum Analizer GSM
- GNURadio: Mengubah board RFX1800 menjadi RFX900
- GNURadio: Programming Untuk Pemula
- OpenBTS: Ubuntu Install
- OpenBTS: Ubuntu Install OpenBTS 2.6 Clock 52MHz
- OpenBTS: Konfigurasi
- OpenBTS: Kalibrasi
- OpenBTS: Konfigurasi Asterisk untuk OpenBTS
- OpenBTS: Menjalankan smqueue
- OpenBTS: Mengoperasikan BTS
- OpenBTS: Tampilan di Nokia saat pakai OpenBTS
- OpenBTS: Operasi 1800 MHz
- OpenBTS: Beberapa Tips
- OpenBTS: USRP2
- OpenBTS: Amplifier
- OpenBTS: SMS
- AirProbe
OpenBTS 2.8
- GNURadio: Ubuntu 11.10 Install NOT RECOMMENED
- GNURadio: Ubuntu 11.10 instalasi menggunakan Repo NOT RECOMMENDED
- GNURadio: Download GNURadio
- GNURadio: Ubuntu 11.10 Instal GNURadio 3.3.0
- GNURadio: Ubuntu 11.10 Instal GNURadio 3.4.2
- GNURadio: Ubuntu 11.10 Instal GNURadio 3.5.0
- GNURadio: Ubuntu 11.10 Instal GNURadio 3.5.3.2
- GNURadio: Ubuntu 11.10 Instal GNURadio 3.6.0 NOT RECOMMENDED
- GNURadio: Ubuntu 11.10 Install dari GIT GNURadio NOT RECOMMENDED
- GNURadio: Ubuntu 11.10 cek USRP Daughter Board
- GNURadio: UHD
- GNURadio: UHD Image
- GNURadio: UHD Identifikasi Device
- OpenBTS: Ubuntu 11.10 Install
- OpenBTS: dari GIT ttsou RECOMMENDED
- OpenBTS: 2.8 dari SVN Install RECOMMENDED
- OpenBTS: 2.8 Instalasi Real Time Asterisk
- OpenBTS: 2.8 Konfigurasi
- OpenBTS: Database SQLite
Ettus E110
- OpenBTS: E110 Cara Login
- OpenBTS: E110 Install Image di MicroSD
- OpenBTS: E110 Cek Daughter Board
- OpenBTS: E110 Mengubah Master Clock
- OpenBTS: E110 Kalibrasi Clock
- OpenBTS: E110 Bekerja dengan opkg
- OpenBTS: E110 GNURadio
- OpenBTS: E110 Install UHD Image
- OpenBTS: E110 Instalasi OpenBTS
- OpenBTS: E110 Instalasi OpenBTS 2.6 NOT RECOMMENDED
Lain Lain
- OpenBTS: Materi Magang di ICTWATCH
- OpenBTS: Seminar Outline
- OpenBTS: Workshop Outline
- Membuat Base Station GSM Open Source
- Teknologi Selular
- GSM: Daftar Channel Frekuensi
- Wireless Internet
- OpenBSC
- AirProbe
- Base station subsystem
- GSM
- Asterisk
- Mobile phone
Catatan Legal dan Pendukung
- Siapa Bilang OpenBTS Ilegal?
- OpenBTS: Catatan MNC dan MCC Indonesia
- OpenBTS: Catatan MNC dan MCC COOL
- OpenBTS : Alokasi Frekuensi Operator GSM Indonesia
- GSM: Daftar Channel Frekuensi