FlightAware Discussions

Anyone working with the new x86 Raspbian


#103

QUOTE from Raspberrypi Org Blog, dated 21st Dec 2016:

PIXEL for PC and Mac

PIXEL represents our best guess as to what the majority of users are looking for in a desktop environment: a clean, modern user interface; a curated suite of productivity software and programming tools, both free and proprietary; and the Chromium web browser with useful plugins, including Adobe Flash, preinstalled. And all of this is built on top of Debian, providing instant access to thousands of free applications.

Put simply, it’s the GNU/Linux we would want to use.

Back in the summer, we asked ourselves one simple question: if we like PIXEL so much, why ask people to buy Raspberry Pi hardware in order to run it? There is a massive installed base of PC and Mac hardware out there, which can run x86 Debian just fine. Could we do something for the owners of those machines?

So, after three months of hard work from Simon and Serge, we have a Christmas treat for you: an experimental version of Debian+PIXEL for x86 platforms. Simply download the image, burn it onto a DVD or flash it onto a USB stick, and boot straight into the familiar PIXEL desktop environment on your PC or Mac.


#104

Manual Install of dump1090-fa and Piaware on Raspbian x86

Write the .iso image to the USB Pen-drive using Etcher or Win32DiskImager or command dd (mac/linux), just like one writes Piaware or Raspbian image to a microSD Card. Then boot the PC with the USB Pen-drive, select “Run with Persistance” and it automatically opens prompts to set language, keyboard, country and City. This step is total 15 to 20 minutes job.

The next step is installation of dump1090-fa and Piaware. This step takes another 15 to 20 minutes. Hence the total time is 20 + 20 = 40 minutes. Following few simple commands are required for second step:

(A) Update


sudo apt update

(B) Build and Install dump1090-fa

B-1. Clone Source code,


sudo apt install git

git clone https://github.com/flightaware/dump1090.git

B-2. Enter Cloned directory “dump1090”, and edit 2 files as shown in B-2.1 & B-2.2.

B-2.1. Edit file debian/control and remove bladeRF

cd dump1090

sudo nano debian/control

#Scroll down till you find the first lines below. 
#Scroll down further to find second line. 
#Delete libbladerf in both lines as shown in red below.

.

B-2.2. Edit file debian/rules and change BLADERF=yes to BLADERF=no

sudo nano debian/rules

#Scroll down till you find the line shown below. 
#Change BLADERF=yes to BLADERF=no as shown in red. 

.
B-3. Install build tools and dependencies.


sudo apt install  debhelper  dh-systemd  librtlsdr-dev  libusb-1.0-0-dev 

sudo apt install  build-essential  pkg-config  libncurses5-dev  lighttpd

B-4. Build the dump1090-fa package

sudo dpkg-buildpackage -b

#After package building is completed, go out of dump1090 directory, 
#and check if the package exists:

cd ../

ls

dump1090                dump1090-fa_3.6.3_amd64.buildinfo  dump1090-fa_3.6.3_amd64.deb
dump1090_3.6.3_all.deb  dump1090-fa_3.6.3_amd64.changes    dump1090-fa-dbgsym_3.6.3_amd64.deb

B-5 Install dump1090-fa

sudo dpkg -i dump1090-fa_3.6.3_*.deb

sudo reboot 

B-6. Add Receiver marker and Range Rings

Open file for editing:
sudo nano /etc/default/dump1090-fa

In the line:
RECEIVER_OPTIONS="--device-index 0 --gain -10 --ppm 0 --net-bo-port 30005"

add:
--lat xx.xxxx --lon yy.yyyy

The line will become:
RECEIVER_OPTIONS="--device-index 0 --gain -10 --lat xx.xxxx --lon yy.yyyy --ppm 0 --net-bo-port 30005"

(used actual latitude and longitude in place of xx.xxx and yy.yyyy )
.

.

( C ) Build & Install Piaware

.
C-1. Install Build Tools and Dependencies


sudo apt install  devscripts  build-essential  debhelper  

sudo apt install  tcl8.6-dev  autoconf  python3-dev  

sudo apt install  python3-venv  virtualenv  dh-systemd  

sudo apt install  zlib1g-dev  tclx8.4  tcllib  

sudo apt install  tcl-tls  itcl3  net-tools  

.

C-2. Build and Install Piaware


git clone https://github.com/flightaware/piaware_builder.git  

cd  piaware_builder  

CODENAME=(`lsb_release -sc`)  

echo ${CODENAME}  

./sensible-build.sh ${CODENAME}  

