Where is SentTo folder in Vista…

crosspost from http://rextang.net

Well, this bothered me many times to find the new locations of personal SentTo folder in Vista. so just memo it here.

I used to put shortcuts like favorite editors or others to SentTo folder in order to quickly access it while browsing file explorer.

the old SentTo folder that usually located at “c:\documents and settings\[user]\SentTo\” changed the location while using in Vista environment. the new location is


thanks for Greg’s post that point out the location.

Technorati Tags: microsoft , vista


Vista IE7 Protect Mode?

crosspost from http://rextang.net

So as those 2 weeks I was primarily working on my new assigned projects (on-site at customer site, everyday till mignight! orz), also try to find time to set up 2 note-pc assigned from company to me (one is HP NC6400 and the other is the compact Thinkpad X60, with docking base). it took me too much time to install those 2 notepcs since I’ve kept reinstalling my OS. originally I like to install Windows 2003 Server R2 since the nc6400 is my primary work station on work. but it seems to be heavy of running a win2k3 in it, also, got not enough driver support for all the devices (I can not find drivers for SD reader for win2k3 in HP site, for example), so, finally I got those 2 notpcs back to Windows Vista. nc6400 to install Vista Ultimate, and x60 to install Vista Enterprise. finally configured them all in this weekend and finally can start dealing with hundards of my work emails… orz

I am new to Vista, to be honest. so as I am trying to do some usual works, like print out a webpage to image writer virtual printer to save the page as a img file, suddenly IE7 told me that I am not able to save the image file to the place I assigned ( somewhere at my D drive that hold my personal data) and recommand me to save to the documents folder under picutres folder. well, ok, I think. so I save the file to that place, and then open my windows explorer trying to get the file. but it’s NOT There!!!

later found that my file was saved to a place at “C:\Users\username\AppData\Local\Microsoft\Windows\Temporary Internet Files\Virtualized\C\Users\userd\Pictures” and I have to then copy them back to the folder I want. what’s going on here!?!?

later found via Goggle, it’s something called Protected Mode Internet Explorer, which lower process privilidge of IE to prevent malicious code running. well, not bad, just little bit troublesome for power users who use computers everyday, IMHO.

anyway, I found my image file and can keep on my work, wish you do find yours while using IE7 and Vista (this only happened on Vista by using the new security model). will explore more on Vista since now my primary working machines are all Vista!!!

by the way, also found that one can not “upgrade” a Vista Enterprise to Vista Ultimate, can only do clean install. Vista Enterprise got no Windows Media Center… orz

Technorati Tags: microsoft , iesecurityvista


VirtualPC 2007 RTM released…

crosspost from http://rextang.net


VirtualPC 2007 RTM

Too busy recently that almost got no time to do anything except working all day long and sleeping. sorry for not updating here long time. for those weeks preparing of entering a new project, will go stable from now on and will continue posting tech infos related to technologies.

just got the news that VirtualPC 2007 RTM was released at 2007/02/19, where can be downloaded here. it’s a long waited update since it old version VirtualPC 2003 and its SP1.

still got no time to test it, but will write a post about the testing once I got it done.

try it if you are also waiting for it. see if it compete VMWare workstation

Technorati Tags: microsoft , virtualizationvirtualpcvmware


Tips: Installing Gentoo on VMWare Workstation – step by step…

crosspost from http://rextang.net/blogs/work/

just browsing on the web and found this very nice and detailed step by step how-to on installing Gentoo Linux on a VMWare Workstation guest box.

I’m little bit surprised that Gentoo got so much support docs on its GentooWiki site, which really help people on the use of its distribution (also don’t forget to read Gentoo Handbook…).

Nice work, and it really saved my time and learning curve on using it…

Technorati Tags: linux , gentoovmware


Clock in a VMWare FreeBSD Guest Runs More Slowly or Quickly Than Real Time…

crosspost from http://rextang.net/blogs/work/

umm, seems that I am little bit enthusiastic about knowing all those unix-like system recently, since I didn’t pay much time to know them before. right now I’ve set up 3 VMs with CentOS4.4 , Gentoo Linux 2006 (since it is able to run in Sun SPARC machine), FreeBSD 6.1 , and going to setup one more VM with Sun Solaris 10 x86 (11/2006 version) arch to get familiar with all those main stream unix-like OSes.

