Monday, December 22, 2008

Virtualized IO paper reading

1) Finished  High performance and scalable i/o virtualization via self-virtualized devices. 

http://www.cc.gatech.edu/~rhim/hpdc2007.pdf

2) To read: High performance vmm-bypass i/o in virtual machines.

http://nowlab.cse.ohio-state.edu/publications/conf-papers/2006/usenix06.pdf

Sunday, December 21, 2008

Reset root password of Ubuntu

1. use single user mode
http://www.hackszine.com/blog/archive/2008/09/howto_reset_a_lost_ubuntu_pass.html
2. modify password file or use LiveCD
http://www.linuxcompatible.org/thread28427-1.html
http://wiki.clug.org.za/wiki/How_do_I_reset_my_root_password%3F

Thursday, December 18, 2008

Writing network device driver for Linux

http://linuxgazette.net/156/jangir.html

Rtl8139:

http://www.linuxforum.net/forum/showflat.php?Cat=&Board=driver&Number=635688&fpart=1&PHPSESSID=

http://linux.chinaunix.net/bbs/viewthread.php?tid=1095257&extra=&page=1

PCI:

http://www.linuxforum.net/forum/showthreaded.php?Cat=&Board=linuxK&Number=635418&page=&view=&sb=&o=

Thursday, December 11, 2008

Install acrobat reader plugin for firefox on Ubuntu

1. Enable medibuntu repo.
cmd:
sudo wget http://www.medibuntu.org/sources.list.d/hardy.list --output-document=/etc/apt/sources.list.d/medibuntu.list
link: https://help.ubuntu.com/community/Medibuntu

2.Update the source list using the following command

sudo apt-get update

Install acrobat reader with firefox plugin in Ubuntu

sudo apt-get install acroread mozilla-acroread acroread-plugins

ref: http://www.ubuntugeek.com/how-to-install-adobe-pdf-reader-with-plug-in-for-mozilla-firefox-in-feisty-fawn.html

FVM may cause WinXP to BSOD

Remember to stop FVM before reboot the machine. Otherwise, it may cause the WINDOWS to BSOD when XP is starting.

Happened twice on my workstation with WIN XP, SP2.

Monday, December 8, 2008

Install sound driver in Ubuntu Server

1) Need to install alsa related packages:
apt-get install alsa-utils
2) apt-get install aumix
3) reboot the linux
4) use aumix to increase the volume to maximum

Tuesday, December 2, 2008

Use VLOOKUP to merge Excel files

http://answers.yahoo.com/question/index?qid=20060922225016AAZ7IaE
http://www.mrexcel.com/forum/showthread.php?t=82540
http://www.techonthenet.com/excel/formulas/vlookup.php
http://www.ehow.com/how_2169371_two-excel-files-using-vlookup.html

Excel tips: remove duplicate rows and convert hex numbers

1. Remove duplicate rows:
In Microsoft Office Excel 2007, you have several ways to filter for unique values or remove duplicate values:
To filter for unique values, use the Advanced command in the Sort & Filter group on the Data tab.
To remove duplicate values, use the Remove Duplicates command in the Data Tools group on the Data tab.
To highlight unique or duplicate values, use the Conditional Formatting command in the Style group on the Home tab.
Ref: http://office.microsoft.com/en-us/excel/HP100739431033.aspx

2. Convert hex numbers:
Syntax
HEX2DEC(number)
Number is the hexadecimal number you want to convert. Number cannot contain more than 10 characters (40 bits). The most significant bit of number is the sign bit. The remaining 39 bits are magnitude bits. Negative numbers are represented using two's-complement notation.
Ref: http://office.microsoft.com/en-us/excel/HP052091111033.aspx

3. Remove "0x" for hex number:

An easy way to get that x out, would be go to Data->Text to Columns, choosedelimited, and select the "Other" box and type in "x" for the delimiter.

http://www.excelforum.com/excel-worksheet-functions/401606-can-i-use-hex2dec-with-cell-references-vs-numbers.html

Friday, November 7, 2008

Compile FVM using VS 2005

1) CodeGuru: BiSplitter 1.1
2) CodeGuru: Adding a drop arrow to a toolbar button
3) Change OnViewDropDown to use NMHDR structrue and cast it to NMTOOLBAR as follows:

void CMainFrame::OnToolbarDropDown(NMHDR* pnmtb, LRESULT *plr)
{
NMTOOLBAR* pTemp = (NMTOOLBAR*) pnmtb;
}

Simiar to here: CodeProject: Adding a drop arrow to a toolbar button. Free source code and programming help

4) Download "MS detours" package, compile, and copy detours.lib and detoured.lib to the souce directory of /fvmdll

Tuesday, November 4, 2008

build vmware tools for Ubuntu guest

sudo apt-get install build-essential

sudo apt-get install linux-headers-$(uname -r)

