Showing posts with label Ubuntu. Show all posts
Showing posts with label Ubuntu. Show all posts

Monday, 30 September 2013

BeagleBone Black Ubuntu 12.04 with desktop... SUCCESS!

A while back I put aside my BBB as I could not get a stable Desktop under Ubuntu see here

I thought by now software may have stabilised and decided to have another attempt

First thoughts went to flashing the onboard EMMC on the BBB board with Ubuntu and running it from there. I  found a suitable image https://rcn-ee.net/deb/flasher/raring/BBB-eMMC-flasher-ubuntu-13.04-2013-09-27.img.xz downloaded it and put it on an 8GB microsd card. Put it into the BBB slot and power it up while holding down the boot switch (the near the hdmi connector) till the blue lights start flashing. Then wait. When complete all 4 blue LED will come on and stay on
Remove the microsd card and reboot. The BBB will start running Ubuntu. At this point I  had to edit /etc/networks/interfaces to set up my static IP for the home network. I could then do

sudo apt-get update
sudo apt-get install ubuntu-desktop

Went away, when I came back 2 hours later there was an out of disk space message. The 1.9GB of EMMC was not enough!

I reverted back to debian by flashing the eMMC with the image "BBB-eMMC-flasher-2013.06.20.img.xz" from http://beagleboard.org/latest-images. This was put on an microSD card and the BBB powered up with the boot button pressed. Wait till all 4 LEDS are on to show it is finished. Note you cannot flash EMMC if you are running the OS on the EMMC.

I decided to use 12.04 LTS as it was more mature. I downloaded ubuntu-precise-12.04.2-armhf-3.8.13-bone20.img.xz from http://www.armhf.com/index.php/boards/beaglebone-black/#precise unzipped it and wrote the image to an 8GB microsd card using win32diskimager programme on my windows machine

The microsd booted and gave me the ubuntu 12.04 welcome and login prompt. I expanded the file system using the instructions at http://www.armhf.com/index.php/expanding-linux-partitions-part-2-of-2/ to maximise the space available for the desktop. another

sudo apt-get update
sudo apt-get install ubuntu-desktop

and off it went installing again.  Four hours later I came back and saw the install was finished and rebooted the BBB and automatically displayed the familiar Ubuntu desktop with no flickering or Instability. Success at last!


Sunday, 5 May 2013

Ubuntu on the Beaglebone Black (1)

After spending the afternoon over in Fort Worth doing a presentation on the 1.3GHz UK Activity Contest to NTMS, this evening was spent installing Ubuntu on the BBB

Initially I tried the procedure using a prebuilt image  at http://www.armhf.com/index.php/boards/beaglebone-black/ and eventually, after solving some issues due to priveleges I got a USDHC card produced. Unfortunately, after powering up the BBB with the reset button near the uSDHC pressed as instructed and waiting, it produced lots of flashing blue lights but no video output. Time to try something else.

Next I searched for any other prebuilt images and came across http://elinux.org/BeagleBoardUbuntu#Raring_13.04_armhf (a later version of Ubuntu) I followed the instructions on my ubuntu laptop which did not need any corrections and built an uSDHC card

Booting the BBB with the reset button pressed it was reassuring to see a penguin appearing on the screen and a demand for login and password

Flushed with success, I decided to try and install WSPR. I used the process of the previous WSPR http://g4fre.blogspot.com/2013/01/wspr-on-rpilapdock-under-raspian.html blog. However all commands had to be typed in letter by letter, as, not having a desktop or browser I couldnt go to this blog and cut and paste!) It built way faster than it ever did on the RPI.

Launching WSPR it complained as usual about having no display to export to, so the next step is to install a desktop, find a sound card (and a browser!)

Tuesday, 23 October 2012

WSJT on UBUNTU

