Friday, January 25, 2008

VMware Player has connection but no network access

Strange things can happen when having multiple ethernet adapters (including vpn connections) 
on the host system where you have installed and use VMware Player or VMware Server. If such adapters are not set as deactivated, all of the could be the one, which VMware chooses for bridging 
the network traffic. Most time, VMware is able to manage that correctly, but there are some circumstances, 
in which you should go for sure.

To do that goto:

1. Start -> Settings -> Network Connections
2. Right click on one of the connections, you don’t want a VMachine to be bridged to. Then select “Properties”.
3. Disable the service called “VMware Bridge Protocol” in the list by unchecking it.
4. Repeat step two and three for other connections, which should be ignored by VMware.

If you are using VMware server, you can do this also over the GUI application called “Manage Virtual Networks”.

Posted by schmidi2 in 16:19:26 | Permalink | No Comments »

Tuesday, January 15, 2008

cat a file line by line doesn’t work

When you wan’t to compute a file line by line in Bash (or other shell’s ?) with eg. with this command:

for L in $(cat lines.txt); do
   grep “$L” second-file.txt;
done

or

cat lines.txt | while read L; do
   grep “$L” second-file.txt
done

it does ONLY work if you use the UNIX line separator (\n). If you access a file, which was created on a windows system, such commands will not return the expected result. You have to convert the input file first. Do that with the little tool called “dos2unix”.

Posted by schmidi2 in 16:23:44 | Permalink | No Comments »