systemd

Fedora 28: Enable NumLock on Login

I lost my primary drive on Friday, and I’m having to rebuild a bunch of stuff. I didn’t document minor things like this before, so I am this time around. Hopefully someone else finds this useful. numlockx There are plenty of different ways to enable NumLock on login, including a decent manual approach. An official X extension, numlockx, can handle it automatically for us. There’s an unofficial mirror available to build the package from source, or you can check for it in official channels.

  • CJ Harries
    CJ Harries
Installing wxPython 4.0 (Project Phoenix) on Fedora 27
wxPython

Installing wxPython 4.0 (Project Phoenix) on Fedora 27

I’ve stayed away from wxPython in the past because updates were slow and Python 3 wasn’t supported. Within the last couple of weeks, 4.0 was completed, which at least answers the Python 3 problem. I’ve been pounding my head against X11 idiosyncracies all weekend, so I thought I’d take a break and try it out. Dependencies It looks like the prequisites were sourced from Debian. $ sudo dnf install -y {dpkg,freeglut,gstreamer{,1}-plugins-ba{se,d-free},gtk3,lib{jpeg,notify,SM,tiff},python{2,3},SDL}{,-devel} @development-tools

  • CJ Harries
    CJ Harries
rofi: Matching and Sorting
rofi

rofi: Matching and Sorting

This is the fifth in a series of several posts on how to do way more than you really need to with rofi. It’s a neat little tool that does so many cool things. I don’t have a set number of posts, and I don’t have a set goal. I just want to share something I find useful. This post looks at configuring rofi’s matching and sorting. Assumptions Code Overview Comparison Basic Sort Config (Yet Another) rofi Options Script Full Script Change Matching and Sorting Via a modi Assumptions I’m running Fedora 27.

  • CJ Harries
    CJ Harries
rofi: Change Window Location
rofi

rofi: Change Window Location

This is the fourth in a series of several posts on how to do way more than you really need to with rofi. It’s a neat little tool that does so many cool things. I don’t have a set number of posts, and I don’t have a set goal. I just want to share something I find useful. This post looks at changing rofi’s window location. It also introduces some rofi dmenu usage to handle input and ends with a introduction to script modi.

  • CJ Harries
    CJ Harries
rofi: Overview and Installation
rofi

rofi: Overview and Installation

This is the first in a series of several posts on how to do way more than you really need to with rofi. It’s a neat little tool that does so many cool things. I don’t have a set number of posts, and I don’t have a set goal. I just want to share something I find useful. This post provides a rofi overview and installation instructions. Assumptions Code Overview Installation Dependencies Source Code Options Standard Debuggable Easy Mode Full Script Assumptions I’m running Fedora 27.

  • CJ Harries
    CJ Harries
Cursor Detection Run Time Analysis
Automation

Cursor Detection Run Time Analysis

This is a quick follow-up to an earlier post today. I don’t have much to add, just more code and some (basic) graphs. Direct Xlib usage is seriously the way to go. Code Script Runner Raw Data Munging Setup pyautogui-pixel-color.py xlib-color.py xwd-convert-chained.py xwd-convert.sh All Together Slow Only Conclusions Code You can find everything here in the repo. Script Runner To get some data, I had to revamp most of the scripts from the first post.

  • CJ Harries
    CJ Harries
Quickly Detect Cursor Position and Color
Automation

Quickly Detect Cursor Position and Color

I’ve been absolutely thrilled moving my home dev world back to Fedora. I’m not fighting OS ads, virtualization just works, and my settings actually stay the same after updates. I am, however, missing AutoHotkey. It’s been an integral part of my computing world since undergrad. I’ve spent the better part of three years looking for a POSIX AHK clone with no luck. I’ve tossed around the idea of starting something similar for some time now.

  • CJ Harries
    CJ Harries
Ubuntu Notes: Unlocking /var/lib/dpkg
Vagrant

Ubuntu Notes: Unlocking /var/lib/dpkg

I ran into some issues this morning setting up a Xenial box via Vagrant. On boot, /var/lib/dpkg was totally locked with nothing I knew to link it to in ps aux. I’ve created a fairly novel solution; my point today was to learn about something new. You should have a basic familiarity with the Linux CLI. If you don’t know what systemd is, that’s not a big deal. Skip to my take on a full solution if you’d like, but make sure to read the disclaimer first.

  • CJ Harries
    CJ Harries
KeePass + ssh
KeePass

KeePass + ssh

I’ve been using KeePass Professional Edition for a few months now, and I’m always discovering new things to do with it. For example, I’ve got HQ photos of my driver’s license so that I can go to the gym without carrying my full wallet (if that’s illegal I totally don’t do that). I’ve got a couple of shared databases that sync off my main personal database that I can share with family and friends, which means I change update my accounts without the old hassle of texting everyone the new credentials.

  • CJ Harries
    CJ Harries
KeePass + FreeRDP
KeePass

KeePass + FreeRDP

One of my primary work responsibilities is to handle the Linux environments not related to our ecommerce platform (although, as one of few devs, one of my primary responsibilities is basically everything). We’re a big fan of the RHEL pipeline, so I use CentOS as my work environment. It bites occasionally, but, by and large, we don’t run bleeding-edge stacks because they’re, well, unsupported bleeding-edge stacks. I can find most of the software I need with older versions of Fedora or by just manually building things.

  • CJ Harries
    CJ Harries