Some Bits: Nelson's log

10 posts in May 2023

Obsidian Sync

I’m really liking Obsidian as my note taking app. I just paid $10/mo for Obsidian Sync, their syncing solution, and had some thoughts. This was originally an email to their support team.

Obsidian Sync mostly worked great. The docs are good. It feels like a solid product.

I previously was syncing with Syncthing. It worked mostly fine but was a little awkward. The thing that got me to buy the service was not having a great way to run Syncthing + Obsidian on a Chromebook.

I really balked at the $10/month or $98/year price. I’m sure they’ve heard a lot of complaints about the price and have their reasons. But if it were half the price or less I would never have set up SyncThing in the first place. FWIW I think 1Password is a good comparable at $3/mo for a single person.

Migrating to Obsidian Sync was a bit tricky; a lot of juggling of vaults, passwords, state. The extra steps to sync Obsidian settings and plugins were particularly confusing. This is the primary customer acquisition pathway, some streamlining here would help. None of the steps were technically wrong! Just awkward and given how easy it is to screw everything up with sync, a little nail-biting.

That reminds me they totally undersell one of the best features of Obsidian: the vaults are just simple text files and some JSON data! It’s so easy to make a backup of a vault or move a copy. So many systems (like 1Password) are opaque; Obsidian is refreshingly transparent. Ironic, given the product name ;-)

Starlink stays improved

A couple of months ago I noted that Starlink had recently improved during nightly congestion. Glad to say that trend has continued. It’s not gotten any better but it hasn’t gotten worse either. Even more important I’d say it’s “pretty good” now whereas before it was “really bad every evening”. I actually managed to watch a video stream over the Internet at 9pm last night, something I wasn’t able to do for the last year reliably.

Here’s a couple of graphs showing the change around April 1. I’m on residential service (ie, higher priority than best effort) Note there’s some bad data mid-march (I was on my backup ISP because of something unrelated).

This is my best measure; how many hours a day do I get under the advertised 20 Mbps download speed, based on an hourly Ookla speed test. Before the fix this was regularly 4+ hours a night, every night. Now it’s typically 1 or 2 hours. The nice thing about this measure is it highlights what I really care about, which is degraded service for part of the day.

And here’s a simple packet loss graph based on pings to 8.8.8.8. Before the fix I was averaging 1% packet loss for the whole day. Now it’s 0.5%. Still pretty high but not terrible. This doesn’t highlight the nightly congestion very well, I should do something showing “hours with over 1%” or something. Eyeballing a graph I have this steady 0.5% packet loss most of the day, it’s nothing like the bad old days of 5%+ packet loss in the evening.

This last graph is not useful, only including it for its obviousness. That’s average daily bandwidth (again, measured hourly at Ookla). The average may have gone up a tiny bit since the April improvement. But it’s not noticeable because the 3am periods of 250+Mbps swamp the hour or two of unacceptable 5Mbps service. Just an example where simplistic measures don’t capture what you care about.

I still don’t know what changed at Starlink. But my money is on them improving their traffic shaping and load balancing algorithms. It’s also possible this was a fix just for me, maybe I was incorrectly classified as a best effort customer and that got fixed? I have no reason to think that though. I think they improved their technology at the same time they dropped their soft data cap plan.

Nintendo Switch image downloads

The Switch has a screenshot function that saves images to an “album” in system storage. There’s a bunch of ways to download those images; plug the Switch in to a PC via USB, transfer with an SD Card, upload them to a social media service.. Or the slickest way, ad-hoc WiFi.

The process is described well in this article. Briefly the steps are:

  1. Select photos to download and say you want to share to your phone.
  2. Connect to a Switch ad hoc WiFi network. You do this by scanning the QR Code the Switch displays. It contains a WiFi Card string which has the SSID and password. The phone connects automatically to the network when you scan the image.
  3. Connect to a web server the Switch is hosting at 192.168.0.1. You do this by scanning a second QR Code that contains an URL. Your phone opens a web browser with the images in it.
  4. Save the images from the web page however your phone lets you.

