Add host » History » Version 3
Anchi Cheng, 06/14/2012 02:56 PM
1 | 2 | Anchi Cheng | 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. |
---|---|---|---|
2 | 1 | Anchi Cheng | |
3 | 3 | Anchi Cheng | h3. Find out what python thinks the hosname is |
4 | |||
5 | Run the following in python command line: |
||
6 | <pre> |
||
7 | import socket |
||
8 | socket.gethostname() |
||
9 | </pre> |
||
10 | |||
11 | |||
12 | 2 | Anchi Cheng | h3. Modify your host file on the linux Leginon computer to include the instrument host |
13 | 1 | Anchi Cheng | |
14 | 2 | Anchi Cheng | * On Linux, this host file is |
15 | 1 | Anchi Cheng | > /etc/hosts |
16 | |||
17 | 2 | Anchi Cheng | |
18 | 1 | Anchi Cheng | h3. The Linux main Leginon computer also needs to identify itself by its hostname registered on Microscope Windows computer. |
19 | |||
20 | 2 | Anchi Cheng | * On Window XP, this host file is |
21 | 1 | Anchi Cheng | > C:\\WINDOWS\system32\drivers\etc\hosts |
22 | |||
23 | * On Window NT, this host file is |
||
24 | > C:\\WINNT\system32\drivers\etc\hosts |