cd  package-${CODENAME}  

dpkg-buildpackage -b  

cd ../  

sudo dpkg -i piaware_*.deb  

.
C3. CONFIGURE PIAWARE


sudo piaware-config feeder-id xxxxxxxx-xxxx-xxxx-xxxx-xxxxxxxxxxxx

sudo piaware-config allow-auto-updates yes
sudo piaware-config allow-manual-updates yes

sudo systemctl restart piaware

sudo systemctl status piaware


PiAware on Ubuntu 18.10
PiAware on Ubuntu 18.10
#105

@billbresl
@wiedehopf
@idh
@biekerc
@SweetPea11
@SMburn

Most of forum members participating in this discussion have raised the question “why to stick with Raspbian x86, when there are so many other x86 distros?”. I have therefore started downloading debian-live-9.6.0-i386-gnome.iso.

I will follow EXACTLY the same steps which I gave in my above post for Raspian x86 and report the outcome.

UPDATE:
Oops… knocked down in first round…the Debian Live CD is WITHOUT PERSISTENCE. This means if I install dump1090-fa and Piaware, it will evaporate when the computer reboots :frowning: . The only alternative left is to install Debian on USB Flash, a very time consuming and buggy option.

UPDATE-2
Checked Ubuntu. Its Live CD also does NOT have persistence.


#106

I guess you can go the Knoppix live system.

Not sure why you want a live system but hey whatever.


#107

Any chance you will attempt the dmp1090 compile?


#108

The new Win 10 playpen environment is with persistence. It stays alive till you kill it. Course that violates a debugger axiom: never experiment with two thing at the same time. However if you get yours working and compiled, then I can replicate your success into Win 10 playpen thus validating both. You can do same thing in your Oracle virtual. Seems like we both gain persistence in the virtual environment. Right?, he said with fingers crossed.


#109

Well it still depends if you install it in the virtual machine or run it as a live cd.

With a virtual machine there really is no reason not to install it into the virtual machine.


#110

Having challenged the need to use x86 Raspian, let’s challenge the need for persistence.

Possible reasons for needing a Live distro with persistence:

For the situation of Piaware server on a single PC, INSTALL to hard disk!

If you don’t want a spinning hard disk 60Gb/120Gb SSD are now cheaper than for a long time.

Unless I am missing something?


#111

Surely all of us are missing something, but your response clears up the conversation. Thx for participating FA!


#112

True, but don’t forget to check that your old PC has a suitable data interface for a modern SATA SSD. :wink:

S.


#113

Upgrade options abound. For s/w, my old xp box went to win 7 then win 10 and now win 10 18305 experimental early release with new sandbox feature for virtual play time. H/w won’t from Pentium 4, to quad core processor in the same 775socket, to pci usb 3.0, to sata 120 go. All the expansions are very straight forward in the PC world. I have 4 boxes ranging in age from 2006-2012. Thx for your suggestions.


#114

Also running the Rpi from FA. Really exciting new machine. And now the introduction to Linux/Debian/Raspbian. I hear that is where all the REAL programming is done.


#115

The standard Raspbian image from Raspberry Pi foundation AND the Piaware image from FA (which we all use in our RPI) are both in fact a “Live CD with Persistence” burned to a Flash Memory. The only thing extra in Raspbian x86 image is that it has an “install” option as well.

In fact the very first Pixel x86 image (2016-12-13-pixel-x86-jessie.iso) did NOT have install option. It was simply a conversion of standard image for RPI to suite use on PC/MAC. The architecture changed from armhf to x86, and the packaging changed from .img to .iso.

.


#116

OK, right now in process of creating “Debian 9.6 Live CD with Persistance”. Will report back how it goes with

  • WiFi
  • Retaining the installation of dump1090-fa and Piaware

CLICK ON IMAGE TO SEE LARGER SIZE
CLICK AGAIN TO SEE FULL SIZE

UPDATE:

http://www.linuxliveusb.com/help/guide/using-lili

image


#117

Something like this should solve that problem


#118

Debian Live CD with Persistence
Persistence created by Linux Live LiLI Application

BOOTED PC FROM USB FLASH

  • WIFI: USB Dongle RTL8192 does NOT Show up
  • Attempt to install Some dependencies for dump1090-fa failed
user@debian:~$ sudo apt install pkg-config libncurses5-dev lighttpdReading package lists... Done
Building dependency tree       
Reading state information... Done
The following additional packages will be installed:
  libfam0 libtinfo-dev spawn-fcgi
