2013-08-13

Check WinPE or OS system type (32bit or 64bit)

確認 WinPE 或 Windows 是 32bit 或 64bit


The way to check WinPE or Windows OS is 32bit or 64bit.


echo %processor_architecture%




2013-08-12

Find your Windows Wi-Fi password stored in wlan profile

找出自己 (或別人) 儲存在 Windows 裡的 Wi-Fi 密碼


If you have stored your Wi-Fi password in Windows, then others can find it out when they borrow you PC/Notebook.



Command to show your stored wireless profile:

netsh wlan show profiles


Get the password stored in profile named "CaffeineNoteII", for example,

netsh wlan show profiles CaffeineNoteII key=clear


There are two ways to delete the Wi-Fi profiles stored in Windows:

Method 1, use the command to delete it,

netsh wlan delete profile name="CaffeineNoteII"



Method 2, right click your Wi-Fi profile and select "forget this network":




How to check if your Windows is activated? (如何確認你的 Windows 已啟動?)

If you want to use script/batch to check your Windows 7 / Windows 8 activation, you can execute the command below (command prompt with Administrator privilege),

cscript c:\Windows\System32\slmgr.vbs /dli | find /i "license status"

(/i means ignore case-sensitive)

If you don't want to use script/batch. It is easy to check if your Windows 7 / Windows 8 is activated. Just press [Win Key] + [Pause/Break], then you will see the information below,




2008-03-02

WM5/WM6 internet sharing on USB with EeePC

I wrote a document about howto use WM5/WM6 internet sharing on USB with EeePC
(in Traditional Chinese)

PDF format.

2007-11-13

Virtualbox Host Interface Networking and bridging on Linux


[root@ns ~]# yum install bridge-utils.i386
[root@ns ~]# vi /etc/sysconfig/network-scripts/ifcfg-br0

DEVICE=br0
TYPE=Bridge
BOOTPROTO=static
BROADCAST=192.168.0.255
IPADDR=192.168.0.36
NETMASK=255.255.255.0
NETWORK=192.168.0.0
ONBOOT=yes

[root@ns ~]# echo "BRIDGE=br0" >> /etc/sysconfig/network-scripts/ifcfg-eth0
[root@ns ~]# /etc/init.d/network restart
[root@ns ~]# VBoxAddIF vbox0 tony br0

2007-11-05

Start ssh server in EeePC

After installing ssh server, I create a file /etc/opt/xandros/xandrosncs/hooks/post-up.d/99ssh,
below is the content:

#!/bin/sh
/etc/init.d/ssh restart

So it will start the ssh server after booting up.
Dotn't forget sudo chmod +x /etc/opt/xandros/xandrosncs/hooks/post-up.d/99ssh.

2007-10-25

EeePC 的開關機



它不是執行常見的 init, 而是跑 fastinit。

所以當你 ssh 進去時會發現 reboot、shutdown 或是 init 6 ... 等指令無法執行。

亂翻之下, 找到可用的指令了:

reboot 改用 /sbin/fastreboot.sh
shutdown 改用 /sbin/fastshutdown.sh