It’s pretty slick. Also remarkably complex from a technology point of view, but using it is fairly simple.

Using Passkeys in Google’s ecosystem

I’m trying to understand passkeys. I did a test today trying to create and use a passkey on a demo site. I tested trying to log in on an Android phone (Pixel Pro 6), an Android tablet (Samsung Galaxy Tab S8+), a Windows 10 desktop, and a Chromebook. Here’s what I learned.

In summary: passkeys seem to work well for login and are shared across Android devices. Passkeys are stored alongside old fashioned passwords in a product Google calls “Google Password Manager”. If synced any Android device can be used as an authenticator for any passkey you’ve added. However Chrome cannot act as an authenticator on Windows or ChromeOS; they delegate to a nearby Android device. Important features for managing passkeys do not exist yet.

These notes are all for today, May 19. Most of my devices are pretty well updated: Chrome 113.0.5672.94, Android 13 on the phone and tablet, ChromeOS Beta 114.0.5735.31 on the Chromebook. The desktop is Windows 10 Pro 22H2. I have not set up Windows Hello on it.

(I didn’t test on any Apple systems. My understanding is Apple Keychain works pretty well and is synced across all devices via iCloud.)

Logging in

I created a new account and passkey at passkeys.io on my phone. That took a one-time setup of Google Password Manager on my phone to tell it to store passkeys there and let me unlock them with my phone biometrics. Then the new passkey was created and stored.

Chrome on Android Phone: I could log in and out of the demo site very easily in the Chrome browser. Chrome prompts me once to verify I want to log in with a passkey, then a second prompt for my thumbprint, then I’m logged in. I wouldn’t mind if they whittled that down to a single prompt.

Firefox on Android phone: worked identically to Chrome with no extra setup.

Chrome on Android Tablet: after initial setup it was the same login experience as phone. The tablet also lets me use a PIN instead of a thumbprint. The important thing here is I never did anything to get my passkey on to my Android tablet. That happened transparently, behind the scenes. Apparently Google is syncing passkeys between secure Android devices via the Internet (or possibly Bluetooth). The passkey is definitely coming from the tablet itself, my phone is not involved.

Chrome on Chromebook: different experience. Logging in pops up a “use your passkey” dialog with a list of devices that have my passkeys. I chose my phone and a notification popped up on my phone asking me to approve and use my thumbprint to log in. That all just worked in 4 clicks/taps in total. Behind the scenes I believe this uses Bluetooth. The passkey is not on my Chromebook, it requires a different device to be the authenticator.

Chrome on Windows: similar experience as Chromebook once Bluetooth was set up on Windows. I’m prompted with a list of authenticator options, delegating to my phone worked like the Chromebook. There’s also an option for “Windows Hello or external security key” as an authenticator which popups up a Windows dialog for what I imagine is Windows’ passkey authenticator. Before I added Bluetooth to the Windows box that popup appeared immediately, it was my only choice. I didn’t pursue the Windows stuff, but I imagine that’d be the way to get passkeys on the Windows device itself (or a Yubikey) and not rely on a phone. It’d be nice if Chrome didn’t ask me every time which Android device I wanted to use.

Firefox on Windows: goes straight to the Windows dialog, even with Bluetooth available. No choice of authenticators. It doesn’t seem aware it could delegate to my Android phone.

Edge on Windows: two options, “Windows Hello or external security key” or else “Use a different phone or tablet”. That second option popped up a FIDO: QR Code that introduced Edge to my phone as an authenticator. Then the phone did the passkey thing via Bluetooth. Second time around I had a third authenticator option, my phone, which worked just like Chrome and Firefox on Windows. I don’t know if some of this interaction was specific to passkeys.io and their Javascript libraries.

Summary: Android devices are storing passkeys and syncing them between themselves. Windows and Chromebook are not storing passkeys but can delegate via Bluetooth to a nearby Android device.

