Archive for July, 2011

Install CentOS 6.0(64bit) with one CD

CentOS 6.0 Finally released. seems the CD/DVD has been updated. you should choose one net install CD or 4.4G DVD. could we have minimal install with one CD ? YES.

Here is the CD, you can minimal install the CentOS 6.0. so it good for guys who want to download one CD and install CentOS, of course you can install once you have installed basic system.

Download link:Download from linuxdict
Arch: 64bit
CD Size: 313M
Md5sum: 3f75769d89c8d5f897435f714abe4d11

Install details, please check http://www.linuxdict.com/2011-07-centos-6-0-in-one-cd/

No Comments

CentOS 6.0 In One CD (261M)

CentOS 6.0 Finally released. seems the CD/DVD has been updated. you should choose one net install CD or 4.4G DVD. could we have minimal install with one CD ? YES.

Here is the CD, you can minimal install the CentOS 6.0. so it good for guys who want to download one CD and install CentOS, of course you can install once you have installed basic system.

Download link:Download from china network Download from linuxdict
Arch: 32bit
CD Size: 261M
Md5sum: 0f668976b05374d2ecd09801b096f2e4

Guide for new guys use CentOS 6.
Read the rest of this entry »

No Comments

/var/adm/wtmpx too big

How to safely clean the /var/adm/wtmpx

Solution 1 (clean everything):
# cd /var/adm
# gzip -c wtmpx > wtmpx.backup.gz
# > wtmpx

Solution 2(keep last 1000 logs):
# cd /var/adm
# /usr/lib/acct/fwtmp < wtmpx | tail -1000 > wtmpx.ascii
# /usr/lib/acct/fwtmp -ic < wtmpx.ascii > wtmpx
# rm wtmpx.ascii
The commands makes convert info from binary to ascii from wtmpx, save last 1000 lines into wtmpx.ascii file, convert the info in wtmpx.ascii to binary again, and save it into wtmpx. Finally no-needed wtmpx.ascii is removed.

No Comments

Converting a virtual disk image: VDI to VMDK to a raw loopback file you can mount

By default, VirtualBox creates virtual disk images in a special format called VDI, which is unique to VirtualBox. Disk images are stored in $HOME/.VirtualBox/HardDisks.

You’ll need to convert VDI into another format if you want to run a VirtualBox VM on another virtualization platform, such as VMWare or KVM.

The VMDK virtual disk format is a good choice because even though it originated with VMWare it is supported by other virtualization platforms including VirtualBox and KVM.

VirtualBox enables the conversion using the low-level “VBoxManage clonehd” command:

VBoxManage list hdds # prints a list of disk image UUIDs
VBoxManage clonehd -o converted.vmdk format VMDK
cd ~/.VirtualBox/HardDisks/
ls -la converted.vmdk

Once you have converted to VMDK you can use qemu-img, a tool bundled with qemu (KVM’s virtualization backend) to further convert VMDK to other formats.

A particularly useful format to convert to is ‘raw’ which you can then mount as a loopback device:

apt-get install qemu
qemu-img convert -f vmdk converted.vmdk -O raw converted.raw
mount -o loop converted.raw /mnt

,

No Comments