Archive for category Howto

Volume group “VolGroup00″ not found

Met a problem when try to copy virtualbox vdi file directly from Windows virtualbox to Linux

“Error: Volume group “VolGroup00″ not found
……
Kernel panic – not syncing: Attempted to kill init!”

Solution:
First, boot up in rescue mode, using the CentOS cd, type “linux rescue” on the first boot prompt.

Now chroot to you actual system:
#chroot /mnt/sysimage

Then, backup your initrd:
#cd /boot
#mv initrd-2.6.18-164.el5.img initrd.backup

(use the last version, or the one you are trying to boot, on the “2.6.18-92.el5.img” part)
Now rebuild your initrd:

#mkinitrd /boot/initrd-2.6.18-164.el5.img 2.6.18-164.el5
(Same thing about the versions)

#reboot

,

No Comments

Play with Grub2

Grub maybe a headache to old grub users, I updated my Laptop with New version,
really took some time to get familiar with grub2. Here is a good article :)
Cool Links for Grub2

http://www.howtogeek.com/howto/17787/clean-up-the-new-ubuntu-grub2-boot-menu/

,

No Comments

Alfresco installation Guides

Alfresco offers true Open Source Enterprise Content Management (ECM) – Document Management, Collaboration, Records Management, Knowledge Management, Web Content Management and Imaging.

Installation guides with snapshots, clear to follow

http://www.linuxdict.com/books/Alfresco.pdf

PS: The Alfresco installer also support console, so we can install minimal system. and install the Alfresco. no X is needed.
Details: http://wiki.alfresco.com/wiki/Main_Page

No Comments

Where is nagstamon configuration?

My nagstamon crashed sometimes and the configuration lost.

but can’t find where the hell configuration is. so got the solution: define the configuration manually.

Everything should get at its place and you can start it from Start menu/Programs/nagstamon. When run from command line with “nagstamon” you can pass a configfile like “nagstamon configfile” in case you want to store it at another place than default. It starts automatically at login. Details: http://nagstamon.sourceforge.net/setup/

Now my shortcut looks like: “C:\Program Files\nagstamon\nagstamon.exe” nagconfig.conf
The configuration lays in C:\Program Files\nagstamon\nagconfig.conf , good news it also encryto the password. cool :)

, ,

No Comments

Get the process like “netstat -anpt” on Solaris

Two ways to get which process is Listen on the specific port on Solaris

1. lsof -i:port_number
e.g. lsof -i:22

2. Use scripts that combined with pfiles

e.g. get_port.sh 22

Read the rest of this entry »

,

2 Comments

Nginx+php with fpm repository

Glad to announce we got nginx php fpm packaged.

Version: PHP 5.2.13 with Suhosin-Patch 0.9.7 + Nginx 0.7.65

Details: http://www.linuxdict.com/lemp/readme.txt

Any advice/questions would be appericated

, ,

No Comments

Yum Repo problem : primary.sqlite.bz2: [Errno -1]

This proble happened a lot recently, no idea what’s wrong with CentOS.

updates/primary_db | 687 kB 00:02
http://mirror.nus.edu.sg/centos/5/updates/x86_64/repodata/primary.sqlite.bz2: [Errno -1] Metadata file does not match checksum

I try to clean the cache, but still doesn’t work

Solution: Remove the following lines in /var/cache/yum/updates/repomd.xml

<data type=”primary_db”>

<location href=”repodata/primary.sqlite.bz2″/>

<checksum type=”sha”>d36796c21c77035e68c2ae2e7dc486d75d4659cd</checksum>

<timestamp>1269791791</timestamp>

<open-checksum type=”sha”>5c914da1b9b979b2097ff69062ca21783d5190d7</open-checksum>

<database_version>10</database_version>

</data>

No Comments

Install Php5.2 with Yum

Install Php5.2.x with yum.
1. Enable development repositories on CentOS, but only for i386

http://wiki.centos.org/HowTos/PHP_5.1_To_5.2

2. Only for Test Enviorment, not recommend for Prod. :)
$rpm –import http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka
# create /etc/yum.repos.d/utterramblings.repo
$vi /etc/yum.repos.d/utterramblings.repo
# paste the following lines
[utterramblings]
name=Jason's Utter Ramblings Repo
baseurl=http://www.jasonlitka.com/media/EL$releasever/$basearch/
enabled=1
gpgcheck=1
gpgkey=http://www.jasonlitka.com/media/RPM-GPG-KEY-jlitka

$yum update php

http://www.jasonlitka.com/yum-repository/

No Comments

Build HA cluster with keepalived

OS: CentOS 5.4
Software:
keepalived, openssl097a, lighttpd
Arch:
—————|–lb_master (192.168.1.101/24)
Visitors -(VIP) -|
—————|–lb_slave (192.168.1.102/24)
VIP: 192.168.1.100/24

Install
Read the rest of this entry »

No Comments

Change vdi UUID with VBoxManage

We can directly copy the vdi for new VirtualBox vms.but the UUID will be the same as old one. so we need to change the UUID

$VBoxManage internalcommands setvdiuuid /opt/vms/c52_master.vdi
VirtualBox Command Line Management Interface Version 3.0.10
(C) 2005-2009 Sun Microsystems, Inc.
All rights reserved.
UUID changed to: aa742648-c3f4-408f-bde8-827dadff5cca

if in Windows, find the installation directory of Virtualbox and then run the VBoxManager.exe command in cmd lines.

,

1 Comment