Viestit paikassa Launchpad

PrintScreen is now bound to Gnome Settings Daemon, which is used to take screenshots instead of gnome-screenshot

23. maaliskuuta 2018 klo 17.18
Sijainti: Vianhallintajärjestelmät: Launchpad
Avainsanat: Gnome

It seems that PrintScreen is now bound to Gnome Settings Daemon, which is used to take screenshots instead of gnome-screenshot. Keyboard settings (in Gnome settings) still has a screenshot shortcuts section in the keyboard shortcut settings, but those too now only trigger Gnome Settings Daemon’s screenshot feature, not gnome-screenshot.

What’s worse, disabling those shortcuts does not allow for remapping PrintScreen back to gnome-screenshot using a custom shortcut, as pressing PrintScreen in the shortcut selector window still just triggers the GSD ’blink’ instead of registering PrintScreen as the new shortcut key for the custom command. Only the screenshot section’s pre-defined actions allow for PrintScreen to be grabbed. (At least that’s what it does here.)

When the screenshot shortcuts are disabled, nothing is apparently saved anywhere despite the blink effect. The ”Save a screenshot to Pictures” shortcut has to be defined for the screenshots to actually get saved, and then they will be unconditionally saved to $XDG_PICTURES_DIR: https://bugzilla.gnome.org/show_bug.cgi?id=699642

Vastaa viestiin sen kontekstissa (Launchpad)

Flood of ”peer a.b.c.d:port is not from a LAN” in syslog

23. maaliskuuta 2018 klo 15.28
Sijainti: Vianhallintajärjestelmät: Launchpad

After upgrading from Xenial to Bionic, my syslog is being spammed by minissdpd. From today’s syslog going back three hours:

15.05 jani@saegusa:~$ grep ”is not from a LAN” /var/log/syslog | tail
Mar 23 15:03:30 saegusa minissdpd[1990]: peer 192.168.1.4:39280 is not from a LAN
Mar 23 15:03:33 saegusa minissdpd[1990]: message repeated 3 times: [ peer 192.168.1.4:39280 is not from a LAN]
Mar 23 15:03:36 saegusa minissdpd[1990]: peer 192.168.1.10:13206 is not from a LAN
Mar 23 15:03:36 saegusa minissdpd[1990]: peer 192.168.1.10:13206 is not from a LAN
Mar 23 15:03:51 saegusa minissdpd[1990]: peer 192.168.1.1:32769 is not from a LAN
Mar 23 15:04:21 saegusa minissdpd[1990]: message repeated 39 times: [ peer 192.168.1.1:32769 is not from a LAN]
Mar 23 15:04:29 saegusa minissdpd[1990]: peer 192.168.1.10:13206 is not from a LAN
Mar 23 15:04:29 saegusa minissdpd[1990]: peer 192.168.1.10:13206 is not from a LAN
Mar 23 15:04:50 saegusa minissdpd[1990]: peer 192.168.1.1:32769 is not from a LAN
Mar 23 15:04:51 saegusa minissdpd[1990]: message repeated 19 times: [ peer 192.168.1.1:32769 is not from a LAN]
15.05 jani@saegusa:~$ grep -c ”is not from a LAN” /var/log/syslog
1623

192.168.1.0 is my LAN.

According to the upstream report [1], specifying an interface should get rid of the ”not from a LAN” messages, and I can confirm that adding ”-i eth1” to the value of MiniSSDPd_OTHER_OPTIONS in /etc/default/minissdpd does just that. I don’t know how good a solution adding a fixed interface is though, I’d imagine switching to (e.g.) a wifi interface on a system with multiple interfaces would cause the message flood to reappear.

*[1] https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=890584

Vastaa viestiin sen kontekstissa (Launchpad)

Possible upstream issues

22. maaliskuuta 2018 klo 16.28
Sijainti: Vianhallintajärjestelmät: Launchpad
Avainsanat: GnuPG

Possible upstream issues: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=842015 -> https://dev.gnupg.org/T2818 (-> https://dev.gnupg.org/T2843#)

Vastaa viestiin sen kontekstissa (Launchpad)

Graphical prompt (pinentry-gnome3) invoked even when connected via ssh

