2012年4月24日 星期二

workaround to let meld 1.5.2 tab/space re-arrange


modify below two place , use control-p to let tab-space re-arrange
src/meld-1.5.2/meld/meldwindow.py
("Preferences", gtk.STOCK_PREFERENCES, _("Prefere_nces"),"[control]P", _("Configure the application"),

self.on_menu_preferences_activate),("ChangesMenu", None, _("_Changes")),

### None ---"[control]P"   ###  [--> <, ]--> >

src/meld-1.5.2/meld/preferences.py
class PreferencesDialog(gnomeglade.Component):
self.fontpicker.set_font_name( self.prefs.custom_font )
self.spinbutton_tabsize.set_value( self.prefs.tab_size )
+old_tab_value = self.prefs.tab_size
+self.prefs.tab_size = 8
+self.prefs.tab_size = old_tab_value
if srcviewer.gsv is not None:

2012年4月21日 星期六

build filedisk 1.7 using 2003sp1_ddk

[1] build environment windows xp sp3
[2] ddk 1830_usa_ddk.iso --> grep from ms (2003sp1 ddk)
[3] install ddk to host , say X:\WINDDK
cd X:\WINDDK\BIN
setenv X:\WINDDK fre WXP
[4] grep filedisk-17.zip source code & extract to X:\filedisk
cd X:\filedisk\exe
build
cd X:\filedisk\sys\src
build
[5] you get filedisk.sys and filedisk.exe

build spfdisk

[1] you must grep the source code, Spf2K3vO.7z
[2] turboC 2.0, masm6.1x , tasm2.0

c:\tc\
c:\min_masm\bin\
c:\tasm\

[3] add below asm.bat

@echo off
echo tc2.0 install in c:\tc
echo tasm20 install in c:\tasm
echo masm6.x install in c:\min_masm
pause
copy include\*.h .
path=%path%;c:\tasm;c:\tc
tcc -mm -c bootmgr.c

path=%path%;c:\min_masm\bin
masm bootsect.asm
masm int13.asm
masm int24.asm
masm loader.asm
masm pre_load.asm

echo -----------------
echo In tc you select spfdisk.prj
echo compile model: medium , code 186/286 , use float processor
echo obj debug info:off
echo link option ignore case sensitive link
echo source debug:off
echo build all
echo -----------------
pause
tc

[4] add below spfdisk.prj

bootfile.c
bootget.c
bootinst.c
bootmenu.c
bootrec.c
chg_disk.c
chk_disk.c
diskdrv.c
diskop.c
dostools.c
fdisk.c
fd_comm.c
fd_menu.c
findspac.c
getobj.c
global.c
help.c
input.c
main.c
message.c
output.c
partnadj.c
partnchg.c
partndel.c
partnid.c
partnmak.c
partnmnu.c
partnobj.c
partnsav.c
platform.c
proc_err.c
proc_fil.c
proc_pic.c
qkformat.c
safearea.c
selemenu.c
showsect.c
sortpart.c
undo.c
bootsect.obj
int13.obj
int24.obj
loader.obj
pre_load.obj
bootmgr.obj

[5] run asm.bat in command line ,
then follow echo instruction run tc to get spfdisk.exe

2012年4月19日 星期四

virtualbox slp , install oem xp sp2

[1] test on VBOX 4.1.12 , XPSP2
[2] in linux use dmidecode to get relative information
sudo dmidecode -t0
sudo dmidecode -t1
[3] in host , create an VM name "XP_OEM" , cmd line input below command.
VBoxManage setextradata XP_OEM "VBoxInternal/Devices/pcbios/0/Config/DmiBIOSVendor" "XX-CORP"
VBoxManage setextradata XP_OEM "VBoxInternal/Devices/pcbios/0/Config/DmiBIOSVersion" "F.10"
VBoxManage setextradata XP_OEM "VBoxInternal/Devices/pcbios/0/Config/DmiBIOSReleaseDate" "06/03/2010"
VBoxManage setextradata XP_OEM "VBoxInternal/Devices/pcbios/0/Config/DmiBIOSReleaseMajor" 15
VBoxManage setextradata XP_OEM "VBoxInternal/Devices/pcbios/0/Config/DmiBIOSReleaseMinor" 16
VBoxManage setextradata XP_OEM "VBoxInternal/Devices/pcbios/0/Config/DmiBIOSFirmwareMajor" 11
VBoxManage setextradata XP_OEM "VBoxInternal/Devices/pcbios/0/Config/DmiBIOSFirmwareMinor" 30
VBoxManage setextradata XP_OEM "VBoxInternal/Devices/pcbios/0/Config/DmiSystemVendor" "XX-CORP"
VBoxManage setextradata XP_OEM "VBoxInternal/Devices/pcbios/0/Config/DmiSystemProduct" "XX Model"
VBoxManage setextradata XP_OEM "VBoxInternal/Devices/pcbios/0/Config/DmiSystemVersion" "F.10"
VBoxManage setextradata XP_OEM "VBoxInternal/Devices/pcbios/0/Config/DmiSystemSerial" "ABC1234D5E"
VBoxManage setextradata XP_OEM "VBoxInternal/Devices/pcbios/0/Config/DmiSystemUuid" "ur' uuid"
VBoxManage setextradata XP_OEM "VBoxInternal/Devices/pcbios/0/Config/DmiSystemFamily" "NNNA_NNNNAA"

