| thinkpad inside virtualbox inside thinkpad |
[Oct. 9th, 2010|05:12 pm] |
I don't like installing Windows, so I want to keep it contained within a Virtualbox image and run Linux on the desktop. I also don't like Sudden Death Product Activation "Ha, so you changed a setting in your virtual machine, now you have to activate again, and we might decide to refuse your activation request at any time!"
The solution : get a Windows which is already activated, such as the very one that comes with my computer.
How to do it:
1. Run dmidecode to get your system id
meng@thinkpad:~$ sudo dmidecode
[sudo] password for meng:
# dmidecode 2.9
SMBIOS 2.4 present.
67 structures occupying 2241 bytes.
Table at 0x000E0010.
Handle 0x0000, DMI type 0, 24 bytes
BIOS Information
Vendor: LENOVO
Version: 7BETD7WW (2.18 )
Release Date: 11/20/2008
Address: 0xDC000
Runtime Size: 144 kB
ROM Size: 2048 kB
Characteristics:
PCI is supported
PC Card (PCMCIA) is supported
PNP is supported
BIOS is upgradeable
BIOS shadowing is allowed
ESCD support is available
Boot from CD is supported
Selectable boot is supported
BIOS ROM is socketed
EDD is supported
ACPI is supported
USB legacy is supported
BIOS boot specification is supported
Targeted content distribution is supported
BIOS Revision: 2.24
Firmware Revision: 1.19
Handle 0x0001, DMI type 1, 27 bytes
System Information
Manufacturer: LENOVO
Product Name: 1706FJ2
Version: ThinkPad X60
Serial Number: 123
UUID: 456
Wake-up Type: Power Switch
SKU Number: Not Specified
Family: ThinkPad X60
Handle 0x0002, DMI type 2, 8 bytes
Base Board Information
Manufacturer: LENOVO
Product Name: 1706FJ2
Version: Not Available
Serial Number: 789
2. Create a virtual machine with default XP settings, and load the same id stuff in
VBoxManage setextradata xp2 "VBoxInternal/Devices/pcbios/0/Config/DmiBIOSVendor" "LENOVO"
VBoxManage setextradata xp2 "VBoxInternal/Devices/pcbios/0/Config/DmiBIOSVersion" "7BET7DWW (2.18 )"
VBoxManage setextradata xp2 "VBoxInternal/Devices/pcbios/0/Config/DmiBIOSReleaseDate" "11/20/2008"
VBoxManage setextradata xp2 "VBoxInternal/Devices/pcbios/0/Config/DmiBIOSReleaseMajor" 2
VBoxManage setextradata xp2 "VBoxInternal/Devices/pcbios/0/Config/DmiBIOSReleaseMinor" 24
VBoxManage setextradata xp2 "VBoxInternal/Devices/pcbios/0/Config/DmiBIOSFirmwareMajor" 1
VBoxManage setextradata xp2 "VBoxInternal/Devices/pcbios/0/Config/DmiBIOSFirmwareMinor" 19
VBoxManage setextradata xp2 "VBoxInternal/Devices/pcbios/0/Config/DmiSystemVendor" "LENOVO"
VBoxManage setextradata xp2 "VBoxInternal/Devices/pcbios/0/Config/DmiSystemProduct" "1706FJ2"
VBoxManage setextradata xp2 "VBoxInternal/Devices/pcbios/0/Config/DmiSystemVersion" "ThinkPad X60"
VBoxManage setextradata xp2 "VBoxInternal/Devices/pcbios/0/Config/DmiSystemSerial" "123"
VBoxManage setextradata xp2 "VBoxInternal/Devices/pcbios/0/Config/DmiSystemFamily" "ThinkPad X60"
VBoxManage setextradata xp2 "VBoxInternal/Devices/pcbios/0/Config/DmiSystemUuid" "456"
3. Boot the virtual machine from the "Rescue and recovery CD", and start the system reinstall just like on a real machine, inserting all SIX CDs in turn
4. Halfway through the preinstallation, XP will refuse to boot (just goes dead with black screen), shutdown, switch on IO APIC and continue
5. Some time later the install with finish and desktop will come up
6. Install Virtualbox guest additions (because the thinkpad install script uses PCI ID to identify installed hardware, it mostly doesn't install drivers that don't work in the machine)
7. It Works !!! |
|
|
| who said linux isn't user friendly? |
[Jul. 19th, 2010|08:12 pm] |
thank you:
# mkfs.ext3 -L image /dev/sdc mke2fs 1.41.3 (12-Oct-2008) /dev/sdc is entire device, not just one partition! Proceed anyway? (y,n) n |
|
|
| mouse wheel desktop left and right |
[Feb. 22nd, 2010|10:13 am] |
open gconf-editor and under
Code:
/apps/compiz/plugins/vpswitch/allscreens/options
find "next_button" and give value "Button5", find "prev_button" and give value "Button4" |
|
|
| ubuntu rocks |
[Aug. 19th, 2008|10:05 pm] |
;; xemacs21で日本語入力を使い方です。
;; Ubuntu のパーケージ
;; apt-get install mule-ucs ;; UTF-8で使う
;; apt-get install anthy-el prime-el ;;日本語入力用
;; ;;フォントはお好みで
;; apt-get install ttf-sazanami-gothic xfonts-shinonome
;;
; CTRL-\で入力モード切替え
(load-library "anthy")
(setq default-input-method "japanese-anthy")
(require 'un-define)
(set-language-environment "Japanese")
(set-terminal-coding-system 'utf-8)
(set-keyboard-coding-system 'utf-8)
(set-buffer-file-coding-system 'utf-8)
(setq default-buffer-file-coding-system 'utf-8)
;; たぶん出来ない
;;(prefer-coding-system 'utf-8)
|
|
|
| one when not zero |
[Feb. 8th, 2007|10:27 pm] |
This year's post contains a top emacs tip.
(setq column-number-start-at-one t)
|
|
|
| special announcement |
[Feb. 28th, 2006|01:00 pm] |
This is still not Michael's blog, however, thanks to Mark (a.k.a. markadm) I now have a RSS feed here to meng_flickr, which is an intermittently updated stream of photographs (somewhat akin to what my intended purpose of Project Blue Sky).
Interested readers may choose to subscribe to the aforementioned feed.
We now return to our regularly scheduled programme. |
|
|
| well hello |
[Feb. 5th, 2005|08:43 pm] |
this is not michael's blog so there |
|
|