22. maaliskuuta 2018 klo 16.09
Sijainti: Vianhallintajärjestelmät: Launchpad
Avainsanat: GnuPG

When I’m connected to my desktop computer via ssh, with the desktop computer’s desktop environment running and unlocked, trying to decrypt a gpg-encrypted file causes gpg-agent to invoke pinentry-gnome3 on the desktop. Assuming I’m physically elsewhere, I’m obviously unable to use the prompt on the desktop to enter the passphrase.

This happens despite both pinentry-tty and pinentry-curses being present on the desktop (in addition to pinentry-gnome3), and having GPG_TTY point to the correct tty (export GPG_TTY=$(tty)). Under these circumstances I’d expect gpg-agent to gracefully fall back to non-graphical alternatives.

Granted, I’ve so far only simulated being physically elsewhere by first ssh’ing out of the desktop, then back in again from the other end. If gpg-agent is using some kind of magic to detect that in reality I’m still physically on the desktop, then this report is invalid (although I’d still feel uneasy about such magic).

== Steps to reproduce ==
1. log in to desktop computer A
2. use another computer B to ssh in to the desktop computer
3. still physically on B, invoke `gpg -d encrypted.gpg` on A (over ssh)

== What happens ==
Graphical passphrase prompt pops up on A, while your ssh terminal on B waits

== What I expect to happen ==
For a non-graphical passphrase prompt (such as pinentry-tty or pinentry-curses) to appear on B’s ssh terminal

Vastaa viestiin sen kontekstissa (Launchpad)

Upstream (based on a merged duplicate)

22. maaliskuuta 2018 klo 15.04
Sijainti: Vianhallintajärjestelmät: Launchpad
Avainsanat: GnuPG

Upstream (based on a merged duplicate): https://dev.gnupg.org/T2011

Vastaa viestiin sen kontekstissa (Launchpad)

Interrupting pinentry-tty with ctrl-c leaves the terminal broken

22. maaliskuuta 2018 klo 15.02
Sijainti: Vianhallintajärjestelmät: Launchpad
Avainsanat: GnuPG

When pinentry-tty is used to prompt for the password, interrupting the prompt using ctrl-c leaves the terminal only partially working: only some letter keys are echoed back.

The terminal remains in this broken state for about a minute, after which it resets itself and everything starts working again.

Below, I’m swiping through all alphabet and numeric keys of my keyboard at both 14.54, where only ”469+esgxb” gets through, and again at 14.55 (the last line), where they all come through.

14.54 jani@saegusa:testejä$ export LC_ALL=C
14.54 jani@saegusa:testejä$ { sleep 60; echo ”60 seconds passed”; } & LC_ALL=C /usr/bin/gpg -d passwords.gpg
[1] 12375
gpg: AES encrypted data
Enter passphrase

Passphrase:
gpg: signal Interrupt caught … exiting

14.54 jani@saegusa:testejä$ 469+esgxb^C
14.55 jani@saegusa:testejä$ 60 seconds passed

[1]+ Done { sleep 60; echo ”60 seconds passed”; }
14.55 jani@saegusa:testejä$ 1234567890+wertyuiopåasdfghjklöäzxcvbnm,.

Vastaa viestiin sen kontekstissa (Launchpad)

This is still present in Bionic

26. helmikuuta 2018 klo 14.28
Sijainti: Vianhallintajärjestelmät: Launchpad

This is still present in Bionic.

$ LC_ALL=C apt-cache policy zsync
zsync:
Installed: 0.6.2-3ubuntu1
Candidate: 0.6.2-3ubuntu1
Version table:
*** 0.6.2-3ubuntu1 500
500 http://fi.archive.ubuntu.com/ubuntu bionic/universe amd64 Packages
100 /var/lib/dpkg/status
$ zsync http://cdimage.ubuntu.com/ubuntu-server/daily/current/bionic-server-amd64.iso.zsync
#################### 100.0% 0.0 kBps DONE

No relevent local data found – I will be downloading the whole file. If that’s not what you want, CTRL-C out. You should specify the local file is the old version of the file to download with -i (you might have to decompress it with gzip -d first). Or perhaps you just have no data that helps download the file
downloading from http://cdimage.ubuntu.com/ubuntu-server/daily/current/bionic-server-amd64.iso:
#################### 100.0% 20540.8 kBps DONE