while toying around with Gentoo and FreeBSD, I did found that Gentoo seems had no problems on the clock issue happened in my CentOS as well as FC6 as described in my previous post. but FreeBSD did encounter this problem again. the clock is much slower than real one on the host OS.

by searching to Google, I found this post saying about FreeBSD clock is slowing when acting in VMWare as guest OS, and it was also the same reason in Linux that the OS is using APIC to get the clock for the time. the solution is to disable APIC on the boot time by editing /boot/loader.conf and put a line:


in the file and reboot FreeBSD, or to ‘to comment out the “device apic” line in the kernel config file and rebuild the kernel’. also by doing so will loose the ability for the guest OS to run in SMP mode. pretty same as what happened in Linux.

After doing the loader.conf modification and reboot the FreeBSD VM, the clock is back to normal without problem. by installing VMWare-Tools into FreeBSD vm, verifying that vmware-guestd is running and also in the FreeBSD guest OS’s .vmx file, set toos.syncTime to TRUE, the time in my FreeBSD vm is back to normal and won’t need NTP to sync the real time, just like what I did in my CentOS in previous post.

It’s pretty cool that I can run all those 3 VMs with different unix-like OSes simutaniously in my Windows 2003 R2 Server with 2GB RAM. I gave each guest OS 384mb RAM to run and thanks to VMWare Workstation’s dynamic memory allocation technology, while my testing of those 3 VMs I can still have more than 1 gb RAM for my host OS. I think it should be no problem for me to boot up one more Solaris 10 VM in the same time.

The goal is to understanding all those system and networking administration tasks on those different main-stream unix-like OSes and further more to host web applications and database systems on them. maybe than trying to develop some Mono projects to run ASP.NET websites upon them. I’ve already found that it’s pretty different on the admin of  Linux and BSD systems since it’s pretty different on the directory structures as well as those admin commands and locations of various config files. wondering if it’s also different in a Solaris OS…

anyway, it’s always nice to learn new things, and I am enjoying it on my weekend… ;)

Technorati Tags: linux , freebsdsolarisCentOSntpclockkernelvmwareAPIC


Visual Studio 2005 SP1 installation tips…

crosspost from http://rextang.net/blogs/work/

So during the new year holidays, it’s a good time to take some care of current software installations, also a good time to back up important data to DVDs…

I was installing Visual Studio 2005 SP1, and same as Jeffrey, I failed several times on installing the patch and need to refer to the KBs to solve the policy problems.

Before you also wanting to update to VS2005 SP1, follow the steps below to prevent waiting long time of the installation and get errors and start again.

KBs to read:


  1. download the SP1 from here
  2. follow the official kb to modify software policy to prevent error 1718 dialouge
  3. uninstall Scott Gu’s Web Application Project if you installed it before
  4. Install the SP1

that’s it. thanks to Jeffrey’s post to reduce my time on searching of the KBs.

Technorati Tags: microsoft , visualstudio


Running Hamachi VPN P2P as a Service on Windows and Linux box…

crosspost from http://rextang.net/blogs/work/

So after I’ve solved the clock and time problem on my Linux box, it’s now time to think about others. I found Hamachi and wrote a post about it couple weeks ago. I found that it’s really simple to install and easy to use when I am not able to have a VPN environment outside the world. Now I got Windows Servers accessing with Terminal Service, and also got Linux boxes accessing using SSH or VNC over XDMCP, it would be more secure if I can access those boxes via those procotols on a VPN based tunnel.

Hamachi is built as a windows client app. it also got linux client. Windows client needs to become paid user to have the “Run as Service” function, and linux will need some more steps to let it run when system boot on. so my next homework is to build my own VPN P2P server communication private network using hamachi and let hamachi running as service on each OS box.

After doing a search to Google, found this post (also listing on Digg) talking about making hamachi windows client running as a service in any windows platform (including XP), and also contained links pointing to let hamachi running as a service on linux, Mac, and other platforms, that’s the answer of this homework.

On windows side, running client windows app as a service is an old tricks of using instsrv.exe and srvany.exe, and it’s the same way on that post to make hamachi run as a system service inside windows.

On linux side, the main study is to understand the system boot up sequences and know where to put hamachi client also solve the access premission problems.

Read the post about detail explaination and installation steps. I’ll just memo the instructions here for my backup note.

