Archive for the ‘system’ Category

Make Postfix Listen to Multiple Ports

March 20th, 2009

If you need postfix to listen on multiple ports (like I do) add lines like the following (replace numbers with whatever ports you desire):

1
2
3
# In /etc/postfix/master.cf
25        inet  n       -       -       -       -       smtpd
26        inet  n       -       -       -       -       smtpd

Make sure to open the ports in iptables as well.

github? we don’t need no stinking github…

February 2nd, 2009

I use git for all my projects… I love the ability to commit changes when I’m on an airplane or stuck somewhere without internet access. However, I still like to be able to push my git project to a remote server for backup and accessibility, and I’m not going to pay for github. Don’t get me wrong, github is fine for public projects and collaborative development, but for my personal development stuff, it’s an unnecessary expense.

Well, I always forget how to setup a remote master so that I can push and pull and keep a backup on a remote server. Here are my quick notes…. for a detailed explanation see Tim Lucas’s tutorial.

On server:

1
2
mkdir /srv/git/whatever
git init /srv/git/whatever

On local machine:

1
2
git remote add origin ssh://host/srv/git/whatever
git push origin master

And you’re all set!

mysql Gem + MacPorts MySQL

January 25th, 2009

I always forget this… so this is as much a note for me as anything else.

Especially because I’m basically just lifting this info from here.

1
2
3
4
sudo gem install mysql -- \
--with-mysql-include=/opt/local/include/mysql5 \
--with-mysql-lib=/opt/local/lib/mysql5 \
--with-mysql-config=/opt/local/lib/mysql5/bin/mysql_config

Despite what the linked website says, it appears that this command works on leopard just fine… no need for any changes.

Installing Nokogiri Gem On Ubuntu

January 19th, 2009

If you cannot install the nokogiri gem on ubuntu (required or recommended) for Mephisto.

You have to install two other libraries first that may or may not already be installed on your computer:

1
sudo apt-get install libxml2-dev libxslt1-dev

Simply installing libxml-ruby or libxml1 won’t satisfy the requirements.

Thanks to hightechsorcery.com for the info.