Radarcape:Miscellaneous: Difference between revisions

From Beast Wiki
Jump to navigation Jump to search
imported>Dl4mea
 
(20 intermediate revisions by 4 users not shown)
Line 1: Line 1:
=== Using SOCAT to copy TCP to a file ===
{{#seo:
  socat -u TCP:localhost:10002 OPEN:radarcape.bin,creat
|title=Radarcape Miscellaneous
=== Tunneling a port to another Radarcape ===
|titlemode=replace
First, generate a SSH key pair on the local Radarcape
|keywords=radarcape,miscellaneous
cd ~/.ssh
|description=Miscellaneous information related to the Radarcape
dropbearkey -t rsa -f id_rsa
}}
Set attributes of ~, .ssh and authorized_keys are set to 600.


Next, copy the public key given from above command to the server folder ~/.ssh/authorized_keys. Mind that the attributes of ~, .ssh and authorized_keys are set to 600.
====Using SOCAT to copy TCP to a file====
On the local Radarcape, add these commands to cape.sh
 
nohup ssh -p <server_ssh_port> -i ~/.ssh/id_rsa -N -R *:8002:localhost:80 root@<server_domain> &
  ''socat -u TCP:localhost:10002 OPEN:radarcape.bin,creat''
even better
./autossh -M 6667 -f -p <server_ssh_port> -i ~/.ssh/id_rsa -N -R *:8002:localhost:80 -R *:1302:localhost:10003 -R *:2202:localhost:22 root@<server_domain>


Now the local Radarcape is accessible on <server_domain> under port 8002, 1302 and 2202.
====Using SOCAT to access the GPS receiver via network====
 
The Radarcape provides access to the raw data of the GPS device via a network socket.
This can be used to provide GPS information to the Linux gpsd daemon.
 
  ''socat pty,link=/tmp/ttyGPS tcp:192.168.1.1000:10685''
  ''gpsd /tmp/ttyGPS''
 
You may test if gpsd has successfully been connected to your Radarcape using the ''xgps'' tool.
 
====Cannot Execute a Binary====
 
[http://stackoverflow.com/questions/20717838/gcc-arm-executable-no-such-file-orr-directory-wrong-dynamic-lib Dynamic lib missing]
 
====On Debian, apt-get upgrade leads to an error with LED aging====
 
[https://www.mail-archive.com/[email protected]/msg15617.html Description and replacing script]
 
====On Debian: "not a dynamic executable" or any other problems with ld-linux-armhf.so.3====
 
cd /lib<br>
ln -sf arm-linux-gnueabihf/ld-linux.so.3 .
 
====Disable IPv6====
 
https://wiki.debian.org/DebianIPv6#How_to_turn_off_IPv6
 
====Debian 8: WARNING: The following packages cannot be authenticated====
 
The Debian 8 image was created with update feeds that no longer exists.
 
During some operations, including FlightAware PiAware installation, this will cause errors.
 
To fix this:
 
* Download https://jetvision.de/resources/fixapt_1.0-1_all.deb
* Settings -> Software Maintenance -> Manual File Upload -> Upload and Install Package, select the file you just downloaded and press Upload+Install.
 
Under the hood this package will update the file /etc/apt/sources.list to:<br>
<nowiki>deb http://deb.debian.org/debian jessie main
deb http://deb.debian.org/debian-security jessie/updates main</nowiki>

Latest revision as of 19:31, 23 September 2019


Using SOCAT to copy TCP to a file

 socat -u TCP:localhost:10002 OPEN:radarcape.bin,creat

Using SOCAT to access the GPS receiver via network

The Radarcape provides access to the raw data of the GPS device via a network socket. This can be used to provide GPS information to the Linux gpsd daemon.

 socat pty,link=/tmp/ttyGPS tcp:192.168.1.1000:10685
 gpsd /tmp/ttyGPS

You may test if gpsd has successfully been connected to your Radarcape using the xgps tool.

Cannot Execute a Binary

Dynamic lib missing

On Debian, apt-get upgrade leads to an error with LED aging

Description and replacing script

On Debian: "not a dynamic executable" or any other problems with ld-linux-armhf.so.3

cd /lib
ln -sf arm-linux-gnueabihf/ld-linux.so.3 .

Disable IPv6

https://wiki.debian.org/DebianIPv6#How_to_turn_off_IPv6

Debian 8: WARNING: The following packages cannot be authenticated

The Debian 8 image was created with update feeds that no longer exists.

During some operations, including FlightAware PiAware installation, this will cause errors.

To fix this:

Under the hood this package will update the file /etc/apt/sources.list to:

deb http://deb.debian.org/debian jessie main
deb http://deb.debian.org/debian-security jessie/updates main