Managing passkeys

Logins work pretty well in the Google ecosystem, what about managing passkeys? The story isn’t as great although Android at least can give you a list of passkeys.

Google’s passkey authenticator product is called Google Password Manager (GPM). This is the same thing that stores plaintext passwords for websites you log in to. It manages passkeys too. I never set it up before because I use 1Password instead.

Android: GPM is part of Google Play Services, a sort of adjunct to the Android OS. Launching GPM on Android is not easy. It’s hidden in Settings and I could only find it via a search, and in a different place on the Samsung tablet than the Pixel phone. Once in the Password Manager there’s a button “Add shortcut” which will give you an icon you can tap to open it. Opening that I see a list of my passkeys and passwords.

Chrome on Windows: GPM is in Chrome settings at chrome://settings/passwords. However it only has a list of my passwords, there are no passkeys there. Not too surprising since the passkeys aren’t actually on my Windows machine.

Chrome on Chromebox: same as Windows; no way to list your passkeys that I can find.

Google Passwords webapp: GPM has a webapp version of its product. It only lists my passwords, not my passkeys. This seems like a fairly serious omission to me. I don’t know any way on the web to find the passkeys that Android is syncing for me.

Google Accounts: Google has a webapp for the passkeys I can use to log in to Google itself. It tells me that two were automatically created for me, one on each of my Android devices. That’s a relatively new thing but is an extension of a passkey-like authentication that Google/Android has been doing for awhile.

Summary: GPM on Android is the only working passkey management tool. It’s pretty limited. You can list your passkeys and delete them. There’s no option to export them, or back them up outside Google’s ecosystem, or share them with someone else. Some of that stuff is supposedly coming but I have a suspicion Google is in no hurry to implement something that’d let you migrate out of their product.

My new Acer Chromebook Spin 714 (2022)

I finally picked a Chromebook to be my travel laptop; an Acer Chromebook Spin 714. Specifically the 2022 model, CP714-1WN-53M9 SKU:6507836. I got this on sale for $529 from BestBuy, I probably wouldn’t have bought it at the usual $729 price but I’m glad I got it on discount. (Chromebooks often go on discount, it’s weird.)

It’s very good hardware! The screen is nice and bright and at 1920x1200 has enough pixels. The keyboard feels fine. The system feels quite fast, a combination of ChromeOS being responsive and the CPU in this thing being pretty high power for what it’s doing. Unusually it also comes with 3 USB ports (two USB-C) and a dedicated HDMI output.

Note there’s no SD card slot. The 256GB of SSD is more than enough for normal Chromebook stuff though. I have a complaint about the trackpad. It’s a little floaty, apparently a design flaw with inexpensive laptops that you might be able to fix yourself. I’m also not thrilled about the vents and fan; the fan comes on a little just sitting in my lap if my clothes are blocking the bottom vent at all. Ut doesn’t spin if sitting unobstructed on a flat table. And it’s very quiet when it’s running but there’s a difference between no fan at all vs. a very quiet one.

It’s a “Spin” which means the hinge rotates all the way around so you can use it fold it backwards and use it like a tablet. (Touch screen or stylus, the keyboard and trackpad get disabled). I was thinking that’d be a great feature but now I don’t; it’s just too bulky and awkward. Also the hinge doesn’t fully lie flat so it feels a little springy, like it might break if you press wrong on it.

One nice surprise is that Steam is available in beta on ChromeOS and a bunch of games seem to work well on it. The Chromebook isn’t going to win any gaming benchmarks but some games with light 3d were perfectly playable. I wouldn’t recommend buying a Chromebook for gaming, particularly not this one, but it’s nice to have the option.

The main thing I like about it is the screen. Bright, clear, and while not high DPI text looks pretty good on it.

Alternatives

