Archive for February, 2010

Create and starting a openvz container.

To create and start a container, run the following commands:

# vzctl create CTID –ostemplate osname
# vzctl set CTID –ipadd a.b.c.d –save
# vzctl set CTID –nameserver a.b.c.d –save
# vzctl start CTID

Here CTID is the numeric ID for the container; osname is the name of the OS template for the container, and a.b.c.d is the IP address to be assigned to the container.

Example:

# vzctl create 101 –ostemplate fedora-core-5-minimal
# vzctl set 101 –ipadd 10.1.2.3 –save
# vzctl set 101 –nameserver 10.0.2.1 –save
# vzctl start 101

vzpkg - tool for managing Virtuozzo templates

Virtuozzo EZ Template Management tool. Handles Virtuozzo templates and standalone RPM packages.

install

Install application template(s) or package(s) into a container CT ID|CT NAME. Multiple objects can be specified.

Example:

To install mysql and php application EZ template into this CT:

vzpkg install 1000 mysql php

FILES

/etc/vz/vz.conf,
/etc/vztt/vztt.conf,
/etc/vztt/url.map,
/var/log/vztt.log.

BackupPC is a high-performance, enterprise-grade system for backing up Linux, WinXX and MacOSX PCs and laptops to a server’s disk. BackupPC is highly configurable and easy to install and maintain.

The first thing to do is to install the CentOS testing repo, along with the yum-priorities plugin.

# cd /etc/yum.repos.d
# wget http://dev.centos.org/centos/5/CentOS-Testing.repo
# yum install yum-priorities

If you have RPMForge’s repo installed, you’ll want to make sure all the CentOS Base items are priority 1, RPMForge’s items priority 2, and CentOS testing repo is priority 3.

Install BackupPC

Next, install the BackupPC RPM, Apache, and mod_perl. All the Perl dependencies will be collected automatically.

# yum –enablerepo=c5-testing install backuppc httpd mod_perl
SBDavid

How to Setup CentOS testing repo

How to Setup CentOS testing repo

Setting up repos

To install the CentOS testing repo, along with the yum-priorities plugin.

# cd /etc/yum.repos.d
# wget http://dev.centos.org/centos/5/CentOS-Testing.repo
# yum install yum-priorities

The priorities plugin can be used to enforce ordered protection of repositories, by associating priorities to repositories. Packages from repositories with a lower priority will never be used to upgrade packages that were installed from a repository with a higher priority.

SBDavid

Subversion on CentOS

The first thing to do is to install the packages. You need to ensure Apache is set up first.

Installation

# yum install mod_dav_svn subversion

When you install from yum, there’s a longer list than the two packages above that will automatically resolve themselves. Some other things will be installed automatically.

Subversions svn tool is the command line client that you will use to talk to the database. To see the use of the tool:

svn –help

References

Subversion: http://subversion.tigris.org/
Version Control with Subversion: http://svnbook.red-bean.com/

« Prev - Next »