News items for tag linux - Koos van den Hout

2017-07-24 Last night receiving ISS SSTV images 4 weeks ago
And a third night. I used the timed recording option of audacity, which in the current linux version does not offer the option to set in advance how to save the project. This time I 'only' recorded for 7 hours, and was able to save the project afterwards without needing a recover. But on reloading the saved project audacity complained about some internal error in it, and it still had the problem of assuming 44.1 kHz sampling while showing the project sample rate as 48 kHz. Anyway, images decoded from the audio and I even recieved a few new ones.

Tags: , , ,
2017-07-24 Getting a lot more entropy from the Raspberry Pi 1 month ago
Entropy graph of a Raspberry Pi On doing some research on randomness in Linux I found out about the rng-tools package which includes rngd which can get randomness from hardware random generators to linux /dev/random.

On the main homeserver greenblatt there was no hardware randomness source available, I already use randomsound to generate randomness from audio noise. I found out the Raspberry Pi has a hardware randomness source so I installed rng-tools and rngd was able to use it. The impact on the measured available entropy is quite visible.

Tags: , ,
2017-07-21 Received slow scan TV images from ISS while I was sleeping 1 month ago
I read about the current ARISS Celebrates it’s 20th Anniversary through SSTV Event and noticed the planned times weren't really compatible with my day/night cyclus. I know, as a hardcore radio amateur I should be up at the weirdest hours for rare events but I also like my sleep a lot and my wife really dislikes alarms at weird hours.

Automation to the rescue: I decided to record all of a night of ISS signals on the computer with audacity and decode images from it later. The computer adjusted the radio for doppler using gpredict. Since I don't have an automatic rotor for satellite antennas I used the VHF/UHF vertical. This may seem strange but the weakest signals from ISS are when it is right above the horizon (which is when the vertical has the best reception). And as noticed on earlier SSTV events that compared to other amateur satellites the ISS has a strong signal.

So I left it running for a night and checked the results afterwards. The result was a 9 hour recording and audacity decided to hang after stopping the recording. I made a backup copy of the audio data just to be safe and restarted audacity. Luckily it recovered the project fine after restarting.

With a recent version of qsstv I decoded the recorded audio and searched for ISS passes in the recording.