reference:
http://blogs.tech-recipes.com/johnny/2006/09/05/installing-vmware-tools-for-ubuntu-linux/

Friday, October 31, 2008

PS source code

http://ubuntuforums.org/showthread.php?t=851927
http://procps.sourceforge.net/

Wednesday, October 22, 2008

Steps to build OpenVZ

mkdir ovz-kernel
cd ovz-kernel
wget ftp://ftp.kernel.org/pub/linux/kernel/v2.6/linux-2.6.18.tar.bz2
wget http://download.openvz.org/kernel/branches/rhel5-2.6.18/028stab027.1/patches/patch-8.el5.028stab027.1-combined.gz
wget http://download.openvz.org/kernel/branches/rhel5-2.6.18/028stab027.1/configs/kernel-2.6.18-i686.config.ovz
wget http://download.openvz.org/~vass/diff-ubc-mm-null-pointer-for-kthread-20070406 # this patch will be not necessary soon.
tar xjf linux-2.6.18.tar.bz2
zcat patch-8.el5.028stab027.1-combined.gz patch -p1 -d linux-2.6.18
patch -p1 -d linux-2.6.18 < diff-ubc-mm-null-pointer-for-kthread-20070406
mv linux-2.6.18 linux-2.6.18-8.el5-028test027
vim linux-2.6.18-8.el5-028test027/Makefile # here we add right extraversion: -8.el5-028test027
cp linux-2.6.19 linux-2.6.18/.config
cd linux-2.6.18-8.el5-028test027
make oldconfig # pressing enter here
vim .config # switching off some config options
make-kpkg --revision=.1 kernel_image
cd ..
cd ..


Reference:
http://wiki.openvz.org/Creating_OpenVZ_LiveCD

Saturday, October 18, 2008

Perl 版本或者是FEDORA 9的问题

我发现我的一个PERL SCRIPT 在UBUNTU 8 和 CENTOS 上都可以。他们的PERL 版本是5.8.8
但是同样的SCRIPT 放到了FEDORA 9上就会出现不同的输出。FEDORA 9的PERL 版本是 5.10.0
不知道是PERL的问题还是FEDOR 9的问题。费了我好久来DEBUG, 真是郁闷。

Friday, October 10, 2008

save email attachment automatically on Linux

http://www.howtoforge.com/forums/showthread.php?t=15778

Install VMware server 1.0.7 On Fedora 9 x86_64 --FAILED

1. download vmware server tar file from vmware.com/download
2. Install kernel source: "yum install kernel-devel"
3. yum install libXtst-1.0.3-3.fc9.i386
4. yum install libX11.i386 libXext.i386 libXi.i386 zlib.i386 libXtst.i386 \
libICE.i386 libSM.i386 libXrender.i386 libXt.i386 \
xinetd kernel-devel pam.i386 pam-devel.i386 gtk2.i386
5. yum install 'perl-ExtUtils-*'
6. download patch and run it.
patch: http://www.it-psycho.de/downloads/vmware-any-any-update117-itpsycho.tar.bz2
untar and run it (need su )

Results:
1) On machine 1, installed OK, but cannot power on VM. Got an error in the *.log file in VM directory.
2) On machine 2, installed ok. But powering on a VM REBOOT the machine.


References:
1. http://fedorasolved.org/server-solutions/vmserver-install
2. http://fedoraforum.org/forum/showthread.php?t=193198
3. http://www.howtoforge.com/forums/showthread.php?t=25647

Friday, October 3, 2008

Exploits

http://www.cisrt.org/enblog/index.php
milw0rm.com (exploits)
metasploit.com

New sysenter/syscall

http://manugarg.googlepages.com/systemcallinlinux2_6.html

Setup your own LXR

Windows:
http://www.iol.ie/~locka/mozilla/lxr.htm
Linux:
http://tread.wordpress.com/2007/08/25/howto-setup-lxr-on-linux-ubuntu-feisty/

provos's blog

http://monkey.org/~provos
http://www.spybye.org/ (contain typical exploit)
http://www.provos.org/

Market share about browsers, OS and others

Market share about browsers
http://marketshare.hitslink.com/report.aspx?qprid=0&qptimeframe=Q&qpsp=38

Monday, September 29, 2008

Javascript encoding and attack

http://scriptasylum.com/tutorials/encdec/encode-decode.html
http://www.w3schools.com/jsref/jsref_unescape.asp
http://buzz.typo3.org/teams/security/article/massive-web-server-hacks-iframe-attacks-now-extended-to-typo3/

attack:
http://www.f-secure.com/weblog/archives/00001502.html

convert between ASCII and unicode
http://people.w3.org/rishida/scripts/uniview/

Web security paper collection

http://morpheus.cs.ucdavis.edu/was/waspapers.php

Store file on line

http://news.cnet.com/8301-13515_3-9736064-26.html

dropbox.