Thursday, July 31, 2008
Wednesday, July 30, 2008
Windbg stack tracing
This is a very crude documentation only.
If you got "Module load completed but symbols could not be loaded for....." do the following to investigate:
This should pin point why debug symbols are not being loaded.
To use the Microsoft Symbol Server
1. Make sure you have installed the latest version of Debugging Tools for Windows.
2. Start a debugging session.
3. Decide where to store the downloaded symbols (the "downstream store"). This can be a local drive or a UNC path.
4. Set the debugger symbol path as follows, substituting your downstream store path for DownstreamStore.
If you got "Couldn't load mismatched pdb for appname.exe", you can force Windbg to load the pdb file via:
To check if the symbols match:
If you got "Module load completed but symbols could not be loaded for....." do the following to investigate:
kd> !sym noisy kd> .reload
This should pin point why debug symbols are not being loaded.
To use the Microsoft Symbol Server
1. Make sure you have installed the latest version of Debugging Tools for Windows.
2. Start a debugging session.
3. Decide where to store the downloaded symbols (the "downstream store"). This can be a local drive or a UNC path.
4. Set the debugger symbol path as follows, substituting your downstream store path for DownstreamStore.
SRV*d:\msdndebug*http://msdl.microsoft.com/download/symbolsThis will download debug symbols to d:\msdndebug automatically.
If you got "Couldn't load mismatched pdb for appname.exe", you can force Windbg to load the pdb file via:
kd> .symopt 0x40 kd> .reload
To check if the symbols match:
~ts#>!itoldyouso bff c:\path\bin\bff.pdb
Monday, July 28, 2008
Enable Remote Desktop via Registry key
To enable Remote Desktop of a remote computer change the following key in the registry:
Note that you have to connect to remote computer using Registry Editor, thus say, File | Connect Network Registry.
~technos
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Terminal Server\fDenyTSConnectionsSet the value of this key to 0.
Note that you have to connect to remote computer using Registry Editor, thus say, File | Connect Network Registry.
~technos
Friday, July 25, 2008
Test code
This is only a test of formatting source code in Blogger. See http://code.google.com/p/syntaxhighlighter/ for details. Use Notepad++ when copying source over from clipboard.
Option Explicit Sub Main() Include "Common.TWin32TreeView" Dim wtv As TWin32TreeView 'Window("Desktop Window").Attach Window("Application=Explorer.exe ClassName=CabinetWClass TypeName=Window").Attach Set wtv = New TWin32TreeView wtv.Handle = TreeView("Index=1").hwnd Dim sMsg As String sMsg = "Root item is " & wtv.GetRootItemText sMsg = sMsg & vbCrLf & "Selected item is : " & wtv.GetSelectedItemText 'MsgBox sMsg If wtv.IsSelectedItemExpanded Then MsgBox "selected node is expanded" Else MsgBox "it is not yet expanded" End If End Sub
Wednesday, July 16, 2008
Using System Rescue CD for Windows machines
Backup MBR (master boot record)
~ts~
:#/ dd if=/dev/sda of=/mnt/tmp/mbr-sda.bak bs=512 count=1
~ts~
Saturday, July 05, 2008
Common Debian administration commands
:#/ apt-cache search [package name] -> searches for a package
:#/ apt-get clean -> cleans the cached installed packages
:#/ apt-get insall [package name] -> install a package
:#/ apt-get update -> synchronize the package index files from their sources
:#/ apt-show-versions -> shows the version of the installed package
:#/ apt-get clean -> cleans the cached installed packages
:#/ apt-get insall [package name] -> install a package
:#/ apt-get update -> synchronize the package index files from their sources
:#/ apt-show-versions -> shows the version of the installed package
Friday, July 04, 2008
Minimal Debian Etch install with X and open-vm-tools
World wide mirror sites (link)
After installing the base system, do the following.
For main Debian repository
hostname:/# nano -w /etc/apt/sources.list
#more entries from here of course from /etc/apt/sources.list deb http://ftp.debian.org/debian etch main contrib non-free deb-src http://ftp.debian.org/debian etch main contrib non-free deb http://www.backports.org/debian etch-backports main contrib non-freeHongkong is best for my case too:
#more entries from here of course from /etc/apt/sources.list deb http://ftp.hk.debian.org/debian etch main contrib non-free deb-src http://ftp.hk.debian.org/debian etch main contrib non-free deb http://www.backports.org/debian etch-backports main contrib non-freeNotice that we added backports URL in sources.list. That's where open-vm-tools are currently hosted.
Continue with installing the rest of the software:
:/# wget -O - http://backports.org/debian/archive.key | apt-key add - :/# apt-get update :/# apt-get install lessDepending on your Debian version, do install xorg related packages.
Debian Sarge 3.1 | Debian Etch | |
apt-get install x-window-system-core | apt-get install xorg |
hostname:/# apt-get install gnome-core hostname:/# apt-get install gdm msttcorefonts gdm-themes hostname:/# rebootAfter reboot, you should now be in graphical mode. Next step is to open-vm-tools.
:#/ apt-get install open-vm-source :#/ module-assistant prepare open-vm :#/ module-assistant auto-install open-vm :#/ apt-get install open-vm-tools :#/ rebootInstall additional applications, like:
:/# apt-get install synaptic :/# apt-get install firefox :/# apt-get install gnome-themes :/# apt-get install gnome-art
~ts~
Subscribe to:
Posts (Atom)
Configuring TUN/TAP virtual network interface for use with QEMU on Xubuntu 24.04
Configuring TUN/TAP virtual network interface for use with QEMU on Xubuntu 24.04 I am planning to run qemu-system-ppc to play around QEMU ...

-
Tried to update my Ubuntu host today and it did pickup that new version of VirtualBox is available (4.1.8). All other packages installed pro...
-
Installing MonoDevelop in OpenSUSE 12.2 from its repository was very easy. When running it for the first time though I got the message: Th...
-
Tried to run GenerateProjectFiles.bat to build Unreal Engine from source ( link ), but got error like below: C:\>Users\x\UnrealEngi...