Monday, July 8, 2013

how to find active ip address (host) list on local network

1. arp-scan --interface=eth0 192.168.0.0/24
2. arp -a
3. nmap -sP 192.168.1.0/24
4. ping the broadcast : $ ping 192.168.182.255 , You will get a response with the IP address of any device on the network capable of responding to pings.

how to add color to terminal in mac

create a .bash_profile file :

$ nano .bash_profile
add these lines  (dark bg) :

export CLICOLOR=1
export LSCOLORS=GxFxCxDxBxegedabagaced
or (bright bg) :

export CLICOLOR=1
export LSCOLORS=ExFxBxDxCxegedabagacad

Sunday, July 7, 2013

how to create a zip file with password

zip -e   [zip_file/target]   [source_file]

example :

zip -e test.zip myimage.tga
zip -e movie.zip myfilm.mov

Tuesday, June 11, 2013

manually install vmware tool in mac (vmware fusion)

Sometime when we try to istall the vmware tool from the menu, nothing will happen. So we need to do manual install.

From the Host (MAC), go to Application/vmware. Right click and select 'show package contents'. Navigate to Content/Library/isoimages. Grab the .iso (windows.iso or linux.iso depends on which guest OS we're trying to use) and make a copy to the for example : desktop.

From the guest OS, connect CD, and mount that ISO and windows will detect the CD and then find and run the installer from inside the CD.

Cheers.

create shutdown shortcut in windows

Desktop - right click - new - shortcut ... then 

type : 

shutdown.exe -s (shutdown) 

or 

shutdown.exe -r (restart)

:-)