command line >>
regsvr32 /U ZIPFLDR.DLL
ren C:\WINDOWS\system32\zipfldr.dll ZIPFLDR.OLD
Sunday, January 4, 2009
turn off Windows XP's built-in view ZIP folder support
Wednesday, February 13, 2008
Print to USB Printer from DOS under windows
1. Install the Microsoft Loopback Adapter, then configure a static IP
(eg. 10.10.10.1/255.255.255.0)
2. Share the printer (eg. usbprinter)
3. create a printer port on LPT2
NET USE LPT2: \\10.10.10.1\usbprinter /PERSISTENT:YES
Finally, you can try to print use "DIR > LPT2" under DOS
Thursday, September 27, 2007
run JBOSS with specific IP under Linux
./run.sh -b < IP ADDRESS >
it will assign that IP to jboss.bind.address
Tuesday, September 18, 2007
Run second instance on one JBOSS
change the following file....
default/deploy/jbossweb-tomcat55.sar/server.xml:
change 8080 to 18080
default/conf/jboss-service.xml
change 8083 to 18083
change 1099 to 11099
change 1098 to 11098
change 4445 to 14445
change 4444 to 14444
default/deploy/jms/uil2-service.xml
change 8093 to 18093
Wednesday, August 22, 2007
make yr linux server become syslog server
SYSLOGD_OPTIONS="-r -m 0"
insert iptables log into /var/log/iptables
#Log iptables stuff to iptables log
kern.=debug /var/log/iptables
on iptables files, use
iptables -A INPUT -p tcp -j LOG --log-tcp-options --log-level debug --log-prefix "INPUT packets"
Saturday, August 11, 2007
only allow from source IP on apache
Order deny,allow
Deny from all
Allow from IP_ADDRESS
Sunday, July 22, 2007
openLDAP authentication on apache
AuthName "LDAP SERVER"
AuthLDAPEnabled on
AuthLDAPURL ldap://<openldap server>/<schema>?uid
require valid-user
change the following setting under httpd.conf
AllowOverride Options AuthConfig
Thursday, July 19, 2007
create openldap log
Insert “loglevel -1” into slapd.conf files
Please refer to openldap admin guide for more information.
To enable the log file in the system log.
Insert the following into /etc/syslog.conf
# save OpenLDAP log
local4.* /var/log/ldap.log
then restart the ldap & syslog service.
Saturday, July 7, 2007
add Jboss as Windows services
run the following command.
%JBOSS_HOME%\bin\JavaService.exe
-install Jboss %JAVA_HOME%\jre\bin\server\jvm.dll
-Djava.class.path=%JAVA_HOME%\lib\tools.jar;%JBOSS_HOME%\bin\run.jar
-start org.jboss.Main
-params -c Application_Name -stop org.jboss.Main -method systemExit
-out %JBOSS_HOME%\log\out.log
-err %JBOSS_HOME%\log\err.log
-current %JBOSS_HOME%\bin -depends "" -manual
add new address book in Lotus Domino
inside
names=names.nsf,newaddressbook.nsf
into notes.ini file.
names.nsf = existing the address book.
newaddressbook.nsf = the new address book.
run tomcat behind apache / reverse proxy
enable the mod_proxy
configure apache httpd.conf as below
ProxyPass /examples http://localhost:8080/examples
ProxyPassReverse /examples http://localhost:8080/examples
Friday, June 15, 2007
thunderbird mail server connection timeout.
add the mail.server.server#.timeout = interger number of second
# mean number of server setting.
Sunday, March 25, 2007
Firefox2 problem view maxis bill
This is Firefox2 security issues. By default Firefox 2 disabled the SSL2.0. This caused problem unable to access webpages that are running under SSL2.0 encryption. (eg maxis.com.my to view my bill)
By Following step problem will solve...
Go to location, key in about:configThen, key in security.ssl3.rsa_rc4_40_md5 under filter.
Change it from false to true.