Centos 6 SFTP chroot Jail

User and Group setup

First you will want to establish the sftponly group

groupadd sftponly

Then create the user with the correct home directories and group

Mod Deflate – Apache… quick how to

I searched high and low to get mod-deflate working.

the short answer is.

1. Make sure you are loading mod_deflate!
2. Make sure you have the following within your httpd.conf file to enable compression across all vhosts

Areca 1882 installation on Debian Squeeze 6.04

Native support for Areca 188x devices is available in > 2.6.37 linux kernel.

However mainstream kernel is still at 2.6.32, meaning that you need to perform some trickery to install a Areca card onto Debian. The following is my method.

yum priorities

if you insist on running third party repos, you must install yum-priorities to prevent package conflicts


yum install yum-plugin-priorities

Sparse files in linux

dd if=/dev/zero of=sparse_file_name bs=1 count=0 seek=500G

iscsi target

config files for the latest version if iet are found in /etc/iet/ NOT /etc/init.d

install pmacctd on XenServer

Download

http://www.pmacct.net/#downloads

enable Base repo on Dom0

yum install gcc gcc-c++ autoconf make libpcap libpcap-devel

./configure
make
make install

GIT

I hate setting up new repo’s…

If you have a local repo that you would like to share, on the remote server create a new directory (with correct permissions).

NFS Port Mapping IPTABLEs Setup

Great post instructing how to lock down an NFS server

http://nxlinuxadmin.blogspot.com/2010/05/iptables-for-nfs-server.html

Postgresql 9.0 Centos Install and Config

Download repo

wget http://yum.pgrpms.org/reporpms/9.0/pgdg-centos-9.0-2.noarch.rpm

Install repo

rpm -i pgdg-centos-9.0-2.noarch.rpm

Install Postgres

yum install postgresql90-server

Initialise DB

service postgresql-9.0 initdb

Start Service

service postgresql-9.0 start