Hi all
I am successfully running dump978 in text mode.
When I try to run it in map mode, I get the error msg :failed to write receiver.json-check permissions
I have set up a dump978map/data in /var/www/ ; I have copied the files from dump1090copy into the dump978map directory
I also have a blank aircraft.json file sitting in /data
Ideas?
Thanks
Todd
I put sudo before the ./dump978; here is what happens:
todd@todd-VirtualBox:~/dump978$ rtl_sdr -f 978000000 -s 2083334 -g 48 - | sudo ./dump978 | ./uat2json /var/www/dump978map/data
fopen(/var/www/dump978map/data/receiver.json.new): Permission denied
Failed to write receiver.json - check permissions?
Found 1 device(s):
[sudo] password for todd: 0: Generic, RTL2832U, SN: 77771111153705700
Using device 0: Generic RTL2832U
Found Rafael Micro R820T tuner
Exact sample rate is: 2083334.141630 Hz
Sampling at 2083334 S/s.
Tuned to 978000000 Hz.
Tuner gain set to 48.00 dB.
Reading samples in async mode…
SHould I now be able to see map? When I go to my localhost on Chrome, I get an error
Todd
tlefkowitz:
I put sudo before the ./dump978; here is what happens:
todd@todd-VirtualBox:~/dump978$ rtl_sdr -f 978000000 -s 2083334 -g 48 - | sudo ./dump978 | ./uat2json /var/www/dump978map/data
fopen(/var/www/dump978map/data/receiver.json.new): Permission denied
Failed to write receiver.json - check permissions?
Found 1 device(s):
[sudo] password for todd: 0: Generic, RTL2832U, SN: 77771111153705700
Using device 0: Generic RTL2832U
Found Rafael Micro R820T tuner
Exact sample rate is: 2083334.141630 Hz
Sampling at 2083334 S/s.
Tuned to 978000000 Hz.
Tuner gain set to 48.00 dB.
Reading samples in async mode…
SHould I now be able to see map? When I go to my localhost on Chrome, I get an error
Todd
Check the permissions on the /var/www/dump978map/data diretory:
ls -ld /var/www/dump978map/data
Regards
LitterBug
todd@todd-VirtualBox:~/dump978$ ls -ld /var/www/dump978map/data
drwxr-xr-x 2 root root 4096 Jun 2 08:41 /var/www/dump978map/data
Try changing the permissions on the directory to allow write:
sudo chmod 777 /var/www/dump978map/data
Regards,
LitterBug
Well, that got rid of the linux error msg…when I go to the webserver, i still get an error and no display
(this webpage is not available)
Todd
tlefkowitz:
Well, that got rid of the linux error msg…when I go to the webserver, i still get an error and no display
(this webpage is not available)
Todd
What url are you using to view the web page? (ie piaddr/dump978 ?)
LitterBug
not sure which url to use…
with dump1090 you can do http:/ipaddress:8080 if you have put the parameter in to use the built in webserver or httpd:ipaddress/dump1090 (cant remember if it needs the :8080) if using lighttp as the web server (which needs installing)
N456TS
June 3, 2015, 6:36am
11
If you’re using lighttp, the default port will be 80 (no need to include it in the URL).
Since you copied the web page to /var/www/dump978map, your url would be IPaddress/dump978map
Basically just add /dump978map after the ip address of your Pi.
Cheers!
LitterBug
I have my dump978 running in a Ubuntu virtualbox machine on my Mac…I have installed lighttpd on the Ubuntu. Still uncertain about which IP to use
Todd
On the ubunto open a terminal session and do ‘ifconfig eth0’ - this will give you the ip address that you can use from the Mac.
if you want to open it web page from another machine it will depend on the settings you used to create the virtual network used in the virtual box.
If it is bridged then the ubuntu IP address was granted from your internet router.
If it’s NAT then the virtual box has created a private network and is doing connection sharing from the MAC (change it to bridged)
There’s one or two other settings (isolated and something else) - you’ll not be using those.
When I run that cmd, the result is 10.0.2.15.
The Ubuntu vbox is set up for NAT…should I change it to Bridged, then? Will that change anything else network-wise on the Ubuntu machine?
Thanks
tlefkowitz:
When I run that cmd, the result is 10.0.2.15.
The Ubuntu vbox is set up for NAT…should I change it to Bridged, then? Will that change anything else network-wise on the Ubuntu machine?
Thanks
might need to rebook the ubuntu - give it a try.