Stop the application called rdpclip.exe in your windows remote machine.
Go to Run, and write rdpclip.exe to restart this app.
The copy/paste buffer between the clipboards is recovered.
Monday, July 16, 2012
Wednesday, March 21, 2012
How to fix windows XP blue screen crash with error code 0x000000ED
X61 err:
"Umountable volume
0x000000ED (0x8a859030 0xc0000006 ...)"
1. Go to BIOS setup:
SATA: change ATA to generic
2. Use windows XP installltion CD to boot up, choose fix
And under C:\ prompt
input
chkdsk -r
And then reboot, input F8, get into safe mode
and remove any culprits
and install anti-virus software.
"Umountable volume
0x000000ED (0x8a859030 0xc0000006 ...)"
1. Go to BIOS setup:
SATA: change ATA to generic
2. Use windows XP installltion CD to boot up, choose fix
And under C:\ prompt
input
chkdsk -r
And then reboot, input F8, get into safe mode
and remove any culprits
and install anti-virus software.
Tuesday, March 20, 2012
How to do kernel module profiling
mkdir -p /lib/modules/2.6.18-194.el5/kernel/fs/$MOD/
cd /mnt/fmt/
cp modules/2.6.18-194.el5.x86_64/*.ko /lib/modules/2.6.18-194.el5/kernel/fs/$MOD/
cd /mnt/fmt/fs
stap_timing.sh $FILENAME #without path
stap -v timing.stp
Press ctrl-c will show the result.
#more stap_timing.sh
<pre>
cat >timing.stp <<EOF
global timing, intervals, avg_intervals
probe begin
{
printf("Timing functions. Press Ctrl+C to print summary and exit.\n");
}
EOF
while [ $# -gt 0 ]
do
file=$1; shift;
cat >>timing.stp <<EOF
probe module("MOD").function("*@$file").call {
timing[tid(), probefunc()] = gettimeofday_us()
}
probe module("MOD").function("*@$file").return {
t = gettimeofday_us()
old_t = timing[tid(), probefunc()]
if (old_t) intervals[probefunc()] <<< t - old_t
delete timing[tid(), probefunc()]
}
EOF
done
cat >>timing.stp <<EOF
probe end
{
foreach (func in intervals)
avg_intervals[func] = @avg(intervals[func])
printf("%30s %10s %10s %10s %10s %15s\n",
"Func", "Min (us)", "Avg (us)", "Max (us)", "Count", "Total (usec)");
foreach (func in avg_intervals+)
printf("%30s %10d %10d %10d %10d %15d\n",
func, @min(intervals[func]), @avg(intervals[func]), @max(intervals[func]),
@count(intervals[func]), @sum(intervals[func]))
exit()
}
EOF
</pre>
cd /mnt/fmt/
cp modules/2.6.18-194.el5.x86_64/*.ko /lib/modules/2.6.18-194.el5/kernel/fs/$MOD/
cd /mnt/fmt/fs
stap_timing.sh $FILENAME #without path
stap -v timing.stp
Press ctrl-c will show the result.
#more stap_timing.sh
<pre>
cat >timing.stp <<EOF
global timing, intervals, avg_intervals
probe begin
{
printf("Timing functions. Press Ctrl+C to print summary and exit.\n");
}
EOF
while [ $# -gt 0 ]
do
file=$1; shift;
cat >>timing.stp <<EOF
probe module("MOD").function("*@$file").call {
timing[tid(), probefunc()] = gettimeofday_us()
}
probe module("MOD").function("*@$file").return {
t = gettimeofday_us()
old_t = timing[tid(), probefunc()]
if (old_t) intervals[probefunc()] <<< t - old_t
delete timing[tid(), probefunc()]
}
EOF
done
cat >>timing.stp <<EOF
probe end
{
foreach (func in intervals)
avg_intervals[func] = @avg(intervals[func])
printf("%30s %10s %10s %10s %10s %15s\n",
"Func", "Min (us)", "Avg (us)", "Max (us)", "Count", "Total (usec)");
foreach (func in avg_intervals+)
printf("%30s %10d %10d %10d %10d %15d\n",
func, @min(intervals[func]), @avg(intervals[func]), @max(intervals[func]),
@count(intervals[func]), @sum(intervals[func]))
exit()
}
EOF
</pre>
Wednesday, February 8, 2012
SUNRPC example
http://www.cs.rutgers.edu/~pxk/rutgers/notes/rpc/
Make sure go to step 5/6 to follow the example and then read through.
Make sure go to step 5/6 to follow the example and then read through.
Thursday, February 2, 2012
vsphere esx port forwarding on Windows
Suppose I want to have console view of my VMs from my Windows desktop,
but server address is not in the same subnet as my windows desktop,
In my case, server address is 15.226.49.40:902(default console port)
but my windows ip address is 15.116.*.*, the firewall rules of the Esx
server prevent my connection.
Here are the steps to dig tunnel to bypass the firewall rules:
1. putty set up a new ssh session
15.226.49.40:22
2. Putty setting portforwarding
L902 15.226.49.40:902
L443 15.226.49.40:443
the reason for 443, is because vsphere use 443 port to let client to login
3. modify etc\hosts file
C:Windows\System32\drivers\etc\hosts
Add line:
127.0.0.1 esx
Now open vsphere client:
open the address: esx
instead of the actual server 15.226.49.40
And now you can connect vm console freely.
but server address is not in the same subnet as my windows desktop,
In my case, server address is 15.226.49.40:902(default console port)
but my windows ip address is 15.116.*.*, the firewall rules of the Esx
server prevent my connection.
Here are the steps to dig tunnel to bypass the firewall rules:
1. putty set up a new ssh session
15.226.49.40:22
2. Putty setting portforwarding
L902 15.226.49.40:902
L443 15.226.49.40:443
the reason for 443, is because vsphere use 443 port to let client to login
3. modify etc\hosts file
C:Windows\System32\drivers\etc\hosts
Add line:
127.0.0.1 esx
Now open vsphere client:
open the address: esx
instead of the actual server 15.226.49.40
And now you can connect vm console freely.
Monday, January 30, 2012
Linux x86_64 Firefox or Chome
I am a firefox fan, have been using it ever since its initial release.
But have to admit firefox doesn't work well on x86_64 linux platform.
I have a HP workstation z600 which has 12core/12G memory, but firefox
failed to response to a lot of website in a timely manner.
Just tried chrome x86_64 on my desktop, much better, strongly recommend.
http://www.tejasbarot.com/2011/03/20/howto-installing-google-chrome-on-rhel-6-red-hat-enterprise-linux-6-32bit-64bi/
But have to admit firefox doesn't work well on x86_64 linux platform.
I have a HP workstation z600 which has 12core/12G memory, but firefox
failed to response to a lot of website in a timely manner.
Just tried chrome x86_64 on my desktop, much better, strongly recommend.
http://www.tejasbarot.com/2011/03/20/howto-installing-google-chrome-on-rhel-6-red-hat-enterprise-linux-6-32bit-64bi/
Monday, January 9, 2012
How to mount windows share folder
sudo mount -t cifs //192.168.152.132/share/ /mnt/local/ -o username="Jian Wang"
Saturday, January 7, 2012
Ubuntu add ppstream support
My ubuntu is 11.10 oneiric
1.
sudo apt-get install libqt4-core libqt4-dbus libqt4-gui libqt4-
network libqt4-webkit libqt4-xml libfuse2 mplayer
download pps.deb file
http://wowubuntu.com/pps.html?utm_source=twitterfeed&utm_medium
dpkg -i pps.deb
No sound
tools->options-> sound device choose alsa-pci(2nd one) for my specific hardware, HP 8540w laptop.
2. Use totem plugin:
@wnh3yang: totem-pps was renamed to totem-plugin-pps and is only available for Natty (11.04) at the moment.
vi /etc/apt/sources.list
deb http://ppa.launchpad.net/portis25/cnav/ubuntu natty main
deb-src http://ppa.launchpad.net/portis25/cnav/ubuntu natty main
1.
sudo apt-get install libqt4-core libqt4-dbus libqt4-gui libqt4-
network libqt4-webkit libqt4-xml libfuse2 mplayer
download pps.deb file
http://wowubuntu.com/pps.html?utm_source=twitterfeed&utm_medium
dpkg -i pps.deb
No sound
tools->options-> sound device choose alsa-pci(2nd one) for my specific hardware, HP 8540w laptop.
2. Use totem plugin:
@wnh3yang: totem-pps was renamed to totem-plugin-pps and is only available for Natty (11.04) at the moment.
vi /etc/apt/sources.list
deb http://ppa.launchpad.net/portis25/cnav/ubuntu natty main
deb-src http://ppa.launchpad.net/portis25/cnav/ubuntu natty main
Subscribe to:
Posts (Atom)