Suggested packages:
  fam ncurses-doc rrdtool php5-cgi apache2-utils lighttpd-doc
The following NEW packages will be installed:
  libfam0 libncurses5-dev libtinfo-dev lighttpd pkg-config spawn-fcgi
0 upgraded, 6 newly installed, 0 to remove and 0 not upgraded.
8 not fully installed or removed.
Need to get 0 B/685 kB of archives.
After this operation, 2,587 kB of additional disk space will be used.
Do you want to continue? [Y/n] y
Setting up libc-bin (2.24-11+deb9u3) ...
Bus error
ldconfig: Can't stat /lib/i686-linux-gnu: No such file or directory
ldconfig: Can't stat /usr/lib/i686-linux-gnu: No such file or directory
ldconfig: Path `/lib/i386-linux-gnu' given more than once
ldconfig: Path `/usr/lib/i386-linux-gnu' given more than once
/usr/lib/i386-linux-gnu/libfakeroot:
	libfakeroot-0.so -> libfakeroot-tcp.so
/lib/i386-linux-gnu:
	libz.so.1 -> libz.so.1.2.8
	libx86.so.1 -> libx86.so.1
	libwrap.so.0 -> libwrap.so.0.7.6
	libuuid.so.1 -> libuuid.so.1.3.0
	libutil.so.1 -> libutil-2.24.so
	libusb-1.0.so.0 -> libusb-1.0.so.0.1.0
	libulockmgr.so.1 -> libulockmgr.so.1.0.1
	libudev.so.1 -> libudev.so.1.6.5
	libtinfo.so.5 -> libtinfo.so.5.9
	libthread_db.so.1 -> libthread_db-1.0.so
	libsystemd.so.0 -> libsystemd.so.0.17.0
	libss.so.2 -> libss.so.2.0
	libsmartcols.so.1 -> libsmartcols.so.1.1.0
	libslang.so.2 -> libslang.so.2.3.1
	libsepol.so.1 -> libsepol.so.1
	libselinux.so.1 -> libselinux.so.1
	libseccomp.so.2 -> libseccomp.so.2.3.1
	librt.so.1 -> librt-2.24.so
	libresolv.so.2 -> libresolv-2.24.so
	libreadline.so.7 -> libreadline.so.7.0
	libpthread.so.0 -> libpthread-2.24.so
	libprocps.so.6 -> libprocps.so.6.0.0
	libpopt.so.0 -> libpopt.so.0.0.0
	libpcre.so.3 -> libpcre.so.3.13.3
	libpcprofile.so -> libpcprofile.so
	libpci.so.3 -> libpci.so.3.5.2
	libparted.so.2 -> libparted.so.2.0.1
	libpamc.so.0 -> libpamc.so.0.82.1
	libpam_misc.so.0 -> libpam_misc.so.0.82.0
	libpam.so.0 -> libpam.so.0.83.1
	libntfs-3g.so.871 -> libntfs-3g.so.871.0.0
	libnss_nisplus.so.2 -> libnss_nisplus-2.24.so
	libnss_nis.so.2 -> libnss_nis-2.24.so
	libnss_myhostname.so.2 -> libnss_myhostname.so.2
	libnss_mdns_minimal.so.2 -> libnss_mdns_minimal.so.2
	libnss_mdns6_minimal.so.2 -> libnss_mdns6_minimal.so.2
	libnss_mdns6.so.2 -> libnss_mdns6.so.2
	libnss_mdns4_minimal.so.2 -> libnss_mdns4_minimal.so.2
	libnss_mdns4.so.2 -> libnss_mdns4.so.2
	libnss_mdns.so.2 -> libnss_mdns.so.2
	libnss_hesiod.so.2 -> libnss_hesiod-2.24.so
	libnss_files.so.2 -> libnss_files-2.24.so
	libnss_dns.so.2 -> libnss_dns-2.24.so
	libnss_compat.so.2 -> libnss_compat-2.24.so
	libnsl.so.1 -> libnsl-2.24.so
	libnl-genl-3.so.200 -> libnl-genl-3.so.200.22.0
	libnl-3.so.200 -> libnl-3.so.200.22.0
	libncursesw.so.5 -> libncursesw.so.5.9
	libncurses.so.5 -> libncurses.so.5.9
	libmount.so.1 -> libmount.so.1.1.0
	libmnl.so.0 -> libmnl.so.0.2.0
	libmemusage.so -> libmemusage.so
	libm.so.6 -> libm-2.24.so
	liblzo2.so.2 -> liblzo2.so.2.0.0
	liblzma.so.5 -> liblzma.so.5.2.2
	libkmod.so.2 -> libkmod.so.2.3.1
	libkeyutils.so.1 -> libkeyutils.so.1.5
	libiw.so.30 -> libiw.so.30
	libisc-export.so.160 -> libisc-export.so.160.0.0
	libidn.so.11 -> libidn.so.11.6.16
	libhistory.so.7 -> libhistory.so.7.0
	libgpg-error.so.0 -> libgpg-error.so.0.21.0
	libglib-2.0.so.0 -> libglib-2.0.so.0.5000.3
	libgcrypt.so.20 -> libgcrypt.so.20.1.6
	libgcc_s.so.1 -> libgcc_s.so.1
	libfuse.so.2 -> libfuse.so.2.9.7
	libfdisk.so.1 -> libfdisk.so.1.1.0
	libext2fs.so.2 -> libext2fs.so.2.4
	libexpat.so.1 -> libexpat.so.1.6.2
	libe2p.so.2 -> libe2p.so.2.3
	libdns-export.so.162 -> libdns-export.so.162.1.3
	libdl.so.2 -> libdl-2.24.so
	libdevmapper.so.1.02.1 -> libdevmapper.so.1.02.1
	libdbus-1.so.3 -> libdbus-1.so.3.14.15
	libcryptsetup.so.4 -> libcryptsetup.so.4.7.0
	libcrypt.so.1 -> libcrypt-2.24.so
	libcom_err.so.2 -> libcom_err.so.2.1
	libcidn.so.1 -> libcidn-2.24.so
	libcap.so.2 -> libcap.so.2.25
	libcap-ng.so.0 -> libcap-ng.so.0.0.0
	libc.so.6 -> libc-2.24.so
	libbz2.so.1.0 -> libbz2.so.1.0.4
	libbsd.so.0 -> libbsd.so.0.8.3
	libbrlapi.so.0.6 -> libbrlapi.so.0.6.5
	libblkid.so.1 -> libblkid.so.1.1.0
	libaudit.so.1 -> libaudit.so.1.0.0
	libattr.so.1 -> libattr.so.1.1.0
	libatasmart.so.4 -> libatasmart.so.4.0.5
	libapparmor.so.1 -> libapparmor.so.1.4.0
	libanl.so.1 -> libanl-2.24.so
	libacl.so.1 -> libacl.so.1.1.0
	libSegFault.so -> libSegFault.so
	libBrokenLocale.so.1 -> libBrokenLocale-2.24.so
