Preliminary Rust Extension for Flatpak

5 Apr

With a lot of help from Alex Larsson (and everyone in #flatpak) I have created a preliminary extension for the fdo (freedesktop.org) sdk. It is rough around the edges (I would like to see how one uses it streamlined) and it’s only for x86_64 right now but it works and is usable.

I’ve also made a manifest for an existing Rust application as an example of how to use the extension. You can of course build the extension from source but it will take quite some time so I’ve made it available in a repo. The repo is http://repo.sharedpointer.com. You can get its gpg key at http://sharedpointer.com/repo.sharedpointer.com.gpg. The extension is org.freedesktop.Sdk.Extension.rust.

To see the example Rust application manifest look here: https://github.com/futuretim/flatpak-fun/blob/master/com.sharedpointer.mdBook.json.

The main points are that you need to run an install script that is provided with the extension (this makes sure that some libs are in the right place) and then you need to put the binaries in the PATH. The PATH to the extension binaries will follow the pattern /usr/lib/sdk/<extension_name>/bin. In this case the extension name is the last part of the entire extension id. So in this case just “rust”. Once you’ve done that you can invoke rustc and cargo to your hearts’ content.

I hope to have it generalized soon so that we can have it across the platforms that Flatpak supports. Catch up with me as user futuretim on #flatpak on freenode if you have questions or leave them below.

Glom Flatpak & Gtkmm

26 Mar

A couple of weeks ago as I continued my flatpak adventures I decided what I would really like is a Gtkmm “base application” to use. At the time I wasn’t aware of the flatpak concept of a base application (later post about that) so what I really wanted was just a manifest I could use from one app to the other and just replace all the modules at a given layer that I wanted to roll a new app. So I found Glom and decided to upgrade / test its flatpak manifest. It did need a bit of tweaking but was pretty close and it doesn’t yet work on the tip of master but you can find it here:

https://github.com/GNOME/glom/tree/master/glom-xdg-app-builder

Virtualmin Pro and Default Site

26 Mar

I decided to use Virtualmin Pro on my server in an attempt to streamline a lot of the aspects of managing a server mainly in an attempt to free me up to do other things. And after a weekend of on again off again working I’ve managed to come to a setup that I’m pleased with. Virtualmin Pro is pretty nice and the price is definitely reasonable. I recommend it if you don’t have the time or desire to manage a lot of minutiae about your server (although you still have to have a lot of knowledge).

The one note I wanted to make was that my initial attempts to get started were all foiled. It mainly revolved around using this domain (sharedpointer.com) as the servers FQDN and the trying to use the default apache site as that domain’s site. Instead I should have just created a virtual host to match that and disabled the default. In the end that’s what I did but I also used a separate sub-domain for the FQDN for the server while setting up Virtualmin. That extra step was probably unnecessary. But in the end I have sites and they have SSL certificates from Let’s Encrypt. Excellent.

Blog redux ad infinitum

26 Mar

I’ve been wanting to re-constitute a place to track my adventures in open source and have finally done it. This is also an effort to consolidate a number of miscellaneous breadcrumbs that I had strewn about. Also, I am doing my best to make sure there’s SSL all around thanks to the incredibly awesome Let’s Encrypt.