Acer is now offering a slightly updated Spin 714, the CP714-2WN at $699. That one is mostly the same. Slight upgrade to the CPU (13th generation vs 12th) but the rest seems the same. They took out the stylus from the package, that’s kind weird.

I kind of wish I’d bought one of the Kompario 1380 systems. Either the $489 HP x360 13b-ca0047n or the $599 Acer Chromebook Spin 513 cp513-2h. That latter one is particularly interesting for its 2256 x 1504 screen. The ARM CPU means lower power so they have longer battery life and are truly fanless. OTOH ChromeOS on ARM is a mixed bag. It won’t matter for basic stuff but if you’re installing Linux you need arm64 packages that may not be available. And Steam is out of the question AFAIK.

I was pretty impressed with my $120 Chromebook, an old Acer 311 also based on an ARM processor. Still a great value.

Update

Worked great for my recent trip to Ireland! Didn’t miss having Windows or MacOS, not even once. Loved the light machine with a big bright screen. Really appreciated that it doesn’t need its own proprietary charger; I guess most laptops charge via USB-C now but this was my first one and it’s great to have a lighter bag.

Switching from Firefox to Chrome

I switched to Firefox over 5 years ago, when Quantum came out. Yesterday I switched back to Chrome, at least for awhile. OMG it’s so much faster.

Why

The primary reason to switch is the new Chromebook. Running Firefox on ChromeOS is not great. You’ve got two choices. Either install the Android app, which works too much like a mobile app. Or install the Linux app which mostly should work OK but it’s running in a container and is awkwardly integrated. Either way, it’s hard to overlook that it’s a Chromebook running ChromeOS which is largely a bunch of Chrome browser tabs as apps. And while I can run different browsers in different places it’s very nice only having a single browser everywhere for data syncing, etc.

The other reason is Firefox doesn’t feel as great to me as the early Quantum days. It’s slow to first launch, like 5+ seconds. Turns out I shut down and relaunch my browser a lot (I’m a tab zero kind of guy). Also I keep running into little weird site problems with Firefox where the most likely explanation is the site was never tested on it. (e.g., the Wordpress.com editor I’m typing this in looks better in Chrome.) I just got tired of dealing with that friction.

Migration

Moving from Firefox to Chrome is pretty easy. Chrome has an import tool to bring in bookmarks although I had to organize after the import to get them in the right place. It will also import browsing history, something I’ve found surprisingly useful to keep around.

Most of the important stuff is in authentication. I use 1Password already so my login passwords are already portable. There’s no way to bring over login cookies so I have to re-log-in to everything in Chrome but, eh, that seems inescapable.

The surprising hard part of moving over was browser extensions. I only use six, and some of them have identical versions in multiple browsers. But I had to find a different Pinboard extension. And sadly I’ve learned both Imagus and Bypass Paywalls Clean have gotten deprecated / not updated for a long time. So that’s awkward, albeit also a problem for Firefox.

Missing

The main thing I’m missing from Firefox is Multi-Account Containers. I use that to quarantine hostile surveillance sites like Facebook or Twitter. It doesn’t work perfectly but I think it helps. Anyway Chrome doesn’t have them. It is relatively easy to use separate profiles in Chrome now, so I’m doing that, but it’s not as good a solution as Firefox’s more automatic UI. SessionBox seems the most popular extension but it’s basically payware and the UI is a bit awkward. Does seem to get the job done though.

Also worried about ad blockers. Right now uBlock Origin works great on Chrome. But there’s the ongoing Manifest v3 thing coming and concerns it will make effective ad blocking harder. If Chrome breaks ad blocking I’ll switch back to Firefox, so got to keep an eye on that.

I’ve noticed that Chrome’s “restore closed tab” feature isn’t as robust as Firefox’s. Firefox can not only restore an old tab but a whole window of tabs. And it restores them with more state, like the text of a Reddit post that I closed the window before posting and then changed my mind and decided I wanted to post afterall. It’s not a big deal but I got used to the Firefox safety net.

