Friday, January 4, 2013

cannot access share by computer name

SkyHi @ Friday, January 04, 2013

1.      Check the status and start-up type of these services.
i.        Click start and type services.msc in the search box
ii.      Search for these services. Check if the following services are started, if not start the service and set it to automatic. List of services:
i.                    SSDP Discovery
ii.                  TCP/IP NetBIOS Helper
iii.                Computer Browser
iv.                 Server
       Steps to set the services to automatic
i.                    Search for the service
ii.                  Right click on the service
iii.                If the service is stopped then Start the service
iv.                 Select Properties
v.                   And in the Start-up type select Automatic

2.         Run Network troubleshooter, steps to follow:
i.                    Click on Start
ii.                  Type in Windows network Diagnostics, press Enter
iii.                Check if the issue resolves





dont know if you figured it out yet. i just installed windows 7 ultimate 64-bit 2 days ago and have been pulling my hair out over the same issue. everything seems to be configured correctly, right? i ended up staring at my network adapter setting for some time and realized the rest of my computers are not using TCP/IPv6, everything else is using v4.

SOLUTION:
So go to your network card settings, scroll down the items and UNCHECK "Internet Protocol Version 6 (TCP/IPv6). Then click on Version 4 -> properties -> advanced -> WINS -> Make sure that the following is enabled, "Enable NetBIOS over TCP/IP.
your computers show up now??


REFERENCES
 http://answers.microsoft.com/en-us/windows/forum/windows_7-networking/windows-cannot-access-insert-computer-nameplease/1620cbd6-87d8-47b4-8f5d-f04040f4e917

bash extract ip

SkyHi @ Friday, January 04, 2013
# grep -o '[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}\.[0-9]\{1,3\}' file.txt
# grep -E -o '(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)\.(25[0-5]|2[0-4][0-9]|[01]?[0-9][0-9]?)' file.txt
#perl -n '/(\d+\.\d+\.\d+\.\d+)/ && print "$1\n"' < file


for i in `cat host2.txt`
do
        host $i
done

REFERENCES 
http://stackoverflow.com/questions/427979/how-do-you-extract-ip-addresses-from-files-using-a-regex-in-a-linux-shell

Tuesday, January 1, 2013

Cygwin: How to paste with a right click

SkyHi @ Tuesday, January 01, 2013
For the last few weeks, I've been scratching my head because I could paste content into cygwin with a right click on my work computer, but I couldn't do it at home. And more annoyingly, I couldn't figure it out until a few minutes ago.

To enable paste with a right mouse click, follow these steps (written for dummies like me)

1) Open the cygwin options (aka preferences or settings)




2) Select mouse in the left menu, and select Paste under Right click action



And since the last few versions of cygwin supports windows resize, it has the same good features as putty :).

REFERENCES
http://codeforthesoul.blogspot.ca/2012/09/cygwin-how-to-paste-with-right-click.html