Category Archives: Linux

Error: pg_config executable not found.

This bogus error can be frustrating to figure out. I have figured it out a few times over the years and always forget how I solved it because it only occurs on a server where you have never deployed a … Continue reading

Posted in Linux, postgres, python | Comments Off on Error: pg_config executable not found.

Kerberos not working. Kinit says “password incorrect”

I was trying to test my kerberos configuration, but I kept getting “Password Incorrect”: root@samba4:/etc/samba# kinit administrator [email protected]’s Password: kinit: Password incorrect See that lowercase @mydomain.local? That is the problem. The domain must be in upper case in your krb5.conf … Continue reading

Posted in Linux | Comments Off on Kerberos not working. Kinit says “password incorrect”

Unable to install Samba 4 on Ubuntu 12.04

When I tried to install Samba4 on Ubuntu 12.04, I was getting the following error: root@samba4:~# apt-get install samba4 Reading package lists… Done Building dependency tree Reading state information… Done Suggested packages: phpldapadmin samba-gtk swat2 The following NEW packages will … Continue reading

Posted in Linux, Samba | Comments Off on Unable to install Samba 4 on Ubuntu 12.04

How to specify an SSH key with git, without using a config file

There are a number of ways to do this, but for me setting up an ssh config file was not practical or desirable. I wanted to be able to make a fabric script that becomes a user (that does not … Continue reading

Posted in git, Linux | Comments Off on How to specify an SSH key with git, without using a config file

Use UTF-8 as the default encoding for postgres databases

To avoid problems with encoding if you forget to change from the default SQL_ASCII when you create a database, I find it is best to set the default to UTF-8 whenever I set up a new server. One less thing … Continue reading

Posted in postgres | Comments Off on Use UTF-8 as the default encoding for postgres databases