Chrome allows third party cookies. You can turn that off but they haven’t done anything to mitigate all the stuff that breaks. Like Google’s own home.nest.com, which apparently uses a google.com cookie or something to authenticate. Firefox has a more complex system for blocking invasive third party cookies, so does Safari.

Feelings

So far Chrome is working fine for me. It definitely feels snappier; somehow Firefox has gotten less responsive over the past couple of years. But I haven’t measured that in any precise way. That first window open is definitely way faster on Windows in Chrome, and I checked and it’s not just because Chrome is hiding as a background app. (That trick makes it faster still.) Also a lot of web pages feel like they’re reacting faster to my inputs. But without careful measurement I can’t really be sure.

I think Firefox is important. I want Mozilla to succeed. But I feel a bit like I’ve just taken a hairshirt off. My main message is I should be trying different browsers more frequently.

Chromebook, Ubuntu, Crostini and other containers

ChromeOS has nice support for running your own Linux distro in an LXC container. By default it installs Debian in a container named “penguin” and there’s a Terminal app to connect to a shell in it. I’d rather use Ubuntu. There’s lots of instructions on how to do this online but most of what you’ll find are using the outdated Crouton container environment.

The 2023 way of setting up Ubuntu on a Chromebook is with Crostini. This Reddit Wiki has thorough instructions. This article is also fairly good as is this outdated gist. It boils down to launching a special Termina shell to control containers. Then to install Ubuntu in a new container, then to install some Chromebook specific stuff, then to set up your user login.

All that being said I could easily set up a container with a different Linux distro but I couldn’t get it to connect nicely to the Terminal GUI app. This is all pretty complicated tinkerhacking. One reason I’m excited about ChromeOS is you don’t really need to do this kind of thing for an ordinary experience. But I’m being a little extra about a Linux environment.

Alternate distro support is a work in progress and there’s lots of notes about current development online. I stopped about here, which was instructions on telling Terminal how to connect to a different container. This is related to the crostini-multi-container flag in about:flags. That’s a feature that gives you a GUI for accessing multiple containers but is not complete. See also discussion here.

A failed Ubuntu install

Unfortunately the online instructions didn’t work for me with Ubuntu 23.04 and ChromeOS Beta 114.0.5735.18.

One problem is the Chromebook-specific stuff (cros-ui-config and friends) failed to install, either using the fancy script or just running “apt install” and hoping for the best. The Reddit Wiki has complicated instructions and a script for installing cros-ui-config. I guess the packages are still not working quite right but different hacks are needed than what that script did. These didn’t work for me with Ubuntu 23.04 and ChromeOS Beta 114.0.5735.18. Simply running apt install cros-ui-config got fairly far but failed in the end.

Worse, even a vanilla Ubuntu 23.04 install (without cros-tools) didn’t work right for me. It seemed to be fine, I could get a working shell with lxc exec. But then I couldn’t connect to it via the Terminal app, the little spinning progress thing ran and stalled without giving me a shell. It’s like whatever connects the ChromeOS UI to the containers wasn’t working. I couldn’t even completely wipe the Linux development environment from the Settings app, it also hung, although the wipe did work after a reboot. At least I didn’t have to powerwash the whole system and start over.

For now I’m just going to settle for Debian. When I feel like tinkering again I’ll revisit Ubuntu, maybe update this blog post.

Other containers and VMs in ChromeOS

It’s not just a Linux environment that uses a container on a Chromebook.

Modern Chromebooks run android apps in a container called ARCVM. I don’t know much about how this works, it’s all pretty opaque. Folks complained it uses more resources than the old method but it seems fine to me.

ChromeOS 108 got the ability to run Steam games. It does this with a VM environment called Borealis. From what I’ve read this is Ubuntu 18.10 and using Valve’s Proton stuff to emulate enough Windows API to run a lot of games. Ie: similar to what a SteamDeck is doing.

This is all a lot like what Windows does, btw; WSL is the Windows equivalent of Crostini, and Windows can run Android apps in a VM too.