After the previous success on WSPR on UBUNTU it was next time to try WSJT. I found an install package for an old version of WSJT but this did not have the ISCAT mode. So I turned to Roger W3SZ who was the Linux guru at the WSJT contest station for guidance. He showed me how to compile the current version from the svn. using the following method (type what is between the < and >)

 <svn co svn://svn.berlios.de/wsjt/trunk>

 go to .../trunk

I checked with the package manager and found I already had the libfftw3 and libfftw3-dev packages.

<./configure --with-portaudio-include-dir=/WSJT9/trunk/--with-portaudio-lib-dir=/usr/lib/i386-linux-gnu/>

it did a whole load of things starting at "Compiling wsjt" and ended with "Installing into: /usr/local"

still in trunk:-:

<make clean>
<make>
after it finishes make sure you have permissions to execute  ../trunk/wsjt.py 

<./wsjt.py>

then I saw

"WSJT Version 9.3 r2589 , by K1JT
Revision date: 2012-09-17 16:13:47 -0400 (Mon, 17 Sep 2012)
Run date:   Sun Oct 21 19:02:33 2012 UTC
..............................."

The normal WSJT9.3 window opened and I set up the options for JT65B and after leaving the rig tuned to 70.0485MHz for a while I saw:-



Next I set it to JT65A on the WSJT frequency on 40m and saw:-


Also worked well on transmit

Double success!

WSPR on UBUNTU

UPDATE: 1/12/2013: 
to make this work now select revision 2840

svn co http://svn.berlios.de/svnroot/repos/wsjt/branches/wspr -r2840





I have used WSPR and WSJT digimodes for many years now but always on windows machines so I thought I ought to try using it on my Dell D630 Ubuntu Laptop

 Initially I tried installing the deb packages for WSJT on the K1JT web site http://www.physics.princeton.edu/pulsar/K1JT/wspr.html but both packages had issues

WSPR 2.11

when installing wspr_2.11r2263_i386.deb using the method in WSPR_2.0_User.pdf it installs OK but when I try to execute it I get:-

******************************************************************
WSPR Version 2.11_r2254, by K1JT
Run date:   Tue Oct  9 15:50:42 2012 UTC
Traceback (most recent call last):
  File "wspr.py", line 53, in <module>
    w.acom1.appdir=(appdir+(' '*80))[:80]
ValueError: could not convert string to float: /home/dave/Downloads/WSPR

so I moved on to the other available version, wspr_2.00r1714_i386.deb when installing I get the following:-

dpkg: error processing wspr_2.00r1714_i386.deb (--install):
 unable to open file '/var/lib/dpkg/tmp.ci//.svn': Is a directory Errors were encountered while processing:
 wspr_2.00r1714_i386.deb

Searching the Internet I found many others who had discovered the same issues but no solutions. Then I discovered http://www.george-smart.co.uk/wiki/Compiling_WSPR which shows how to compile wspr from the svn location. Following the instructions It installed WSPR3.0.1 (which is the latest "experimental" release of WSPR no signs of "released version" on the SVN.). I had no issues so I tried it on 40m receive after setting the input and output audio to "default" (11), see above

Next I tried the transmit side. When it was time to transmit I got "Can't open /dev/ttyS0".  I checked the port:- 

dave@Ubuntu-D630a:~/trunk$ dmesg | grep tty
[    0.000000] console [tty0] enabled
[    0.555491] serial8250: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A
[    0.988910] 00:09: ttyS0 at I/O 0x3f8 (irq = 4) is a 16550A 

so the port was there. Another web search revealed that there can be issues with who owns that serial port. It was found to be root. and adding me to the uucp group should fix it, which it did. Leaving it running driving the K3 at 5W I found the following spots on WSPRnet:-

