Alternate host names for camera pc
Added by Daniel Alford over 5 years ago
We have two scopes ( artica, krios) both with K3 cameras. Both K3 pc's are named gatan customer.
I added an alternate host name in /etc/hosts and from python Socket library I can see it be able to resolve the IP address correctly but I cannot get Leginon to connect with the alternate host name. It works fine with the original host name but refuses to add a launcher when I try to use the alternate name.
Regards,
Dan
Replies (2)
RE: Alternate host names for camera pc - Added by Anchi Cheng over 5 years ago
You will do better actually change the computer name. I am sure your network people will like that, too. On my Windows 7, this is under Systems and Security/System/Advanced system settings/System Properties/Computer Name. "Valued Gatan Customer" is just no good as an identity or hostname. It will require restarting the computer but has no other consequences as far as we know. We usually name each with some name related to the scope it is on.
If for some reason you really not wanting to do so, you can set up a private IP mapping in pyami.cfg for each computer that needs to know about it. This means your linux processing server and the gatan pc. See Feature in Issue #4686.
RE: Alternate host names for camera pc - Added by Anchi Cheng over 5 years ago
Once you configure pyami.cfg, the IP routing in pyami/mysocket.py will use that instead of the default host/ip mapping found by python socket module.