Basic CGI in C with Merecat httpd

This post details how to use basic CGI programs in Merecat httpd v2.32. Downloads: https://troglobit.com/projects/merecat http://www.boutell.com/cgic/cgic207.tar.gz Build Merecat httpd according to the instructions in the README. This document assumes the directory ~/merecat/. Then create a config file, ~/test.conf, with the following content: port = 8080 cgi "**.cgi|cgi-bin/*" { enabled = true } Since the we’ve chosen port 8080 we can start the server as a regular user. For production systems you likely want to use the default (80), or set up proper HTTPS, see [this HowTo][howto] for help with that. [Read More]

Controlling Display Brightness

... in Awesome WM

About a year ago I wrote about a way to control the brightness on my x250. I found a lot of tools, and at the time I saw a lot of potential in light, which I even contributed to a lot. However, I ended up not using the evolved versions myself, and it took me a while to digest why. I think the project just outgrew me and what I wanted in such a tool. [Read More]

HowTo: Set up Merecat with Let's Encrypt certificate

This is a HowTo for setting up Merecat httpd with Let’s Encrypt HTTPS certificates. The upcoming v2.32 release of Merecat supports HTTPS as well as serving more than one Internet port. This is highly useful for those who want to serve both HTTPS and HTTP content. To start with, you need the latest release of Merecat. Note, if you are reading this before Merecat v2.32 has been released you can use the latest software from the GitHub master branch. [Read More]

Minor Miracles

Vacation Works

The last six months at work have been really stressful, so to finally get a week off for Swedish Midsummer celebrations was really what the doctor ordered! I’ve managed to wind down and relax, spend time with my kids and my family, and even put in some time on my personal software projects! Three years ago I forked thttpd and began merging patches I’d found scattered around the net. I’ve also added a few features of my own, and to avoid any confusion with the original (bug free! [Read More]

FLOSS Progress

This post is an update of what’s happened since last I posted about my many pet projects. As usual nothing fancy. If you want to know more I suggest you find one on GitHub you’re interested in. File an issue, or better yet, post a pull request to scratch that itch you have deep down: 👉 https://github.com/troglobit

[Read More]

Odd Progress

A lot has happened since my last post; I had my bike stolen, stumbled upon the guys who’d stolen it, got mugged by same guys, decided I’d had enough and then bought a house and moved to another city. That’s the long and short of it.

I’m OK, sort of.

[Read More]

Dark Themes Ahead

If we do nothing

Reminder to self: How to fix Firefox about:config when using a Dark Theme in Gnome or Awesome.

I use System76 amazing Gtk+ theme from Pop!_OS. It’s quite simple to set up on top of Ubuntu and use in Awesome:

    sudo add-apt-repository ppa:system76/pop
    sudo apt update
    sudo apt install pop-theme

I then use gnome-tweaks to select the Pop-dark-slim theme. Now, the problem is that certain text box inputs in Firefox is either completely dark or white and the text cannot be seen until you mark it. This isn’t specific to the Pop!_OS theme, Adwaita-dark is exactly as bad.

[Read More]