Friday 21 August 2009

Windows : Count files

From command line - not excludes hidden files
dir "C:\" /b/s |find /v /c "::"

Tuesday 4 August 2009

Linux : Renew dhcp lease

sudo dhclient -r

(windows = ipconfig \r)

Vmware Server : Port redirection for NAT network access to guest SSH+RDP

* Add lines to the NAT config to redirect the host ports to the required guest ports
vi /etc/vmware/vmnet8/nat/nat.conf

# SSH
#      ssh -p 8889 root@localhost
8822 = 192.168.84.129:22

# RDP
8889 = 192.168.84.128:3389

* Restart the vm network services
/usr/lib/vmware/net-services.sh restart