Influx: seeing table (measurement) size

I’ve been accumulating data in Influx DB for a long time. Here’s how to see how much (in bytes)

influx_inspect report-disk -detailed /var/lib/influxdb/data |
  jq '.Measurement | sort_by(.size)'

I’d like to set up a retention policy to auto-delete some old data but unfortunately policies seem to be per database. I’ve got a lot of stuff in a single database named telegraf and some of it I want to keep forever, others I want to discard after a month. I imagine there’s a way to configure the telegraf agent to start writing data in different databases and/or retention policies.

telegraf vs timestamp precision

Learned something the hard way: telegraf by default rounds (some?) timestamps to 1 second.

I’ve got some code that runs IRTT and emits influx format lines every 100ms with precise timings and timestamps. Output like this:

irtt_packets,remote_address=45.66.249.240:2112 delay_rtt=49890590,ipdv_rtt=-25723094 1683647662430925080
irtt_packets,remote_address=45.66.249.240:2112 delay_rtt=100696672,ipdv_rtt=50806082 1683647662530279079
irtt_packets,remote_address=45.66.249.240:2112 delay_rtt=66017146,ipdv_rtt=-34679526 1683647662630672054
irtt_packets,remote_address=45.66.249.240:2112 delay_rtt=56583224,ipdv_rtt=-9433922 1683647662731135862

Those are nanosecond timestamps and the interval is roughly 100,000,000 nanoseconds (ie: 0.1 seconds).

But in influx the data comes out looking like this:

1683646020000000000 43842340 gvl 12180311 45.66.249.240:2112
1683646021000000000 43708652 gvl -11768007 45.66.249.240:2112
1683646022000000000 36362863 gvl -4289225 45.66.249.240:2112
1683646023000000000 40232640 gvl -47825 45.66.249.240:2112

It’s filed all the numbers off my timestamps! Worse, it’s combined ten 100ms measurements into a single 1s measurement. I think new entries just clobber old ones although I’m seeing some signs of it actually combining data from several measurements (‽)

The culprit is precision in telegraf.conf. This can be set both for the whole agent and on a per-input plugin. Maybe also per-output.

My Ubuntu had this set to the empty string. What that means is not well documented on the website but the .conf file had this helpful comment

## By default or when set to "0s", precision will be set to the same
## timestamp order as the collection interval, with the maximum being 1s.
## ie, when interval = "10s", precision will be "1s"
## when interval = "250ms", precision will be "1ms"

So that’s super confusing. But I had my interval at 15s and was seeing timestamps with precision of 1s. I added a precision = "1ns" to the input of interest and now it’s logging timestamps properly.

I can see how truncating timestamps like this could be useful; it hides slight jitter in data and everything lines up neatly. But in my case I really need precise timings. Also the way this causes multiple entries to be lost (because of timestamp combining in influx) is bad. Particularly surprised that it’d throw away precise timestamp info from influx wire format data. If someone went through the trouble to output nanoseconds they probably meant to.

Starlink residential improvements

Starlink has changed their service plans, at least in the US. For once it’s a small improvement for me, specifically the drop of a 1TB soft data cap on residential plans. They also raised documented download speeds to 25-100Mbps (from 20-100) although upload speeds are now listed as 5-10Mbps (from 5-15). See the new service specification that I assume replaces the old one for details.

I wonder what changed that caused them to drop the soft data cap? I posted a month ago about a performance improvement during evening congestion; maybe they’ve improved their resource sharing enough they didn’t need a formal cap? Service is definitely improved for me, the change I documented a month ago has held steady.

Update: the “fair use policy” indicates they might still throttle only on terms less clear than the planned 1TB soft cap. So this seems a step backwards, not forwards.

If bandwidth patterns consistently exceed what is allocated to a typical residential user, Starlink may take network management measures, such as temporarily reducing a customer’s speeds, to prevent or mitigate congestion of the Services