ldconfig: /lib/i386-linux-gnu/ld-2.24.so is the dynamic linker, ignoring

	ld-linux.so.2 -> ld-2.24.so
/usr/lib/i386-linux-gnu:
Bus error
dpkg: error processing package libc-bin (--configure):
 subprocess installed post-installation script returned error exit status 135
Errors were encountered while processing:
 libc-bin
E: Sub-process /usr/bin/dpkg returned an error code (1)
user@debian:~$ 

#119

Thx for enduring the pain to add valuable info to this discussion. Starting now to replicate your previous efforts booting Raspbian with your dmp1090 and verifying your results on my native hardware. No virtual. Have a Merry Christmas all!


#120

.
Good luck.
.

Thanks. Merry Christmas to you, and to all!

UPDATE:
Created a USB flash pen-drive “Live CD with Persistence” using Ubuntu 18.04 live cd .iso and tool “Linux Live USB Creator”.

Booted PC from the pen-drive, and chose “Try Ubuntu”.

  • WiFi works out of box with WiFi USB Dongle RTL8192 :slight_smile:

  • sudo apt upgrade works (it did not do anything in Debian 9.6).

  • Will try to build & install dump1090-fa and Piaware tonight.


#121

SUCCESS with “LINUX LITE” (A Light Derivative of Ubuntu)

https://www.linuxliteos.com/download.php

The “Live CD” of Linux Lite converted to “Live CD with Persistence” using Windows Software “Universal USB Installer”

.
- WiFi works out of box with WiFi USB Dongle RTL8192 :slight_smile:
- Persistence works. The dump1090-fa and Piaware do not evaporate on reboot :slight_smile:
.

Universal%20USB%20Creator

.
.

See the “WiFi Active” Icon at bottom-right, besides clock and Speaker

CLICK ON SCREENSHOT TO SEE LARGER SIZE
CLICK AGAIN TO SEE FULL SIZE


#122

Awesome! Still running in the virtual?