2012-10-22 22:26  G4FRE  7.040096  -11  0  IO82uc  5  G4ENZ  IO81vv  24  166  
2012-10-22 22:14  G4FRE  7.040104  -1  0  IO82uc  5  S59I  JN76me  1417  111  
2012-10-22 22:14  G4FRE  7.040096  -11  0  IO82uc  5  LA9JO  JP99gb  2177  22  
2012-10-22 22:14  G4FRE  7.040011  -7  0  IO82uc  5  LA1NRA  JP53ej  1457  26  
2012-10-22 22:14  G4FRE  7.040082  -6  0  IO82uc  5  OK2IP  JN89ee  1351  96 

Success!






Wednesday, 12 September 2012

ADS-B using Ubuntu and the RTL2832

The next task for the RTL2832 was  to decode aircraft transmitting A-DSB using Ubuntu. Doug G4DZU had previously pointed me at a link http://www.hamradioscience.com/the-rtl-2832u-sdr-and-ads-b/ with an idiots guide to doing it , so it was time to try
.
Installing gnuradio took one line (and patience):-

wget http://www.sbrac.org/files/build-gnuradio && chmod a+x ./build-gnuradio && ./build-gnuradio

dinner and desert  and a coffee later it finished. Time to see if it worked:-

rtl_test -t
Found 1 device(s):
  0:  Generic RTL2832U (e.g. hama nano)
Using device 0: Generic RTL2832U (e.g. hama nano)
Found Elonics E4000 tuner
Supported gain values (14): -1.0 1.5 4.0 6.5 9.0 11.5 14.0 16.5 19.0 21.5 24.0 29.0 34.0 42.0 
Benchmarking E4000 PLL...
[E4K] PLL not locked for 52000000 Hz!
[E4K] PLL not locked for 2217000000 Hz!
[E4K] PLL not locked for 1109000000 Hz!
[E4K] PLL not locked for 1249000000 Hz!
E4K range: 53 to 2216 MHz
E4K L-band gap: 1109 to 1249 MHz

looks like mine works 53-1108MHz & 1250-2216MHz, Impressive!

next install gr-air-modes:-

git clone https://github.com/bistromath/gr-air-modes.git
cd gr-air-modes/
mkdir build
cd build
cmake ..
make
sudo make install
sudo ldconfig
Launching the programme with 
uhd_modes.py -d -P 
with a piece of wire in the rtl283 antenna socket resulted in decodes from one aircraft almost overhead. Time for a better 1090MHz antenna. The J pole previously used was easy to build from 2 pieces of semi rigid cable so time to make another.It was tuned with a tracking generator/directional coupler/ spectrum analyser and achieved 32dB retun loss after tweaking. Putting this on the end of 35' of cable in the loft resulted in many more decodes and a torrent of data in the terminal:- 

Next time to plot the data. The article  pointed to Virtual radar server at http://www.virtualradarserver.co.uk/Mono.aspx so this was installed. Launching it with and clicking on the http link for local host resulted in the following map with 8 aircraft:-

The rtl2832 is not as sensitive as the Modesbeast I also have but it is only 5% of the cost!

Tuesday, 11 September 2012

Ubuntu or Bust

From previous RTLSDR research I concluded I needed a Linux machine to use the RTLSDR as a GPS/ADSB/ WiFi decoder. I was having too much fun with the RPI to use it so I looked in the storage room and found a spare SATA drive for my Dell D630 laptop with caddy which would allow me to swap between windows and ubuntu easily . Web search revealed others had use a Dell laptop to isntall Ubuntu successfully, so it was time to try.

I downloaded the Ubuntu 12.04 LTS .iso image from http://www.ubuntu.com/download/desktop and made myself an install CD. Booting the laptop from the CD drive the install started. I allowed it to install updates as it went (over the LAN connection) but it took 3 hours to finish (never again will I complain about the install time of WINXP) Then it took another 3 hours to navigate round Ubuntu and see what I could do. Google.com searches answered all of my "but how do you do it in Linux" questions. I also got to install some packages, just like I did on the Sparc based network infrastructure of Nortel! It was amazing how much Linux I had remembered! The fun was terminated at 1am.