Execute a command in all running OpenVZ Containers

If you wish to execute a command in all running Containers, you can use the following script: where <command> is the command to be executed in all the running Containers. For example: Container 12:26pm up 6 days, 1:28, 0 users, load average: 0.00, 0.00, 0.00Container 1012:26pm up 6 days, 1:39, 0 users, load average: 0.00, … Continue reading Execute a command in all running OpenVZ Containers

How to install mercurial on debian squeeze

This document describes how to install and configure mercurial on linux debian squeeze. With minor changes you can use this procedure on different linux distributions. 1. Install required packages 2. Create repositories directories mkdir -pv /repositories chown -R www-data:www-data /repositories cd /repositories 3. Configure hgweb.cgi script in order to server the repositories via Apache 4. … Continue reading How to install mercurial on debian squeeze

Configuring Postfix as a Gmail Relay

This document describes how to configure postfix to use gmail as relay server on debian squeeze. 1. Install the required package. On the dialog window please select No configuration. 2. Configure postfix relayhost = [smtp.gmail.com]:587 smtp_sasl_auth_enable = yes smtp_sasl_password_maps = hash:/etc/postfix/sasl_passwd smtp_sasl_security_options = noanonymous smtp_tls_CAfile = /etc/postfix/cacert.pem smtp_use_tls = yes alias_maps = hash:/etc/aliases inet_interfaces = … Continue reading Configuring Postfix as a Gmail Relay

How to install openvz on CentOS 6.2

1. Add openvz repo 2. Install openvz 3. Modify relevant kernel settings (sysctl.conf) net.ipv4.ip_forward=1kernel.sysrq = 1 net.ipv4.conf.all.rp_filter=1net.ipv4.icmp_echo_ignore_broadcasts=1 net.ipv4.conf.default.forwarding=1net.ipv4.conf.default.proxy_arp = 0net.ipv4.conf.default.send_redirects = 1net.ipv4.conf.all.send_redirects = 0net.ipv4.conf.eth0.proxy_arp=1 4. Reboot the server 5. Disable se linux SELINUX=disabled 6. Install strace (I do not remember why I initially wanted this installed, but still it has nothing to spoil)

Redmine – Upgrade to 1.4.4 on a debian squeeze

This document describes how to upgrade Redmine. The procedure was tested for upgrade from version 1.0.1 to 1.4.4, but it might works on other Redmine versions. In this procedure I used a basic install of a debian squeeze (the only service installed was openssh-server). I am assuming the server has network connectivity and its IP … Continue reading Redmine – Upgrade to 1.4.4 on a debian squeeze