Friday, January 28, 2011

Add local disk to Xenserver 5.5 running under VMware

1. Find the new disk name.
fdisk -l

2. Create physical volume.
pvcreate /dev/hdb

3. Find out the name of the disk.
ll /dev/disk/by-id/
...
lrwxrwxrwx 1 root root 9 Jan 28 22:18 ata-VMware_Virtual_IDE_Hard_Drive_01000000000000000001 -> ../../hdb


4. Create SR.
xe sr-create type=lvm content-type=user device-config:device=/dev/disk/by-id/ata-VMware_Virtual_IDE_Hard_Drive_01000000000000000001 name-label=”LOCAL DISK

After the running above command, the LOCAL DISK will be in Xenserver's Storage Repositories.

Note: You can name your own name-label.

Friday, December 24, 2010

Reset root password on Rad Hat Enterrpise 5

  1. Insert install CD #1 into the CD drive, then reboot system.
  2. At boot: prompt, enter linux rescue, then wait until Choose a Language screen shows up.
  3. Select the language, press tab to highlight OK, then press enter.
  4. Select the keyboard type, press tab to highlight OK, then press enter.
  5. Select Yes or No for Setup Networkign screen, then press enter. Press enter again for Continue.
  6. Press enter at Your system has been mounted under /mnt/sysimage screen.
  7. At command prompt sh-3.2#, type in chroot /mnt/sysimage, then passwd to reset the root pass word.
  8. Enter the the same password twice at New UNIX password and Retype new UNIX password prompts.
  9. Type reboot at the command prompt to restart the server.

Monday, November 15, 2010

Use PSP to play You Tube videos

PSP can be used to watch You Tube video when you travel with train or bus. For a student, this can be a great tool for study. Following is how to do it in a few steps.

1. Download and install Free You Tube to iPod Converter from http://www.dvdvideosoft.com/guides/free-youtube-to-ipod-converter.htm.

2. Start the program and set the Devices to Sony PSP and the output folder, then paste the URL of video file from You Tube one by one. Down load file or files to the your PC.

2. Connect USB cable between PSP and your PC, and select USB connection in settings. The PSP will be named as Memory Stick on you PC like a hard drive.

3. Copy the video file to Video folder at Memory Stick.

4. Select Video->Memory Stick, then select the video to watch.

Saturday, November 13, 2010

Change Windows XP to a Multi Language System

Download Windows XP Multilingual User Interface Pack (Multi-Language) which has 5 CDs. This demo installs Traditional Chinese from the first CD which contains Chinese, Korean, Japanese, French, and German.

1. Double click mui_wxm_cd1.exe to extract all files for installation.
2. Double click muisetup.exe.
3. Accept the license agreement, then select the languages (Traditional Chinese) to install.
4. Reboot the system once the installation is completed, then start the Control Panel->Regional and Language Options. Select Hong Kong for location. Select Traditional Chinese for Language Used in Menus and Dialogs under the Language tab, then click OK.
5. Log off then log in again, the user interface has been changed from English to Traditional Chinese.