# svccfg
svc:> select cde-login
svc:/application/graphical-login/cde-login> listprop arg
dtlogin/args astring
svc:/application/graphical-login/cde-login> setprop dtlogin/args=astring:" -udpPort 177"
svc:/application/graphical-login/cde-login> quit
# svcadm restart cde-login
# ps -ef |grep dtlogin
root 25145 23150 0 06:22:50 pts/1 0:00 grep dtlogin
root 24997 1 0 06:22:01 ? 0:00 /usr/dt/bin/dtlogin -daemon -udpPort 177
Thursday, April 17, 2014
Friday, March 21, 2014
Create Batch file as Windows Services
- Download Windows Server 2003 Resource Kit Tools @http://www.microsoft.com/en-us/download/details.aspx?id=17657
- Create Service
sc create ServiceName binPath= 'path_to_binary' DisplayName= 'Name_of_Servies' start= auto
- Create Parameters on Regedit
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\ServiceName
- Create Key name 'Parameters'
- Add String Value 'Application' for binary file (Full path)
- go to Services.msc
- on 'Log on' tab check box 'Allow service to interact with desktop'
- Create Service
sc create ServiceName binPath= 'path_to_binary' DisplayName= 'Name_of_Servies' start= auto
- Create Parameters on Regedit
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\ServiceName
- Create Key name 'Parameters'
- Add String Value 'Application' for binary file (Full path)
- go to Services.msc
- on 'Log on' tab check box 'Allow service to interact with desktop'
Saturday, February 1, 2014
IMAP-Cyrus
# service cyrus-imapd stop
# su - cyrus
$ cd /usr/lib/cyrus-imapd
$ ./ctl_cyrusdb -r
$ exit
# service cyrus-imapd start
# su - cyrus
$ cd /usr/lib/cyrus-imapd
$ ./ctl_cyrusdb -r
$ exit
# service cyrus-imapd start
Thursday, December 12, 2013
convert cert.pfx to cer , key
Extract crt and key
openssl pkcs12 -in domain.pfx -clcerts -nokeys -out domain.crt
openssl pkcs12 -in domain.pfx -nocerts -nodes -out domain.key
openssl pkcs12 -in domain.pfx -out domain-ca.crt -nodes -nokeys -cacerts
Created pfx file from crt and key
openssl pkcs12 -export -out nokey-domain.pfx -inkey domain.key -in domain.crt
openssl pkcs12 -in domain.pfx -clcerts -nokeys -out domain.crt
openssl pkcs12 -in domain.pfx -nocerts -nodes -out domain.key
openssl pkcs12 -in domain.pfx -out domain-ca.crt -nodes -nokeys -cacerts
Created pfx file from crt and key
openssl pkcs12 -export -out nokey-domain.pfx -inkey domain.key -in domain.crt
Friday, December 6, 2013
Disable bing.com
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\NlaSvc\Parameters\Internet\EnableActiveProbing
change vule to 0
change vule to 0
Tuesday, November 26, 2013
Installation failed; reason - load on module failed, failed to load security policy - Checkpoint Firewall
Running in expert Mode
cpwd_admin stop -name FWM -path "$FWDIR/bin/fw" -command "fw kill fwm"
cpwd_admin start -name FWM -path "$FWDIR/bin/fwm" -command "fwm"
cpwd_admin stop -name CPD -path "$CPDIR/bin/cpd_admin" -command "cpd_admin stop"
cpwd_admin start -name CPD -path "$CPDIR/bin/cpd" -command "cpd"
check Process
cpwd_admin list
cpwd_admin stop -name FWM -path "$FWDIR/bin/fw" -command "fw kill fwm"
cpwd_admin start -name FWM -path "$FWDIR/bin/fwm" -command "fwm"
cpwd_admin stop -name CPD -path "$CPDIR/bin/cpd_admin" -command "cpd_admin stop"
cpwd_admin start -name CPD -path "$CPDIR/bin/cpd" -command "cpd"
check Process
cpwd_admin list
Monday, November 25, 2013
Subscribe to:
Posts (Atom)
ALCATEL 6900
write memory copy running certified reload from working no rollback-timeout
-
SET LLDP System NAME: system name ALL-Uplink system location SIAM-FL11 SHOW LLDP Configure: show lldp config or show lldp local-syste...
-
grant execute on utl_http to wc grant execute on dbms_lock to wc; BEGIN DBMS_NETWORK_ACL_ADMIN.create_acl ( acl => ...
-
:system view system-view or sys :show all config dis current-configuration :create vlan vlan vlan_number :show ip interface ...