2013年4月19日 星期五

dot net tips

C:\Windows\Microsoft.NET\Framework\\
web.config segment encryption
aspnet_regiis -pef ConfigurationStrings webPath -prov "RsaProtectedConfigurationProvider|DataProtectionConfigurationProvider "

hide your source code with aspnet_compiler.exe

2013年4月11日 星期四

wmi win32: rpc unavailable

1: make sure the machine is turned on
2: make sure you can successfully establish the IPC connection with the target machine
3: check firewall setup. RemoteAdmin need to be enabled.
by command
netsh firewall set service RemoteAdmin
netsh firewall add portopening protocol=tcp port=135 name=DCOM_TCP135
by GPO
Windows Firewall: Allow remote administration exception
4: verify firewall setup
netsh firewall show state

2013年4月9日 星期二

2013年2月22日 星期五

netbios alias

1:
HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\lanmanserver\parameters Add a new Multi-String value called OptionalNames. Enter one or more aliases, one per line.

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\lanmanserver\parameters Add a new DWORD value called DisableStrictNameChecking and set to 1.

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Services\lanmanserver\parameters Add a new DWORD value called DisableLoopBackCheck and set to 1.

HKEY_LOCAL_MACHINE\SYSTEM\CurrentControlSet\Control\Lsa\MSV1_0 Add a new Multi-String Value BackConnectionHostNames. Enter one or more aliases, one per line.


2: reboot server

netbios debug tips: nbtstat -RR / -c 
netbios diag tool: browstat

Please note, the target netbios name should match the dns a record or should not exist in dns zone. otherwise, system will always prompt authentication error with error code 1396 when issuing net use command.

2012年12月27日 星期四

linux network if configuration tips

route define: /etc/sysconfig/network-scripts/route-eth1
content:: 172.16.1.0/24 via 172.16.1.1 dev eth1

2012年12月26日 星期三

PXE tips

tftpx policy search order
1: 01-MAC_ADDR
if MAC address of PXE client is 00-15-5D-10-31-08, the PXE policy name must be 01-00-15-5d-10-31-08
Please note, all letters in MAC should be lower case


2: IP (HEX) without dot
if assigned IP address is 192.168.2.89, the PXE policy name must be  C0A80259.
Please note, all letters from the converted IP address bits must be upper case and dot need to be removed from the PXE policy name.

boot option tips:
noacpi
noipv6
lang=en
keymap=us

2012年12月19日 星期三

remote Linux installation on Dell R710 server via PXE through sol

1: enable sol from bios
2: enable ipmi on BMC
3: setup root password for ipmi connection
4: kernel option for pxe label console=tty0 console=ttySx,115200n8
5: boot to text mode --> add " text " to append segment