Elvis Woo

To whom be glory forever and ever. Amen.

Skip to: Content | Sidebar | Footer



Clear History “Last” Command (CentOS 5)

1 March, 2009 (12:15) | Linux | By: admin

# echo >.bash_history

# vim /etc/profile
    ……
    HOSTNAME=`/bin/hostname`
    HISTSIZE=0

    if [ -z "$INPUTRC" -a ! -f "$HOME/.inputrc" ]; then
        INPUTRC=/etc/inputrc
   ……
  :wq
# exit

If you want to keep the history when before you logout. You can keep the HISTSIZE=1000 and add "history -c" in the file .bash_logout.

“A word or phrase in the file” in WindowsXP

16 August, 2008 (21:12) | Windows | By: admin

Using the "A word or phrase in the file" search criterion may not work

http://support.microsoft.com/kb/309173

Method 2 is more useful

ASP Website on IIS6.0

10 August, 2008 (08:51) | Application System, Windows | By: admin

Step 1:
Open "Internet Information Services (IIS) Manager" 
Select  "Web Service Extensions". Then select "Active Server Pages" in the right column. 
Click "Allow" button.
Now, this Windows 2003 Server is support ASP.

Step 2:
Now, we should enable parent paths.
Right click the website what we want to config.
Click "properties", Select "Home Directory", Click "Configuration" . At the "Application Configuration" we select "Option" and enable parent paths.


Step3:
Enable anonymous access
Make the website directory writable

Finish:

Pinging Broadcast Address

4 March, 2008 (20:03) | Linux, Network | By: admin

For example: 
[user@linuxos ~]# ping 172.30.30.0 -b
WARNING: pinging broadcast address
PING 172.30.30.0 (172.30.30.0) 56(84) bytes of data.
64 bytes from 172.30.30.123: icmp_seq=1 ttl=255 time=0.805 ms
64 bytes from 172.30.30.2: icmp_seq=1 ttl=255 time=1.30 ms (DUP!)
64 bytes from 172.30.30.15: icmp_seq=1 ttl=64 time=33.0 ms (DUP!)
64 bytes from 172.30.30.11: icmp_seq=1 ttl=64 time=35.0 ms (DUP!)
64 bytes from 172.30.30.14: icmp_seq=1 ttl=64 time=37.2 ms (DUP!)
64 bytes from 172.30.30.3: icmp_seq=1 ttl=64 time=38.0 ms (DUP!)
64 bytes from 172.30.30.9: icmp_seq=1 ttl=64 time=38.7 ms (DUP!)
64 bytes from 172.30.30.12: icmp_seq=1 ttl=64 time=39.0 ms (DUP!)
64 bytes from 172.30.30.13: icmp_seq=1 ttl=64 time=39.0 ms (DUP!)
……………

To Replace <p> with <br> in FCKedit

2 March, 2008 (11:37) | Application System | By: admin

Edit fckconfig.js

FCKConfig.EnterMode = ‘p’ ;                    // p | div | br
FCKConfig.ShiftEnterMode = ‘br’ ;        // p | div | br

Change the value.

*********************************************************

Fix Incorrect GMT time in Proftpd

2 March, 2008 (11:09) | Application System, Linux | By: admin

Edit proftpd.conf
Add TimesGMT off 

Then save & quit and create a softlink
ln -s /usr/share/zoneinfo/Asia/Shanghai /usr/share/zoneinfo/CST

restart proftpd

************************************************

Remove “Apache 2 Test Page”

28 February, 2008 (16:53) | Application System, Linux | By: admin

Edit or Replace /var/www/error/noindex.html

*****************************************

Remove Microsoft Pinyin IME 2003 Completely

17 February, 2008 (09:08) | Windows | By: admin

Run Command:
Regsvr32 /U Msimtf.dll
Regsvr32 /U Msctf.dll

Run regedit:
Find "HKEY_CURRENT_USER\Software\Microsoft\Windows\CurrentVersion\"
Delete "MSSCIPY"

Re-login Windows

*******************************************

Windows 2000 Active Directory Upgrade

7 February, 2008 (13:12) | Windows | By: admin

Lenovo Mobile R&D Center Shanghai Branch

(Jan. 2007)

Windows 2000 Active Directory Upgrade to Windows 2003 R2:

Domain Control: 2

Transition PC: 1

 

Step 1:

       Install Windows Server 2003 R2 on transition PC (with DNS Server)

       Add it to the Active Directory

 

Step 2:

       Insert "Disc 2" of Windows Server 2003 in the CDROM drive of PDC

       Enter folder X:\CMPNENTS\R2\ADPREP

       Run the adprep command:

              adprep /forestprep

              adprep /domainprep

              adprep /domainprep /gpprep (for windows 2003 sp1 or higher)

 

Step 3:

       1. Upgrade transition PC to Domain Control

       2. Transfer FSMO roles to New Domain Control(BDC2)

       3. Downgrade BDC to PC2

       4. Downgrade PDC to PC1

       5. Install Windows Server 2003 R2 on PC1 and PC2

       6. Upgrade PC1 to Primary Domain Control(PDC)

       7. Transfer FSMO roles to PDC

       8. Downgrade BDC2

       9. Upgrade PC2 to Backup Domain Control(BDC)

 

 

**************************************************

Catalyst 3550 Switches Settings Summary

5 February, 2008 (22:29) | Network | By: admin

The R&D LAN of Lenovo Research Institute Shanghai Branch

(Nov. 6, 2005)

Four Catalyst 3550-24:

3550-001(vtp server)

3550-002

3550-003

3550-lab

 

Detail: http://www.elviswoo.com/?page_id=23

 

**************************************************