1. Login on openvz node and use ps command to find the PID [codesyntax lang=”bash”] ssh root@openvz-node ps auxwwwf [/codesyntax] 2. After finding PID execute following commands [codesyntax lang=”bash”] PID=12345 for i in `vzlist -a | grep running | awk ‘{print $1}’`; do echo $i; ps $* -p $(grep -l “^envID:[[:space:]]*$i\$” /proc/[0-9]*/status | sed -e … Continue reading How to view in what openvz vps a process is running→
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→
Have you ever wonder how to grep a file within a date range? [codesyntax lang=”bash”] cat file.log | sed -n ‘/2012-01-05 16:55/,/2012-01-05 18:30/p’ > file.log.date_range [/codesyntax]
1. Logon on the machine and execute the following command: [codesyntax lang=”bash”] cat /proc/vz/veinfo | awk ‘{print “ID: “$1 ” – IP: “$4}’ [/codesyntax]
Why would you need such a thing? I would like to use the squid proxy server only for one domain and connect to everything else directly. A PAC file is nothing but proxy auto-configuration file. This is a specialized JavaScript function definition that a browser calls to determine how requests are handled. So how a PAC … Continue reading How to use auto config Proxy PAC file for specific domain/url→
This document describes how to make public writable shares in samba. Samba is an open source Linux software that is used to create shared folder that can be accessed from Windows machines. This procedure was carried out on Debian/Ubuntu Linux, but with minor changes can be used on other Linux distributions too. 1. Install samba … Continue reading Public writable Share in samba→
This document describes how to install XenServer 6.0.2 on a node without hardware raid. Install Software Install XenServer 6.0.2 on /dev/sda and do NOT configure any local storage (it is easier to do that afterwards). /dev/sda should containt three partitions, please verify with the following command: [codesyntax lang=”bash”] sgdisk -p /dev/sda [/codesyntax] The first partition … Continue reading Xen 6.0.2 software Raid – installation procedure→
This document describes how to install openvpn with pam-mysql username/password authentication. This procedure was carried out on Debian/Ubuntu Linux, but with minor changes can be used on other Linux distributions too. 1. Install openvpn, mysql and pam-mysql [codesyntax lang=”bash”] sudo su – mkdir -p /root/work/openvpn cd /etc/openvpn apt-get install libpam-mysql openvpn mysql-server [/codesyntax] Note: please … Continue reading OpenVPN with pam-mysql username/password authentication→