verifying download…checksum matches OK

Vastaa viestiin sen kontekstissa (Launchpad)

Alright, thanks Jamie!

21. helmikuuta 2018 klo 19.26
Sijainti: Vianhallintajärjestelmät: Launchpad
Avainsanat: Snap, Wekan

Alright, thanks Jamie!

Vastaa viestiin sen kontekstissa (Launchpad)

snap interfaces lists ’wekan’ connected to network and network-bind, not hardware-observe

21. helmikuuta 2018 klo 18.15
Sijainti: Vianhallintajärjestelmät: Launchpad
Avainsanat: Apparmor, Snap, Wekan

Output of `snap interfaces` during `snap install wekan` Edit (2.4 KiB, text/plain)

The Apparmor denial seems to no longer occur with 2.31.1.

`snap interfaces` lists ’wekan’ connected to network and network-bind, but not hardware-observe. I’m struggling with the correct syntax for manually connecting it to anything:

root@saegusa:~# snap connect wekan :hardware-observe
error: cannot resolve connection, plug snap name is empty
root@saegusa:~# snap connect wekan:wekan :hardware-observe
error: snap ”wekan” has no plug named ”wekan”
root@saegusa:~# snap connect wekan: :hardware-observe
error: invalid value: ”wekan:” (want snap:name or snap)
root@saegusa:~# snap connect :wekan :hardware-observe
error: cannot resolve connection, plug snap name is empty

`snap interfaces` does list a ’wekan:mongodb-plug’, which (if I’m reading the output right) is unattached. Attempting to connect that to hardware observe:

root@saegusa:~# snap connect wekan:mongodb-plug :hardware-observe
error: cannot connect wekan:mongodb-plug (”content” interface) to core:hardware-observe
(”hardware-observe” interface)

There’s also a ’wekan:mongodb-slot’. Attempting to connect mongodb-plug to that:

root@saegusa:~# snap connect wekan:mongodb-plug wekan:mongodb-slot
error: snap ”wekan” has ”install-snap” change in progress

That’s true, since I’m only able to see those two during the time that the installation is stuck.

I’ll attach the full output of `snap interfaces` below. It’s the same output that `snap interfaces` produces on the VM without the issue (after installation, when the service is running).

As for the other question, there are wekan-related commands running when it’s stuck (listing below). The service seems to be up and running already (I can open it in a browser) for the time it remains in the configuration phase, but when the hook times out it of course gets cancelled and the installation is undone.

root@saegusa:~# ps aux | grep wekan
root 10517 1.2 0.1 935608 23360 pts/22 Sl+ 17:45 0:00 snap install wekan
root 10782 0.0 0.0 18056 2760 ? Ss 17:45 0:00 /bin/bash /snap/wekan/124/bin/mongodb-control
root 10809 4.4 0.3 283812 54748 ? Sl 17:45 0:01 mongod –dbpath /var/snap/wekan/common –logpath /var/snap/wekan/common/mongodb.log –logappend –journal –unixSocketPrefix /var/snap/wekan/124/share –port 27019
root 10811 0.0 0.0 18052 2892 ? S 17:45 0:00 /bin/bash /snap/wekan/124/meta/hooks/configure
root 10871 0.0 0.0 18056 2676 ? Ss 17:45 0:00 /bin/bash /snap/wekan/124/bin/wekan-control
root 10898 7.6 0.6 1172036 103648 ? Sl 17:45 0:02 /snap/wekan/124/bin/node main.js
root 10975 0.0 0.0 15464 1012 pts/23 S+ 17:46 0:00 grep –color=auto wekan

Vastaa viestiin sen kontekstissa (Launchpad)

snapd 2.31.1 did not fix the issue unfortunately

21. helmikuuta 2018 klo 16.32
Sijainti: Vianhallintajärjestelmät: Launchpad
Avainsanat: Apparmor, Snap

Update: got snapd 2.31.1 from -proposed this morning, and replaced the customized /etc/apparmor.d/usr.lib.snapd.snap-confine.real with the package-provided version. This did not fix the issue unfortunately.

Vastaa viestiin sen kontekstissa (Launchpad)

« Uudempia - Vanhempia »