Year: 2013

  • 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…

  • Backup and restore permissions linux (accidental chmod -R)

    cd /etc/ chmod -R 664 . *SHIT!* If you find you did an accidental chmod -R, you may be able to restore it. Make sure SSH login keeps working (chmod -R 0600 /etc/ssh ) Install a similar machine On that machine, issue this command: find /etc/ -exec stat –format “[ ! -L \”{}\” ] &&…

  • A better todo.txt repeated task inserter

    I have a scheduled.txt file like this: # Scheduled tasks for todo.txt # Format: # # a dow, Mon,Tue,Wed,… # b moy, Jan,Feb,Mar,… # d dom, 01..31 # D m/d/y 12/30/12 # F Y-m-d 2012-12-30 # j doy 001..366 # V woy 01..53 # # %2 = Division by 2 is possible # %N2= Devision…