Replacing a string in a bunch of files using perl inline replace: perl -pi -e ‘s/ORIG/NEW/g’
Perl inline replace
September 20th, 2011 | Posted in Linux, Perl | No Comments
Tags: Perl Inline Replace
S3FS on XenServer 5.6
August 7th, 2011 | Posted in AWS, Linux, Xen | No Comments
Get s3fs going on xenserver 5.6: yum remove fuse fuse* yum –enablerepo=base install yum-utils yumdownloader –enablerepo=base e2fsprogs-devel rpm –nodeps -Uvh e2fsprogs-devel*.rpm yum install gcc libstdc++-devel gcc-c++ curl curl* curl-devel libxml2 libxml2* libxml2-devel openssl-devel mailcap cd /usr/local/src wget –no-check-certificate “https://downloads.sourceforge.net/project/fuse/fuse-2.X/2.8.4/fuse-2.8.4.tar.gz?r=&ts=1312707573&use_mirror=kent” tar -zxff fuse-2.8.4.tar.gz cd fuse-2.8.4 ./configure –prefix=/usr && make && make install export PKG_CONFIG_PATH=/usr/lib/pkgconfig:/usr/lib64/pkgconfig/ ldconfig modprobe [...]
PostgreSQL 9.0 on Debian lenny
January 5th, 2011 | Posted in Debian, Linux, PostgreSQL | No Comments
/etc/apt/sources.list deb http://backports.debian.org/debian-backports lenny-backports main deb http://backports.debian.org/debian-backports lenny-backports-sloppy main Install from the new target release: apt-get install -t lenny-backports postgresql-common apt-get install -t lenny-backports-sloppy postgresql-9.0 postgresql-client-9.0 postgresql-contrib-9.0 http://lists.debian.org/debian-backports-announce/2010/10/msg00000.html
PostgreSQL Database Import/Export
December 19th, 2010 | Posted in Linux, PostgreSQL | No Comments
Importing a database into pgsql: cat dbname.pgdump | psql -d db_name Or psql -d db_name -f dbname.pgdump Exporting a database from pgsql: su – postgres pg_dump dbname > dbname.pgdump Exporting all databases from pgsql: pg_dumpall -o > all_dbs.pgdump psql -e template1 < all_dbs.pgdump
PowerDNS: Error: while parsing IP address, expected digits at position 0 in ‘.’
October 31st, 2010 | Posted in Blog, PowerDNS | No Comments
Error: while parsing IP address, expected digits at position 0 in ‘.’ Check content field on records table for “.” entries. Once removed, the above error should go away.
MySQL Server 5.1 Upgrade: #mysql50#
October 29th, 2010 | Posted in Blog, MySQL | No Comments
MySQL introduced encoding for table names that have non-ASCII characters. After a live upgrade from MySQL 5.0 to 5.1 or higher, the server recognizes names that have non-ASCII characters and adds a #mysql50# prefix to them. This happens because the data directory structure has changed on MySQL 5.1 and you need to upgrade the directory [...]
Linux 64-Bit Kernel Exploit
September 22nd, 2010 | Posted in Linux | No Comments
https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2010-3081 https://bugzilla.redhat.com/show_bug.cgi?id=CVE-2010-3301 Patch all 64-bit kernels
incoming.mx
March 18th, 2010 | Posted in Blog | No Comments
;; QUESTION SECTION: ;incoming.mx. IN MX ;; ANSWER SECTION: incoming.mx. 86400 IN MX 10 mx.incoming.mx. ;; ADDITIONAL SECTION: mx.incoming.mx. 86400 IN A 109.169.26.23
Postfix maximum email size
March 11th, 2010 | Posted in Linux, Postfix | No Comments
Tags: Linux, Postfix
The default “message_size_limit” is set to 10240000 bytes which is approximately 10MB. To change it, add/modify the message_size_limit line in your main.cf to; message_size_limit = 20480000 The above is roughly 20MB and is more than enough on a typical server.