Windows Clients / Servers: (original post)

  • Download Windows 2003 resource kit tools (or search google for it)
  • install the resource kit to get instsrv.exe and srvany.exe on “c:\program files\Windows Resource Kits\” and copy those 2 files to hamachi directory.
  • go to hamachi installed dir, run “instsrv.exe AutoHamachi “c:\program files\hamachi\srvany.exe” ” to create the system service record. “AutoHamachi” is just service name and can name it yourself.
  • open regedit, locate “HKLM\SYSTEM\CurrentControlSet\Services\AutoHamachi\”, create a key named “Parameters”
  • inside “Parameters” key, new a string value with name “Application” and value “c:\\program files\\hamachi\\hamachi.exe -srvany -config “C:\Documents and Settings\Administrator\Application Data\Hamachi” “, config path is your user account path if you are not running as administrator account.
  • go to control panel under services pannel , locate AutoHamachi service, see the properties, on “Log On” tab remember to check “Local System Account” and “Allow service to interact with desktop” , then just start the service and everything is done. (remember to make the startup type to Automatic).

Linux Servers: (original post)

  • download the hamachi package.
  • making “/usr/src/hamachi” dir., unpack download tar.gz file with “tar -zxvf filename.tar.gz” and put the unzip stuffs in that dir.
  • go to “/usr/src/hamachi/package-version/” dir, run “make install” to install hamachi on linux.
  • do a “hamachi-init -c /etc/hamachi ” to make a public hamachi profile under dir “/etc/hamachi”
  • issue and run “tuncfg” to enable root priviledge on tunnelling network for hamachi process
  • issue “hamachi -c /etc/hamachi start” to start hamachi client
  • issue “hamachi -c /etc/hamachi set-nick server-nick-name” to set server nickname
  • issue “hamachi -c /etc/hamachi login” to login to hamachi server
  • if no exist network, create self-own one by issuing “hamachi -c /etc/hamachi create network-name”
  • if joining existing network, issuing “hamachi -c /etc/hamachi join network-name”
  • issue “hamachi -c /etc/hamachi go-online network-name” to make this client online on the network to be seen by peers
  • issue “hamachi -c /etc/hamachi list” to list peer machines and IP addresses
  • issue “hamachi -c /etc/hamachi go-offline” to get current machine offline from the network
  • issue “hamachi -c /etc/hamachi stop” to stop hamachi
  • issue “hamachi –help” for all the parameters valid.
  • making a hamachi startup script named “/etc/hamachi-start” :