2012年4月12日 星期四

extra step to stop autorun when double click drive letter

[stop double click] drive autorun
(virus may autorun , even you use gpedit.msc to stop drive autorun)

[1]
REGEDIT4
[HKEY_LOCAL_MACHINE\SOFTWARE\Microsoft\Windows NT\CurrentVersion\IniFileMapping\Autorun.inf]
@="@SYS:DoesNotExist"

[2] delete below registry tree about autorun & shell subkey
HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\Explorer\MountPoints2

install/remove in XP/SAVE MODE

[1] In XP SAFEMODE
[2] c:\>REG ADD "HKLM\SYSTEM\CurrentControlSet\Control\SafeBoot\Minimal\MSIServer" /VE /T REG_SZ /F /D "Service"
[3] c:\>net start msiserver

[4] you can install/remove msi in xp/save mode

change grub boot sequence

[1] /boot/grub/grub.cfg find entry # 0 base
[2] /etc/default/grub --> change default # from step[1]
[3] update-grub

test on Ubuntu 10.04

標籤: ,

let winpe boot from usb

[1] using virtualbox 4.1.2
[2] make a usb raw disk vmdk --> usb.vmdk [the key is \\.\PhysicalDriveN]
    VBoxManage internalcommands createrawvmdk -filename usb.vmdk -rawdisk \\.\PhysicalDriveN
[3] make an new VM
[C] usb.vmdk
[cdrom 1] winxpsp2_pe
[cdrom 2] winxpsp2
[4] boot from winxp_sp2_pe
[5] format c:
[6] boot from winxpsp2
[7] recover --> fixmbr fixboot
[8] boot from winxpsp2_pe
[9] cd winxpsp2\i386\
[10] winnt32 /cmdcons
[11] copy /e winxpsp2_pe\i386\*.* c:\minint\
[12] c: cd \
[13] copy cmldr ntldr
[14] copy minint\winbom.ini \

[15] your usbstick had winpe bootable ability

2012年4月11日 星期三

Let WINPE boot from harddisk

[1] win xpsp2 intall on harddisk
[2] from xpsp2 cd-rom , cmd line run: x:\i386\winnt32 /cmdcons
[3] in c: below item will renew
cmdcons\
cmldr
boot.ini --> will add one line at buttom of startup menu
[4] copy winpe_xp cdrom x:\i386\*.* to c:\minint\*.*
[5] copy c:\minint\winobm.ini to c:\
[6] edit boot.ini last 2 lines as below
C:\CMDCONS\BOOTSECT.DAT="Microsoft Windows Recovery Console" /cmdcons
C:\CMDCONS\BOOTSECT.DAT="Microsoft Windows PE"

2012年4月7日 星期六

install win98Se on virtualbox 4.1.12

[1] hw settings: enableVT,nestPaging, system PIIx3, IDE PIIx4,
SCSI busLogic no check use host iocache, audio SB16,
[2] setup /pj --> force use ACPI ,
[2.1] add two vdi, first one for boot , second for System.
[3] Display driver --> use Sci tech display doctor 7.0.0.340beta

[4] unicows.exe + kernelex 4.52 + instmia.exe + jre1.5.022 + jre1.6.031=freecol 0.10.5 playable
[5] dosbox0.74 work fine in guest, zsnes1.5w work fine

[6] shrink vdi:
[6.1] use Sdelete.exe -z ; to clean free sector,
[6.2] use Vboxmanage modifyhd --compact d:ooxx.vdi

[7] In 98VM settings, enable absolute pointing device,
[7.1] In host command line : Vboxmanage setextradata VMname "VboxInternal/USB/HidMouse/0/Config/CoordShift" 0
[7.2] reboot 98 will need install Tablet input device,
[7.3] You have mouse pointing seamless switch between host & 98

[8] file share with network neighbor
[8.1] In 98VM settings select Network attach to "host-only-adaptor"
[8.2] In 98 NetHood , check file& printer share,
[8.3] in 98 command>ipconfg --> get your 98_IP
[8.4] in 98 explorer create one folder name "share" , right-click share it
[8.5] in host , run> \\98_IP\
[8.6] you can see the shareFolder from host