On Linux, the default behavior of "ls" command will enable the option "--color=tty". However, because directories are shown in blue color, it is difficult to see them clearly.
You may certainly unalias "ls", but you may also change the color scheme by modifying the LS_COLORS environment variable:
The original value of "di" (directory) is 00;34, which makes it obscure. Changing the background to yellow make it more visible.
LS_COLORS='no=00:fi=00:di=43;34:ln=00;36:pi=40;33:so=00;35:bd=40;33;01:cd=40;33;01:or=01;05;37;41:mi=01;05;37;41:ex=00;32:*.cmd=00;32:*.exe=00;32:*.com=00;32:*.btm=00;32:*.bat=00;32:*.sh=00;32:*.csh=00;32:*.tar=00;31:*.tgz=00;31:*.arj=00;31:*.taz=00;31:*.lzh=00;31:*.zip=00;31:*.z=00;31:*.Z=00;31:*.gz=00;31:*.bz2=00;31:*.bz=00;31:*.tz=00;31:*.rpm=00;31:*.cpio=00;31:*.jpg=00;35:*.gif=00;35:*.bmp=00;35:*.xbm=00;35:*.xpm=00;35:*.png=00;35:*.tif=00;35:'
2010年8月22日 星期日
2010年5月2日 星期日
2010年4月10日 星期六
Virtual Hosting in IIS
http://www.simpledns.com/kb.aspx?kbid=1149
"Virtual hosting" means hosting multiple web-sites with different domain names on the same IP address.
This procedure is also described in Microsoft KB article Q190008
- If you are creating a new virtual host:
- Type the virtual host domain name in the "Host Header Name" field.
- If you are modify an existing website:
- From the "Internet Information Services (IIS) Manager" window, right click on a web-site, and select "Properties"
- In the web-site Properties dialog, click the "Advanced..." button
- In the "Advanced Web Site Identification" dialog, select the first "identity", and click the "Edit" button
- Enter the virtual host web-site domain name in the "Host Header Name" field
2010年4月5日 星期一
Add KMPlayer to WinXP Autoplay List
Q: When I inserted a DVD, the popup window for autoplay only list Microsoft Media Player. How can I add KMPlayer?
A: In KMPlayer,
Right Click - Option - Preference - 檔案關聯 - 檔案關聯tab - 新增 KMP 到檔關聯選單中.
Note that you must be an administrator to make this effective.
A: In KMPlayer,
Right Click - Option - Preference - 檔案關聯 - 檔案關聯tab - 新增 KMP 到檔關聯選單中.
Note that you must be an administrator to make this effective.
2009年10月12日 星期一
Defining Your Own etc\HOSTS in Windows XP
C:\Windows\System32\Drivers\etc\HOSTS
# For example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host
127.0.0.1 localhost
163.22.20.101 ns4
2001:e10:6840:19:204:acff:feee:7539 stu
# For example:
#
# 102.54.94.97 rhino.acme.com # source server
# 38.25.63.10 x.acme.com # x client host
127.0.0.1 localhost
163.22.20.101 ns4
2001:e10:6840:19:204:acff:feee:7539 stu
2009年7月29日 星期三
Clear Putty's Cache
http://tripoverit.blogspot.com/2007/03/clear-puttys-cache.html
For all those of you who have been trying to clear Putty’s cache of host fingerprints (Windows) for development or testing, here is the answer:
1. Open the registry (regedit)
2. Go to HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\SshHostKeys
There you should see Putty’s cache of host keys.
The ‘name’ column tells you which key is for which server.
For example, it will have the format of@: [dss@22:EDA.ipv6.club.tw]
3. Delete the rows that you need.
For Unix users, edit the file "~/.ssh/known_hosts".
For all those of you who have been trying to clear Putty’s cache of host fingerprints (Windows) for development or testing, here is the answer:
1. Open the registry (regedit)
2. Go to HKEY_CURRENT_USER\Software\SimonTatham\PuTTY\SshHostKeys
There you should see Putty’s cache of host keys.
The ‘name’ column tells you which key is for which server.
For example, it will have the format of
3. Delete the rows that you need.
For Unix users, edit the file "~/.ssh/known_hosts".
2009年3月6日 星期五
How to disable the Autorun features
How to use Group Policy settings to disable all Autorun features
Windows Server 2003, Windows XP, and Windows 2000
1. Click Start, click Run, type Gpedit.msc in the Open box, and then click OK.
2. Under Computer Configuration, expand Administrative Templates, and then click System.
3. In the Settings pane, right-click Turn off Autoplay, and then click Properties.
Note In Windows 2000, the policy setting is named Disable Autoplay.
4. Click Enabled, and then select All drives in the Turn off Autoplay box to disable Autorun on all drives.
5. Click OK to close the Turn off Autoplay Properties dialog box.
6. Restart the computer.
How to selectively disable specific Autorun features
To selectively disable specific Autorun features, you must modify the NoDriveTypeAutoRun value under the following registry key subkey:
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\
How you modify this subkey depends on the Autorun feature that you want to disable. For more information about Autorun registry key values, visit the following Microsoft TechNet Web page:
http://www.microsoft.com/technet/prodtechnol/windows2000serv/reskit/regentry/91525.mspx?mfr=true ( http://www.microsoft.com/technet/prodtechnol/windows2000serv/reskit/regentry/91525.mspx?mfr=true)
Autorun is also known as AutoPlay. The following table shows the settings for the NoDriveTypeAutoRun registry value.
Collapse this tableExpand this table
Value Meaning
0x1 Disables AutoPlay on drives of unknown type
0x4 Disables AutoPlay on removable drives
0x8 Disables AutoPlay on fixed drives
0x10 Disables AutoPlay on network drives
0x20 Disables AutoPlay on CD-ROM drives
0x40 Disables AutoPlay on RAM disks
0x80 Disables AutoPlay on drives of unknown type
0xFF Disables AutoPlay on all kinds of drives
Windows Server 2003, Windows XP, and Windows 2000
1. Click Start, click Run, type Gpedit.msc in the Open box, and then click OK.
2. Under Computer Configuration, expand Administrative Templates, and then click System.
3. In the Settings pane, right-click Turn off Autoplay, and then click Properties.
Note In Windows 2000, the policy setting is named Disable Autoplay.
4. Click Enabled, and then select All drives in the Turn off Autoplay box to disable Autorun on all drives.
5. Click OK to close the Turn off Autoplay Properties dialog box.
6. Restart the computer.
How to selectively disable specific Autorun features
To selectively disable specific Autorun features, you must modify the NoDriveTypeAutoRun value under the following registry key subkey:
HKEY_LOCAL_MACHINE\Software\Microsoft\Windows\CurrentVersion\Policies\Explorer\
How you modify this subkey depends on the Autorun feature that you want to disable. For more information about Autorun registry key values, visit the following Microsoft TechNet Web page:
http://www.microsoft.com/technet/prodtechnol/windows2000serv/reskit/regentry/91525.mspx?mfr=true ( http://www.microsoft.com/technet/prodtechnol/windows2000serv/reskit/regentry/91525.mspx?mfr=true)
Autorun is also known as AutoPlay. The following table shows the settings for the NoDriveTypeAutoRun registry value.
Collapse this tableExpand this table
Value Meaning
0x1 Disables AutoPlay on drives of unknown type
0x4 Disables AutoPlay on removable drives
0x8 Disables AutoPlay on fixed drives
0x10 Disables AutoPlay on network drives
0x20 Disables AutoPlay on CD-ROM drives
0x40 Disables AutoPlay on RAM disks
0x80 Disables AutoPlay on drives of unknown type
0xFF Disables AutoPlay on all kinds of drives
訂閱:
文章 (Atom)