2012/12/11

Adobe Flash Player install in Fedora/CentOS/Red Hat

[root@localhost ~]$ su -

32bit
[root@localhost ~]$ rpm -ivh http://linuxdownload.adobe.com/adobe-release/adobe-release-i386-1.0-1.noarch.rpm
[root@localhost ~]$  rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-adobe-linux

64bit
[root@localhost ~]$ rpm -ivh http://linuxdownload.adobe.com/adobe-release/adobe-release-x86_64-1.0-1.noarch.rpm
[root@localhost ~]$  rpm --import /etc/pki/rpm-gpg/RPM-GPG-KEY-adobe-linux
[root@localhost ~]$ yum install flash-plugin nspluginwrapper alsa-plugins-pulseaudio libcurl

CentOS and Red Hat
[root@localhost ~]$ yum groupinstall "Sound and Video"
[root@localhost ~]$ yum install flash-plugin nspluginwrapper curl

VirtualBox 4.2 install in Fedora 17

[root@localhost ~]$ su -
[root@localhost ~]$ # yum install gcc kernel-devel kernel-headers
[root@localhost ~]$ KERN_DIR=/usr/src/kernels/3.4.0-1.fc17.x86_64
[root@localhost ~]$ export KERN_DIR
[root@localhost ~]$ cd /etc/yum.repos.d/
[root@localhost ~]$ wget http://download.virtualbox.org/virtualbox/rpm/fedora/virtualbox.repo

2012/12/10

Fedora 17 修改指令

Login as a root from GUI on Fedora 17

[root@localhost ~]$ su -
Password:
[root@localhost ~]$ cd /etc/pam.d/
[root@localhost ~]$ gedit gdm-password

auth required pam_succeed_if.so user != root quiet

and change this line as below:

## auth required pam_succeed_if.so user != root quiet

Save & Exit

Logout and use root account.

VLC Player install in Fedora 17

1.login root account
$> su -
2. download vlc player
#> rpm -ivh http://download1.rpmfusion.org/free/fedora/rpmfusion-free-release-stable.noarch.rpm
3. #> yum install vlc
4. #> yum install mozilla-vlc

Grub Customizer Install in Fedora 17

1. Download the latest russianfedora-free-release rpm from:
http://mirror.yandex.ru/fedora/russianfedora/russianfedora/free/fedora/releases/17/Everything/i386/os/
2. Install russianfedora-free-release rpm:
# rpm -Uvh russianfedora-free-release*rpm
3. Install grub-customizer rpm package:
# yum install grub-customizer

Fedora 17 with Xen 4.1

1. yum -y upgrade kernel
2. yum -y install xen libvirt python-virtinst
3. Open /boot/grub/menu.lst or /boot/grub2/grub.cfg to add those items:

title Fedora + Xen (3.3.4-5.fc17.x86_64)   
root (hd0,1)     kernel /boot/xen.gz
module /boot/vmlinuz-3.3.4-5.fc17.x86_64 ro root=/dev/sda1
module /boot/initramfs-3.3.4-5.fc17.x86_64.img

4. xm dmesg | head -n 5
5. /etc/init.d/libvirtd start; chkconfig libvirtd on
6. virt-install \   
--paravirt \   
--name=testvm \   
--ram=512 \   
--vcpus=4 \   
--file /dev/vmstorage/testvm \   
--graphics vnc,port=5905 --noautoconsole \   
--autostart 
--noreboot \   
--location=http://mirrors.kernel.org/debian/dists/squeeze/main/installer-amd64/

2012/11/29

Grub2 Live USB

1. Format your USB Flash Drive to use a Single Partition:

    Open a terminal and type sudo su
    Type fdisk -l (and note which device is your USB Drive)
    Type fdisk /dev/sdx (replacing x with your actual usb device)
    Type d (to delete the existing partition)
    Type n (to create a new partition)
    Type p (for primary partition)
    Type 1 (to create the first partition)
    Press Enter (to use the first cylinder)
    Press Enter again (to use the default value as the last cylinder)
    Type a (for active)
    Type 1 (to mark the first partition active "bootable")
    Type w (to write the changes and close fdisk)

WinPE 4.0

1. Download the Assessment and Deployment Kit (ADK) from MSDN subscribers download.

2. Install ADK by running adksetup.exe, and make sure that Windows Preinstallation Environment is selected (selected by default).

3. Open "Deployment and Image Tools Environment" as administrator. 

4. Type "copype amd64 C:\WinPE_amd64" to create folder.

5. Create C:\mount folder.
6. Type "dism /mount-wim /wimfile:C:\WinPE_amd64\media\sources\boot.wim /index:1 /mountdir:C:\mount" to mount wim file.

7. Type "dism /image:C:\WinPE_amd64\mount /add-driver /driver:C:\driver /recurse
dism /image:C:\mount /get-drivers" to add your drivers.
8. Type "dism /unmount-wim /mountdir:C:\mount /commit" to unmount wim file.
9. Type "MakeWinPEMedia /iso C:\WinPE_amd64 C:\WinPE_amd64\WinPE_amd64.iso" to make iso file.
10. Type "MakeWinPEMedia /ufd C:\WinPE_amd64 X:" to make WinPE bootable USB key.

2012/11/28

WDS Server - Use Windows AIK tool to add new driver


1. Find your boot.wim file location.
2. Open Windows AIK tool (command mode).
3. Use "dism /get-wiminfo /wimfile:X:\boot.wim" to get Windows Setup information.
4. Check Windows Setup is Index 2.
5. Create mountboot folder.
6. Use "dism /mount-wim /wimfile:X:\boot.wim /index:2 /mountdir:X:mountboot" to extract boot.wim.
7. Use "dism /image:X:\mountboot /add-driver /driver:X:\driver folder\xxx.inf" to install driver.
8. Use "dism /unmount-wim /mountdir:X:\mountboot /commit" to package your new boot.wim file.

2012/11/27

Ubuntu Commands


中文字型異常修正
sudo sed -i '/DejaVu/d ; /Bitstream Vera/d ; /WenQuanYi Bitmap Song/d' /etc/fonts/conf.avail/69-language-selector*
sudo rm /usr/share/locale-langpack/zh*/LC_MESSAGES/friendly-recovery.mo /usr/share/locale-langpack/zh*/LC_MESSAGES/newt.mo

移除面板上的 Me 選單
sudo apt-get remove --purge indicator-me

更換輸入法
sudo apt-get install scim scim-chewing && sudo im-switch -s scim-bridge

修正 Gedit 的亂碼
gconftool-2 -s /apps/gedit-2/preferences/encodings/auto_detected --type list --list-type string '[UTF-8,BIG5,BIG5-HKSCS,EUC-TW,CURRENT,ISO-8859-15,UTF-16]'

2012/11/25

2012/03/19

My Grub4Dos menu list v4.4

color black/cyan yellow/cyan
timeout 10
default 0

foreground = FF0000
background = 4444FF

splashimage /D3.xpm.gz

title DOS
chainloader /io.sys