The result is 13 decodes in one night. It turns out it received audio from a number of low passes that I did not see in gpredict because I have gpredict set up to skip low passes (those that don't come above a 20 degree angle above the horizon). But the strong signals from ISS make those show up in my radio anyway.

Decoded and seen the numbers sofar: 11 (partially), 12, 9, 10, 9, 10, 9 (partially), 9, 7, 8.

Tags: , , , ,
2017-07-17 Now NetworkManager generates resolv.conf .. and starts with legacy IP 1 month ago
I removed rdnssd and resolvconf and fixed the symlink linking /var/run/NetworkManager/resolv.conf and /etc/resolv.conf by hand. The file /etc/NetworkManager/NetworkManager.conf now says:
But now I run into the 'NetworkManager prefers IPv4 resolvers' again, leaving me with the resolvers from the DHCP answer before those from the IPv6 route advertisment. The search domains are fine now.

Tags: , ,
2017-07-16 Uploading FT8 contacts to eQSL 1 month ago
This evening I noticed incoming FT8 QSO's in eQSL, so the mode is now recognized there. But I needed to retry uploading all FT8 contacts to get them to upload. It took a bit of experimenting, but finally the right SQL command to mark the contacts as not uploaded was:
$ mysql -S /home/koos/.config/cqrlog/database/sock cqrlog002
mysql> update cqrlog_main set eqsl_qslsdate = NULL where mode='FT8';
Query OK, 24 rows affected (0.02 sec)
Rows matched: 26  Changed: 24  Warnings: 0
And now they are all uploaded.

That is about a week between first seeing mentions of FT8 in radio amateur news and the first confirmed contacts.

Tags: , ,
2017-07-16 SSH attacks by Java 1 month ago
Jul 16 04:17:01 greenblatt sshd[9365]: reverse mapping checking getaddrinfo for [] failed - POSSIBLE BREAK-IN ATTEMPT!
Jul 16 04:17:01 greenblatt sshd[9365]: Invalid user 1234 from
Jul 16 04:17:01 greenblatt sshd[9365]: input_userauth_request: invalid user 1234 [preauth]
Jul 16 04:17:01 greenblatt sshd[9365]: Received disconnect from 3: com.jcraft.jsch.JSchException: Auth fail [preauth]
That last bit is not from my sshd but an error message related to a java library for ssh, as noted in Reasons for com.jcraft.jsch.JSchException: Auth fail | Maximilian Böhm which correctly notes that attacks are a reason.

Tags: , ,
2017-07-15 More resolving via IPv6 1 month ago
I was reading Debian Stretch - Het Lab Henk van de Kamer (in Dutch) which mentions removing package rdnssd to avoid a dependency problem. But I like rdnssd as it helps use the nameservers available via IPv6 in a network with only SLAAC and no DHCPv6.

Right away I had to check on my own laptop with Ubuntu 16.04 and noticed all traffic was going to the IPv4 address of the local resolver. Which is not what I want, I want to prefer IPv6 when possible. Searching found Bug #936712 “NetworkManager should put IPv6 DNS servers before I...” : Bugs : network-manager package : Ubuntu which is indeed what I saw, and it's still showing in Ubuntu 16.04 Xenial.

My solution was to stop using dnsmasq, and switch to a generated resolv.conf from NetworkManager. To do that I had to update /etc/NetworkManager/NetworkManager.conf to have:
And now I have a resolv.conf with only 3 IPv6 nameservers and no search domains. Not exactly what I want, but at least IPv6 is preferred. I considered something using only the first three resolvers because that is a maximum somewhere but just advertising two resolvers via radvd also makes two show up in the generated resolv.conf. This is not perfect. The generated resolv.conf has comments that it is generated by resolvconf so maybe this is a conflict between resolvconf and NetworkManager not in 'use resolvconf' mode.

Tags: , ,
2017-07-10 Raspbian mirrors sometimes fail when IPv6-only 1 month ago
Just happening:
Err jessie/main libgcrypt20 armhf 1.6.3-2+deb8u4
  Cannot initiate the connection to ( - connect (101: Network is unreachable) [IP: 80]
It seems redirects to IPv4-only sites even when the client connects via IPv6. My Raspberry Pi systems have IPv4 disabled. It's a known problem in Bug #1595563 “Native IPv6 client redirected to IPv4-only mirror” : Bugs : Raspbian where people seem to rather ignore the problem. I could reverse the statement there to "a service that can only be accessed by v4 nodes cannot be reasonablly considered to be available on the internet." but I guess that's "different".
Read the rest of Raspbian mirrors sometimes fail when IPv6-only

Tags: , ,
2017-06-14 Controlling the SARK100 antenna analyzer from Linux 2 months ago
The SARK100 antenna analyzer I bought also has the option to be controlled over an USB interface (other versions even have bluetooth support). Over USB it is possible to automate the measurements and have the results returned to the controlling computer.

For Linux software is available: SARK100 Antenna Analyzer Linux Software also via github with updates coddingtonbear/sark-100-antenna-analyzer.

I cloned the git repository and guessed that the command to build a 32-bit version would be:
koos@thompson:~/radiowork/sark-100-antenna-analyzer$ mkdir build
koos@thompson:~/radiowork/sark-100-antenna-analyzer$ cd build
koos@thompson:~/radiowork/sark-100-antenna-analyzer/build$ qmake -spec linux-g++ -o Makefile ../analyzer/
This indeed compiled into a working 32-bit binary. Needed because the 'main radio desktop' can't run a 64-bit linux. The laptop does not have this problem.

Attic dipole on 10 m analyzed by the Sark100 analyzer and linux software
The attic dipole on 10m analyzed with the Sark100 analyzer and linux software
Attic dipole on 20 m analyzed by the Sark100 analyzer and linux software
The attic dipole on 20m analyzed with the Sark100 analyzer and linux software
And after compiling the software comes using the software. It works nicely and does what it says on the packaging.

Tags: , ,
2017-06-02 Upgraded the BIOS on the Alix 1.c box 2 months ago
I finally had some time to upgrade the BIOS on the Alix 1.c box (ritchie). It was a lot easier to do this with the flashrom utility than to do this with DOS boot floppies!

I just made sure again I checked the old bios version, which turned out to be alixbio3, and upgraded to alixbio8 from the PC Engines Alix 1.c page.

Now the machine boots without a screen attached. I also swapped the mainboard battery as it kept forgetting the current time.

Writing a bios file with flashrom is just changing the -r to a -w from the reading the flashrom command.

But this does not help the serial ports: those seem to be dead for good.

Tags: , ,
2017-05-12 SSH usernames being tried 3 months ago
Usernames seen in ssh attempts: 0 1 a a0 adm admin admln agnes ajay apache ask bin byte cactiuser CarpeDiem cisco cs daniel data db2inst1 debian D-Link erp ezrena faxadmin ftp ftpuser glassfish gpadmin guest help jesus lancer maile mailers marifer maronique media mis mysql nodeclient ooooooooo opuser oracle perl personnel pi pig PlcmSpIp postmaster postpone remote root roote rppt sales shop student support test testing ts ts3 turbo ubnt ubuntu user vnc wildfly willy xbmc And the '' username (empty string). By numbers root has the highest number of attempts.

Tags: , ,
2017-05-10 Changes in the future .. or living in the past 3 months ago
Interesting error message today:
Jan  1 01:01:02 ritchie CRON[1834]: pam_unix(cron:account): account koos has password changed in future
But it is caused by the system realtimeclock being completely wrong and assuming the date is 1 January 1990 or something. It probably needs a new battery. Or maybe a whole new system, this is from the system ritchie that started life as the wardriving box which was bought in 2008.

Tags: , ,
2017-04-29 Using kalibrate-rtl to calibrate the rtl-sdr frequency 3 months ago
In my project to receive amateur satellites with the rtl-sdr I noticed the sdr itself has quite a frequency error as noted in Going full duplex with amateur satellites, part 5 : first test of the amplifier with RTL-SDR.

Using the PI2NOS output frequency I ended up at an error of 54 ppm so I entered that in gqrx. But to be really sure there is a program named kalibrate-rtl available via GitHub - steve-m/kalibrate-rtl: fork of for use with rtl-sdr devices.

I had some trouble finding the right way to use this program so I am sharing my steps here. First try to guess the error by using a known frequency such as a local repeater (especially when they mention using GPS to maintain frequency) or a broadcast FM station.

First step with kalibrate-sdr is to scan for GSM channels which are strong enough. I noticed in later runs that I really need to add the first guessed frequency error, otherwise it will not find the GSM channels at all.
koos@kernighan:~/radiowork/kalibrate-rtl/src$ ./kal -s GSM900 -e 54
Found 1 device(s):
  0:  Generic RTL2832U OEM

Using device 0: Generic RTL2832U OEM
Found Rafael Micro R820T tuner
Exact sample rate is: 270833.002142 Hz
[R82XX] PLL not locked!
kal: Scanning for GSM-900 base stations.
        chan: 8 (936.6MHz + 724Hz)      power: 67277.85
        chan: 17 (938.4MHz + 606Hz)     power: 36428.54

Second step with kalibrate-sdr is to select a GSM channel to use for the calibration run. I selected channel 8 which looks quite active.
koos@kernighan:~/radiowork/kalibrate-rtl/src$ ./kal -e 54 -c 8
Found 1 device(s):
  0:  Generic RTL2832U OEM

Using device 0: Generic RTL2832U OEM
Found Rafael Micro R820T tuner
Exact sample rate is: 270833.002142 Hz
[R82XX] PLL not locked!
kal: Calculating clock frequency offset.
Using GSM-900 channel 8 (936.6MHz)
average         [min, max]      (range, stddev)
+ 169Hz         [85, 251]       (166, 49.119198)
overruns: 0
not found: 0
average absolute error: 53.820 ppm
And only in that step you get the output with the calculated frequency error.

Update: Doing this calibration is also a good idea for the stick running the ads-b receiver. That came out to -30 ppm and using that factor makes dump1090 receive signals from greater distances.

Tags: , , ,
2017-04-23 Going full duplex with amateur satellites, part 7 : Recording downlink audio 4 months ago
This evening I thought there would be a nice Fox-1A (AO-85) pass but gpredict on another computer showed totally different predictions. Pondering that difference made me suddenly remember AO-85 is still not part of the 'standard' set of Kepler data because it's close to some militairy satellite. The data is available through other sources, I use TLE | Amateur radio PE0SAT and updated from that location. The 'nice' AO-85 pass near 22:30 localtime shifted to 'way too late', so I looked for other satellites to at least try recording downlink audio. I saw passes of HO-68 and UO-11. So I created the whole setup with audacity recording audio. Using pavucontrol I adjusted the recording flow of audacity to record 'Monitor of Built-in Audio Analog Stereo' and indeed audacity was recording the same as I heard on my headphones.

But no signal from the satellites was received. Checking the Amsat Oscar status page shows both haven't been heard by others either. So I recorded noise, but I recorded the right noise.

Tags: , , ,
2017-04-19 En nu is de MTU wel naar 1500 van de VDSL PPPoE sessie 4 months ago
Recent postte 'Coen' in xs4all.adsl een stappenplan om onder Ubuntu 12.04 de MTU van de PPP verbinding naar 1500 bytes te krijgen. Alle lof dus naar Coen, want met zijn stappenplan is het me wel gelukt en is alles nu doorgaand MTU 1500, wat minder issues zou moeten geven.
Na een gezellig avondje stoeien is het gelukt om dit met terugwerkende
kracht voor Ubuntu 12.04 op te lossen met een nieuwe pppd en pppoe versie.

Voor wie durft en bovendien wat Linux ervaring heeft hier de te volgen

Nieuwe pppd builden:

mkdir ppp
cd ppp
apt-get source ppp
cd ppp-2.4.5/
wget -O debian/patches/zz_pppoe1500
dch -i
dpkg-buildpackage -us -uc

[[ppp en ppp-dev installeren]]

Nieuwe pppoe builden:

mkdir pppoe
cd pppoe
wget -4
tar -xzvf rp-pppoe_3.11.orig.tar.gz
cd rp-pppoe-3.11/
tar -xf ../rp-pppoe_3.11-0ubuntu1.debian.tar.xz
dch -i
dpkg-buildpackage -us -uc

[[pppoe installeren]]

Mtu op 1500 zetten: klaar!
Vanaf een losse client leek toch nog MTU 1492 gebruikt te worden, dus heb ik /etc/radvd.conf aangepast om expliciet MTU 1500 mee te geven:
interface eth0.3
   AdvSendAdvert on;
   AdvLinkMTU 1500;
En dan de verdere opties. En dan werkt het inderdaad:
koos@kernighan:~$ tracepath6
 1?: [LOCALHOST]                        0.018ms pmtu 1500
 1:                                     1.983ms 
 1:                                     1.858ms 
 2:                              17.910ms 
 3:                           17.957ms 
 4:  no reply

Tags: , , ,
2017-04-14 Going full duplex with amateur satellites, part 5 : first test of the amplifier with RTL-SDR 4 months ago
For a first test I looked for the first reasonable pass of an amateur satellite and tried to recieve the morse beacon of HO-68. I have received signals from HO-68 before, but this pass I heard nothing.

I tried a stable regular local source on the 70cm band : the PI2NOS repeater and noticed after a while the frequency display in Gqrx was showing 430.100 MHz where the (GPS stablized) frequency is 430.125 MHz, so the RTL-SDR I use is somewhat off frequency. Maybe in a next test things work better.

Tags: , , ,
2017-04-06 Results from a powerfailure 4 months ago
Earlier today there was a local powerfailure. I noticed it while being connected remotely to my server at home, it stopped responding and stayed off-line for a while. I checked the website of the electricity distribution network and it showed a local powerfailure.

Initially my reaction was a bit of interest in how low the radio noise levels would be when I could try the radio at home. By the time I got home power was back on so I never found out.

Some systems at home had to be started by hand, but eventually everything was up and running again, with new kernels booted. Everything came up fine including PPPoE to the outside world.

Later in the evening I noticed the old weatherstation in the shed which measures the temperature and humidity inside the shed seemed inoperational. Checking that weatherstation eventually led to a diagnoses that the 12 volt powersupply for that weatherstation had failed. It was only delivering 7.2 volt. To disconnect that weatherstation for diagnosis I completely shut down the shed computer ritchie. After that it did not come up again. Power came up and the harddisk started spinning but nothing happened after that.

So I also took that computer in for diagnosis. Connected to a keyboard and monitor everything came up fine. Disconnected from the monitor nothing came up.

Slowly it dawned on me that this might be related to an issue which I had read on the PC Engines Alix.1d page :
BIOS update

* beta various updates (release MFGPT timers)
* beta fix VGA DDC issue (boot hang)
Which seemed to be the problem which suddenly started acting up for me which it never did before. But the BIOS clock was also reset so I guess the whole setup was erased and I just did not notice because the default settings were good enough to boot anyway and ntpd sets the clock soon after boot. A simple solution would be a BIOS upgrade.

But preparing a CF card to boot freedos seemed a long way to flash the bios so I tried it via the Heavy Duty Boot pxeboot environment which booted FreeDOS nicely on the alix.1c but it rebooted as soon as I started SB.COM. I guess searches for bios images on C:\ and the FreeDOS floppy image is A:\

In the end I searched for a workaround and found mention in PC hangs up when no monitor attached - Ubuntu bug #243257 of a wire between pins 12 and 7 in the VGA connector. A piece of wire was bent and inserted into the vga connector and now the weatherstation computer ritchie boots up again.

Next plan is to do the BIOS upgrade via flashrom: In searching for information about the Alix 1.c bios upgrade I'd like to do I came across mention of flashrom.

Tags: , , ,
2017-03-27 Upgrading WSJT-X after hearing two words 4 months ago
Recently it seems radio noise levels on the HF bands have gone up again so I spend more time trying to make contacts in JT65 mode since that mode is more robust against noise than PSK31.

To do this I use the WSJT-X software under Ubuntu Linux. WSJT-X is written by Joe Taylor KJ1T. The Ubuntu hams packages had WSJT-X 1.1 and I frequently ran across the problem that it crashes when the Internet connection to pskreporter is impossible when sending spots. In my setup the Internet connection drops regularly when I'm active with JT65 or PSK31 so that was an annoyance. Logged as Ubuntu bug #1673040: wsjtx crashes when internet connection is interrupted.

But this weekend I was listening to Linux in the Ham Shack Episode #184 and in the presenters talking about re-installing a Linux system for amateur radio I heard two words: wsjtx ppa. As soon as possible I looked it up and found WSJTX General Availability Release PPA, followed the installation instructions and upgraded to WSJT-X 1.7.

The main improvement is that it decodes better so I may make further contacts. Sofar it hasn't crashed on an interrupted Internet connection.

I see one problem: it doesn't like talking to my radio via rigctld, giving an error. When I stop rigctld as started by Cqrlog and let WSJT-X control the radio directly via hamlib things work fine. And suddenly Cqrlog sees the QSO in progress and logs it when done.

Tags: , , ,
2017-03-27 Meten en grafieken maken van Powerline Ethernet doorvoer 4 months ago
Uit de archieven omdat ik de server waar dit ooit op draaide wil herinstalleren voor andere projecten.

Bij de HCC PCgg netwerkgroep hadden we ooit een netwerk gebaseerd op PLC (powerline communicatie) waarbij ethernet over stroomdraden gaat. Daar heb ik ook scripts voor gebouwd om statistieken te verzamelen over de doorvoer. Op de locatie in Maarn was dat voor de verbinding naar buiten niet zo briljant, zie de rapporten in Bijeenkomst 20 maart 2010 - hcc!pc netwerkgroep.

Maar voordat ik de scripts weggooi die deze gegevens verzamelden en er grafiekjes van maakten nog even voor de eeuwigheid. Het testdlan script gaat uit van output van dlanlist als:
koos@metcalfe:~$ dlanlist eth0
Type    MAC address        Mbps TX/RX       Version/Product
local   00:0B:3B:5F:95:AB  ---.-- / ---.--  INT6000-MAC-3-3-3348-00-2764-20080808-FINAL-B devolo dLAN 200 AVplus [MT2165]
remote  00:0B:3B:6F:AE:90   73.50 / 112.88  INT6000-MAC-3-3-3348-00-2764-20080808-FINAL-B

  • testdlan vraag dlanlist van devolo voor de huidige snelheid van devolo interfaces op netwerkkaart(en)
  • graphdlan maak grafieken per dag
De opzet van de scripts was om altijd te draaien als de machine actief was en achteraf overzichten te hebben per dag activiteit (meestal zaterdagen van 10:00 tot 17:00).

Tags: , , ,
2017-03-26 Going full duplex with amateur satellites, part 2 : Installing Gqrx SDR software and the first tests 5 months ago
With the hardware available it's now time to test the first part of the software setup: whether I can have running software defined radio.

To (re)install Gqrx I followed the instructions at Install Gqrx SDR on Ubuntu Linux. The first 'sudo apt-get purge --auto-remove' steps removed a lot of software and the latter 'sudo apt-get install' steps added newer (or maybe the same) versions. But I was glad to do a full reinstall, I have had weird problems with gqrx versions before. The laptop on which I am doing this has had an install of gqrx before, but was upgraded from Ubuntu 14.04 LTS to Ubuntu 16.04 LTS in the mean time, so a clean reinstall seemed a good idea.

I plugged in the RTL-SDR stick and checked whether no drivers were installed, which was indeed still correct. The kernel messages:
[156490.915435] usb 2-2: new high-speed USB device number 7 using xhci_hcd
[156491.111136] usb 2-2: New USB device found, idVendor=0bda, idProduct=2838
[156491.111141] usb 2-2: New USB device strings: Mfr=1, Product=2, SerialNumber=3
[156491.111143] usb 2-2: Product: RTL2838UHIDIR
[156491.111145] usb 2-2: Manufacturer: Realtek
[156491.111147] usb 2-2: SerialNumber: 00000001
To make sure the drivers aren't loaded, I have a /etc/modprobe.d/local-blacklist.conf with:
blacklist dvb_usb_rtl28xxu
blacklist rtl2830
blacklist rtl2832
blacklist lirc_dev
To test it with the 'minimal' setup I started with just the RTL-SDR and a simple antenna, and Gqrx. Enabled remote control in Gqrx and added a radio 'gqrx-sdr' in Gpredict with host 'localhost' and port '7356' (default for gqrx remote control) and Radio type 'RX only', PTT status 'none'.

Gqrx controlled by gpredict
Gqrx controlled by Gpredict, tracking a satellite
Now I can select this radio as '1. Device' in the 'Gpredict Radio Control' window, and select 'Engage' when the right satellite, transponder and 'Track' are selected, after which Gqrx nicely follows the frequency Gpredict has calculated.

No signal yet as I am testing this indoors with the small default antenna that came with the RTL-SDR stick. That will not pick up weak signals!

Tags: , , ,
  Older news items for tag linux ⇒
, reachable as PGP encrypted e-mail preferred.

PGP key 5BA9 368B E6F3 34E4 local copy PGP key 5BA9 368B E6F3 34E4 via keyservers pgp key statistics for 0x5BA9368BE6F334E4 Koos van den Hout
Other webprojects: Camp Wireless, wireless Internet access at campsites, The Virtual Bookcase, book reviews, Weather maps