Tuesday, December 31, 2013

rename window title in tmux

ctrl-b , // to rename a window title in tmux

Note: use ctrl-h to delete characters.

pfSenese - Multiple IP Addresses on one interface

Firewall > Virtual IPs > Add:

Type: IP alias
Address: 1.2.3.4
CIDR: /29

Saturday, December 21, 2013

Thursday, December 19, 2013

mysql error ./mysql/host.frm

Problem:
131219 22:51:39 [ERROR] /usr/local/libexec/mysqld: Can't find file: './mysql/host.frm' (errno: 13)
131219 22:51:39 [ERROR] Fatal error: Can't open and lock privilege tables: Can't find file: './mysql/host.frm' (errno: 13)
131219 22:51:39 mysqld_safe mysqld from pid file /usr/local/mysql/myhostname.local.pid ended

Solution:
root@myhostname [/usr/local/mysql] # chown -R mysql:mysql /usr/local/mysql
root@myhostname [/usr/local/mysql] # find /usr/local/mysql -type d -exec chmod 700 {} \;
root@myhostname [/usr/local/mysql] # find /usr/local/mysql -type f -exec chmod 660 {} \;

Wednesday, December 18, 2013

get the svn unversioned filename

svn st | grep fr.php | awk -F ' ' '{print $2}' | xargs -I {} svn add {}

Note: use a space as the separator.

Saturday, December 7, 2013

enable open relay on sendmail on FreeBSD


# vim /etc/mail/access
Connect:192.168.0 RELAY

# cd /etc/mail ; make

This will allow all clients with an IP address of 192.168.0.xxx to relay.