Month: May 2013
-
TMUX: Start window count at 1 instead of 0
Add to tmux.conf: # Count 1 set -g base-index 1 set -g pane-base-index 1 Completely stop and start all tmux processes and you are good to go!
-
Samba LDAP new version error [AttributeType not found: “displayName]?
When I was updating to a new openldap server version, I got: samba olcObjectClasses: AttributeType not found: “displayName” I first tried recompiling the ldif’s with a new samba.schema (you can find samba.schema in here), that made no difference. Solution is to move the files in /etc/openldap/slapd.d/cn=config/cn=schema . Change the numbering so that samba is after…
-
yum update matahari errors (libcommon, libmnet, …)
Are you getting the following on yum update ? libmcommon.so.0.0.1()(64bit) is needed by (installed) matahari-net-0.4.0-5.el6.x86_64 libmnet.so.0.0.1()(64bit) is needed by (installed) matahari-net-0.4.0-5.el6.x86_64 matahari-lib = 0.4.0-5.el6 is needed by (installed) matahari-net-0.4.0-5.el6.x86_64 libmqmfagent.so.0.0.1()(64bit) is needed by (installed) matahari-net-0.4.0-5.el6.x86_64 matahari-agent-lib = 0.4.0-5.el6 is needed by (installed) matahari-net-0.4.0-5.el6.x86_64 Solution: yum remove matahari* yum install matahari Matahari is deprecated.
-
RHEL6: “DeprecationWarning: Call to deprecated function: hasNow”
A RHEL6 installation complained: “DeprecationWarning: Call to deprecated function: hasNow” in /usr/libexec/rhsmd . According to RedHat, this is not a problem, as rhsmd is working fine. Workaround in order to stop seeing the mails: # diff /tmp/rhsmd /etc/cron.daily/rhsmd 5c5 < /usr/libexec/rhsmd -s --- > /usr/libexec/rhsmd -s 2>&1 | grep -v DeprecationWarning
-
RHEL6: Fixing reposync UnboundLocalError: local variable ‘exit_code’ referenced…
yum-utils-1.1.31-7 fixes this issue, but it’s not available for RHEL (as far as I see). You can fix /usr/bin/reposync: — a/reposync.py +++ b/reposync.py @@ -198,6 +198,7 @@ def main(): # maybe this shouldn’t be entirely fatal sys.exit(1) + exit_code = 0 for repo in my.repos.listEnabled(): reposack = ListPackageSack(my.pkgSack.returnPackages(repoid=repo.id)) @@ -293,7 +294,6 @@ def main(): pkg.repo.cache…
-
Installing ruby mysql / activerecord-mysql-adapter gem on RHEL 6 x86_64
I couldn’t install activerecord-mysql-adapter. After some duckduckgo’ing, I found the solution. Error: Error: Building native extensions. This could take a while… ERROR: Error installing mysql: ERROR: Failed to build gem native extension. /usr/bin/ruby extconf.rb –with-mysql-config=/usr/lib64/mysql/mysql_config checking for mysql_ssl_set()… no checking for rb_str_set_len()… no checking for rb_thread_start_timer()… no checking for mysql.h… no checking for mysql/mysql.h… no…