相关文章推荐

by Alpha01

I was getting a communication error when trying to connect from a Kerberos client to the KDC, while I was still able to successfully be granted a ticket using kinit .

Error

[root@rubyninja etc]# kadmin -p kerberosadmin/[email protected]
Authenticating as principal kerberosadmin/[email protected] with password.
Password for kerberosadmin/[email protected]: 
kadmin: Communication failure with server while initializing kadmin interface

It turns out that iptables was blocking access to kadmind on the Master KDC, of which I simply had to allow the TCP Port 749 to fix the issue.

iptables -A INPUT -p tcp -m tcp --dport 749 -j ACCEPT
      Tags: [
          kerberos
          iptables
      June 11, 2012
      

Sendmail domain masquerade problem

by Alpha01

Recently, I wanted to change my host outgoing domain email address. Since I’ve been getting into the habit of using bare minimal installs, it turns out that sendmail by default does not include sendmail-cf package needed by the m4 utility to generate a sendmail .cf configuration file.

Error

[root@bashninja mail]# m4 < sendmail.mc > sendmail.cf 
m4:stdin:10: cannot open `/usr/share/sendmail-cf/m4/cf.m4': No such file or directory
[root@bashninja mail]# yum install sendmail-cf
      Tags: [
          sendmail
      May 5, 2012
      

301 URL redirect on Ruby on Rails

by Alpha01

In your respective controller, specify the method of the view in questioned that needs to be redirected.

def code
   headers["Status"] = "301 Moved Permanently"
   redirect_to "https://www.example.com/alpha01"
      Tags: [
      April 20, 2012
      

Enabling Terminal Coloring in Mac OS X Snow Leopard

by Alpha01

File ~/.bash_profile.

export CLICOLOR=1
export LSCOLORS=GxFxCxDxBxegedabagaced
      Tags: [
          macos
      April 9, 2012
      

Enabling locate database in Mac OS X Snow Leopard

by Alpha01

sudo launchctl load -w /System/Library/LaunchDaemons/com.apple.locate.plist
      Tags: [
          macos
 
推荐文章