Find missing libs with repoquery

Not sure how I didn’t learn about this until today. Anyways, if you end up with missing libs on CentOS/RedHat, use repoquery to find missing libs. For example, I had an issue today where docker required libltdl.so.7 but this wasn’t installed. repoquery -q -f */libltdl.so.* The above is quering (-q) for files (-f) matching the pattern (*/libltdl.so*). The first star is important since the query is looking for matches against the full paths of the files within the RPMs stored on the various YUM repos your system is aware of....

June 28, 2017 · 1 min
Sublime Text 3

My Visual Studio Code setup

This is my Visual Studio Code (vscode) setup, with ambitions to create a custom Python IDE. I previously posted about my Sublime Text 3 (ST3) setup in 2016-05-20-my-sublime-3-setup, but I’ve fully moved on to use vscode instead so I figured I’d share this new setup. The dream setup I took a weekend and compared ST3 (my then current editor of choice) against vscode and Atom to see which editor suited me best....

February 2, 2017 · 6 min

Bash on Ubuntu on Windows

This is a quick intro to – and some personal notes on working with – Bash in Windows 10 (Anniversary Update or Insider build requred). This will be updated on a sporadic basis. Information on Bash What is Bash on Ubuntu on Windows? Bash on Ubuntu on Windows is part of the “Windows Subsystem for Linux” (WSL). Read more over at the WSL MSDN page. This page also covers installation guide, command reference, account permissions, interoperability, FAQ and release notes....

November 21, 2016 · 3 min
Sublime Text 3

My Sublime Text 3 setup

This is my Sublime Text 3 setup, with ambitions to create a custom Python IDE. All of the below assumes you’ve already installed Package Control, the package manager for Sublime Text. General packages SublimeLinter - Faster than in ST2 BracketHighlighter - Bracket and tag highlighter Sublimerge Pro - Great tool for checking diffs Python IDE setup SublimeLinter-flake8 - Flake and PEP8 checking Jedi - Python Autocompletion - Also known as SublimeJEDI requirementstxt - Syntax highlighting for requirements....

May 20, 2016 · 3 min

Notes on CentOS in Docker container

Systemd is shipping with the centos:7 image but, it is not enabled by default. Setting the timezone

May 15, 2016 · 1 min

Systemd services and resource limits

We made the move to CentOS 7 and I switched out all init.d scripts with systemd services. Yesterday I noticed we started getting errors on our render farm for huge scenes which required loading of thousands of files: V-Ray warning: Could not load mesh file … One hint that this wasn’t due to scene misconfiguration was that the initial ~1000 vrmeshes were loaded successfully, and after that no other vrmesh file could be loaded....

April 27, 2016 · 3 min

Install psutil in CentOS 6

Don’t use yum install python-psutil as this will give you a super old version. Instead use: yum install gcc python-devel pip install psutil

March 11, 2016 · 1 min

Install CentOS 7 remotely using Kickstart and GRUB

This guide assumes the target host is already running CentOS (a derivate of Red Hat Enterprise Linux) or at least running the GRUB boot loader and that you have root access to this host. What’s this all about? I’m going to install CentOS 7 onto a machine which I do not have physical access to. In order to achieve this, I’m going to need a Kickstart file, some files from the CentOS 7 installation and create a custom GRUB boot loader entry....

December 30, 2015 · 6 min

CentOS 6 yum errors (and fixes)

Issues Error: Cannot retrieve metalink for repository: epel. Please verify its path and try again or Error: xz compression not available Fix yum remove epel-release rm -rf /var/cache/yum/x86_64/6/epel yum install epel-release

November 18, 2015 · 1 min

Fixing Python's insecure platform warning

Here’s how to fix that nagging InsecurePlatformWarning warning in Python. The issue InsecurePlatformWarning: A true SSLContext object is not available. This prevents urllib3 from configuring SSL appropriately and may cause certain SSL connections to fail. For more information, see here. Assuming you have pip for python installed, read on… Ubuntu 14.04 fix sudo apt-get install libffi-dev libssl-dev sudo pip install -U requests[security]

September 15, 2015 · 1 min