Add host » History » Revision 6
Revision 5 (Anchi Cheng, 04/18/2013 04:33 PM) → Revision 6/13 (Anchi Cheng, 04/25/2014 11:17 AM)
h2. Add the IP address and matching hostname of the microscope and digital camera computer in your host file on the main Leginon computer, and vice versa. h3. Find out what python thinks the hostname is Run the following in python command line: <pre> import socket socket.gethostname() </pre> If you'd like to shorten your linux hostname recognized by socket without the domain name, you may do this as root <pre> hostname your_shorter_hostname </pre> h3. Modify your host file on the linux Leginon computer to include the instrument host * On Linux, this host file is > /etc/hosts h3. The Linux main Leginon computer also needs to identify itself by its hostname registered on Microscope Windows computer. * On Window XP, this host file is > C:\\WINDOWS\system32\drivers\etc\hosts * On Window NT and Window 7, NT, this host file is > C:\\WINNT\system32\drivers\etc\hosts