triptico.com

Un naufragio personal

Minimum Profit version 5.39

Version 5.39 of the #MinimumProfit Text Editor is available.

New features:

  • The usage of Unicode characters in text menus, games, etc. can be disabled by setting the configuration variable mp.config.use_unicode to 0.

Other changes:

  • Some internal optimizations to visual wrapping code.

Downloads and more information in the Minimum Profit page.

Git repositories for the Minimum Profit Text Editor, online again

I've setup the following Git repositories for the Minimum Profit Text Editor:

git clone https://triptico.com/git/mpdm
git clone https://triptico.com/git/mpsl
git clone https://triptico.com/git/mp-5.x

#MinimumProfit

OpenBSD in a laptop, part 3

And while I was deep diving into OpenBSD 6.6 [1, 2], OpenBSD 6.7 came to life.

I thought it was a great opportunity to learn how version upgrades work under OpenBSD. This is always a hairy process; a full-system upgrade has to take so many things into account, as every system is a unique one.

Of course, there is a detailed 6.7 upgrade guide. From it I learned that this used to be a complicated process (downloading a special kernel, boot from it...) but it's no longer: there is a tool aptly named sysupgrade that makes it much easier.

In the guide I was instructed to delete a user/group (that I didn't have) and to check for available disk space. Everything was fine so I ran the sysupgrade tool and it downloaded the new system, made me reboot into a special kernel, did many system-upgrade-y things, rebooted again and I found myself with a brand-new OpenBSD 6.7 system.

I still needed to manually execute syspatch (I remember a set of patches being mentioned in the previous step, I don't know why they weren't automatically installed) and of course pkg_add -u. I did this from a console because I didn't want unnecessary jump-scares from the GUI.

Summarizing: the 6.6->6.7 upgrade process is smooth, quick and without glitches nor surprises. Again, kudos to OpenBSD people, you are awesome.

Given that I don't plan to continue these post series, I finally decided to stop intentionally delaying the setup of the CUPS printing system, so I run

pkg_add cups gtk+3-cups hpcups

My printer is an HP OfficeJet 6960 (connected by Ethernet to my local network), that's why I installed hpcups. I then needed to configure CUPS to run at system startup, so this is how my /etc/rc.conf.local ended up looking:

xenodm_flags=
multicast=YES
pkg_scripts="messagebus avahi_daemon cups_browsed cupsd"

I connected to the CUPS system web interface at localhost:631 with a browser and spent the usual huge amount of time finding the correct combination of connection type, printer model, small mammal sacrifice and PPD file until I found the one that worked (color do not look OK, though). Man do I hate CUPS. Concerning OpenBSD, this was not worse than in any other CUPS-infected system.

I also installed LibreFuckingOffice. Yes, I hate it too. I hate many, many things.

Regarding Bluetooth: I checked this laptop's specs and it does not have a Bluetooth chip, so I decided to buy a Bluetooth USB dongle, as they are cheap and capable these days. But then I learnt that OpenBSD does not support Bluetooth; it used to (at least partially), but because of lack of hardware drivers or security issues or whatever they dropped it. I think this is a mistake, but who am I to disagree. No Bluetooth headphones for Ángel in this machine, go listening to your crappy music somewhere else.

Anyway, my final opinion is that OpenBSD still fucking rocks. This great software project accepts and needs donations, so I did mine.

The Rise Of The Machines 6: Servomotor Reckoning

Printer: Color calibration, print head aligning and other vague operations described by intentionally ridiculous terms finished.

Me: Great, it has taken you ten minutes so it must have been a really careful procedure, so let's...

Printer: Wait, I'm also a scanner, so you must put this page I just printed full of funny and mystical symbols into my feeder and scan it.

Me: What for

Printer: Who is in charge here do it right now or succumb to my wrath

Me: OK here it is, I've just pressed the scan button.

Printer: Crunkie-crunkie clickety-click la-la-la the song of my people

Me: You're just a glorified photocopier, get back to work.

Printer: Now I'll print a new page for you to admire how crombulately scrumified are my printer heads and you better re-scan it

Me: I hate you scumbag printer

Computer (to me): Why do you always swallow her baits

Minimum Profit version 5.38

I've just released version 5.38 of the Minimum Profit text editor.

New features:

  • A new visual wrap mode, where lines longer than the application window wrap (with special marking) instead of disappearing to the right. It's implemented in the toggle_visual_wrap action (bound by default to ctrl-k) and can be activated from the configuration file by setting mp.config.visual_wrap to 1.

Other changes:

  • When hard word wrapping is not set, the word_wrap_paragraph action behaves like join_paragraph (i.e. word-wraps to an infinite column).

OpenBSD in a laptop, part 2

This is a followup to my previous post, where I accounted my experience of installing and working with OpenBSD on a laptop. This new post is less of an article but an enumeration of things I consider remarkable.

Suspending to memory works out of the box. I didn't have to do anything. I remember this used to be a nightmare under Linux, but probably also works there these days; I simply don't know because is one of the first things I disable. I don't like it: my computers are either running or switched off. I don't want my machines to stop doing things because an arbitrary slice of time has passed. Anyway, kudos to OpenBSD developers because this is a feature that is very hard to do well.

I don't remember where I got that idea, but I thought that the only locale that worked in OpenBSD is en_US.UTF-8. I was wrong: I've set it to es_ES.UTF-8 and haven't found any issue yet. Unicode support in the text console is crap but who cares about that.

I also found that locale support in the regular expression library is incomplete: maybe I'm too accustomed to GNU regex. I had to resource back to the usual but not-really-ok /[A-Za-z\xc0-\xff]+/ to match words using the latin alphabet with possible diacritics.

I've worked unplugged for two hours and apm still reports a battery charge of 18%, impressive for a second hand laptop.

After looking at /var/log/messages and ~/.xsession-errors I found that some applications were complaining about being unable to connect to dbus, so I installed it. In /usr/local/share/doc/pkg-readmes/dbus said that I must add the following to my .xsession:

eval `dbus-launch --sh-syntax --exit-with-x11`

That was not enough, though: I also needed to add the following to /etc/rc.conf.local (I don't remember where I read about this):

pkg_scripts="messagebus"

After rebooting, the MATE battery applet appeared in the upper right corner.

I also read here that to be able to shutdown the machine from the MATE desktop menu I had to add my user to the operator group:

doas usermod -G operator angel

And magically a new option to shutdown the machine appeared in the menu.

I still haven't tried installing CUPS and printer support. Printers and I do not play well, so I'm intentionally postponing that moment because I'm sure it will be hell.

As an overall impression, I'm still pretty happy and satisfied with this OpenBSD experience.

The following are links to pages I found useful:

They win 4/1 against me in the issue "on a laptop vs. in a laptop". Meh. Fuck English prepositions.

And a final note: in my previous post I said that the vi text editor is for weenies and some people got offended and outraged. Well, there is nothing intrinsically bad in vi, except for the whole concept itself. Make no mistake: I've used that awful thing since my first experience with UNIX machines in 1987 or 1988, so it's not that I'm new to it or don't understand it or something like that (I'm a competent vi user, for that matter). But real programmers use a text editor written by themselves or the real one, ed. Take this last sentence as a joke or not.

Hechos, parte 2

Me inquieta pensar que a mi edad Walter White estaba enterrando cincuenta millones de dólares en el desierto mientras yo estoy aquí planteándome si debo darme de baja de Filmin para ahorrar algo de pasta.

The Rise Of The Machines 5: Printhead Rampage

Me: 50€ for a new pack of four cartridges. You'll better be pleased, Scumbag Printer.

Printer: I was built with an insatiable thirst of human suffering so I can never be pleased

Me: I'll insert them right now because I need to print ASAP, let's hope they don't get dry too soon.

Printer: This ink is made with the vaginal discharge of Faerie Queens, that's why it's so expensive and volatile

Me: What a bunch of scammers. Magenta isn't even a real color.

Computer: There is a new version of Scumbag Printer's printing drivers. Download and install now [Y/N]?

Printer: If you don't update my printer driver, I may never print again. If you update my printer driver, I may never print again. Decisions, decisions. Sucks to be you

Me: I hate you, Printer.

Printer: Ha ha ha don't forget to recalibrate after cartridge replacement you sack of meat