hamachi_start() {
  echo “Starting hamachi…”
  /usr/bin/hamachi -c /etc/hamachi start

hamachi_stop() {
  echo “Stopping hamachi…”
  killall tuncfg
  /usr/bin/hamachi -c /etc/hamachi stop

hamachi_restart() {
  sleep 1

case “$1″ in

  • issue “chmod 711 /etc/hamachi-start” to change script file to runable mode
  • under different distribution find out the boot up files and locate “rc.local” file (usually at /etc/rc.d/rc.local) to add the scripts by adding the following code in the last:

if [ -x /usr/bin/hamachi-start ]; then
 . /usr/bin/hamachi-start

  • OR just create symbolic link of “hamachi-start” into runlevel 3 startup dir “/etc/rc.d/rc3.d/” by issuing “ln -s /etc/hamachi-start /etc/rc.d/rc3.d/S50hamachi-start”
  • test if can start and stop hamachi service by using the symbolic link. start by “/etc/rc.d/rc3.d/S50hamachi-start” , stop by “/etc/rc.d/rc3.d/S50hamachi-start stop”.
  • if everything went well, running hamachi as a startup loading program is done.

but actually there should be the iptables firewall that needs to be set to allow the connection, or else the peers would only see the linux box but may not be able to login. by default the SSH port 22 should be opened thus it should be no problem to connect to the linux hamachi ip with SSH, but if there are other services you want to use, just like what I’ve setup xdmcp and vnc, it should be convenient to just add those peers hamachi ip-address to iptables to allow full access of the network.

  • by default linux hamachi client would also create a network interface called “ham0″, when setting up iptable rules, it needs to be target to this interface instead of eth0.
  • setup pass-through rule for peer hamachi IPs by editing iptables conf file at “/etc/sysconfig/iptables” and adding like “-A RH-Firewall-1-INPUT -i ham0 -s -j ACCEPT” to allow each peer.
  • save “/etc/sysconfig/iptables” file and restart iptables service by issuing “service iptables restart”.
  • test each connection way to make sure you can really connect via hamachi ip address.

one can have max 16 machines inside a self-created network if using hamachi free service. pretty enough for testing env.

that’s it. now I have some Windows Server boxes, some Linux server boxes, and a secure network to connect them over internet.

Technorati Tags: linux , hamachifedoraCentOSVPNP2Pwindowsservice


Clock in a Linux Guest Runs More Slowly or Quickly Than Real Time…

crosspost from http://rextang.net/blogs/work/

The title came from VMWare KB and just said exactly the problems I’ve faced those 2 days!

As I’ve  written in the Windows X Server Client post, I used VMWare 5.5 to setup a Fedora Core 6 Linux VM to be the linux test server. the linux kernel version is 2.6.18 and after I finished that post soon I found that my server’s system time is little bit strange. it’s not sync with the host time.

Since correct time is very important for a server, I think it should be more important in a linux server since there were lots of logs and crontabs that’s based by time. The very first thoughts to fix this problem is to use NTP protocol to sync with world time servers. in linux kernel 2.6 there is ntpd for ntp server, in 2.4 it should be xntpd. so I quickly modified “/etc/ntp.conf” file and started the ntpd.

the time is still not sync with real time after I started ntpd. also I found that the ntpd installed is not able to sync to outside server, it will only sync to LOCAL server, even if I turned on udp port 123 in iptables (both in and out), just like what it was written in this maillist I found. also, the system time is slow, it takes more than one second to pass a second (inside this linux guest system). there seems also having problems related to VM hardware’s clock settings.

This tooks me one day and didn’t find any solution on the internet. finally I decided that maybe it’s only happened on linux kernel 2.6.18 and decide to build up another distribution with different kernel version to test again.

I choosed CentOS 4.4 with linux kernel 2.6.9 to build up another linux vm. and after the installation, the system time is still slow like the one inside Fedora vm. this concluded that it will almost happened with 2.6 kernel in VMWare and won’t happened in 2.4 kernel (since my colleague had a RedHat 7.2 with kernel 2.4.18 running without the time slow problem). some posts I read indicated that this should have something related to system clock. so I started dig into that direction.

A search to Google finally found the answer. From VMWare KB. It’s exactly the answer of this problem if you are running kernel 2.6 inside VMWare. the reason that caused the slowing time inside guest system is because of that the guest clock frequency is setting too high than the host OS can offer. in 2.4 kernel the clock rate is set to 100HZ and after 2.6 kernel the clock is set to 1000HZ on compiling time, thus cause the timer in guest OS slower than host OS. refer to this KB for more detail explaination.

Just follow what the KB said to tune bootup kernel options for both slow time and quick time problem, like the following (GRUB case):

image=/boot/vmlinuz label=”linux”
root=/dev/hda1 initrd=/boot/initrd.img
append=”resume=/dev/hda6 splash=silent clock=pit nosmp noapic nolapic

“clock=pit” is to fix quick clock problem, “nosmp noapic nolapic” is to fix slow clock problem.

after a reboot of guest linux (both my Fedora one and CentOS one) , the clock is back to normal and strangely that the ntpd also back to normal work and can query outside time server without problems. cool!

As also provided in another VMWare KB talking about Timekeeping in VMWare Virtual Machine, it is also able to use VMWare Tools to sync guest OS time with host one. by installing VMWare Tools in Linux server, there will be a vmware-guestd running and by setting parameter “tools.syncTime = TRUE” inside VMWare .vmx setting file, time will be sync.ed with host OS using VMWare Tools and will be not necessary to run ntpd or ntpdate in crontab to sync your time inside guest system, it will auto sync with host OS and it will now be only the host OS that needs to sync with world time server thus save the bandwith also the loading of outside time servers.

finally solved the time problem, and got to learn one more linux distribution install, also get deeper understanding of ntpd during this problem solving, nice (tough) learning.

actually Fedora Core distribution is pretty different from CentOS installation, CentOS is pretty much like RedHat distribution and many daemon names are different from Fedora and CentOS (RedHat). another tough learning to remember those difference! (should be more differences if touching FreeBSD systems!)

anyway, now I can also setup my xdmcp and vnc server env on my CentOS guest system and now have 2 guest linux systems to start my learning of those network services installation. keep walking…

Technorati Tags: linux , redhatfedoraCentOSntpclockkernelvmware